Hello Guix,

I got a head-scratcher trying to setup some oci-containers with rootless
podman.  They where working fine two weeks ago but now when I try to
start them Shepherd fails to detect they have started and kills them
when it times out.

E.g. I got caddy defined as follows:

```
(service oci-service-type
         (oci-configuration
          (runtime 'podman)
          (networks
           (list
            (oci-network-configuration
             (name "container-network"))))
          (containers
           (oci-container-configuration
             (provision "caddy")
             (requirement '(sops-secret-caddy/env))
             ;; TODO: build the image and package it as a guix package instead
             (image "serfriz/caddy-duckdns:2.11.7")
             (log-file "/var/log/caddy.log")
             (network "container-network")
             (ports '(("443" . "443/udp")
                      ("443" . "443")
                      ("80" . "80")))
             (auto-start? #f)
             (respawn? #t)
             (volumes
              '(("/srv/containers/configs/caddy" . "/etc/caddy")
                ("/srv/containers/data/caddy/site" . "/srv")
                ("/srv/containers/data/caddy/config" . "/config")
                ("/srv/containers/data/caddy/data" . "/data")))
             (extra-arguments
              (list "--cap-add=NET_ADMIN"
                    (string-append "--env-file="
                                   (sops-secret->secret-file
                                    %fafner-sops-secret-caddy/env))))))
          ;; more containers
          ))
```

Using sops-guix [0] to setup some secrets.

[0] https://github.com/fishinthecalculator/sops-guix

When I try to run it with `sudo herd start caddy` I get:
```
Service user-homes has been started.
Service rootless-podman-shared-root-fs has been started.
Service sops-secret-caddy/env has been started.
Service cgroups2-limits has been started.
Service cgroups2-fs-owner has been started.
Service podman-networks has been started.
PID file '/run/caddy/caddy.pid' did not show up; terminating process 3778.
Service caddy could not be started.
herd: error: failed to start service caddy
```

Looking at the log I don't see anything suspicious:

```
…
2026-11-17 18:25:45 
{"level":"info","ts":1794965145.4891586,"logger":"tls","msg":"updated and 
stored ACME renewal information","identifiers":*REDACTED*}
2026-11-17 18:26:14 {"level":"info","ts":1794965174.9863362,"msg":"shutting 
down apps, then terminating","signal":"SIGTERM"}
2026-11-17 18:26:14 {"level":"warn","ts":1794965174.9863992,"msg":"exiting; 
byeee!! 👋","signal":"SIGTERM"}
2026-11-17 18:26:14 
{"level":"info","ts":1794965174.9864342,"logger":"http","msg":"servers shutting 
down with eternal grace period"}
2026-11-17 18:26:14 
{"level":"info","ts":1794965174.9866278,"logger":"tls.cache.maintenance","msg":"stopped
 background certificate maintenance","cache":"0x85e53faa380"}
2026-11-17 18:26:14 
{"level":"info","ts":1794965174.9866943,"logger":"admin","msg":"stopped 
previous server","address":"localhost:2019"}
2026-11-17 18:26:14 {"level":"info","ts":1794965174.9867067,"msg":"shutdown 
complete","signal":"SIGTERM","exit_code":0}
```

I tried to roll-back to a know working state but I'm seeing the same
thing.  So not sure what's going on.

Has anyone seen anything similar?

Thanks

-- 
s/Fred[re]+i[ck]+/Fredrik/g

Reply via email to