Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General startup errors when trying to launch the wrapper #598

Open
EchoesNetwork opened this issue Apr 20, 2018 · 7 comments
Open

General startup errors when trying to launch the wrapper #598

EchoesNetwork opened this issue Apr 20, 2018 · 7 comments

Comments

@EchoesNetwork
Copy link

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
Copy link
Collaborator

suresttexas00 commented Apr 22, 2018

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
Copy link
Collaborator

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.

@EchoesNetwork
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

suresttexas00 commented May 30, 2018

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
Copy link
Collaborator

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 suresttexas00 changed the title Invalid syntax error when trying to launch the wrapper General startup errors when trying to launch the wrapper May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants