lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.94k stars 272 forks source link

Issue with transferring world to container. #520

Open Cevap05 opened 1 year ago

Cevap05 commented 1 year ago

Want to say thank you for your work! I have no issues with the setup but one thing. And that is bringing over any world that is not being generated by the container itself. After bringing over any .db .fwl files from my local to the container, I seem to always get a "version" error and that it can not successfully load the world. Only when I let the container load the world, will it then work. If I can get assistance on how to solve this, would be wonderful. Running on headless Ubuntu if that matters. Thank you!

dossjjx commented 1 year ago

I am having this same issue when bringing in a world file from a friend's Windows PC. I am running in Docker on Ubuntu 22.04.

Any updates on this issue?

Dana63301 commented 1 year ago

Just ran into this scenario and finally figured it out. If you manually run the docker commands, you specify the data and config volumes ($HOME/valheim-server/…). If you use the systemd service, that service is looking in /home/valheim and /opt/valheim. You’ll need to edit the service file to match the full path(s) (pwd is your friend), and then restart the service.