[GH-ISSUE #640] 1.3.0 - server:secret config option not populated on fresh install #10306

Closed
opened 2026-05-06 13:31:59 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @rfrank on GitHub (May 2, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/640

On fresh install, the server's secret config option does not get populated. I did several fresh installs to confirm the bug persisted. I ended up generating a 52-char alphanumeric string to get things up and going but wanted to submit an issue in case it's not just me and a fix needs to be issued.

Originally created by @rfrank on GitHub (May 2, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/640 On fresh install, the server's secret config option does not get populated. I did several fresh installs to confirm the bug persisted. I ended up generating a 52-char alphanumeric string to get things up and going but wanted to submit an issue in case it's not just me and a fix needs to be issued.
Author
Owner

@oschwartz10612 commented on GitHub (May 2, 2025):

I think I fixed this. Could re download the installer and confirm?

<!-- gh-comment-id:2848193378 --> @oschwartz10612 commented on GitHub (May 2, 2025): I think I fixed this. Could re download the installer and confirm?
Author
Owner

@xd003 commented on GitHub (May 3, 2025):

I can confirm this issue, after i upgraded my pangolin docker to 1.3.0, the config.yml file didn't had the secret config option added

<!-- gh-comment-id:2848462216 --> @xd003 commented on GitHub (May 3, 2025): I can confirm this issue, after i upgraded my pangolin docker to 1.3.0, the config.yml file didn't had the secret config option added
Author
Owner

@Cratermn commented on GitHub (May 4, 2025):

This is still occurring on 1.3.1

<!-- gh-comment-id:2848865746 --> @Cratermn commented on GitHub (May 4, 2025): This is still occurring on 1.3.1
Author
Owner

@GRAUPS commented on GitHub (May 4, 2025):

I'm also encountering this issue on 1.3.1. In my case the secret option is there, but it is not populated (null). This causes Pangolin to fail to start.

Here is the error in the log

pangolin | Starting migrations from version 1.3.1
pangolin | Migrations to run:
pangolin | All migrations completed successfully
pangolin | /app/server/lib/config.ts:224
pangolin | throw new Error(Invalid configuration file: ${errors});
pangolin | ^
pangolin |
pangolin |
pangolin | Error: Invalid configuration file: Validation error: Expected string, received null at "server.secret"
pangolin | at Pa.loadConfig (/app/server/lib/config.ts:224:19)
pangolin | at new Pa (/app/server/lib/config.ts:182:14)
pangolin | at (/app/server/lib/config.ts:380:23)
pangolin |
pangolin | Node.js v20.19.1
pangolin exited with code 1

<!-- gh-comment-id:2848890206 --> @GRAUPS commented on GitHub (May 4, 2025): I'm also encountering this issue on 1.3.1. In my case the secret option is there, but it is not populated (null). This causes Pangolin to fail to start. Here is the error in the log pangolin | Starting migrations from version 1.3.1 pangolin | Migrations to run: pangolin | All migrations completed successfully pangolin | /app/server/lib/config.ts:224 pangolin | throw new Error(`Invalid configuration file: ${errors}`); pangolin | ^ pangolin | pangolin | pangolin | Error: Invalid configuration file: Validation error: Expected string, received null at "server.secret" pangolin | at Pa.loadConfig (/app/server/lib/config.ts:224:19) pangolin | at new Pa (/app/server/lib/config.ts:182:14) pangolin | at <anonymous> (/app/server/lib/config.ts:380:23) pangolin | pangolin | Node.js v20.19.1 pangolin exited with code 1
Author
Owner

@miloschwartz commented on GitHub (May 4, 2025):

Will look into this

<!-- gh-comment-id:2848890520 --> @miloschwartz commented on GitHub (May 4, 2025): Will look into this
Author
Owner

@oschwartz10612 commented on GitHub (May 4, 2025):

Fix was not properly merged into dev. Just pushed the commit and rebuilt. Please try again now.

<!-- gh-comment-id:2848908872 --> @oschwartz10612 commented on GitHub (May 4, 2025): Fix was not properly merged into dev. Just pushed the commit and rebuilt. Please try again now.
Author
Owner

@GRAUPS commented on GitHub (May 7, 2025):

I can confirm this is fixed now, thanks!

<!-- gh-comment-id:2857059625 --> @GRAUPS commented on GitHub (May 7, 2025): I can confirm this is fixed now, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#10306