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

Server does not start #34

Open
Brum8842 opened this issue Oct 19, 2018 · 31 comments
Open

Server does not start #34

Brum8842 opened this issue Oct 19, 2018 · 31 comments

Comments

@Brum8842
Copy link

Hello, I've been having trouble trying to get the server script to install forge and minecraft server files. I keep getting errors when it first runs.
I made a fresh install and here is the log https://pastebin.com/CuJ8SHZ8

this is what my screen looks like
image

I've been trying to figure it out with no luck
thanks in advance

@squid-box
Copy link

I've had similar errors sure to badly formatted script and settings files - my suggestion is to double check settings.cfg to make sure it's properly formatted.

@Brum8842
Copy link
Author

It is the default settings.cfg from the download, from what I'm seeing I don't see any problems.

@Glendening
Copy link

Navigate to the location of the serverstart.sh before running it in linux.

@Brum8842
Copy link
Author

the serverstart.sh is in the folder with the settings.cfg

@Glendening
Copy link

Yes. What I am suggesting is to CD/ yourself into the location where serverstart is being launched from before launching it and see if the server loads properly.

@Brum8842
Copy link
Author

That is the only place I've been launching it from, I don't launch it from outside the directory.

@e1nh4nd3r
Copy link

e1nh4nd3r commented Oct 20, 2018

Can you provide a gist of the serverstart.log file so that we can see the environment variables? There's an unexpected value or something that's missing from the server start script, which is why it's throwing all those errors about "integer value".

If you navigate to https://gist.github.com/, copy-and-paste the entirety of the serverstart.log file into the window, and click "Create Secret Gist" and provide the link here, that will help a lot.

@Brum8842
Copy link
Author

The pastebin I linked in my first post is the serverstart.log

@e1nh4nd3r
Copy link

Oh wow, I totally didn't see that. Thanks, looking now.

@e1nh4nd3r
Copy link

e1nh4nd3r commented Oct 20, 2018

This is a kind of a weird issue. It looks as though the serverstart.log you posted is indicating that the FORGEURL you provided (which is apparently set to FORGEURL=DISABLE) is being used instead of the mineforge URL that's supposed to be used in the if/else block in the link below.

https://github.com/AllTheMods/Server-Scripts/blob/master/ServerStart.sh#L76

On the command line, can you type FORGEURL="DISABLE", press enter, and try again? I think that it might be a problem with the way the variable is being set.

@Brum8842
Copy link
Author

I still get the same error

@Glendening
Copy link

If you replace serverstart.sh and settings.cfg with fresh ones from the zip of the mod pack, and run serverstart.sh you are met with the same error?

@Brum8842
Copy link
Author

yes what I posted was a very fresh unzip of the script files.

@Glendening
Copy link

Is this a local machine you have access to or a hosted server?

@Brum8842
Copy link
Author

It is local, it is using Ubuntu 18.04.1

@Glendening
Copy link

Can you provide a pastebin of the settings.cfg file?

@Brum8842
Copy link
Author

https://pastebin.com/kgj04C7i

It should be the same file from the zip folder, I did not change anything in it.

@FallenEagle1
Copy link
Contributor

Given that this modpack seems to run an older version of forge, I am going to assume that there is an older version of the script that is being used as well. What I would suggest is replacing the serverstart.sh file with a newer version of it, that potentially would have fixes, this maybe being one of them. To make things easier, here is the newest version of the file.
ServerStart.zip

@Glendening
Copy link

Brum, for research purposes, can you tell us what modpack you are running?

@Lartza
Copy link

Lartza commented Oct 20, 2018

@Glendening @FallenEagle1 They're not using any pack afaict. If I just download the start scripts and try to run them they fail for me too on Arch Linux.

https://gist.github.com/Lartza/741690d59ca91051cec5a75ef28fcca4

@Lartza
Copy link

Lartza commented Oct 20, 2018

The integer expression error comes from the fact that https://github.com/AllTheMods/Server-Scripts/blob/master/ServerStart.sh#L162 should be if [ "${IGNORE_OFFLINE}" = "1;" ]; then

Here's a serverstart.log too https://gist.github.com/Lartza/d545e2676e9cd8ae66409575f6fa007d

And no, setting the FORGEURL check to if [ "${FORGEURL}" = "DISABLE;" ]; then does not work

@Glendening
Copy link

For some reason it seems like the script is reading DISABLE as a url rather then as the default to be ignored. I wonder when this started and why more people aren't having issues?

@Lartza
Copy link

Lartza commented Oct 20, 2018

Probably because packs ship an installer.jar so the script rarely tries to download one.

@Glendening
Copy link

Just did a test
Replacing
if [ "${FORGEURL}" = "DISABLE" ]; then
With
if [ "${FORGEURL}" = DISABLE ]; then
Allows the script to connect, obtain files, and start the server.

@Yoosk
Copy link
Contributor

Yoosk commented Oct 20, 2018

Can you download this forge installer, place it in same place as serverstart.sh, then run serverstart.sh?

@Lartza
Copy link

Lartza commented Oct 20, 2018

Mhh I just "fixed" it... https://gist.github.com/Lartza/f296fa4f14931a8165d7b1becccf214f#file-gistfile1-txt-L42

Removing semicolons seems to work too, but does that then break ServerStart.bat?
@OrdinatorStouff Why were semicolons added in 7a22757 ?

@Glendening
Copy link

Glendening commented Oct 20, 2018

Did some testing. Removing the spaces after DISABLE; (line 19 as well) from the .cfg allows the script to find the right URL and download the files but it looks like there are still issues. It looks like the URL it does try to connect to is 404.

DEBUG: (wget) Downloading http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.12.2;-14.23.2.2625; /forge-1.12.2;-14.23.2.2625; -installer.jar
converted 'http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.12.2;-14.23.2.2625; /forge-1.12.2;-14.23.2.2625; -installer.jar' (ANSI_X3.4-1968) -> 'http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.12.2;-14.23.2.2625; /forge-1.12.2;-14.23.2.2625; -installer.jar' (UTF-8)
--2018-10-20 06:54:16--  http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.12.2;-14.23.2.2625;%20/forge-1.12.2;-14.23.2.2625;%20-installer.jar
Resolving files.minecraftforge.net (files.minecraftforge.net)... 158.69.55.219
Connecting to files.minecraftforge.net (files.minecraftforge.net)|158.69.55.219|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-10-20 06:54:16 ERROR 404: Not Found.

@Lartza
Copy link

Lartza commented Oct 20, 2018

Because there are semicolons in that url

@Glendening
Copy link

Removed ; from line 16 and 17 of .cfg URL resolved and files downloaded successfully.

@Glendening
Copy link

Removed ALL semi-colons that are AFTER entries in the .cfg EXCEPT the very last one after DISABLE
Script loads, downloads files, starts server successfully.

@Brum8842
Copy link
Author

Ok so I updated my settings.cfg to remove the semi-colons like Glendening mentioned and I also updated my ServerStart.sh file with adding the semi-colon after disable on line 76. I was able to get to the Starting install of Forge/Minecraft server binaries at the URL but that never downloaded, I noticed that it was just using Http and not Https so I updated line 77 to use Https and re-ran the script and was able to download the server binaries and start the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants