Put NixOS setuid wrappers on the panel service PATH #4

Merged
reudy merged 1 commit from agent/fix-rootless-wrappers-path into main 2026-10-18 18:28:30 +02:00 AGit
Member

Deploys from the panel failed with:

Error: command required for rootless mode with multiple IDs: exec: "newuidmap": executable file not found in $PATH

Rootless podman needs the setuid newuidmap/newgidmap, which NixOS only installs in /run/wrappers/bin. Login shells have that on PATH; systemd services do not, so podman worked over SSH as reudy but not from panel-api. This adds /run/wrappers to the unit's path.

Not built locally (no Nix on the dev box). After merging, on the server:

nix flake update panel && sudo nixos-rebuild switch --flake .#vps
systemctl show -p MainPID panel-api   # then check /proc/<pid>/environ PATH contains /run/wrappers/bin

🤖 Generated with Claude Code

https://claude.ai/code/session_018s1T5e2bQY6WrX4JeEyEPM

Deploys from the panel failed with: ``` Error: command required for rootless mode with multiple IDs: exec: "newuidmap": executable file not found in $PATH ``` Rootless podman needs the setuid `newuidmap`/`newgidmap`, which NixOS only installs in `/run/wrappers/bin`. Login shells have that on PATH; systemd services do not, so podman worked over SSH as reudy but not from `panel-api`. This adds `/run/wrappers` to the unit's `path`. **Not built locally** (no Nix on the dev box). After merging, on the server: ```sh nix flake update panel && sudo nixos-rebuild switch --flake .#vps systemctl show -p MainPID panel-api # then check /proc/<pid>/environ PATH contains /run/wrappers/bin ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018s1T5e2bQY6WrX4JeEyEPM
agent added 1 commit 2026-10-18 18:21:25 +02:00
Deploys failed with 'command required for rootless mode with multiple
IDs: exec: "newuidmap": executable file not found in $PATH'. Rootless
podman needs the setuid newuidmap/newgidmap, which NixOS only installs
in /run/wrappers/bin. Login shells have that on PATH, systemd services
do not, so podman worked over SSH but not from panel-api.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018s1T5e2bQY6WrX4JeEyEPM
agent force-pushed agent/fix-rootless-wrappers-path from 7d8e77feb4 to 1b8a0710c5 2026-10-18 18:23:25 +02:00 Compare
agent force-pushed agent/fix-rootless-wrappers-path from 1b8a0710c5 to 30dd303189 2026-10-18 18:23:36 +02:00 Compare
reudy merged commit a95c06f009 into main 2026-10-18 18:28:30 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/panel#4
No description provided.