Closed Fmstrat closed 5 years ago
As a note, I get the same result on my desktop machine with 18.04.
I also noticed an ethtool
error in the syslog. I've seen a lot of similar issues here, is it possible that these could be related to installing Ubuntu Desktop 18.04.1 in "minimal" mode? Perhaps there are some missing packages that anbox requires?
Lastly, also saw some AppArmor messages:
Jan 28 15:26:32 ubuntuMBP kernel: [ 2315.063251] audit: type=1400 audit(1548707192.546:604): apparmor="DENIED" operation="open" profile="snap-update-ns.anbox" name="/proc/sys/net/core/somaxconn" pid=7136 comm="4" requested_mask="r" denied_mask="r" fsuid=385601105 ouid=0
Jan 28 15:26:32 ubuntuMBP kernel: [ 2315.063275] audit: type=1400 audit(1548707192.546:605): apparmor="DENIED" operation="create" profile="snap-update-ns.anbox" pid=7136 comm="4" family="inet" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
Jan 28 15:26:32 ubuntuMBP kernel: [ 2315.063283] audit: type=1400 audit(1548707192.546:606): apparmor="DENIED" operation="create" profile="snap-update-ns.anbox" pid=7136 comm="4" family="inet6" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
Jan 28 15:26:32 ubuntuMBP kernel: [ 2315.063291] audit: type=1400 audit(1548707192.546:607): apparmor="DENIED" operation="create" profile="snap-update-ns.anbox" pid=7136 comm="4" family="inet6" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
Tried some other items:
sudo systemctl start snap.anbox.container-manager.service
anbox.appmgr
Which gives:
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
[ 2019-01-28 21:12:08] [launch.cpp:182@operator()] Session manager is not yet running, trying to start it
[ 2019-01-28 21:12:08] [launch.cpp:116@launch_session_manager] Started session manager, will now try to connect ..
[ 2019-01-28 21:12:08] [splash_screen.cpp:50@SplashScreen] Window has no associated renderer yet, creating one ...
[ 2019-01-28 21:12:14] [daemon.cpp:61@Run] Failed to retrieve ready property from application manager
In a separate terminal try running the command
anbox session-manager
If it runs without spitting errors at you then in another separate terminal run.
anbox.appmgr
Let me know how it goes.
$ sudo systemctl status snap.anbox.container-manager.service
● snap.anbox.container-manager.service - Service for snap application anbox.container-manager
Loaded: loaded (/etc/systemd/system/snap.anbox.container-manager.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-01-31 08:15:34 EST; 14s ago
Process: 17728 ExecStop=/usr/bin/snap run --command=stop anbox.container-manager (code=exited, status=0/SUCCESS)
Main PID: 17839 (anbox)
Tasks: 9 (limit: 4915)
CGroup: /system.slice/snap.anbox.container-manager.service
└─17839 /snap/anbox/170/usr/bin/anbox container-manager --data-path=/var/snap/anbox/common/ --android-image=/snap/anbox/170/
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839: calling init: /snap/anbox/170/usr/lib/x86_64-linux-gnu/lib
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839:
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839: calling init: /snap/anbox/170/usr/lib/x86_64-linux-gnu/lib
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839:
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839: calling init: /snap/anbox/170/usr/lib/x86_64-linux-gnu/lib
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839:
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839: initialize program: /snap/anbox/170/usr/bin/anbox
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839:
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839: transferring control: /snap/anbox/170/usr/bin/anbox
Jan 31 08:15:34 ubuntuMBP anbox.container-manager[17839]: 17839:
$ anbox session-manager
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
[ 2019-01-31 13:15:54] [Renderer.cpp:168@initialize] Using a surfaceless EGL context
[ 2019-01-31 13:15:54] [Renderer.cpp:251@initialize] Successfully initialized EGL
[ 2019-01-31 13:15:54] [service.cpp:41@Service] Successfully acquired DBus service name
[ 2019-01-31 13:15:54] [client.cpp:49@start] Failed to start container: Failed to start container: Failed to start container
[ 2019-01-31 13:15:54] [session_manager.cpp:145@operator()] Lost connection to container manager, terminating.
[ 2019-01-31 13:15:54] [daemon.cpp:61@Run] Container is not running
[WW 2019-01-31 13:15:54] [session_manager.cpp:145@operator()] Lost connection to container manager, terminating.
$
No luck there, either. anbox-system-diagnostics-2019-01-31.zip
Any thoughts?
So I have another proof point for this. Ubuntu Desktop 18.04.2, full install, HP Spectre x360 13" with i7, exact same behavior as the Macbook Pro and i7 Desktop.
Could someone from the Anbox team do a fresh Ubuntu install to check this out? Seems to happen consistently with any new install.
I was trying to think of any commonality between the systems and I came up with one. Domain users. I tried running it from the one local user, and viola, it worked. I noticed this in the syslog with the domain user:
Feb 19 20:31:56 ubuntuSpectre NetworkManager[1126]: <info> [1550626316.7872] device (veth5VM8UU): driver '(null)' does not support carrier detection.
Feb 19 20:31:56 ubuntuSpectre NetworkManager[1126]: <info> [1550626316.7873] device (veth5VM8UU): driver 'veth' does not support carrier detection.
Any thoughts about what might be happening?
A little more digging. While my domain user is not able to run anbox, I can sudo to the local user (which happens to be named user
) to run it in the domain user's session:
$ xhost +SI:localuser:user
$ sudo mkdir -p /run/user/1000
$ sudo chown user:users /run/user/1000
$ sudo su - user bash -c anbox.appmgr
I'm still not sure why the domain user can't run, though. Is there a particular debug element I should look for?
Same issue, Ubuntu Mate 18.04.2
version: 4 snap-revision: 171 cpu: arch: x86 brand: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz features:
I have this issue as well, with Ubuntu 19.04.
Starting anbox session-manager from a terminal outputs the following one-liner:
[ 2019-04-30 15:33:14] [session_manager.cpp:130@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded
So, ashmem is contained in android-androresolvd. It has an undeclared dependency on ifupdown2 ( for 'ifquery'), so that needs to be installed first.
Installing android-androresolvd spits out the following error:
Apr 30 10:49:31 looncraz-PC systemd[1]: Starting LSB: Updates /etc/resolv.conf from Android system props... Apr 30 10:49:31 looncraz-PC android-androresolvd[23507]: Cannot access system properties via ANDROID_PROPERTY_WORKSPACE environment setting. Apr 30 10:49:31 looncraz-PC systemd[1]: android-androresolvd.service: Control process exited, code=exited, status=255/EXCEPTION Apr 30 10:49:31 looncraz-PC systemd[1]: android-androresolvd.service: Failed with result 'exit-code'. Apr 30 10:49:31 looncraz-PC systemd[1]: Failed to start LSB: Updates /etc/resolv.conf from Android system props. dpkg: error processing package android-androresolvd (--configure): installed android-androresolvd package post-installation script subprocess returned error exit status 1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I had an error like this:
[ 2020-07-22 11:16:39] [daemon.cpp:61@Run] Failed to connect to socket /run/anbox-container.socket: No such file or directory
root@AnboxServer:~# anbox.appmgr realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory [ 2020-07-24 03:15:47] [daemon.cpp:61@Run] Failed to connect to DBus ------Ubuntu16.04
A pitty that even 4 years later the problem still exists and still nobody contributes to it (looks like anbox is dead)
Running latest edge
4-bb97f3a (170) 391MB devmode
on Ubuntu 18.04. Debug is enabled.Log collection is attached. System info is there, and as requested in ticket:
Please describe your problem: When starting the
appmgr
, anbox fails to load.What were you expecting?: Load.
Additional info:
Thanks! anbox-system-diagnostics-2019-01-28.zip