Error when running docker-compose up: no space left on device #620
-
I've had an installation that's been working for quite a while, but recently the autorestart shut the server down and failed to boot it back up. I opened up an ssh session and discovered the following issue when running
I tried running
My version: "3"
services:
valheim:
image: mbround18/valheim:latest
ports:
- 2456:2456/udp
- 2457:2457/udp
- 2458:2458/udp
environment:
- PORT=2456
- NAME="<REDACTED>"
- WORLD="funworld3"
- PASSWORD="<REDACTED>"
- TZ=America/Chicago
- PUBLIC=1
- AUTO_UPDATE=1
- AUTO_UPDATE_SCHEDULE="0 1 * * *"
- AUTO_BACKUP=1
- AUTO_BACKUP_SCHEDULE="*/15 * * * *"
- AUTO_BACKUP_REMOVE_OLD=1
- AUTO_BACKUP_DAYS_TO_LIVE=3
- AUTO_BACKUP_ON_UPDATE=1
- AUTO_BACKUP_ON_SHUTDOWN=1
- WEBHOOK_URL="<REDACTED>"
volumes:
- ./valheim/saves:/home/steam/.config/unity3d/IronGate/Valheim
- ./valheim/server:/home/steam/valheim
- ./valheim/backups:/home/steam/backups This is a lightsail installation with an 80GB disk, so my intuition is that the limitation is a docker config of some sort, but I don't have in-depth experience with docker to debug it myself. Anyone have any thoughts or next steps to try? My friends and I aren't actively playing on this world, but once the mistlands update comes out we plan to restart, so if I can't resolve by then I'll probably just do a completely fresh install, but I'd like to learn what's going wrong here and how to fix it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
After some digging, I discovered that there were a lot more backups hanging around than I expected. Due to the world size being larger than it was previously, the backups eventually consumed all the space on the disk. After clearing out the old backups, I adjusted the cron for backups to be every half hour and reduced the days to live to 2. However, this could potentially still be a problem in the future if the world size gets large enough. The |
Beta Was this translation helpful? Give feedback.
After some digging, I discovered that there were a lot more backups hanging around than I expected. Due to the world size being larger than it was previously, the backups eventually consumed all the space on the disk.
After clearing out the old backups, I adjusted the cron for backups to be every half hour and reduced the days to live to 2. However, this could potentially still be a problem in the future if the world size gets large enough. The
AUTO_BACKUP_PAUSE_WITH_NO_PLAYERS
flag seems like it will help with this as well, but a question on that: Does it still purge old backups when no players are online? I would love a way to graduate the number of backups. e.g. 15 min backups for the …