even after a server reboot the problem persistsâŚ
this is the log?
root@vmi368149:~# docker logs c6357d560ba7
Last session crashed
n8n ready on 0.0.0.0, port 5678
Migrations in progress, please do NOT stop the process.
Stopping n8nâŚ
Error: There was an error shutting down n8n.
TypeError: Cannot read properties of undefined (reading âremoveAllQueuedWorkflowActivationsâ)
Last session crashed
n8n ready on 0.0.0.0, port 5678
Hi @xewonder Can you let us know what version of n8n you upgraded from, as well? You may also want to take a peek at how to set up logging. DEBUG would work here, and then you can find the logs in the location youâve specified after trying to run n8n again.
You mentioned you arenât too familiar with Docker - self-hosting n8n does assume that you have some technical knowledge on setting up servers and containers, managing application resources, and configuration. If you arenât experienced at managing servers, weâd recommend using n8n Cloud.
Reading the command outputs from your first post, it seems to me that you created your n8n container 8 months ago, and the last restart occurred 5 months ago. So the newest possible version you could be running is probably somewhere around version 0.213.0 from January this year.
n8n recently released a major upgrade to version 1.x, with a special update process to migrate your old version. You pulled the latest version (v.1.6.0) and the direct upgrade from your older version is probably causing you issues here. Iâd suggest you try to downgrade again (not using the tag :latest but instead a direct version tag like :0.213.0 from january in your docker start command) to see if your instance will start to work again.
If it does Iâd suggest slowly updating versions until you arrive at version 0.236.3 from which you could follow the migration guide: n8n v1.0 migration guide | n8n Docs
I hope that helps and you get your instance back and running again
on a side note, before I do anything silly, I i just noticed that even with very âsmallâ use my DB is 135GB and something is happening (slowly) with the database.sqlite-journal.
, I i just noticed that even with very âsmallâ use my DB is 135GB and something is happening (slowly) with the database.sqlite-journal
This sounds like the likely culprit here. Some of the migrations required will update the database table storing your executions, so this can take quite a while.
To improve performance (and reduce the size of your database) you might want to consider manually clearing old executions from your database file and set up data pruning going forward.
Just make sure to take a backup before making changes to your database.
You can delete old executions directly from the execution_entity table of your database.sqlite file. Youâll need a client such as Beekeper Studio or even the sqlite3 command line tool for this.
Hi @xewonder, if you donât need any of your old executions anymore delete from execution_entity will do the job and remove all old executions (just make sure to take a backup). In newer versions of n8n youâll also need to clear out the execution_data table, but I donât think it exists on your version.
Just be aware that this will not immediately free disk space with SQLite. Instead the vacuum operation would need to be run as well as per the n8n documentation:
If you run n8n using the default SQLite database, the disk-space of any pruned data isnât automatically freed up but rather reused for future executions data. To free up this space configure the DB_SQLITE_VACUUM_ON_STARTUPenvironment variable or manually run the VACUUM operation.
This will temporarily require a bit more space because SQLite will essentially create a fresh copy of your database before removing the old database.