Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failed to connect to bus: No such file or directory systemctl --user flag #20

Closed
lopugit opened this issue Nov 28, 2021 · 4 comments

Comments

@lopugit
Copy link

lopugit commented Nov 28, 2021

Describe the bug

Bug happens when I try to run systemctl with --user flag

normal systemctl enable service works fine but I would like to run as user, is this possible?

Steps to reproduce

systemctl --user enable service

Expected behavior

No response

Windows version

21H2 19044.1348

Linux kernel version

Linux win 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Distro

Ubuntu Focal

Logs

a

additional comment

No response

@lopugit lopugit changed the title [Bug]: Failed to connect to bus: No such file or directory [Bug]: Failed to connect to bus: No such file or directory systemctl --user flag Nov 28, 2021
@lopugit
Copy link
Author

lopugit commented Nov 29, 2021

Oh does this mean it can't work? #13

All good

@nullpo-head
Copy link
Owner

Yes, this issue is a duplicate of #13. As a workaround, do sudo login -f username once. user slice will be implemented later.

@lopugit
Copy link
Author

lopugit commented Nov 29, 2021

Yes, this issue is a duplicate of #13. As a workaround, do sudo login -f username once. user slice will be implemented later.

How often do I have to do this though? Just once ever or every session or?

@rksplash
Copy link

rksplash commented May 6, 2022

Experimentally, once per reboot for me, but your set up might require it every time your systemd/dbus session would end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants