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

K3S Rootless mode daemon-reload : Failed to connect to bus: No such file or directory #10127

Closed
the1bit opened this issue May 21, 2024 · 1 comment

Comments

@the1bit
Copy link

the1bit commented May 21, 2024

Environmental Info:
K3s Version: latest

Node(s) CPU architecture, OS, and Version: GitHub Action Ubuntu-latest

Cluster Configuration: Single instance

Describe the bug:

  • I want to use K3S in a GitHub Action in Rootless-mode.
  • I created the ~/.local/bin/k3s and download the k3s with this command: curl -sfL https://get.k3s.io -o ~/.local/bin/k3s
  • I created the ~/.config/systemd/user then I downloaded the k3s-rootless.service into it.
  • I also modified the k3s-rootless.service with this sed -i 's|ExecStart=/usr/local/bin/k3s server --rootless|ExecStart=/home/runner/.local/bin/k3s server --rootless|' ~/.config/systemd/user/k3s-rootless.service
  • Finally I run systemctl --user daemon-reload to reload the daemon.
  • Error message: Failed to connect to bus: No such file or directory

Steps To Reproduce:

  • Installed K3s: Failed to connect to bus: No such file or directory

Expected behavior:

K3S runs in rootless-mode

Actual behavior:

When I run systemctl --user daemon-reload to reload the daemon. I am facing the following error: Failed to connect to bus: No such file or directory

Additional context / logs:

No additional logs or contexts.

@brandond
Copy link
Member

That's an error from systemctl, not k3s. I'm not sure what to suggest, I would probably check the systemd docs.

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

No branches or pull requests

2 participants