16 days ago
Hello Railway Support Team,
I’m trying to add the environment variable N8N_BASIC_AUTH_ACTIVE along with the username and password variables, then redeploy my project, but it’s not working. I’ve already tried deleting the project and creating it again, but the issue persists.
Could you please assist me with this? I would really appreciate your help!
Thank you very much in advance.
Best regards,
13 Replies
16 days ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 16 days ago
16 days ago
Add the variable N8N_BASIC_AUTH_ACTIVE=true
and then add the user and password you want for N8N_BASIC_AUTH_USER
andN8N_BASIC_AUTH_PASSWORD
Have you tried doing it in another browser or in incognito mode? Also try a simple password to see if it works.
Are you using a template? With a template? Make sure you add the env variables to both "worker" and "primary" services.
testuser123
Add the variable N8N_BASIC_AUTH_ACTIVE=trueand then add the user and password you want for N8N_BASIC_AUTH_USER andN8N_BASIC_AUTH_PASSWORDHave you tried doing it in another browser or in incognito mode? Also try a simple password to see if it works.Are you using a template? With a template? Make sure you add the env variables to both "worker" and "primary" services.
16 days ago
N8N does not support basic auth as a login method.
brody
N8N does not support basic auth as a login method.
16 days ago
Yeah but he might be using an older version and might need it for some reason. If not, it's just easier to deploy from the n8n template on Railway https://railway.com/deploy/n8n-with-workers
16 days ago
Hi everyone, I'm using the basic template "n8n + w/Postgres" because my use case is simple, you know? I was told I don't need the "workers" — is that correct? So, I'm not sure about having a newer or older version... I just know that I filled in the environment variables correctly ("active/user/password") and did a REDEPLOY, but it still didn’t work! Can you help me, please? Thank you!
testuser123
Add the variable N8N_BASIC_AUTH_ACTIVE=trueand then add the user and password you want for N8N_BASIC_AUTH_USER andN8N_BASIC_AUTH_PASSWORDHave you tried doing it in another browser or in incognito mode? Also try a simple password to see if it works.Are you using a template? With a template? Make sure you add the env variables to both "worker" and "primary" services.
16 days ago
I'm using the basic template "n8n + w/Postgres" because my use case is simple, you know? I was told I don't need the "workers" — is that correct? So, I'm not sure about having a newer or older version... I just know that I filled in the environment variables correctly ("active/user/password") and did a REDEPLOY, but it still didn’t work! Can you help me, please? Thank you!
matholiverdev
Hi everyone, I'm using the basic template "n8n + w/Postgres" because my use case is simple, you know? I was told I don't need the "workers" — is that correct? So, I'm not sure about having a newer or older version... I just know that I filled in the environment variables correctly ("active/user/password") and did a REDEPLOY, but it still didn’t work! Can you help me, please? Thank you!
16 days ago
Oh, then just stick to the most common version. Try here and see if it helps your case: https://railway.com/deploy/n8n-with-workers
testuser123
Yeah but he might be using an older version and might need it for some reason. If not, it's just easier to deploy from the n8n template on Railway https://railway.com/deploy/n8n-with-workers
16 days ago
I'm using the basic template "n8n + w/Postgres" because my use case is simple, you know? I was told I don't need the "workers" — is that correct? So, I'm not sure about having a newer or older version... I just know that I filled in the environment variables correctly ("active/user/password") and did a REDEPLOY, but it still didn’t work! Can you help me, please? Thank you!
testuser123
Yeah but he might be using an older version and might need it for some reason. If not, it's just easier to deploy from the n8n template on Railway https://railway.com/deploy/n8n-with-workers
16 days ago
They are using the latest version of N8N, but they are not using Jack's template unfortunately.
testuser123
Oh, then just stick to the most common version. Try here and see if it helps your case: https://railway.com/deploy/n8n-with-workers
16 days ago
So the issue might be because I'm using the "n8n w/Postgres" template instead of the "n8n w/Workers" one?
matholiverdev
So the issue might be because I'm using the "n8n w/Postgres" template instead of the "n8n w/Workers" one?
16 days ago
Not really, but I'm afraid the cause doesn't matter much now. Try making it work first with the most common template.
brody
They are using the latest version of N8N, but they are not using Jack's template unfortunately.
16 days ago
I'll try using Jack's "w/Workers" template to see if it works. But after everything is working, can I delete the "workers" and "redis" containers, or not?
matholiverdev
I'll try using Jack's "w/Workers" template to see if it works. But after everything is working, can I delete the "workers" and "redis" containers, or not?
14 days ago
Is it working now?
I highly recommend you keep the template as it is. It's easy to get a headache later after misconfigs.
14 days ago
So, unfortunately I couldn’t get it to work even with Jack’s “N8N w/ Workers” template.
I’m going to stick with just a strong password on N8N itself…
So I switched back to the “N8N w/ Postgres” template, which is more than enough for my use, without the need for extra costs related to the “workers” volume — even though it wasn’t working anyway.
Everything is working perfectly now, but unfortunately without the “basic auth active/user/password” feature.