-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container (Redmine 6.0.1) not starting when using the REDMINE_SECRET_KEY_BASE environment variable #349
Comments
Yeah, this is a problem with the config/initializers/secret_tokens.rb file not existing. If you backup and delete the config/secrets.yml and set the REDMINE_SECRETS_KEY_BASE environmental variable to contain your secret key it should automatically generate that .rb file.
The new release seems a little buggy. My system got completely hosed when I upgraded. Still can't get a custom theme to be recognized. |
@ctassell Redmine 6.0.x has incompatible changes about Themes. Maybe this is the root of your problems. See: I hope it helps. :) |
Thanks, I reverted back to 5.1 for now, I'll make sure to bookmark that so our web dev can upgrade the theme when we are prepared to migrate. One of our plugins also had issues, it must need to be patched as well. |
@ctassell Thanks for the help, i'll tests it as soon as possible |
A quick fix is to remove the |
Does doing this cause issues with an existing setup? I'm wondering if there is anything in the DB that uses the secret key and is not going to get properly decrypted, or if it's just for cookies and the like? |
This issues cost me more time today then I'm willing to admit ;)
According to the readme
So, as long as you aren't using Docker Swarm or using I also just removed the env variable from the service and everything's running just fine. |
I did it but I got the same error:
|
Can you check if the file Unless you put some secret in there yourself, remove the file and restart the container. that might fix it. @ctassell pointed this out in his comment, the code in the entrypoint is kinda weird:
You cant really fault the authors of the Dockerfile. The way you have to configure redmine is, uhm, bad? Its inconsistent and all over the place, some things can be done by Env vars, some in config yml files, others in ruby files, it changes with every release, redmines documentation doesnt alwayss refelct that, etc... |
It might be simpler to user the compose way to add secrets instead: |
Thanks for your answer !
I'm using a docker-compose file (that is working on redmine v5) with mysql and had tried 2 main configs now: 1. With my own Dockefile (pushing configuration and database yml files) tested these options: secrets.yml content:
2. Directly as image:
despite:
|
The Redmine container is not starting when setting the REDMINE_SECRET_KEY_BASE environment variable as shown in the docker compose example.
Error message and stacktrace:
The text was updated successfully, but these errors were encountered: