docker-minecraft-bedrock-server icon indicating copy to clipboard operation
docker-minecraft-bedrock-server copied to clipboard

worlds folder missing / world won't save

Open BrownJenkinsJr opened this issue 5 years ago • 6 comments

Hi,

I'm using your Docker on OMV4 and its running pretty fine. Thanks for your work! My problem is, that every time my server reboots/the docker image stops/restarts the world and everything my kid has built is gone and a new world is created. I have no worlds folder in my /data folder. I have tried setting up, everything fresh, but it didn't work.

Do you have any idea why that is?

Thanks in advance!

BrownJenkinsJr avatar Apr 01 '20 12:04 BrownJenkinsJr

Can you provide the docker run command that you are using?

itzg avatar Apr 01 '20 12:04 itzg

Bildschirmfoto 2020-04-01 um 15 06 43 Bildschirmfoto 2020-04-01 um 15 06 31

I'm running this via Docker GUI from OMV. Is this what you need?

BrownJenkinsJr avatar Apr 01 '20 13:04 BrownJenkinsJr

I'm not familiar with that management platform but from the screenshot I can see that

  • you need to specify the container path to be /data and the host path will be whatever path works for you on the host machine
  • you should not set the data volume to be read-only (aka "R/O") since it needs to write the world data there

image

itzg avatar Apr 01 '20 14:04 itzg

makes sense. ;-)

But when I do and restart, I get this:

/opt/bedrock-entry.sh: line 73: /data/bedrock_server-1.14.32.1: Permission denied

BrownJenkinsJr avatar Apr 01 '20 16:04 BrownJenkinsJr

after some work I'm pretty sure it has something to with rights?.

Bildschirmfoto 2020-04-01 um 21 47 56

the /data folder will not map correctly and when the server is running it will always go back to R/O and the container path is broken like in my picture above.

BrownJenkinsJr avatar Apr 01 '20 19:04 BrownJenkinsJr

That is caused by the host volume you are using has the noexec flag/option on it. You will need to change that in order to attach that particular volume as /data since the Bedrock executable is placed and executed from there.

itzg avatar Apr 01 '20 20:04 itzg