Cuttlefish Android failed to start

1,369 views
Skip to first unread message

Qinglin Li

unread,
Jun 21, 2024, 1:11:38 PM6/21/24
to crosvm-dev
Hello, everyone.
I'm using cuttlefish android and I'm getting errors when running it, the key issue seems to be an error in crosvm,My operating system is Ubuntu 24.04.

The logs are shown below:

openwrt D 06-21 23:00:51 26059 26059 log_tee.cpp:175] crosvm[1]: libminijail[1]: unshare(CLONE_NEWNS) failed: Operation not permitted
crosvm D 06-21 23:00:51 26088 26088 log_tee.cpp:175] crosvm[1]: libminijail[1]: unshare(CLONE_NEWNS) failed: Operation not permitted
metrics I 06-21 23:00:51 26079 26094 utils.cc:203] Metrics posted to ClearCut
casimir D 06-21 23:00:52 26082 26082 log_tee.cpp:142] [INFO  casimir] Incoming NCI connection from 127.0.0.1:37600
casimir D 06-21 23:00:52 26082 26082 log_tee.cpp:142] [INFO  casimir] Accepted NCI connection from 127.0.0.1:37600 in slot 0
webRTC E 06-21 23:00:52 26064 26388 vsock_connection.cpp:218] Failed to connect:No such device
openwrt E 06-21 23:00:52 26059 26059 log_tee.cpp:155] [2024-06-21T15:00:52.444563884+00:00 ERROR crosvm] exiting with error 1: the architecture failed to build the vm
openwrt E 06-21 23:00:52 26059 26059 log_tee.cpp:155]
openwrt E 06-21 23:00:52 26059 26059 log_tee.cpp:155] Caused by:
openwrt E 06-21 23:00:52 26059 26059 log_tee.cpp:155]     failed to create a PCI root hub: failed to create proxy device: Failed to configure tube: failed to receive packet: Connection reset by peer (os error 104)
run_cvd I 06-21 23:00:52 26056 26056 process_monitor.cc:59] Detected unexpected exit of monitored subprocess /home/kyle/source/out/host/linux-x86/bin/process_restarter
run_cvd I 06-21 23:00:52 26056 26056 process_monitor.cc:61] Subprocess /home/kyle/source/out/host/linux-x86/bin/process_restarter (26060) has exited with exit code 1
webRTC E 06-21 23:00:53 26064 26388 vsock_connection.cpp:218] Failed to connect:No such device
webRTC E 06-21 23:00:53 26064 26412 server.cpp:368] Client closed the connection
webRTC E 06-21 23:00:53 26064 26498 server.cpp:368] Client closed the connection
webRTC E 06-21 23:00:53 26064 26497 server.cpp:368] Client closed the connection
crosvm E 06-21 23:00:53 26088 26088 log_tee.cpp:155] [2024-06-21T15:00:53.514986197+00:00 ERROR crosvm] exiting with error 1: the architecture failed to build the vm
crosvm E 06-21 23:00:53 26088 26088 log_tee.cpp:155]
crosvm E 06-21 23:00:53 26088 26088 log_tee.cpp:155] Caused by:
crosvm E 06-21 23:00:53 26088 26088 log_tee.cpp:155]     failed to create a PCI root hub: failed to create proxy device: Failed to configure tube: failed to receive packet: Connection reset by peer (os error 104)
run_cvd I 06-21 23:00:53 26056 26056 process_monitor.cc:59] Detected unexpected exit of monitored subprocess /home/kyle/source/out/host/linux-x86/bin/process_restarter
run_cvd I 06-21 23:00:53 26056 26056 process_monitor.cc:61] Subprocess /home/kyle/source/out/host/linux-x86/bin/process_restarter (26089) has exited with exit code 1
run_cvd E 06-21 23:00:53 26056 26056 process_monitor.cc:122] Stopping all monitored processes due to unexpected exit of critical process
run_cvd D 06-21 23:00:53 26056 26056 subprocess.cpp:503] Started (pid: 26548): /home/kyle/source/out/host/linux-x86/bin/stop_cvd
metrics I 06-21 23:00:53 26079 26094 host_receiver.cc:49] Metrics host received: VMStop
run_cvd D 06-21 23:00:53 26056 26056 process_monitor.cc:134] Stopping monitored subprocesses
crosvm D 06-21 23:00:53 26088 26088 log_tee.cpp:196] Finished reading from process crosvm
webRTC I 06-21 23:00:53 26064 26411 main.cpp:353] Received command to stop recording in main.cpp.
run_cvd I 06-21 23:00:53 26056 26056 process_monitor.cc:75] Detected unexpected exit of monitored subprocess /home/kyle/source/out/host/linux-x86/bin/webRTC
run_cvd E 06-21 23:00:53 26056 26056 process_monitor.cc:80] Subprocess /home/kyle/source/out/host/linux-x86/bin/webRTC (26064) was interrupted by a signal 'Killed' (9)
modem_simulator I 06-21 23:00:53 26057 26057 main.cpp:145] Exit request from parent process
run_cvd D 06-21 23:00:53 26056 26056 process_monitor.cc:468] Done monitoring subprocesses


launcher.log

Dennis Kempin

unread,
Jun 21, 2024, 1:17:02 PM6/21/24
to Qinglin Li, crosvm-dev, Cloud Android [External]
This is probably a question for cuttlefish folks at cloud-an...@google.com
Anyone has any ideas?

This error sounds like some device process failed during init, but it doesn't really say which one:

`failed to create a PCI root hub: failed to create proxy device: Failed to configure tube: failed to receive packet: Connection reset by peer (os error 104)`

Maybe caused by this earlier issue? `unshare(CLONE_NEWNS) failed: Operation not permitted`, which I suspect means the seccomp policy is missing an entry?


--
You received this message because you are subscribed to the Google Groups "crosvm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crosvm-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/crosvm-dev/20bbc32d-fa55-4afd-9124-0c1b47456df7n%40chromium.org.

Frederick Mayle

unread,
Jun 25, 2024, 3:48:43 PM6/25/24
to Dennis Kempin, Qinglin Li, crosvm-dev, Cloud Android [External]
That error is inside minijail_enter. Seems like you don't have enough permissions to setup the sandboxing. If it is acceptable for you, you could disable sandboxing by passing `--enable-sandbox=false` to `launch_cvd` (or `cvd start`)

lory an

unread,
Sep 9, 2024, 2:08:00 PM9/9/24
to crosvm-dev, Frederick Mayle, Qinglin Li, crosvm-dev, Cloud Android [External], Dennis Kempin
same error,still failed after added "--enbale-sandbox=false"
secure_env D 09-07 10:49:17 11693 12144 channel_sharedfd.cpp:44] Received message with id: 3
secure_env D 09-07 10:49:17 11693 12144 oemlock_responder.cpp:84] Sending oemlock response
kernel_log_monitor I 09-07 10:49:17 11684 11684 kernel_log_server.cc:134] GUEST_KERNEL_VERSION: 6.6.30-android15-8-g94c1a24cabd5-ab12293704 (kleaf@build-host) (Android (11368308, +pgo, +bolt, +lto, +mlgo, based on r510928) clang version 18.0.0 (https://android.googlesource.com/toolchain/llvm-project 477610d4d0d988e69dbc3fae4fe86bff3f07f2b5), LLD 18.0.0) #1 SMP PREEMPT Thu Aug 29 05:01:15 UTC 2024
kernel_log_monitor I 09-07 10:49:17 11684 11684 kernel_log_server.cc:144] ] Linux version
webRTC E 09-07 10:49:18 11671 11967 vsock_connection.cpp:222] Failed to connect:No such device
crosvm E 09-07 10:49:18 11695 11695 log_tee.cpp:155] [2024-09-07T02:49:18.631876121+00:00 ERROR devices::virtio::input] failed creating WaitContext: Too many open files (os error 24)
crosvm E 09-07 10:49:18 11695 11695 log_tee.cpp:155] [2024-09-07T02:49:18.635438797+00:00 ERROR crosvm::crosvm::sys::linux] failed to recv VmIrqRequest: failed to serialize/deserialize json from packet: attempt to deserialize out of bounds descriptor at line 1 column 28
webRTC E 09-07 10:49:19 11671 11967 vsock_connection.cpp:222] Failed to connect:No such device
webRTC E 09-07 10:49:20 11671 11967 vsock_connection.cpp:222] Failed to connect:No such device
webRTC E 09-07 10:49:21 11671 11967 vsock_connection.cpp:222] Failed to connect:No such device

Chung Nguyen Thanh

unread,
Sep 25, 2024, 10:43:25 AM9/25/24
to crosvm-dev, lory an, Frederick Mayle, Qinglin Li, crosvm-dev, Cloud Android [External], Dennis Kempin
Same error here

9/25 10:19:09:1523] N: __lws_lc_untag:  -- [wsisrv|6|adopted] (5) 16.146ms
[2024/09/25 10:19:09:1523] N: __lws_lc_untag:  -- [wsisrv|5|adopted] (4) 16.208ms
[2024/09/25 10:19:09:1524] N: __lws_lc_untag:  -- [wsisrv|3|adopted] (3) 16.309ms
[2024/09/25 10:19:09:1524] N: __lws_lc_untag:  -- [wsisrv|9|adopted] (2) 16.218ms

Failed to connect:No such device
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument

Failed to connect:No such device
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable

Failed to connect:No such device
Failed to connect:No such device
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable

Failed to connect:No such device
[2024/09/25 10:19:14:1385] N: __lws_lc_untag:  -- [wsisrv|0|adopted] (1) 5.071s
[2024/09/25 10:19:14:1401] N: __lws_lc_untag:  -- [wsisrv|4|adopted] (0) 5.003s

Failed to connect:No such device
Failed to connect:No such device
Failed to connect:No such device
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument
(stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable

Failed to connect:No such device
Failed to connect:No such device


Does anyone have any solution that can help?

Mikko Koivisto

unread,
Sep 26, 2024, 1:37:26 AM9/26/24
to crosvm-dev, Chung Nguyen Thanh, lory an, Frederick Mayle, Qinglin Li, crosvm-dev, Cloud Android [External], Dennis Kempin
Try fixing this first
Too many open files (os error 24)
Then this error is probably just because crosvm is not running and there is no vsocks between host and guest
webRTC E 09-07 10:49:19 11671 11967 vsock_connection.cpp:222] Failed to connect:No such device
Rest of the WebRTC errors are more about networking and seems that WebRTC is unable to connect to STUN server but that has nothing to do with crosvm.

Manel Ben abdallah

unread,
Jul 10, 2025, 1:13:46 PMJul 10
to crosvm-dev, Mikko Koivisto, Chung Nguyen Thanh, lory an, Frederick Mayle, Qinglin Li, crosvm-dev, Cloud Android [External], Dennis Kempin
Thank you, fixing that error enabled me to launch the device
Reply all
Reply to author
Forward
0 new messages