Skip to content

/bin/hp_healthcheck returns non-OK status 500 in v0.6.2 - container goes unhealthy #535

@dillonradio

Description

@dillonradio

Description

Description

The built-in healthcheck binary /bin/hp_healthcheck in the v0.6.2 image
returns a 500 status code, causing the container to be marked as unhealthy
by Docker. This prevents Traefik (and likely other reverse proxies) from
routing traffic to the container as they skip unhealthy containers by default.

Steps to Reproduce

  1. Run headplane v0.6.2 using the standard Docker image
  2. Wait for the healthcheck to run (30s interval, 5s start period)
  3. Container is marked as unhealthy despite the app running correctly on port 3000

Investigation

  • The app starts and runs correctly on port 3000
  • /admin/ returns HTTP 302 (working correctly)
  • The healthcheck binary exits with code 500
  • The image contains no shell, curl, or wget making it impossible to
    override with CMD-SHELL
  • Overriding with healthcheck: disable: true in docker-compose resolves the issue

Expected Behaviour

/bin/hp_healthcheck should return 0 when the app is running correctly.

Environment

  • Headplane version: 0.6.2
  • Docker version: 29.4.0, build 9d7ad9f
  • Host OS: Linux Mint 22.1

Headplane Version

v0.6.2

Headscale Version

v0.28.0

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingNeeds TriageIssues yet to be triaged

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions