Pangolin 1.9.0 causes "Validation error: Server secret must be defined" #1027

Closed
opened 2026-04-05 18:07:37 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @laugmanuel on 8/24/2025

Hi,

I've upgraded to Pangolin 1.9.0 just now, but I'm receiving the following error during startup:

pangolin  | > @fosrl/pangolin@0.0.0 start
pangolin  | > DB_TYPE=sqlite NODE_OPTIONS=--enable-source-maps NODE_ENV=development ENVIRONMENT=prod sh -c 'node dist/migrations.mjs && node dist/server.mjs'
pangolin  |
pangolin  | Starting migrations from version 1.9.0
pangolin  | Migrations to run:
pangolin  | All migrations completed successfully
pangolin  | /app/server/lib/config.ts:30
pangolin  |             throw new Error(`Invalid configuration file: ${errors}`);
pangolin  |                   ^
pangolin  |
pangolin  |
pangolin  | Error: Invalid configuration file: Validation error: Server secret must be defined
pangolin  |     at new eu (/app/server/lib/config.ts:30:19)
pangolin  |     at <anonymous> (/app/server/lib/config.ts:221:23)
pangolin  |     at async <anonymous> (/app/server/logger.ts:2:1)
pangolin  |     at async <anonymous> (/app/server/setup/ensureActions.ts:5:1)
pangolin  |
pangolin  | Node.js v22.18.0

I'm using SERVER_SECRET via environment variable to configure the secret. I verified it's existence and value using a custom entrypoint. I didn't change the config from 1.8.0 which was working just fine.

*Originally created by @laugmanuel on 8/24/2025* Hi, I've upgraded to Pangolin 1.9.0 just now, but I'm receiving the following error during startup: ```txt pangolin | > @fosrl/pangolin@0.0.0 start pangolin | > DB_TYPE=sqlite NODE_OPTIONS=--enable-source-maps NODE_ENV=development ENVIRONMENT=prod sh -c 'node dist/migrations.mjs && node dist/server.mjs' pangolin | pangolin | Starting migrations from version 1.9.0 pangolin | Migrations to run: pangolin | All migrations completed successfully pangolin | /app/server/lib/config.ts:30 pangolin | throw new Error(`Invalid configuration file: ${errors}`); pangolin | ^ pangolin | pangolin | pangolin | Error: Invalid configuration file: Validation error: Server secret must be defined pangolin | at new eu (/app/server/lib/config.ts:30:19) pangolin | at <anonymous> (/app/server/lib/config.ts:221:23) pangolin | at async <anonymous> (/app/server/logger.ts:2:1) pangolin | at async <anonymous> (/app/server/setup/ensureActions.ts:5:1) pangolin | pangolin | Node.js v22.18.0 ``` I'm using `SERVER_SECRET` via environment variable to configure the secret. I verified it's existence and value using a custom entrypoint. I didn't change the config from 1.8.0 which was working just fine.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1027