Command '['waydroid', 'container', 'stop']' returned non-zero exit status 0. #277

Open
opened 2026-07-06 13:34:33 -04:00 by Naderart · 0 comments
Naderart commented 2026-07-06 13:34:33 -04:00 (Migrated from github.com)

While trying to install libhoudini using the command:
sudo venv/bin/python3 main.py install libhoudini

I got this error below:

ERROR: [20:05:35] Stopping container

Traceback (most recent call last):
File "/opt/waydroid-script/main.py", line 357, in
main()
~~~~^^
File "/opt/waydroid-script/main.py", line 350, in main
args.func(args)
~~~~~~~~~^^^^^^
File "/opt/waydroid-script/main.py", line 95, in install_app
container.stop()
~~~~~~~~~~~~~~^^
File "/opt/waydroid-script/tools/container.py", line 46, in stop
run(["waydroid", "container", "stop"])
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/waydroid-script/tools/helper.py", line 48, in run
raise subprocess.CalledProcessError(
...<3 lines>...
)
subprocess.CalledProcessError: Command '['waydroid', 'container', 'stop']' returned non-zero exit status 0.

I'm using waydroid Android 13 on Arch

Luckily I tried to tweak the code and it worked out, if you want to include the fix or if anyone has the same problem

the tweak is in waydroid-script/tools/container.py
line 46
run(["waydroid", "container", "stop"] )
change it to:
run(["sudo", "systemctl", "stop", "waydroid-container.service"])

While trying to install libhoudini using the command: `sudo venv/bin/python3 main.py install libhoudini` I got this error below: > ERROR: [20:05:35] Stopping container > > Traceback (most recent call last): > File "/opt/waydroid-script/main.py", line 357, in <module> > main() > ~~~~^^ > File "/opt/waydroid-script/main.py", line 350, in main > args.func(args) > ~~~~~~~~~^^^^^^ > File "/opt/waydroid-script/main.py", line 95, in install_app > container.stop() > ~~~~~~~~~~~~~~^^ > File "/opt/waydroid-script/tools/container.py", line 46, in stop > run(["waydroid", "container", "stop"]) > ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/opt/waydroid-script/tools/helper.py", line 48, in run > raise subprocess.CalledProcessError( > ...<3 lines>... > ) > subprocess.CalledProcessError: Command '['waydroid', 'container', 'stop']' returned non-zero exit status 0. I'm using waydroid Android 13 on Arch Luckily I tried to tweak the code and it worked out, if you want to include the fix or if anyone has the same problem the tweak is in waydroid-script/tools/container.py line 46 ` run(["waydroid", "container", "stop"] )` change it to: ` run(["sudo", "systemctl", "stop", "waydroid-container.service"])`
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wbruno/waydroid_script#277