A friend of mine is facing an issue where the password for his self-hosted n8n dashboard seems to change automatically. Has anyone encountered this before or knows what might be causing it?
hello @yelinaung
That’s only possible if he uses a self-hosted instance without persistent storage. In that way, each container’s restart will lead to a completely new setup with a new password request.
Hi @yelinaung !
I haven’t seen automatic password changes as normal n8n behavior, so this sounds more like a persistence or deployment issue than n8n intentionally rotating credentials. For a Docker setup, I’d first verify that the database and n8n data are actually persistent across restarts, because losing state can make login behavior look random. If more than one instance is running, I’d also confirm they all point to the same database and shared state, since inconsistent backing services can cause confusing auth behavior. If they share the install method, auth type, and what happens after a restart or redeploy, that should narrow it down quickly.
he wasn’t using the original Nginx setup—he was using the one provided by his hosting environment. After rebuilding everything using the same Nginx configuration, the issue seems to have disappeared.