I have a just created self-hosted n8n instance, running on n8nio/n8n:1.110.1 docker image.
/setup or /login requests that it makes seem to be successful, returns 200 and I can see that n8n-auth cookie is set in the response headers.
However, following requests are failing with 401.
Specifically, request to /rest/settings returns 200 and valid response, but /rest/module-settings returns 401 and {“status”:“error”,“message”:“Unauthorized”}. Also it resets the cookie, so all subsequent requests also fail with 401
Hi @jabbson , i’m not doing anything special, just trying to log in normally via UI.
Everything I wrote about paths/cookies is just my attempts to debug it.
Basically, what happens is that I’m just trying to set up owner account and then log in.
I enter my credentials in the UI form and then nothing really happens, no error messages appear, it just hangs. In the devtools I see that login was successful and some requests even returned 200, but everything after /rest/module-settings is 401
How did you install n8n in docker? Did you follow any documentation pages to do so?
Have you tried to use another browser, incognito mode, or clear cache? Try to update to the latest version too, no reason to be stuck behind the stable version.
problem found. It was accidentally deployed into multiple containers behind load balancer, so that initial /setup request would create a user in one container, but following requests then return 401 from others. We’re going to use a shared postgres eventually, but this was supposed to be a single-node testing instance with built-in sqlite.