Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dst_master exited with code 6 #19

Open
JY-Zhou opened this issue Oct 10, 2019 · 4 comments
Open

dst_master exited with code 6 #19

JY-Zhou opened this issue Oct 10, 2019 · 4 comments

Comments

@JY-Zhou
Copy link

JY-Zhou commented Oct 10, 2019

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.

@mastrodaro
Copy link

I got similar issue.

@mathielo
Copy link
Owner

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!

@ibrohimislam
Copy link

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.

@uLan08
Copy link

uLan08 commented May 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants