Skip to content

Healthcheck for web container fails! #150

@Netzvamp

Description

@Netzvamp

There is an urgent error that crashes openproject docker compose deployments:

There is no curl anymore in the app container image, so the health checks fail and autoheal is restarting the web container, but they don't come up again.

web:
    ...
    labels:
      - autoheal=true
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}/health_checks/default"]
      interval: 10s
      timeout: 3s
      retries: 3
      start_period: 30s
root@docker1:/docker/openproject# docker inspect openproject-web-1 --format '{{json .State.Health}}'
{"Status":"unhealthy","FailingStreak":79,"Log":[{"Start":"2026-03-11T15:36:43.524098518+01:00","End":"2026-03-11T15:36:43.60891546+01:00","ExitCode":-1,"Output":"OCI runtime exec failed: exec failed: unable to start container process: exec: \"curl\": executable file not found in $PATH"},{"Start":"2026-03-11T15:36:53.610644642+01:00","End":"2026-03-11T15:36:53.721577561+01:00","ExitCode":-1,"Output":"OCI runtime exec failed: exec failed: unable to start container process: exec: \"curl\": executable file not found in $PATH"},{"Start":"2026-03-11T15:37:03.723026179+01:00","End":"2026-03-11T15:37:03.847926613+01:00","ExitCode":-1,"Output":"OCI runtime exec failed: exec failed: unable to start container process: exec: \"curl\": executable file not found in $PATH"},{"Start":"2026-03-11T15:37:13.850434569+01:00","End":"2026-03-11T15:37:14.035559271+01:00","ExitCode":-1,"Output":"OCI runtime exec failed: exec failed: unable to start container process: exec: \"curl\": executable file not found in $PATH"},{"Start":"2026-03-11T15:37:24.036825754+01:00","End":"2026-03-11T15:37:24.19010835+01:00","ExitCode":-1,"Output":"OCI runtime exec failed: exec failed: unable to start container process: exec: \"curl\": executable file not found in $PATH"}]}
root@docker1:/docker/openproject# docker exec -it openproject-web-1 bash
app@openproject:/app$ curl
bash: curl: command not found

I've fixed it by commenting out the "autoheal=true", but we need curl in the container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions