Unmount system image fail. #33

Open
opened 2022-02-04 00:23:20 -05:00 by zhuohoudeputao · 3 comments
zhuohoudeputao commented 2022-02-04 00:23:20 -05:00 (Migrated from github.com)

When I run sudo python3 waydroid_extras.py -n, it shows

==> Stopping waydroid and unmounting already mounted images...
==> Found system image: /var/lib/waydroid/images/system.img
==> Resizing system image....
==> Unmounting .. 
==> Warning: umount failed.. umount: /tmp/waydroidimage: not mounted.
 
==> Failed to mount system image... !  mount: /tmp/waydroidimage: /dev/loop18 already mounted or mount point busy.

system: ubuntu focal

When I run `sudo python3 waydroid_extras.py -n`, it shows ``` ==> Stopping waydroid and unmounting already mounted images... ==> Found system image: /var/lib/waydroid/images/system.img ==> Resizing system image.... ==> Unmounting .. ==> Warning: umount failed.. umount: /tmp/waydroidimage: not mounted. ==> Failed to mount system image... ! mount: /tmp/waydroidimage: /dev/loop18 already mounted or mount point busy. ``` system: ubuntu focal
casualsnek commented 2022-02-04 01:07:56 -05:00 (Migrated from github.com)

Have you stopped waydroid properly ? This typically happens when waydroid is still running or exited without clearing its mounts !

you can run sudo umount /dev/loop18 and try running the script again ! ( Replace /dev/loop18 with whatever it says is already mounted )

Have you stopped waydroid properly ? This typically happens when waydroid is still running or exited without clearing its mounts ! you can run ```sudo umount /dev/loop18``` and try running the script again ! ( Replace /dev/loop18 with whatever it says is already mounted )
zhuohoudeputao commented 2022-02-04 06:44:16 -05:00 (Migrated from github.com)

Have you stopped waydroid properly ? This typically happens when waydroid is still running or exited without clearing its mounts !

you can run sudo umount /dev/loop18 and try running the script again ! ( Replace /dev/loop18 with whatever it says is already mounted )

Thank you. I have fixed it. Maybe the way to stop waydroid properly should be added to the README.

> Have you stopped waydroid properly ? This typically happens when waydroid is still running or exited without clearing its mounts ! > > you can run `sudo umount /dev/loop18` and try running the script again ! ( Replace /dev/loop18 with whatever it says is already mounted ) Thank you. I have fixed it. Maybe the way to stop waydroid properly should be added to the README.
muneeshyadav commented 2022-08-08 09:35:13 -04:00 (Migrated from github.com)

hi,
when I run the "sudo python3 waydroid_extras.py -n" I pressed "y" to the conformation of the failed mount system img thinking it will mount the img later but i can't seem to open the waydroid again.

when i run the "waydroid show-full-ui" after "sudo systemctl start waydroid-container.service", it gives this output and i am not able to open waydroid: -

[18:53:47] Starting waydroid session
[18:53:50] Failed to add service waydroidusermonitor: -1
[18:53:50] Failed to add service waydroidclipboard: -1

ss of libndk translation installed
Screenshot from 2022-08-08 18-57-07

ss of sudo systemctl start waydroid-container.servic
Screenshot from 2022-08-08 18-56-23

waydroid log

