EndstoneMC / endstone

Endstone - High-level Plugin API for Bedrock Dedicated Servers (BDS), in both Python and C++.
http://endstone.dev/
Apache License 2.0
269 stars 26 forks source link

[bug]Unable to start the server #35

Closed Monarchdos closed 3 months ago

Monarchdos commented 3 months ago

Describe the bug Can't start the server using docker and pip.

To Reproduce docker run and endstone commands

Screenshots 2024-08-15_10-41-35 123

wu-vincent commented 3 months ago

This will happen if you have a server installation whose version does not match with your endstone version. An easy fix is to delete the bedrock_server/bedrock_server.exe and bedrock_server/bedrock_server. Then start endstone again to download the correct version.

Monarchdos commented 3 months ago

I executed the command directly in an empty folder and the server file was automatically downloaded in the correct version.

Monarchdos commented 3 months ago

And I'm also getting this error when I use a docker image directly.

wu-vincent commented 3 months ago

Can you try to run the docker image without volumn mount and see if it works?

Monarchdos commented 3 months ago

I tried it and it works fine, why doesn't volumn mount work?

wu-vincent commented 3 months ago

Same reason as i mentioned above. There must be an installation with the wrong version in your mounted folder.

Monarchdos commented 3 months ago

But the folder is empty.

Monarchdos commented 3 months ago

image This is the effect I just reproduced, I created a new folder and executed the command in this folder and it re-downloaded a correct version.

wu-vincent commented 3 months ago

Thanks. That's weird. I will look into it later.

wu-vincent commented 3 months ago

I am not able to reproduce this. Can you provide more info about your system setup?

Monarchdos commented 3 months ago

System: Linux xxx 4.4.0-19041-Microsoft #4355-Microsoft Thu Apr 12 17:37:00 PST 2024 x86_64 x86_64 x86_64 GNU/Linux Python: Python 3.10.12 Pip: pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

Monarchdos commented 3 months ago

Found a new problem, can't start the server even under Windows. image

wu-vincent commented 3 months ago

You should've also got an error message box in the meantime. What did it say?

Monarchdos commented 3 months ago

Yes, access denied. image

wu-vincent commented 3 months ago

That's not related to endstone. Please check your file system and make sure it has the right permissions. If it still doesn't work, you can try to use the portable version from the release page.

wu-vincent commented 3 months ago

I'm going to close it for now but please feel free to reopen it. Thanks. 👍