Open switchp0rt opened 1 month ago
I also have this issue
Same
@switchp0rt @samuelnygaard
So... I found the issue. It's not documented anywhere but we have to set the ENCRYPTION_SALT_KEYS
env variable to the compose services, it seems like, anywhere where the SECRET_KEY
is provided as well. Most likely just the plugin-server .
The value 00beef0000beef0000beef0000beef00
should be fine. 😊
TLDR: set this env var: ENCRYPTION_SALT_KEYS=00beef0000beef0000beef0000beef00
And to someone from the PostHog team, probably @benjackwhite :
The issue originates here: https://github.com/PostHog/posthog/pull/24966
And although it's stated here, that default value should be provided for hobby deployments:
The same does not seem to be the case for the plugin-server: https://github.com/PostHog/posthog/blob/914ef395c85f31c662188268a39df8d883cf7166/plugin-server/src/config/config.ts#L178-L180
fix to set value on install or upgrade is here https://github.com/PostHog/posthog/pull/25454
Hey I believe this is fixed by #25518 (certainly fixed my self hosted instance)
If you run the upgrade script we should now generate the key you need and things will start
Bug Description
Plugin Server Fails to Start on Fresh Self-Hosted Docker Install (Ubuntu 24.04)
Environment
Description
After performing a fresh installation of PostHog using Docker on Ubuntu 24.04, the plugin server is failing to start. The error logs indicate that the encryption keys are not set, causing a startup failure.
Steps to Reproduce
Error Logs
Expected Behavior
The plugin server should start successfully without any errors.
Actual Behavior
The plugin server fails to start, reporting that encryption keys are not set.
Additional Context
Questions
Any assistance in resolving this issue would be greatly appreciated. Thank you!
Debug info
No response