Open JY-Zhou opened 5 years ago
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"
I always get this in the docker log
I didn't get the following two files.