Broken waydroid container Pixel3a
-
Hi,
I've tried multiple times installing/re-installing waydroid on a pixel3a.
I've used the waydroid helper & I've used the command line method from this thread:
https://forums.ubports.com/topic/6764/anbox-halium-or-waydroid-no-support-for-ut/11Both had the same issues.
The issues I'm hitting:
First I have issues with the 'waydroid session start'. Logs show that it fails on the lxc-network setup as it says device waydroid0 does not exist.
I tracked down the creation of this bridge device into this script:
/usr/lib/waydroid/data/scripts/waydroid-net.shI've found that the waydroid0 device is being created, but dnsmasq won't see it for some reason.
I changed the line in the 'start' function to remove the '--interface' parameter to dnsmasq as a workaround and it seemed to at least get past the network issue.--except-interface=lo --interface=${LXC_BRIDGE} \
to:
--except-interface=lo \
However, even after doing that, and re-starting the waydroid container and sesion I then get the following error:
root@ubuntu-phablet:~# waydroid container start [21:49:33] NOTE: The failed command's output is above the ^^^ line in the log file: /var/lib/waydroid/waydroid.log [21:49:33] ERROR: Command failed: % umount /var/lib/waydroid/rootfs/vendor/lib/egl [21:49:33] See also: <https://github.com/waydroid> Run 'waydroid log' for details.
waydroid log shows:
root@ubuntu-phablet:~# waydroid log (011333) [21:49:33] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (011333) [21:49:33] NOTE: The failed command's output is above the ^^^ line in the log file: /var/lib/waydroid/waydroid.log (011333) [21:49:33] ERROR: Command failed: % umount /var/lib/waydroid/rootfs/vendor/lib/egl (011333) [21:49:33] See also: <https://github.com/waydroid> (011313) [21:49:33] % umount /var/lib/waydroid/rootfs/vendor (011333) [21:49:33] Traceback (most recent call last): File "/usr/lib/waydroid/tools/__init__.py", line 69, in main actions.container_manager.start(args) File "/usr/lib/waydroid/tools/actions/container_manager.py", line 132, in start helpers.images.mount_rootfs(args, cfg["waydroid"]["images_path"]) File "/usr/lib/waydroid/tools/helpers/images.py", line 91, in mount_rootfs tools.config.defaults["rootfs"], umount=True) File "/usr/lib/waydroid/tools/helpers/mount.py", line 118, in mount umount_all(args, destination) File "/usr/lib/waydroid/tools/helpers/mount.py", line 106, in umount_all tools.helpers.run.user(args, ["umount", mountpoint]) File "/usr/lib/waydroid/tools/helpers/run.py", line 59, in user output_return, check, sudo) File "/usr/lib/waydroid/tools/helpers/run_core.py", line 343, in core check_return_code(args, code, log_message) File "/usr/lib/waydroid/tools/helpers/run_core.py", line 219, in check_return_code raise RuntimeError("Command failed: " + log_message) RuntimeError: Command failed: % umount /var/lib/waydroid/rootfs/vendor/lib/egl (011313) [21:49:33] % umount /var/lib/waydroid/rootfs/odm_extra (011313) [21:49:33] % umount /var/lib/waydroid/rootfs (011313) [21:49:33] % mount /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs (011313) [21:49:33] % mount -o remount,ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs (011313) [21:49:33] % mount /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor (011313) [21:49:33] % mount -o remount,ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor (011313) [21:49:33] % mount -o bind /vendor/lib/egl /var/lib/waydroid/rootfs/vendor/lib/egl (011313) [21:49:33] % mount -o bind /vendor/lib64/egl /var/lib/waydroid/rootfs/vendor/lib64/egl (011313) [21:49:33] % mount -o bind /vendor/odm /var/lib/waydroid/rootfs/odm_extra (011313) [21:49:33] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop (011313) [21:49:34] % start cgroup-lite start: Job is already running: cgroup-lite (011313) [21:49:34] % umount -l /sys/fs/cgroup/schedtune umount: /sys/fs/cgroup/schedtune: mountpoint not found (011313) [21:49:34] % stop nfcd stop: Unknown instance: (011313) [21:49:34] % chmod 777 -R /dev/ashmem (011313) [21:49:34] % chmod 777 -R /dev/dri (011313) [21:49:34] % chmod 777 -R /dev/ion (011313) [21:49:34] % chmod 777 -R /dev/video (011313) [21:49:34] % chmod 777 -R /dev/video3 (011313) [21:49:34] % chmod 777 -R /dev/video2 (011313) [21:49:34] % chmod 777 -R /dev/video1 (011313) [21:49:34] % chmod 777 -R /dev/video33 (011313) [21:49:34] % chmod 777 -R /dev/video32 (011313) [21:49:34] % chmod 777 -R /dev/video0 (011313) [21:49:34] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init (011313) [21:49:34] New background process: pid=11516, output=background lxc-start: utils.c: safe_mount: 1653 Not a directory - Failed to mount /dev/video onto /usr/lib/aarch64-linux-gnu/lxc/dev/video lxc-start: utils.c: open_without_symlink: 1584 Too many levels of symbolic links - vibrator in /usr/lib/aarch64-linux-gnu/lxc/sys/class/leds/vibrator was a symbolic link! (011313) [21:49:34] Save session config: /var/lib/waydroid/session.cfg (011313) [21:49:34] Failed to add service waydroidhardware: -1 (011338) [21:49:34] Failed to start Clipboard manager service, check logs (011338) [21:49:34] Failed to add service waydroidusermonitor: -1 (011607) [21:49:39] % tail -n 60 -F /var/lib/waydroid/waydroid.log (011607) [21:49:39] *** output passed to waydroid stdout, not to this log ***
edit: the hosts /dev/video contains two devices:
root@ubuntu-phablet:~# ls -l /dev/video total 0 lrwxrwxrwx 1 root root 10 May 27 1971 venus_dec -> ../video32 lrwxrwxrwx 1 root root 10 May 27 1971 venus_enc -> ../video33
Any help would be appreciated.
Thanks