Skip to content

authentik_worker and authentik_server pods not starting up on 2025.6.4 #375

@ns0092

Description

@ns0092

Hello guys,

I am doing a kubernetes deployment of authentik helm chart version 2025.6.4. For some reason authentik_worker and authentik_server fail on startup complaining about a missing heartbeat file. I have included TMPDIR env value on both worker and server section of values.yaml, but that still doesn't seem to resolve the issue.

authentik-worker log:

{"event": "Not running as root, disabling permission fixes", "level": "info", "logger": "bootstrap"}
{"event": "Loaded config", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1754345274.9087486, "file": "/authentik/lib/default.yml"}
{"event": "Loaded environment variables", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1754345274.9095314, "count": 36}
{"event": "Starting authentik bootstrap", "level": "info", "logger": "authentik.lib.config", "timestamp": 1754345275.7494335}
{"event": "PostgreSQL connection successful", "level": "info", "logger": "authentik.lib.config", "timestamp": 1754345275.8273528}

(combined from similar events): Startup probe failed: {"event":"checking health","level":"debug","mode":"worker","timestamp":"2025-08-04T22:33:44Z"}
{"error":"stat /tmp/authentik-worker: no such file or directory","event":"failed to check worker heartbeat file","level":"warning","timestamp":"2025-08-04T22:33:44Z"}

authentik-server log:

{"event":"Loaded config","level":"debug","path":"inbuilt-default","timestamp":"2025-08-04T22:07:54Z"}
{"event":"Loaded config","level":"debug","path":"/authentik/lib/default.yml","timestamp":"2025-08-04T22:07:54Z"}
{"event":"Loaded config from environment","level":"debug","timestamp":"2025-08-04T22:07:54Z"}
{"event":"Starting HTTP server","level":"info","listen":"0.0.0.0:9000","logger":"authentik.router","timestamp":"2025-08-04T22:07:55Z"}
{"event":"Starting Metrics server","level":"info","listen":"0.0.0.0:9300","logger":"authentik.router.metrics","timestamp":"2025-08-04T22:07:55Z"}
{"event": "Loaded config", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1754345275.586675, "file": "/authentik/lib/default.yml"}
{"event": "Loaded environment variables", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1754345275.587603, "count": 39}
{"event":"Starting HTTPS server","level":"info","listen":"0.0.0.0:9443","logger":"authentik.router","timestamp":"2025-08-04T22:07:55Z"}
{"event": "Starting authentik bootstrap", "level": "info", "logger": "authentik.lib.config", "timestamp": 1754345276.0740068}
{"event": "PostgreSQL connection successful", "level": "info", "logger": "authentik.lib.config", "timestamp": 1754345276.1020653}

Readiness probe failed: HTTP probe failed with statuscode: 502

Values.yaml file:

authentik:
  secret_key: <REDACTED>

  postgresql:
    host: "postgres.authentik-db.foo.cloud"
    user: "postgres"
    password: <REDACTED>
    name: "authentik"

  redis:
    host: "cache.authentik-redis.foo.cloud"
    password: <REDACTED>

server:
  env:
    - name: TMPDIR
      value: /tmp

worker:
  env:
    - name: TMPDIR
      value: /tmp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions