You are not logged in.

#1 2022-07-16 03:25:34

biscotty666
Member
Registered: 2022-07-08
Posts: 37

[SOLVED] systemctl says service unit file does not exist but it does

New to systemd. Isn't this strange? I'm sure I must be making a noob mistake.

[brian@archlinux ~]$ systemctl enable anbox-session-manager.service
Failed to enable unit: Unit file anbox-session-manager.service does not exist.
[brian@archlinux ~]$ ls -l /etc/systemd/user/anbox-session-manager.service 
lrwxrwxrwx 1 root root 51 Jul 15 11:54 /etc/systemd/user/anbox-session-manager.service -> /usr/lib/systemd/user/anbox-session-manager.service
[brian@archlinux ~]$ ls -l /usr/lib/systemd/user/anbox-session-manager.service 
-rw-r--r-- 1 root root 128 Jul 15 11:28 /usr/lib/systemd/user/anbox-session-manager.service

Last edited by biscotty666 (2022-07-16 06:55:02)

Offline

#2 2022-07-16 03:47:22

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 134

Re: [SOLVED] systemctl says service unit file does not exist but it does

Maybe systemctl enable --user anbox-session-manager.service?

From Systemd wiki page:

The commands in the below table operate on system units since --system is the implied default for systemctl. To instead operate on user units (for the calling user), use systemctl --user without root privileges.

Last edited by Adriik (2022-07-16 03:50:32)


Solo soy un loco más. Please use [code] [/code] tags.
Command cheatsheetCommand not found?
If I write something wrong in English, please correct me.

Offline

#3 2022-07-16 03:57:01

biscotty666
Member
Registered: 2022-07-08
Posts: 37

Re: [SOLVED] systemctl says service unit file does not exist but it does

Thanks. For some reason I thought user was the default if not running with sudo. So that did advance me a bit but now I'm getting

systemctl enable --user anbox-session-manager.service
Failed to enable unit: Refusing to operate on alias name or linked unit file: anbox-session-manager.service

FWIW I installed everything with yay.

Offline

#4 2022-07-16 04:00:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] systemctl says service unit file does not exist but it does


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2022-07-16 04:34:28

biscotty666
Member
Registered: 2022-07-08
Posts: 37

Re: [SOLVED] systemctl says service unit file does not exist but it does

That got me a little further maybe:

sudo modprobe binder_linux devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder
[sudo] password for brian: 
[brian@archlinux ~]$ sudo modprobe ashmem_linux
[brian@archlinux ~]$ sudo mkdir -p /dev/binderfs
[brian@archlinux ~]$ sudo mount -t binder binder /dev/binderfs
Segmentation fault (core dumped)
[brian@archlinux ~]$ lsmod | grep binder
binder_linux          233472  0
[brian@archlinux ~]$ lsmod | grep ashmem
ashmem_linux           20480  0

This actually was the original guide I tried to follow.

Offline

#6 2022-07-16 05:45:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] systemctl says service unit file does not exist but it does

Like you, I have no idea what you are doing. The link I provided tells you what service to actually enable.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2022-07-16 06:20:14

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: [SOLVED] systemctl says service unit file does not exist but it does

systemctl wrote:

Failed to enable unit: Refusing to operate on alias name or linked unit file: anbox-session-manager.service

You wrote:

lrwxrwxrwx 1 root root 51 Jul 15 11:54 /etc/systemd/user/anbox-session-manager.service -> /usr/lib/systemd/user/anbox-session-manager.service

How did that symlink come there to be?

Offline

#8 2022-07-16 06:31:58

biscotty666
Member
Registered: 2022-07-08
Posts: 37

Re: [SOLVED] systemctl says service unit file does not exist but it does

But these are the steps from the link you posted. It just doesn't work. Anyway since the original issue is solved I'll create a new topic for this one.

Offline

#9 2022-07-16 06:32:38

biscotty666
Member
Registered: 2022-07-08
Posts: 37

Re: [SOLVED] systemctl says service unit file does not exist but it does

seth wrote:
systemctl wrote:

Failed to enable unit: Refusing to operate on alias name or linked unit file: anbox-session-manager.service

You wrote:

lrwxrwxrwx 1 root root 51 Jul 15 11:54 /etc/systemd/user/anbox-session-manager.service -> /usr/lib/systemd/user/anbox-session-manager.service

How did that symlink come there to be?

Just saw  this. I put it there. Was it wrong?

Here's some more information. I thought enabling anbox-container-manager I get the same as above. When I try to run the command in the session-manager service file I get:

[brian@archlinux ~]$ anbox session-manager
[ 2022-07-16 06:29:59] [daemon.cpp:61@Run] Failed to connect to socket /run/anbox-container.socket: No such file or directory

So I think I need to solve the problem in post #5

Last edited by biscotty666 (2022-07-16 06:38:15)

Offline

#10 2022-07-16 06:54:37

biscotty666
Member
Registered: 2022-07-08
Posts: 37

Re: [SOLVED] systemctl says service unit file does not exist but it does

I will mark this as solved since the titled issue is solved and create a new post with a more descriptive title of the current problem.

Offline

#11 2022-07-16 06:57:57

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: [SOLVED] systemctl says service unit file does not exist but it does

I put it there. Was it wrong?

It's wrong in the sense that systemctl told you that's it's not gonna operate on this shady thing you put there.
So "bad idea" kinda "wrong".

I thought enabling anbox-container-manager I get the same as above.

You thought what what?
Did you enable anbox-container-manager or did you try to run sth. else instead thinking it was equivalent and getting you … what??
What?

Failed to connect to socket /run/anbox-container.socket: No such file or directory

systemctl status anbox-container-manager

Offline

#12 2022-07-16 07:48:36

biscotty666
Member
Registered: 2022-07-08
Posts: 37

Re: [SOLVED] systemctl says service unit file does not exist but it does

I have no idea what you are saying. What shady what what? I posted all my commands so I really don't get your point.

Offline

#13 2022-07-16 08:10:04

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: [SOLVED] systemctl says service unit file does not exist but it does

I thought enabling anbox-container-manager I get the same as above.

Is completely unintelligible.

And I pointed out that systemd told you that it's not gonna operate on /etc/systemd/user/anbox-session-manager.service because it's a symlink.
And you didn't post the status of "anbox-container-manager".

Offline

#14 2022-07-16 13:15:15

biscotty666
Member
Registered: 2022-07-08
Posts: 37

Re: [SOLVED] systemctl says service unit file does not exist but it does

I thought about enabling it.

Offline

#15 2022-07-16 14:12:00

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: [SOLVED] systemctl says service unit file does not exist but it does

Thinking about enabling it won't cut it.
You actually got to do it…

Offline

#16 2022-07-16 16:12:16

biscotty666
Member
Registered: 2022-07-08
Posts: 37

Re: [SOLVED] systemctl says service unit file does not exist but it does

I'm sorry you have so much trouble understanding me. I obviously did try otherwise I couldn't have said what the error message was. Thanks for your help but I found a solution: Android Studio. Easy peasy. (disambiguation: does not refer to the legume but is a common expression.)

Offline

Board footer

Powered by FluxBB