Hey everyone! I’m encountering a critical and baffling issue where all data in my self-hosted n8n instance has completely vanished, and rolling back the machine hasn’t fixed it.
The entire n8n database data disappeared. Absolutely nothing is left (workflows, credentials, executions, etc.).
We run n8n in a Docker container on a Linux Ubuntu machine, using an external Postgres database (on the same machine).
Here’s what we tried and the bizarre result:
-
We noticed the data loss.
-
We rolled the entire machine back to a point a few weeks ago when n8n was definitely working fine. The data was STILL missing.
-
We rolled back the entire machine further, to a point about a month ago.
-
After this deeper rollback, the n8n data reappeared for a few minutes, and then disappeared again spontaneously, even though no changes were made on our end.
-
We checked the underlying Postgres database directly, and it showed the same behavior: data present for a few minutes, then gone.
We’ve tried everything we can think of, and the data simply will not persist or come back. It’s like something is actively wiping it shortly after the machine starts up or connects to the database.
There are no visible n8n error messages; the application simply appears empty, like a fresh install, even after rollbacks that should have restored the data. We’re checking the Postgres logs now but haven’t found a smoking gun yet.
Information on your n8n setup
-
n8n version: latest
-
Database (default: SQLite): postgres
-
n8n EXECUTIONS_PROCESS setting (default: own, main): Default
-
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker self hosted
-
Operating system: linux ubuntu
What could possibly be causing the data to reappear briefly and then immediately vanish again, even after a full machine rollback? Any insights into processes, containers, or database cleanup scripts that might be running and wiping the data would be massively appreciated. ![]()