The rds instance got restarted after an update while the n8n app was running, since then the n8n app keeps crashing at application start-up.
What is the error message (if any)?
Migration "DeleteExecutionsWithWorkflows1673268682475" failed, error: relation "execution_entity" does not exist.
Running a docker container on my laptop while using the same database gives me the same error message.
I’ve looked into the database and the relation still exists, I’ve also looked in the migrations table but I won’t find the DeleteExecutionsWithWorkflows1673268682475 line in it.
Would someone have a clue on how to resolve this without losing any data ?
Many thanks
Quick update on the above, we had a massive 300Gb execution_entity table with workflows that never terminated. the migration was stuck trying to apply schema changes. We’re investigating whether the non terminating nodes are issues on our end (ie node setup) or something deeper. If you’re facing similar problems, trying truncating your execution_entity (you will loose execution history) and continue with the migration
you’ll need to connect to your n8n database (whatever database you’re using) and delete data in the execution_entity table.
If sqlite, you probably need to ssh into where you’re running n8n and find it (default location: The database file is located at: ~/.n8n/database.sqlite).
We were using postgres, so connect with the right permissions to delete. You then could delete data in execution_entity using sql.
There’s two dates you can filter on (startedAt and stoppedAt) or just go yolo and delete everything. We left last 3 days which is never looked at in case of successful workflows but your requirements might be different. I recommend viewing the data you want to delete before deleting. good luck