Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dawarich - Missing `secret_key_base` for 'production' environment

Featured Replies

Hi,

after spending way to long to get the DB Connection for dawarich to work, I am now running into an error I can not fix. After starting the dawarich docker the log shows the following:

bottom of the log:

OIDC: Not configured (missing OIDC_CLIENT_ID or OIDC_CLIENT_SECRET)

grafik.png

top of the log:

ArgumentError: Missing secret_key_base for 'production' environment, set this string with bin/rails credentials:edit (ArgumentError)

raise ArgumentError, "Missing secret_key_base for '#{Rails.env}' environment, set this string with bin/rails credentials:edit"

grafik.png

I have tried to google myself out of this but had no luck for 2h so far.

I added an extra variable to the docker config named secret_key_base based on this https://github.com/truenas/apps/pull/4705 but I have absolutely no idea what value I have to fill in. I tried leaving it empty, I tried <%= ENV["SECRET_KEY_BASE"] %> based of this site https://stackoverflow.com/questions/23180650/how-to-solve-error-missing-secret-key-base-for-production-environment-rai but nothing is working.

Can anyone help me with this?

  • Author

I spend an other 2 hours ... and got it working.

To "fix" that bug I had to change Rails Environment (it is under More Settings) to development

grafik.png

.... and got a few other errors after that.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.