I have restarted n8n several times but I am still stuck at 16GB.
So… I then ran the below command in docker console but got ‘permission denied’.
I then stopped the docker and ran the same command as root (outside of docker):
$sqlite3 database.sqlite ‘VACUUM;’
And I still get ‘permission denied’. What am I doing wrong? Any help gladly appreciated!
It would seem that somehow your host is not allowing docker to access your disk entirely.
The vacuum process actually creates another file and transfers only necessary data to it, so this should be ok with the disk space you have.
One option is to copy the database.sqlite file (usually it’s located in /home/node/.n8n/database.sqlite to your host machine, manually run vacuum and place it in your container again.
I will leave you some links with instructions on how you could achieve this:
Lastly, in order to run vacuum you need to have sqlite installed on your machine. You can simply run sqlite3 database.sqlite and then vacuum; as your statement. This should work.
I hope these steps can help you start your container once again. Let me know if this works!
Thanks for your help on this. For some reason I had no end of problems. I managed to find an old backup of my database.sqlite at “only” 7GB yet I had the same errors. Copying to Linux did not help much.
In the end, I copied to file over to windows and used sqlite3.exe. After some playing around, I managed to fix it by using the commands below: