You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just changed my home server and copied all my .container files. Compiled the latest podman with dependencies and Imported all the volumes.
The thing is, one day my containers didn't start when I rebooted the computer. I tested podman machine reset and redid everything. I got emby, lyrion and gluetun + *arr servers up and running without any problem. But homeassistant and syncthing is getting an error when I start them with systemd. If use the same config and start them with podman run they start without problem.
journalctl says Permission denied at some overlay. But when I check, the named overlay doesn't exist in .local/share/containers/storage/overlays.
I realized that the problem is UserNS-keep-id. If I remove that the container starts as expected.
jgottlander
changed the title
Quadlet tries to open unexisting overlays when using --userns=keep-id
Quadlet tries to open unexisting overlays when using UserNS=keep-id
Feb 24, 2025
Issue Description
I just changed my home server and copied all my .container files. Compiled the latest podman with dependencies and Imported all the volumes.
The thing is, one day my containers didn't start when I rebooted the computer. I tested podman machine reset and redid everything. I got emby, lyrion and gluetun + *arr servers up and running without any problem. But homeassistant and syncthing is getting an error when I start them with systemd. If use the same config and start them with
podman run
they start without problem.journalctl says Permission denied at some overlay. But when I check, the named overlay doesn't exist in
.local/share/containers/storage/overlays
.I realized that the problem is
UserNS-keep-id
. If I remove that the container starts as expected.Steps to reproduce the issue
Steps to reproduce the issue
[Unit] Description=File synchronization tool Wants=network-online.target After=network-online.target local-fs.target [Container] Image=syncthing/syncthing:latest UserNS=keep-id Volume=syncthing_data:/var/syncthing Volume=/mnt/externa/Data:/data:rw Network=host [Service] Restart=on-failure TimeoutStartSec=900 [Install] WantedBy=default.target
systemctl --user start syncthing
.Describe the results you received
The container fails to start.
When I check the logs I get this:
2267 Feb 22 21:48:24 omv systemd[765]: Stopped syncthing.service - File synchronization tool. 2268 Feb 22 21:48:24 omv systemd[765]: Starting syncthing.service - File synchronization tool... 2269 Feb 22 21:48:24 omv podman[3558]: 2025-02-22 21:48:24.462066345 +0100 CET m=+0.034701321 container create a8048e947a392098caba9f6c0377c3018b69d12f8376b5b7bb70cbfb03091000 (image=docker.io/syncthing/syncthing:latest, name=systemd-syncthing, org.opencontainers.image.title=Syncthing, org.opencontainers.image.licenses=MPL-2.0, org.opencontainers.image.source=https://github.com/syncthing/syncthing, PODMAN_SYSTEMD_UNIT=syncthing.service, org.opencontainers.image.authors=The Syncthing Project, org.opencontainers.image.documentation=https://docs.syncthing.net, org.opencontainers.image.vendor=The Syncthing Project, org.opencontainers.image.version=1.29.2, org.opencontainers.image.revision=516f3e29e8cc7091ea6271715308caea0fcc0778, org.opencontainers.image.url=https://syncthing.net) 2270 Feb 22 21:48:24 omv conmon[3570]: conmon a8048e947a392098caba <nwarn>: runtime stderr: open /home/XXX/.local/share/containers/storage/overlay/3f28981bb80678745b295785e62a3808eba3af724ec1fc9695d74b583cf0b722/merged: Permission denied 2271 Feb 22 21:48:24 omv conmon[3570]: conmon a8048e947a392098caba <error>: Failed to create container: exit status 1 2272 Feb 22 21:48:24 omv podman[3558]: 2025-02-22 21:48:24.540856557 +0100 CET m=+0.113491536 container remove a8048e947a392098caba9f6c0377c3018b69d12f8376b5b7bb70cbfb03091000 (image=docker.io/syncthing/syncthin:latest, name=systemd-syncthing, org.opencontainers.image.authors=The Syncthing Project, org.opencontainers.image.url=https://syncthing.net, org.opencontainers.image.documentation=https://docs.syncthing.net, org.opencontainers.image.source=https://github.com/syncthing/syncthing, org.opencontainers.image.version=1.29.2, org.opencontainers.image.title=Syncthing, PODMAN_SYSTEMD_UNIT=syncthing.service, org.opencontainers.image.licenses=MPL-2.0, org.opencontainers.image.revision=516f3e29e8cc7091ea6271715308caea0fcc0778, org.opencontainers.image.vendor=The Syncthing Project) 2273 Feb 22 21:48:24 omv podman[3558]: 2025-02-22 21:48:24.446801007 +0100 CET m=+0.019435984 image pull 78fbac91e804182ef1b9538d1a796e2a3199b095e6ee196bdabf5e7c654ff3b1 syncthing/syncthing:latest 2274 Feb 22 21:48:24 omv syncthing[3558]: Error: crun: open /home/XXX/.local/share/containers/storage/overlay/3f28981bb80678745b295785e62a3808eba3af724ec1fc9695d74b583cf0b722/merged: Permission denied: OCI permission denied 2275 Feb 22 21:48:24 omv systemd[765]: syncthing.service: Main process exited, code=exited, status=126/n/a 2276 Feb 22 21:48:24 omv systemd[765]: syncthing.service: Killing process 3570 (conmon) with signal SIGKILL. 2277 Feb 22 21:48:24 omv systemd[765]: syncthing.service: Killing process 3574 (podman) with signal SIGKILL. 2278 Feb 22 21:48:24 omv systemd[765]: syncthing.service: Killing process 3577 (podman) with signal SIGKILL. 2279 Feb 22 21:48:24 omv systemd[765]: syncthing.service: Killing process 3579 (n/a) with signal SIGKILL. 2280 Feb 22 21:48:24 omv systemd[765]: syncthing.service: Killing process 3580 (podman) with signal SIGKILL. 2281 Feb 22 21:48:24 omv systemd[765]: syncthing.service: Failed with result 'exit-code'. 2282 Feb 22 21:48:24 omv systemd[765]: Failed to start syncthing.service - File synchronization tool. 2283 Feb 22 21:48:24 omv systemd[765]: syncthing.service: Scheduled restart job, restart counter is at 6.
Describe the results you expected
I expected it to run without problems.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Running on Lenovo ThinkCentre M900
Additional information
It only happens if I add UserNS=keep-id to .container.
The text was updated successfully, but these errors were encountered: