Skip to content

Web pod crashes on startup — session_cookie_key error with default chart config #5

Description

@VPLEV23

Problem

The web pod crashes immediately on every fresh deployment:

Error while loading /home/netdisco/perl5/bin/netdisco-web-fg: The setting session_cookie_key must be defined at /home/netdisco/perl5/lib/perl5/Dancer/Session/Cookie.pm line
38.
Compilation failed in require at /home/netdisco/perl5/bin/netdisco-web-fg line 59.
BEGIN failed--compilation aborted at /home/netdisco/perl5/bin/netdisco-web-fg line 59.

Root cause

After some debugging I found the chart never sets DANCER_APPDIR or DANCER_ENVIRONMENT — confirmed with grep -r "DANCER" charts/netdisco/ which returns zero results.

Without these, the web process cannot find session_cookie_key from the mounted ConfigMap and crashes before starting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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