dst-dedicated-server
dst-dedicated-server copied to clipboard
dst_master exited with code 6
I always get this in the docker log
dst_master | [00:00:07]: [CRITICAL] Failed to save file: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/Master/save/saveindex
dst_master | [00:00:07]: [CRITICAL] Fingerprint:lhrjsjvnukdggkfltioqfhgigfnnnpeipdjlioijlhrjsjvnikdggkflhhoqfhgipgnnnpeijhjlioijkhrjsjvnxkdggkfluioqfhgiofnnnpeiddjlioijlhrjsjvntodggkflmkoqfhgiefnnnpeiifjlioijldrjsjvnijdggkflhjoqfhgipgnnnpeildjlioijgerjsjvnkjdggkflnioqfhgipinnnpeijdjlioijddrjsjvnjkdggkflmhoqfhgilfnnnpeipdjlioijgerjsjvntodggkflmkoqfhgiqinnnpeiogjlioijdcrjsjvnukdggkfljioqfhgihfnnnpeipdjlioijherjsjvnpmdggkfluioqfhgiognnnpeinejlioijaerjsjvnjkdggkflghoqfhgiejnnnpeihfjlioijfdrjsjvnpjdggkflmhoqfhgiofnnnpeimejlioijlhrjsjvnpjdggkfljioqfhgingnnnpeipdjlioijlhrjsjvnpjdggkfljioqfhgingnnnpeipdjlioijndrjsjvnskdggkflmioqfhgiofnnnpeicejlioij.
dst_master | [00:00:07]: Reset() returning
dst_master | [00:00:07]: THREAD - started 'WorldSim' (4065327936)
dst_master | [00:00:07]: WorldSim::SimThread::Main()
dst_master | [00:00:07]: DoLuaFile scripts/worldgen_main.lua
dst_master | [00:00:07]: DoLuaFile loading buffer scripts/worldgen_main.lua
dst_master | [00:00:07]: DLC enabled : false
dst_master | [00:00:08]: Mutex unlock failed with err 0x16
dst_master | [00:00:08]: Mutex unlock failed with err 0x16
dst_master | [00:00:08]: Mutex unlock failed with err 0x16
dst_master | [00:00:08]: Mutex unlock failed with err 0x16
...
dst_master | [00:00:08]: Mutex unlock failed with err 0x16
dst_master exited with code 6
- What is the host OS? CentOS 7.3
- Where are you running it? my own server
- Please paste the logs
~/dst-dedicated-server/DSTClusterConfig/Master/server_log.txt
~/dst-dedicated-server/DSTClusterConfig/Caves/server_log.txt
I didn't get the following two files.
I got similar issue.
Hey @JY-Zhou and @mastrodaro, sorry for the very late reply.
[CRITICAL] Failed to save file: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/Master/save/saveindex
This looks like a permission error. Does the user that's running docker also have write permissions in the dst-dedicated-server
folder? Ideally, the user you use to clone and set up the project should be the same one running the docker containers.
Check the Docker Linux installation in the docs, specially the post-installation steps to grant your user permission to run docker
.
Others had problem with this before using one user to git clone
and setup the project (e.g. root
) and then they try to run this as another user.
Please double check all the above and let me know if you're still having the issue!
try this command:
docker-compose up -d && docker exec -u root -it dst_master bash -c "chown -Rv dst:dst /home/dst/.klei/DoNotStarveTogether"
the problem is the volume mount owner doesn't correct. the command fixes the owner to dst:dst
.
@ibrohimislam
Thanks this worked for me. I also added chown -Rv dst:dst /home/dst/server_dst/mods
as I also had some permission errors when I was trying to install mods.
This did the trick.
docker-compose up -d && docker exec -u root -it dst_master bash -c "chown -Rv dst:dst /home/dst/.klei/DoNotStarveTogether && chown -Rv dst:dst /home/dst/server_dst/mods"