Just wanted to save you guys days of research. It took me 2 days to figure this out.
I started looking att similar issues like this
So this is how I solved it:
- Add this to your .env file:
#Delete logs
EXECUTIONS_DATA_PRUNE=true
EXECUTIONS_DATA_MAX_AGE=336
- Install sqlite3 (if you don’t know how google it
- #docker-compose down
- #docker-compose up (this will start the prune)
- Go to your sever provider and add volume (the size needs to be att least as big as your current storage)
- #docker-compose down
- cd in to the database.sqlite file
we are going to create a mounted folder and move the file. In my case the /dev/sda is the correct mount but you can find yours by “df -h”
Important to mv to a full path otherwise your file will end up in root. so run pwd to find the full path to the folder you are moving the file.
mkdir /vacuumtemp
mount /dev/sda /vacuumtemp
mv database.sqlite /FULLPATH/vacuumtemp
- #cd vacuumtemp
- #sqlite3 database.sqlite
- sqlite> vacuum;
- sqlite> .exit
- #mv database.sqlite Fullpath/.n8n
- cd to your docker-compose.yml file
- #docker-compose up