Giter VIP home page Giter VIP logo

Comments (10)

mbround18 avatar mbround18 commented on June 9, 2024

@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 avatar guyspr commented on June 9, 2024

@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.

mbround18 avatar mbround18 commented on June 9, 2024

any updates @guyspr ?

from valheim-docker.

guyspr avatar guyspr commented on June 9, 2024

@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.

mbround18 avatar mbround18 commented on June 9, 2024

Can you drop your docker-compose? Omitting any passwords ofc

from valheim-docker.

guyspr avatar guyspr commented on June 9, 2024

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.

mbround18 avatar mbround18 commented on June 9, 2024

Initial Thoughts

Maybe its the stop_signal: SIGINT ? ill give it a test.

With stop_signal: SIGINT

Found a house

image

Demolished it and added signature
image

Without stop_signal: SIGINT

Found house still standing after restart

image

Now i close with my new "Work"

image

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.

mbround18 avatar mbround18 commented on June 9, 2024

Fix Available in #735

Pre-restart

i created a sign

image

Post-restart

sign still present :) not a single piece missing

image

from valheim-docker.

mbround18 avatar mbround18 commented on June 9, 2024

Fixed in https://github.com/mbround18/valheim-docker/releases/tag/v2.2.0

from valheim-docker.

guyspr avatar guyspr commented on June 9, 2024

I just tested it on my server and it has indeed been resolved. Thanks!

from valheim-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.