Build Failing
djh1972
HOBBYOP

2 months ago

Builds failing since 27 July with "failed to solve: secret NODE_ENV not found". Tried both Railpack and Nixpacks, same error. Deleted and re-added variables, no change. App still online on an older build. Node app deployed from GitHub. Project melodious-connection.

Solved

2 Replies

Railway
BOT

2 months ago

Your environment variables are misconfigured: the variable names contain the values inside them (e.g. the name is literally NODE_ENV - production instead of a variable named NODE_ENV set to value production). The same applies to your session secret variable. The builder looks for a secret called NODE_ENV and finds nothing with that exact name. Delete these variables and re-add them with just the clean name on the left (e.g. NODE_ENV) and the value on the right (e.g. production), then redeploy.


Status changed to Awaiting User Response Railway • 2 months ago


Railway

Your environment variables are misconfigured: the variable names contain the values inside them (e.g. the name is literally `NODE_ENV - production` instead of a variable named `NODE_ENV` set to value `production`). The same applies to your session secret variable. The builder looks for a secret called `NODE_ENV` and finds nothing with that exact name. Delete these variables and re-add them with just the clean name on the left (e.g. `NODE_ENV`) and the value on the right (e.g. `production`), then redeploy.

djh1972
HOBBYOP

2 months ago

Thank you so much, that resolved it for me


Status changed to Awaiting Railway Response Railway • 2 months ago


Status changed to Solved Railway • 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...