LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2021, 03:22 AM   #1
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Rep: Reputation: Disabled
Anbox fails to start : Sparky linux rolling


Hi,

I'm on Sparky rolling (=debian testing) & apt installed anbox.

Code:
anbox session-manager
gives
Code:
[daemon.cpp:61@Run] Failed to connect to socket /run/anbox-container.socket: No such file or directory
Based on some sites I've tried
Code:
systemctl start anbox-container-manager.service
but the probelm persists.

Any suggestions?.

Thanks
 
Old 05-16-2021, 04:23 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Do you actually have an anbox-container-manager.service file in /lib/systemd/system or /etc/systemd/system directories? Did you run the systemctl command as root?
 
Old 05-16-2021, 04:27 AM   #3
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Thanks.

Code:
ls /lib/systemd/system|grep anb
-rw-r--r-- 1 root root  485 Jan 11 05:56 anbox-container-manager.service
Code:
ls /etc/systemd/system|grep anb
shows nothing.

I ran systemctl as root.
 
Old 05-16-2021, 04:30 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
And after running it, did you use ps to check if the daemon was actually running?

Incidently, /lib/systemd/system is where packages put their systemd config files. The ones in /etc, if present at all, are user overrides.
 
Old 05-16-2021, 04:33 AM   #5
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
ps|grep anb
shows nothing is running though I did run the systemctl command.
 
Old 05-16-2021, 04:38 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Grrr! So it's a systemd problem. This is probably where I drop out as I don't use systemd. The last thing I can suggest is that you use journalctl to examine the end of the systemd journal. It might tell you why the command failed.
 
Old 05-16-2021, 04:46 AM   #7
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Thanks.

journalctl shows:
Code:
Condition check resulted in Anbox Container Manager being skipped.
 
Old 05-16-2021, 04:59 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
So I checked and it seems that modern versions of systemd allow conditions to be set in the service file. If those conditions are not met, the service doesn't start. The systemd.unit man page has a whole section on this. I suggest you start by reading it, then go through the anbox service file and check what conditions it has set for running. Some systemd users here can probably take you on from there.

Last edited by hazel; 05-16-2021 at 05:00 AM.
 
Old 05-16-2021, 05:06 AM   #9
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Thanks, appreciated.

A bug?
https://www.mail-archive.com/debian-...sg1691259.html
 
Old 05-16-2021, 06:06 AM   #10
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
OK, the problem was that the deb package doesn't install the android image:
https://build.anbox.io/android-images

The image needs to moved at/var/lib/anbox/android.img

When the anbox is run from the apps menu it should work. A reboot might be needed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux Weekly Roundup: GIMP 2.99.2, LXQt 0.16.0, Sparky Linux 5.13 and More LXer Syndicated Linux News 0 11-08-2020 03:12 PM
LXer: Convert Ubuntu Into Rolling Release Using Rolling Rhino Script LXer Syndicated Linux News 0 07-01-2020 12:13 PM
[SOLVED] Sparky Linux (Debian Testing) Locks Up, FF Locks Up, Have to perform Hard Shutdowns Ztcoracat Debian 17 06-30-2017 11:15 AM
[SOLVED] Sparky Linux Thumbnail s Are Missing Ztcoracat Linux - General 21 03-09-2017 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration