Cannot login to Azure Hosted N8N

Hi all, I have hosted an n8n instance on Azure (custom docker image using docker.n8n.io/n8nio/n8n:latest) , it was working perfectly fine since last Friday. Today I cannot access to the instance even though I put the right credentials, I always get the message:

Wrong username or password. Do you have caps lock on?

I noticed in the signin page shows this errors even before trying to login:

GET https://<web-app-name>.azurewebsites.net/rest/events/session-started 401 (Unauthorized)

index-DuT-FIl1.js:188943 Uncaught (in promise) ResponseError: Unauthorized
    at request (index-DuT-FIl1.js:188943:13)
    at async makeRestApiRequest (index-DuT-FIl1.js:188963:20)
    at async sessionStarted (index-DuT-FIl1.js:189204:10)

GET https://<web-app-name>.azurewebsites.net/rest/login 401 (Unauthorized)

Does anybody knows what could it be?

I’ve been searching the solution but I haven’t found it and I need to access to the workflows I have there cause they are very important to me.

Thanks in advance.

Hey, let’s unblock you asap

Inside the container, run:

docker exec -it <container_name> n8n user-management:reset --email [email protected]

This will send a reset link (if SMTP is configured).
If SMTP isn’t set up, use:

docker exec -it <container_name> n8n user-management:change-password --email [email protected] --password newpassword

That will directly overwrite the stored password.

Let me know if this helps

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.