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

Closed
opened 2025-11-13 12:05:34 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @laugmanuel on GitHub (Aug 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 GitHub (Aug 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.
Author
Owner

@oschwartz10612 commented on GitHub (Aug 24, 2025):

Ahh okay looking into this right now! I think I know the issue.

Thanks for posting.

@oschwartz10612 commented on GitHub (Aug 24, 2025): Ahh okay looking into this right now! I think I know the issue. Thanks for posting.
Author
Owner

@oschwartz10612 commented on GitHub (Aug 24, 2025):

Hey could you try pulling the latest container same tags to see if it is
fixed?

@oschwartz10612 commented on GitHub (Aug 24, 2025): Hey could you try pulling the latest container same tags to see if it is fixed?
Author
Owner

@laugmanuel commented on GitHub (Aug 24, 2025):

Thank's for the fast response! The new build (cc8f040f29f1) does fix the issue for me.

@laugmanuel commented on GitHub (Aug 24, 2025): Thank's for the fast response! The new build ([cc8f040f29f1](https://hub.docker.com/layers/fosrl/pangolin/1.9.0/images/sha256-cc8f040f29f1375759144be05542e38417885b8c78404949d062d3386779b629)) does fix the issue for me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#605