containers / podman-compose

a script to run docker-compose.yml using podman
GNU General Public License v2.0
5.08k stars 484 forks source link

Podman-compose containers exiting and two of them are reporting incorrect stop times. #1041

Closed DIGist closed 1 month ago

DIGist commented 1 month ago

I've created a docker-compose file with swag and some other applications, it tends to run fine for a number of hours and then will mysteriously exit. 2 containers exit(143) and one gives exit (2) the rest give exit(0). 2-3 of the containers will exit with a finish time of unbelieveably old. I'm trying to troubleshoot what is killing the containers and why the time is old but I'm not getting anywhere. I figured I'd at least report the time issue and hope someone has more information that will help me figure out how to determine why they are dying.

      "Id": "f72db539f4e49ae6e00c61371b09e5434e8ba4fc8f9ce41c20a73ca60d94bc7f",
      "Created": "2024-09-16T23:59:39.529412781-05:00",
      "Path": "/init",
      "Args": [
           "/init"
      ],
      "State": {
           "OciVersion": "1.2.0",
           "Status": "exited",
           "Running": false,
           "Paused": false,
           "Restarting": false,
           "OOMKilled": false,
           "Dead": false,
           "Pid": 0,
           "ExitCode": 0,
           "Error": "",
           "StartedAt": "2024-09-16T23:59:40.669337526-05:00",
           "FinishedAt": "0001-01-01T00:00:00Z",
           "CheckpointedAt": "0001-01-01T00:00:00Z",
           "RestoredAt": "0001-01-01T00:00:00Z"

To Reproduce Steps to reproduce the behavior:

  1. what is the content of the current working directory (ex. docker-compose.yml, .env, Dockerfile, ...etc.)
  2. what is the sequence of commands you typed

please use minimal reproducible example for example give me a small busybox-based compose yaml

Expected behavior A clear and concise description of what you expected to happen.

Actual behavior What is the behavior you actually got and that should not happen.

Output

$ podman-compose version
podman-compose version 1.2.0
podman version 5.1.2

$ podman version
Client:       Podman Engine
Version:      5.1.2
API Version:  5.1.2
Go Version:   go1.22.5
Built:        Tue Jul  9 19:00:00 2024
OS/Arch:      linux/amd64

Environment:

DIGist commented 1 month ago

Updated podman and podman compose I believe. Containers are still dying for unknown reasons, but the time they are stopped is now reported properly:

f142fb77cfad  ghcr.io/openappsec/swag-attachment:latest                     5 hours ago  Exited (137) 3 hours ago  0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 80/tcp, 443/tcp  swag-attachment
3c093cae58b8  ghcr.io/openappsec/agent:latest               /cp-nano-agent  5 hours ago  Exited (137) 3 hours ago                                                             appsec-agent
af764cf5a779  ghcr.io/home-assistant/home-assistant:stable                  5 hours ago  Exited (0) 3 hours ago    0.0.0.0:8123->8123/tcp                                     homeassistant
65e1d9e79c9b  docker.io/library/postgres:12-alpine          postgres        5 hours ago  Exited (0) 3 hours ago    5432/tcp                                                   authentik-postgres
11f1e4cefb1e  docker.io/library/redis:alpine                redis-server    5 hours ago  Exited (0) 3 hours ago    6379/tcp                                                   authentik-redis
d7652b1c1619  ghcr.io/goauthentik/server:2022.7.2           server          5 hours ago  Exited (0) 3 hours ago    0.0.0.0:9000->9000/tcp, 0.0.0.0:9443->9443/tcp             authentik-server
02e1c062218a  ghcr.io/goauthentik/server:2022.7.2           worker          5 hours ago  Exited (0) 3 hours ago                                                               authentik-worker
e20cb4fec24c  docker.io/maxmindinc/geoipupdate:latest                       5 hours ago  Exited (143) 3 hours ago                                                             authentik-geoip
46df81f9cff1  docker.io/n8nio/n8n:latest                                    5 hours ago  Exited (143) 3 hours ago  0.0.0.0:5678->5678/tcp, 5678/tcp                           n8n
6fb88431037d  lscr.io/linuxserver/apprise-api:latest                        5 hours ago  Exited (137) 3 hours ago  0.0.0.0:8000->8000/tcp, 8000/tcp                           apprise-api
81055e6a7784  docker.io/crowdsecurity/crowdsec:latest                       5 hours ago  Exited (2) 3 hours ago                                                               nexus1dockerstack_crowdsec_1
DIGist commented 1 month ago

After updating podman and podman-compose, rebooting and running 'podman system prune', my containers have all be stable. Thanks!