Comments (10)
@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.
from valheim-docker.
@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 :)
from valheim-docker.
any updates @guyspr ?
from valheim-docker.
@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.
from valheim-docker.
Can you drop your docker-compose? Omitting any passwords ofc
from valheim-docker.
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
from valheim-docker.
Initial Thoughts
Maybe its the stop_signal: SIGINT
? ill give it a test.
With stop_signal: SIGINT
Found a house
Demolished it and added signature
Without 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,
Root Cause Analysis
- I found the provider of the system module changed their API again...
Fix
Ill do some code changes after work to make it a little bit more clear in the shutdown and add more logs.
from valheim-docker.
Fix Available in #735
Pre-restart
i created a sign
Post-restart
sign still present :) not a single piece missing
from valheim-docker.
Fixed in https://github.com/mbround18/valheim-docker/releases/tag/v2.2.0
from valheim-docker.
I just tested it on my server and it has indeed been resolved. Thanks!
from valheim-docker.
Related Issues (20)
- Not able to see BepInEx overlay in game when using TYPE=BepInEx HOT 2
- Can't start container due to lack of network. HOT 4
- How to debug container 'unhealthy'
- Daily saves clean up HOT 2
- Stop messages are not being sent to webhook HOT 5
- First start have failed HOT 3
- [BUG] "TZ" variable only changes the name of the timezone and not the time. HOT 9
- [ODIN] add preset/modifiers
- Cannot connect anymore since latest update (2023-Oct-11) HOT 7
- resource modifier help HOT 5
- cannot install bepinex using TYPE env variable HOT 5
- Requesting help,I created a container using the container,but it indicates that it is unhealthy and unable to connect. HOT 4
- On a fresh install, there is no longer a `/home/steam/valheim/unstripped_corlib`. This makes Odin think BepInEx is not installed and start the server without it. A workaround is to create it as an empty directory (`./valheim/server/unstripped_corlib`).
- Incompatible version error HOT 5
- Getting two Stop messages for server in Discord using webhook and auto restart scheduler HOT 1
- AppID Changed
- Execing into docker fails with odin commands
- Non-Existent Cron Directory Causing Auto-Backup to Not Trigger
- Weird permission issues because PUID/PGID is being ignored I think? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from valheim-docker.