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.
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_APPDIRorDANCER_ENVIRONMENT— confirmed withgrep -r "DANCER" charts/netdisco/which returns zero results.Without these, the web process cannot find
session_cookie_keyfrom the mounted ConfigMap and crashes before starting.