benbaptist / minecraft-wrapper

A simple & intuitive Minecraft Server wrapper. Supports IRC, backups, a plugin system, and more.
http://wrapper.benbaptist.com/
Other
73 stars 20 forks source link

General startup errors when trying to launch the wrapper #598

Open EchoesNetwork opened 6 years ago

EchoesNetwork commented 6 years ago

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.

suresttexas00 commented 6 years ago

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 commented 6 years ago

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

python Wrapper.py|/wrapper [--passphrase 'passphrase']
EchoesNetwork commented 6 years ago

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

suresttexas00 commented 6 years ago

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).

EchoesNetwork commented 6 years ago

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.

suresttexas00 commented 6 years ago

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:

suresttexas00 commented 6 years ago

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