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

Can't start any server #53

Closed
antoniobenedetti opened this issue Jan 1, 2014 · 17 comments
Closed

Can't start any server #53

antoniobenedetti opened this issue Jan 1, 2014 · 17 comments
Assignees

Comments

@antoniobenedetti
Copy link
Contributor

I've just installed manually the latest SA-MP server 0.3X(R2). I created a new user and a new server and it failed to start. All i get is "Failed: success" with a red cross. So i enabled the debug mode in the config and i found no error in the start up procedure. It shows up as normal, with "success" at the end of the log.

I'm using the latest master and remote files from github. There are no indications of any error. I also tried using the command "top -U gpxtheusername" but i see no processes running even when i click on the restart button. Maybe occasionally it shows few processes and they disappear quickly afterwards.

The FTP is working fine, the remote user is fine, SSH is fine, the game ports are open.

@devryan
Copy link
Owner

devryan commented Jan 1, 2014

I have the same issue. I think this is the same issue for SAMP as before - if you leave the rcon password empty inthe config, the server silently fails. Here is an strace:

read(5, "\nPST8PDT,M3.2.0,M11.1.0\n", 4096) = 24
write(3, "[14:16:23] rcon_password = "chan"..., 48) = 48
read(4, "", 4096) = 0
write(3, "[14:16:23] Error: Your password "..., 93) = 93

@devryan
Copy link
Owner

devryan commented Jan 1, 2014

Fixed it. Reinstall SAMP from cloud games, and replace your includes/classes/servers.php file with the latest from github. This issue was caused due to no Rcon Password being specified, so when you hit Restart, the server reset the rcon in the config, and samp silently failed.

See commit: 594e923

@devryan devryan closed this as completed Jan 1, 2014
@antoniobenedetti
Copy link
Contributor Author

Thats not it. I actually had my own rcon password in the config. I still get "Failed: success" with the latest servers.php file.

@ghost ghost assigned devryan Jan 1, 2014
@devryan devryan reopened this Jan 1, 2014
@devryan
Copy link
Owner

devryan commented Jan 1, 2014

Not in the config file. Do you have an rcon password set in the Settings tab for your server in GPX? That fix I sent out only fixed new SAMP servers; current ones are fixed by adding an rcon pass in the settings tab, saving that, and restarting the server.

What happens if you su - gpx, cd to the game directory, and run the samp executable by hand?

@antoniobenedetti
Copy link
Contributor Author

Ok so i now tried to create a new server and now I get "Failed: Success" on creating it. After that i get "Error: error, Internal Server Error" in the Servers page and i get "Failed: Failed to move server: Sorry, did not receive all required options!" when i try to save the server settings... Also the files are now completely missing on the panel, but the FTP is working fine.

@antoniobenedetti
Copy link
Contributor Author

I enabled the debug mode again, i even get "Failed:" in debug mode before the log. I think the master or the remote files are messed up since I updated my October install with the latest files.

I ran the update script on the remote with the latest files too.
The permissions are fine too, i did this:
sudo chown apache: . -R
sudo chmod ug+rw configuration.php _SERVERS/*
sudo chmod ug+x _SERVERS/scripts/*

@devryan
Copy link
Owner

devryan commented Jan 2, 2014

Yeah it sounds like there are some inconsistencies between versions that you have. Getting all those errors is very weird and I have not seen that myself.

For the internal server error, can you check your PHP/http error log for what the error was?

How many servers are you running? I suppose it's not as simple these days since I provide code via GitHub and have not done an official release in some time. I should probably provide an official one more often.

@antoniobenedetti
Copy link
Contributor Author

Can't find any recent error log in /var/log/httpd. The latest one is from 3 days ago (some bot searching for exploits).
I'm running 1 remote server.

@devryan
Copy link
Owner

devryan commented Jan 2, 2014

Any chance I can have access to a machine there to check this out? Also, does this issue happen on any other server, or just SAMP? (sorry if you already mentioned)

I had meant to ask how many gameservers that system is managing, to see if a clean reinstall would be in the cards.

@antoniobenedetti
Copy link
Contributor Author

K, so i just did complete Master and Remote reinstall and the SA-MP server is not starting. I only get Success now and nothing happens.. the game server is not starting.

I also did su - gpx and i can run the server manually.

@antoniobenedetti
Copy link
Contributor Author

I installed a Minecraft server now and i can't start it.. same as the SA-MP server. I'm using the same parameter as the old install (it was working fine).

@devryan
Copy link
Owner

devryan commented Jan 3, 2014

Fresh github code for both master and remote? I'd really like to see how
you're installing things as something is very wrong.
On Jan 2, 2014 6:19 PM, "antoniobenedetti" notifications@github.com wrote:

I installed a Minecraft server now and i can't start it.. same as the
SA-MP server. I'm using the same parameter as the old install (it was
working fine).


Reply to this email directly or view it on GitHubhttps://github.com//issues/53#issuecomment-31501512
.

@antoniobenedetti
Copy link
Contributor Author

I found the issue:
Fri Jan 3 03:18:20 CET 2014 host1 Restart: Failed to start GNU Screen, no PID! Exiting.
Fri Jan 3 03:28:04 CET 2014 host1 Restart: Restarting The-IP-Here:25567 for user theserveruser ...
You are not the owner of /var/run/screen/S-theserveruser.

Any idea how to fix this? It looks like some issue with screen or permissions on the remote? Can you please help me?

Anyway, i used the tutorial from the wiki to install the master on my centos server and i just did a clean install of the remote with the uninstall script and installing it with the install script. The code is the latest one from github for both remote and the master installations.

@antoniobenedetti
Copy link
Contributor Author

Strange, i rebooted the remote server with "reboot -n" and everything works after the reboot..

@devryan
Copy link
Owner

devryan commented Jan 3, 2014

The screen permissions issue...that is weird, so what was "/var/run/screen/S-theserveruser", in relation to the actual user you were trying to restart for? Was it the exact same username with gpx prefixed?

Otherwise, where do we stand? All is working?

@antoniobenedetti
Copy link
Contributor Author

It was not gpx prefixed. It was just the username of the account without gpx prefix. Everything is working fine after the reboot.

@devryan
Copy link
Owner

devryan commented Jan 6, 2014

Good to hear. Will close this as things are working for you.

@devryan devryan closed this as completed Jan 6, 2014
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

No branches or pull requests

2 participants