`muneesh@fedora waydroid_script]$ waydroid log
(026199) [18:35:38] Failed to add service waydroidusermonitor: -1
(026199) [18:35:38] Failed to add service waydroidclipboard: -1
(020823) [18:37:41] session manager stopped, stopping container and waiting...
(020823) [18:37:41] % lxc-stop -P /var/lib/waydroid/lxc -n waydroid -k
lxc-start: waydroid: conf.c: run_buffer: 321 Script exited with status 126
lxc-start: waydroid: start.c: lxc_end: 988 Failed to run lxc.hook.post-stop for container "waydroid"
(020823) [18:37:41] % /usr/lib/waydroid/data/scripts/waydroid-net.sh stop
vnic is waydroid0
which: no iptables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
which: no ip6tables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
(020823) [18:37:41] % umount /var/lib/waydroid/rootfs/vendor/waydroid.prop
(020823) [18:37:41] % umount /var/lib/waydroid/rootfs/vendor
(020823) [18:37:41] % umount /var/lib/waydroid/rootfs
(020823) [18:37:41] % umount /var/lib/waydroid/data
(020823) [18:37:41] % modprobe ashmem_linux
modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/5.18.16-200.fc36.x86_64
(020823) [18:37:41] Failed to load ashmem driver
(020823) [18:37:41] modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/5.18.16-200.fc36.x86_64
(020823) [18:37:41] Failed to load Ashmem driver
(020823) [18:37:41] % chmod 666 -R /dev/binder
(020823) [18:37:41] % chmod 666 -R /dev/vndbinder
(020823) [18:37:41] % chmod 666 -R /dev/hwbinder
(020823) [18:37:41] Container manager is waiting for session to load
(028347) [18:53:47] Starting waydroid session
(028347) [18:53:47] Save session config: /var/lib/waydroid/session.cfg
(028347) [18:53:47] UserMonitor service is not even started
(028347) [18:53:47] Clipboard service is not even started
(020823) [18:53:47] % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
vnic is waydroid0
which: no iptables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
which: no ip6tables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
Warning: ZONE_ALREADY_SET: 'waydroid0' already bound to 'trusted'
success
(020823) [18:53:48] % mount /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
(020823) [18:53:48] % mount -o remount,ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
(020823) [18:53:48] % mount /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(020823) [18:53:48] % mount -o remount,ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(020823) [18:53:48] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(020823) [18:53:48] Failed to parse android version from system.img
(020823) [18:53:48] Save config: /var/lib/waydroid/waydroid.cfg
(020823) [18:53:48] % mount -o bind /home/muneesh/.local/share/waydroid/data /var/lib/waydroid/data
(020823) [18:53:48] % chmod 777 -R /dev/dri
(020823) [18:53:48] % chmod 777 -R /dev/fb0
(020823) [18:53:48] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(020823) [18:53:48] New background process: pid=28408, output=background
lxc-start: waydroid: utils.c: safe_mount: 1218 No such file or directory - Failed to mount "/dev/ashmem" onto "/usr/lib64/lxc/rootfs/dev/ashmem"
(020823) [18:53:48] waiting 10 seconds for container to start...
(020823) [18:53:49] Save session config: /var/lib/waydroid/session.cfg
(020823) [18:53:49] Failed to add service waydroidhardware: -1
(028347) [18:53:50] Failed to add service waydroidusermonitor: -1
(028347) [18:53:50] Failed to add service waydroidclipboard: -1
(030793) [18:57:37] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(030793) [18:57:37] *** output passed to waydroid stdout, not to this log ***
(030824) [18:58:23] Run waydroid -h for usage information.
(031153) [19:01:01] Run waydroid -h for usage information.
(031159) [19:01:05] Run waydroid -h for usage information.
(031173) [19:01:12] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(031173) [19:01:12] *** output passed to waydroid stdout, not to this log ***
(031196) [19:01:37] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(031196) [19:01:37] *** output passed to waydroid stdout, not to this log ***

`

any idea how to fix this?

hi, when I run the "sudo python3 waydroid_extras.py -n" I pressed "y" to the conformation of the failed mount system img thinking it will mount the img later but i can't seem to open the waydroid again. when i run the "waydroid show-full-ui" after "sudo systemctl start waydroid-container.service", it gives this output and i am not able to open waydroid: - [18:53:47] Starting waydroid session [18:53:50] Failed to add service waydroidusermonitor: -1 [18:53:50] Failed to add service waydroidclipboard: -1 ss of libndk translation installed ![Screenshot from 2022-08-08 18-57-07](https://user-images.githubusercontent.com/57137321/183429028-d6fb8425-77c6-4180-ac3c-e9e085fde301.png) ss of sudo systemctl start waydroid-container.servic ![Screenshot from 2022-08-08 18-56-23](https://user-images.githubusercontent.com/57137321/183428868-089ce55d-19e1-4d04-8f9a-8086e86b9528.png) waydroid log `muneesh@fedora waydroid_script]$ waydroid log (026199) [18:35:38] Failed to add service waydroidusermonitor: -1 (026199) [18:35:38] Failed to add service waydroidclipboard: -1 (020823) [18:37:41] session manager stopped, stopping container and waiting... (020823) [18:37:41] % lxc-stop -P /var/lib/waydroid/lxc -n waydroid -k lxc-start: waydroid: conf.c: run_buffer: 321 Script exited with status 126 lxc-start: waydroid: start.c: lxc_end: 988 Failed to run lxc.hook.post-stop for container "waydroid" (020823) [18:37:41] % /usr/lib/waydroid/data/scripts/waydroid-net.sh stop vnic is waydroid0 which: no iptables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) which: no ip6tables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) (020823) [18:37:41] % umount /var/lib/waydroid/rootfs/vendor/waydroid.prop (020823) [18:37:41] % umount /var/lib/waydroid/rootfs/vendor (020823) [18:37:41] % umount /var/lib/waydroid/rootfs (020823) [18:37:41] % umount /var/lib/waydroid/data (020823) [18:37:41] % modprobe ashmem_linux modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/5.18.16-200.fc36.x86_64 (020823) [18:37:41] Failed to load ashmem driver (020823) [18:37:41] modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/5.18.16-200.fc36.x86_64 (020823) [18:37:41] Failed to load Ashmem driver (020823) [18:37:41] % chmod 666 -R /dev/binder (020823) [18:37:41] % chmod 666 -R /dev/vndbinder (020823) [18:37:41] % chmod 666 -R /dev/hwbinder (020823) [18:37:41] Container manager is waiting for session to load (028347) [18:53:47] Starting waydroid session (028347) [18:53:47] Save session config: /var/lib/waydroid/session.cfg (028347) [18:53:47] UserMonitor service is not even started (028347) [18:53:47] Clipboard service is not even started (020823) [18:53:47] % /usr/lib/waydroid/data/scripts/waydroid-net.sh start vnic is waydroid0 which: no iptables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) which: no ip6tables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) Warning: ZONE_ALREADY_SET: 'waydroid0' already bound to 'trusted' success (020823) [18:53:48] % mount /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs (020823) [18:53:48] % mount -o remount,ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs (020823) [18:53:48] % mount /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor (020823) [18:53:48] % mount -o remount,ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor (020823) [18:53:48] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop (020823) [18:53:48] Failed to parse android version from system.img (020823) [18:53:48] Save config: /var/lib/waydroid/waydroid.cfg (020823) [18:53:48] % mount -o bind /home/muneesh/.local/share/waydroid/data /var/lib/waydroid/data (020823) [18:53:48] % chmod 777 -R /dev/dri (020823) [18:53:48] % chmod 777 -R /dev/fb0 (020823) [18:53:48] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init (020823) [18:53:48] New background process: pid=28408, output=background lxc-start: waydroid: utils.c: safe_mount: 1218 No such file or directory - Failed to mount "/dev/ashmem" onto "/usr/lib64/lxc/rootfs/dev/ashmem" (020823) [18:53:48] waiting 10 seconds for container to start... (020823) [18:53:49] Save session config: /var/lib/waydroid/session.cfg (020823) [18:53:49] Failed to add service waydroidhardware: -1 (028347) [18:53:50] Failed to add service waydroidusermonitor: -1 (028347) [18:53:50] Failed to add service waydroidclipboard: -1 (030793) [18:57:37] % tail -n 60 -F /var/lib/waydroid/waydroid.log (030793) [18:57:37] *** output passed to waydroid stdout, not to this log *** (030824) [18:58:23] Run waydroid -h for usage information. (031153) [19:01:01] Run waydroid -h for usage information. (031159) [19:01:05] Run waydroid -h for usage information. (031173) [19:01:12] % tail -n 60 -F /var/lib/waydroid/waydroid.log (031173) [19:01:12] *** output passed to waydroid stdout, not to this log *** (031196) [19:01:37] % tail -n 60 -F /var/lib/waydroid/waydroid.log (031196) [19:01:37] *** output passed to waydroid stdout, not to this log *** ` any idea how to fix this?
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#33