Closed antoniobenedetti closed 10 years ago
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
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: https://github.com/devryan/GamePanelX-V3/commit/594e92355da3f789b9bcb5a74561cc7cfc830190
Thats not it. I actually had my own rcon password in the config. I still get "Failed: success" with the latest servers.php file.
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
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.
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/
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.
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.
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.
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.
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).
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/devryan/GamePanelX-V3/issues/53#issuecomment-31501512 .
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.
Strange, i rebooted the remote server with "reboot -n" and everything works after the reboot..
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?
It was not gpx prefixed. It was just the username of the account without gpx prefix. Everything is working fine after the reboot.
Good to hear. Will close this as things are working for you.
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.