waydroid icon indicating copy to clipboard operation
waydroid copied to clipboard

[Need Help] This error log shows forever: "Failed to get service waydroidplatform, trying again..."

Open diyism opened this issue 3 years ago • 13 comments

First I burned Armbian_22.05.3_Pine64_focal_current_5.15.48.img.xz into my pine64 single board and boot successfully.

$ sudo su
$ apt update
$ apt install gnome-session-wayland
$ apt install gnome-terminal
$ apt install gdm3
$ gnome-session-inhibit --inhibit idle top

$ apt install linux-headers-current-sunxi64
$ git clone https://github.com/choff/anbox-modules.git
$ cd anbox-modules
$ ./INSTALL.sh
...
DKMS: install completed.
binder_linux          122880  0
ashmem_linux           24576  0

$ curl -s https://gist.githubusercontent.com/diyism/add38aaf34c4e14a76c25666439a318e/raw | bash

$ waydroid init

$ waydroid session start
UserMonitor service is not even started
Clipboard service is not even started

$ sudo waydroid container start
[gbinder] Service manager /dev/binder has appeared
[15:00:23] Failed to add service waydroidhardware: -1

$ waydroid status
Session:	RUNNING
Container:	RUNNING
Vendor type:	MAINLINE
Session user:	malcolm(1000)
Wayland display:	wayland-0

$ waydroid show-full-ui
(011151) [14:41:37] Failed to get service waydroidplatform, trying again...
(011151) [14:41:38] Failed to get service waydroidplatform, trying again...

This message continue forever, I can't figure out what's wrong, any idea?

diyism avatar Jun 27 '22 07:06 diyism

Try this https://github.com/waydroid/waydroid/issues/347#issuecomment-1087607521 , give feedback.

Luciogi avatar Jun 27 '22 15:06 Luciogi

Try this #347 (comment) , give feedback.

No, #347 just wait for about 1 minute then the Waydroid android UI will show, but in my case, the error message will continue forever.

I can't figure out what's wrong, while "waydroid status" show Session and Container are running, and both binder_linux and ashmem_linux are OK, and my DE gnome-session-wayland also seems OK.

diyism avatar Jun 28 '22 02:06 diyism

check is there any log file /var/log/

Luciogi avatar Jun 30 '22 11:06 Luciogi

Thanks,

I saw "pine64 kernel: [288625.818815] binder_linux: undelivered death notification, 00000 00000000000" in /var/log/syslog

I'll try to recompile binder_linux.

diyism avatar Jun 30 '22 12:06 diyism

No effect, It seems the upper syslog triggered by killing "waydroid show-full-ui", it's not an error.

diyism avatar Jun 30 '22 14:06 diyism

see logs using command waydroid log

Luciogi avatar Jul 02 '22 12:07 Luciogi

$ sudo waydroid log (011151) [14:41:37] Failed to get service waydroidplatform, trying again... (011151) [14:41:38] Failed to get service waydroidplatform, trying again... (011151) [14:41:37] Failed to get service waydroidplatform, trying again... (011151) [14:41:38] Failed to get service waydroidplatform, trying again... …

It's same with the "waydroid show-full-ui".

diyism avatar Jul 03 '22 14:07 diyism

"sudo waydroid shell" is ok I can see the waydroid ip is 192.168.250.112 and I can "adb connect 192.168.250.112" "adb devices" show "192.168.250.112:5555 device", but while I do "adb shell", it say: "error: fork failed, no such device"

diyism avatar Jul 03 '22 14:07 diyism

I'm having the same issue on my PinePhone running DanctNIX Phosh.

kj7rrv avatar Jul 15 '22 17:07 kj7rrv

This is what I did (WARNING: this deletes all your Waydroid data and is equivalent to a factory reset):

waydroid session stop
paru -R waydroid waydroid-image
sudo rm -rf /var/lib/waydroid ~/.local/share/waydroid /usr/share/waydroid-extra
paru -S waydroid waydroid-image
sudo waydroid init
sudo systemctl enable waydroid-container.service

Then I rebooted, and now Waydroid works.

kj7rrv avatar Jul 15 '22 17:07 kj7rrv

@kj7rrv Amazing, thanks. I just did:

sudo apt remove waydroid
sudo rm -rf /var/lib/waydroid ~/.local/share/waydroid /usr/share/waydroid-extra
curl -s https://gist.githubusercontent.com/diyism/add38aaf34c4e14a76c25666439a318e/raw | bash
sudo waydroid init
waydroid session start &
sudo waydroid container start &
waydroid show-full-ui

After 1 minute, I can see the android desktop now.

diyism avatar Jul 19 '22 09:07 diyism

this happens when you run 2 waydroid session at the same time

what i did is restart waydroid-container and then run waydroid show-full-ui

jhay06 avatar Jul 20 '22 13:07 jhay06

This is what I did (WARNING: this deletes all your Waydroid data and is equivalent to a factory reset):

waydroid session stop
paru -R waydroid waydroid-image
sudo rm -rf /var/lib/waydroid ~/.local/share/waydroid /usr/share/waydroid-extra
paru -S waydroid waydroid-image
sudo waydroid init
sudo systemctl enable waydroid-container.service

Then I rebooted, and now Waydroid works.

Thank you so much, this worked for me

ayasa520 avatar Sep 21 '22 08:09 ayasa520

Pine GPUs should now be supported

aleasto avatar Nov 19 '22 16:11 aleasto