Closed guyspr closed 1 year ago
@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.
@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
Maybe its the stop_signal: SIGINT
? ill give it a test.
stop_signal: SIGINT
Found a house
Demolished it and added signature
stop_signal: SIGINT
Found house still standing after restart
Now i close with my new "Work"
Post shutdown, the work sign wasn't there. I noticed an error in the log it wasnt finding the executable to shut it down,
Ill do some code changes after work to make it a little bit more clear in the shutdown and add more logs.
i created a sign
sign 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.