Open Waigie opened 4 days ago
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. I actually just cloned the image, generated it manually with rake generate_secret_token, and then copied the rb file in, so I'm not 100% certain the file removal will work. It should from how I read the code though:
if [ ! -s config/secrets.yml ]; then
file_env 'REDMINE_SECRET_KEY_BASE'
if [ -n "$REDMINE_SECRET_KEY_BASE" ]; then
cat > 'config/secrets.yml' <<-YML
$RAILS_ENV:
secret_key_base: "$REDMINE_SECRET_KEY_BASE"
YML
elif [ ! -f config/initializers/secret_token.rb ]; then
rake generate_secret_token
fi
fi
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.
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
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: