minecraft-wrapper icon indicating copy to clipboard operation
minecraft-wrapper copied to clipboard

General startup errors when trying to launch the wrapper

Open EchoesNetwork opened this issue 6 years ago • 7 comments

Hi, I'm trying to start the wrapper and I keep getting this syntax error whenever python attempts to open the Wrapper.py file: :/home/minecraft/multicraft/servers/server260# python Wrapper.py|/home/minecraft/multicraft/servers/server260/minecraft-wrapper-master/wrapper [passphrase '(redacting password)'] -bash: /home/minecraft/multicraft/servers/server260/minecraft-wrapper-master/wrapper: Is a directory File "Wrapper.py", line 1 PK ^ SyntaxError: invalid syntax For reference, I'm running Ubuntu 7.2 and I have all the required packages installed.

Any help would be great. Thanks.

EchoesNetwork avatar Apr 20 '18 19:04 EchoesNetwork

That command line looks invalid. I'm having trouble seeing what command you are attempting to run.

You should (I think) be doing this:

(your Wrapper.py should be in the same folder with your server.jar)

cd /home/minecraft/multicraft/servers/server260
python Wrapper.py --passphrase 'redacting password'

suresttexas00 avatar Apr 22 '18 14:04 suresttexas00

I think maybe you are confused by the notation in the readme.MD:

python Wrapper.py|/wrapper [--passphrase 'passphrase']
  • Brackets[ ] mean that this is an optional argument.
  • The pipe | separates two different ways of doing the same thing:
  1. you can run the Wrapper.py: python Wrapper.py or
  2. You can run the source code directly instead: python /wrapper where '/wrapper' is the source code directory from this repo.

suresttexas00 avatar Apr 22 '18 14:04 suresttexas00

Okay yeah I was confused about that, thanks! But I'm still getting the same error when I run the command python Wrapper.py.

EchoesNetwork avatar Apr 22 '18 17:04 EchoesNetwork

Post your wrapper.properties.json file and also give some screen shots or something that shows your file structures and where your server files are, as well as the wrapper.py or /wrapper folder (depending on what you use).

suresttexas00 avatar Apr 24 '18 23:04 suresttexas00

Hey, I've tried using python3 and the wrapper starts fine. However, after it starts and I input my password, it just spams "Starting server..." over and over. Any idea what could be causing this? Also I'm not sure where to locate the wrapper.properties.json file. I don't see it in the file tree.

EchoesNetwork avatar May 30 '18 15:05 EchoesNetwork

Wrapper.properties.json will be in the same folder as where the Wrapper.py is located. FYI, I did fix the Python 2 syntax errors.

What you describe occurs whenever the startup command fails... which could be anything; wrong java arguments, an existing server running on the same port, etc.

Examples:

  • Your server jar is called "minecraft_server.jar", but the start command in the wrapper properties is "java -jar server.jar nogui".
  • You killed a server on port you want to run on, but the port is still in use (system has not released the port).
  • You specified port 25565 in your server.properties, but in wrapper.properties, you set the proxy port as 25565 also.

suresttexas00 avatar May 30 '18 17:05 suresttexas00

Another possibility is that it cannot find the server.jar because your server.jar and Wrapper.py are not in the same folder.

You can place them in different folders, but that is a special advanced configuration option that is set up in wrapper.properties.json

suresttexas00 avatar May 30 '18 17:05 suresttexas00