-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
World save is not triggered on container stop #732
Comments
@guyspr this has been resolved before, please add this to your docker compose for the service stop_grace_period: 2m if it still occurs consider expanding the stop_grace_period. Larger worlds will take longer to save. |
Thanks for your reply, I will be testing if this resolved the issue for me :) |
any updates @guyspr ? |
@mbround18 It still doesn't seem to trigger the save on shutdown with the added setting. I test it by building something new in the world, then stopping and starting the container. The placed item will disappear. I do make sure to do a manual save now (using the console) before shutting down. |
Can you drop your docker-compose? Omitting any passwords ofc |
Here's the compose file I'm using: version: "3"
services:
valheim:
image: mbround18/valheim:latest
stop_signal: SIGINT
stop_grace_period: 2m
ports:
- "2456:2456/udp"
- "2457:2457/udp"
- "2458:2458/udp"
environment:
PORT: 2456
NAME: "*****"
WORLD: "*****"
PASSWORD: "****"
TZ: "Europe/Amsterdam"
PUID: 1000
GUID: 1000
PUBLIC: 0
AUTO_UPDATE: 0
AUTO_UPDATE_SCHEDULE: "0 1 * * *"
AUTO_BACKUP: 1
AUTO_BACKUP_SCHEDULE: "*/15 * * * *"
AUTO_BACKUP_REMOVE_OLD: 1
AUTO_BACKUP_DAYS_TO_LIVE: 7
AUTO_BACKUP_ON_UPDATE: 1
AUTO_BACKUP_ON_SHUTDOWN: 1
# TYPE: Vanilla
TYPE: BepInEx
volumes:
- ./saves:/home/steam/.config/unity3d/IronGate/Valheim
- ./server:/home/steam/valheim
- ./backups:/home/steam/backups |
Fix Available in #735Pre-restarti created a sign Post-restartsign still present :) not a single piece missing |
I just tested it on my server and it has indeed been resolved. Thanks! |
I've noticed that, when restarting/stopping the server running this docker container. Then the world is not saved, and any built object will disappear since last save (which can be 30 minutes ago). It seems like the shutdown process does not force a world save which can cause data-loss.
The text was updated successfully, but these errors were encountered: