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

Rootless podman service fails to start #221084

Closed
DCsunset opened this issue Mar 13, 2023 · 4 comments
Closed

Rootless podman service fails to start #221084

DCsunset opened this issue Mar 13, 2023 · 4 comments
Labels
0.kind: bug Something is broken

Comments

@DCsunset
Copy link
Member

DCsunset commented Mar 13, 2023

Describe the bug

Systemd user service podman.service for rootless podman will show the following errors when started:
Error: command required for rootless mode with multiple IDs: exec: "newuidmap": executable file not found in $PATH

When I add shadow package to override the path of the systemd user service, a new error would occur:

newuidmap: write to uid_map failed: Operation not permitte
should have setuid or have filecaps setuid: exit status 1

Steps To Reproduce

Steps to reproduce the behavior:

  1. Set virtualisation.podman.enable = true in /etc/nixos/configuration
  2. Start podman.service after login.

Expected behavior

The user service podman.service should be started without error.

Notify maintainers

@zowoq @pennae

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-linux"`
 - host os: `Linux 6.2.5, NixOS, 23.05 (Stoat), 23.05pre462605.5a1dc8acd97`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@DCsunset DCsunset added the 0.kind: bug Something is broken label Mar 13, 2023
@zowoq
Copy link
Contributor

zowoq commented Mar 13, 2023

545c7a3

There have been a few changes to podman since this commit, please update your nixpkgs.

@DCsunset
Copy link
Member Author

Hi, Thanks for your reply. I've updated nixpkgs and updated the metadata in this issue. However, podman.service still fails to start and the error message is the same

@zowoq
Copy link
Contributor

zowoq commented Mar 14, 2023

the error message is the same

Which error message?

When I add shadow package to override the path of the systemd user service,

If you're still doing this remove it, the podman module handles it.

@DCsunset
Copy link
Member Author

After removing the shadow package, it now works without problem. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants