2 months ago
I made an account earlier then I made a railway account and have a server now. And when I open n8n from it, it works just fine, but when I try to log into the account as the account that owns the railway server, when logging into n8n it doesn't work. And when I go incognito mode and try logging into the account that is working, it also doesn't log into n8n. Can someone help?
Also it says its not related to Railway project though this is.
13 Replies
2 months ago
Hey, man
Try checking the environment variables in your Railway project for N8N_BASIC_AUTH_USER and N8N_BASIC_AUTH_PASSWORD. Those may be the credentials n8n is expecting but for some reason you’re not providing. Also, ensure cookies/sessions aren’t blocked or misconfigured across browsers.
I’d also check if it works thru a proxy, private domain and custom domain.
testuser123
Hey, manTry checking the environment variables in your Railway project for N8N_BASIC_AUTH_USER and N8N_BASIC_AUTH_PASSWORD. Those may be the credentials n8n is expecting but for some reason you’re not providing. Also, ensure cookies/sessions aren’t blocked or misconfigured across browsers.I’d also check if it works thru a proxy, private domain and custom domain.
2 months ago
I'm a little confused because I'm new to this. How do I get to the variables?
testuser123
Hey, manTry checking the environment variables in your Railway project for N8N_BASIC_AUTH_USER and N8N_BASIC_AUTH_PASSWORD. Those may be the credentials n8n is expecting but for some reason you’re not providing. Also, ensure cookies/sessions aren’t blocked or misconfigured across browsers.I’d also check if it works thru a proxy, private domain and custom domain.
2 months ago
N8N discontinued basic auth a while ago.
brody
N8N discontinued basic auth a while ago.
2 months ago
Then how do I log in. Becuase its not working on n8n. As in I can't log into n8n.
2 months ago
I will have to let the community help you there, Railway employees cannot provide support for 3rd party software, I was just correcting testuser.
justflying529
I'm a little confused because I'm new to this. How do I get to the variables?
2 months ago
Click on the services in your project (the widgets) and you'll see the "Variables" tab next to "Deployments".
Have you tried logging from a new browser or incognito mode?
testuser123
Click on the services in your project (the widgets) and you'll see the "Variables" tab next to "Deployments".Have you tried logging from a new browser or incognito mode?
2 months ago
Ya, when I tried on incognito it wouldn't let me log in on either account
testuser123
Click on the services in your project (the widgets) and you'll see the "Variables" tab next to "Deployments".Have you tried logging from a new browser or incognito mode?
2 months ago
I found the variables. Which ones do I use to log into n8n with?
justflying529
I found the variables. Which ones do I use to log into n8n with?
2 months ago
You can try setting up manually the Basic Auth variables if your version is new and therefore doesn't have it.
Add the variable N8N_BASIC_AUTH_ACTIVE=true
and then add the user and password you want for N8N_BASIC_AUTH_USER
and N8N_BASIC_AUTH_PASSWORD
2 months ago
When you self-host you are the admin so it is strange that it does not let you recover
2 months ago
If the current data is not important you can start fresh with this template https://railway.com/deploy/n8n-with-workers
2 months ago
Idea but first please backup your data
Upon creating a fresh n8n there are no users and it takes you to the sign up page
What if you clear out the user table in your exiting one, maybe it triggers the same flow and you are able to sign up
Wonder if there is a flag in the database that needs to be flipped to trigger the sign up flow