Server Hangs -
Ash. - 25.10.2011
Good Evening SAMP community.
Alright, I'm in search of an answer, as I can't find one myself!
As you may know due to my signature, I run a server called "TruckingWorld". The server seems to intermittently hang; for no apparent reason. I can only get RCON response, nothing more. The ping still shows in the client window, but noone can connected - They just get stuck at the "Connected. Joining the game..." screen. Those whom are already connected just get desynced, but, (and this maybe important),
still receive admin messages (rcon say, from an external source (my laptop)). The player list, shows in the client window also, however isn't live. It shows all the players that were connected when the server hung. If I type "players" in the RCON window, I see all the players that were connected when the server hung also, however if they have actually disconnected from the server (desync = rage quit? lol) their ping shows as -1 and their IP shows as 255.255.255.255. I'm guessing, as OnPlayerDisconnect cannot be called due to the server being stuck, it doesn't fully process the disconnection, and therefore cannot remove the player from it's player cache.
This include, is the ONLY change I have made in the past three weeks (due to school and exams and such). (I'm happy for that to be there, by the way - It's small, hardly unique nor beneficial to any other server...)
Next time it hangs, I will leave it in that state so you can see the issue yourself.
This is very strange, and it's the first time it's happened to me, ever.
Some more information:
- Server Version: 0.3c R5
- Operating System: Linux, CentOS 5
- IP/Port: 94.23.108.110:1996 (Not advertising, just there incase it hangs again)
- Plugins: sscanf, streamer (Incognito)
- Total Filterscripts Loaded: 7
- If you need anymore information, just ask!
Thanks,
Ash
Re: Server Hangs -
Ash. - 25.10.2011
UPDATE: The server has now hung. It was just about to restart (57 seconds to go). The RCON password has been temporarily changed to "boobs" (lol) so you can see what response you can get out of it.
Thanks,
Ash
Re: Server Hangs -
seanny - 25.10.2011
Uhm...? What is a server Hang?
Re: Server Hangs -
Ash. - 25.10.2011
Quote:
Originally Posted by seanny
Uhm...? What is a server Hang?
|
The server is still active, and according to the Linux "top" command, it is still running and actively processing, however noone can connected (they get stuck at "Connected. Joining the game...") and the only response from the server is ping and RCON commands.
Edit: It seems I can change the hostname and the map name through RCON too.
Re: Server Hangs -
Ash. - 25.10.2011
Okay, another update:
One of my friends rang me; said he couldn't connect to the server. I knew this, obviously. I went into RCON, and tried to kick all the people that had "-1" ping, which was surprisingly successful. I then went to kick all the people that were apparently still connected, with success. However; with my friend, still at the "Connected. Joining Game..." screen, he said that the server just "Closed the connection" - Which is what happens when the server kicks/bans someone, right? So, I figured that the server MUST have been swapping/fiddling with the player's ID's and their names (or their identification, but either way it was still breaking somewhere). I have re-uploaded the samp03svr executable file, and will await results of it. I will reply either later or tomorrow, telling you how stable the server has been, merely so you know that if this happens to you, the correct resolution is to do what I did.
Thanks,
Ash
Re: Server Hangs -
AleXandeR[SRB] - 25.10.2011
Problem still there,
BUT,when everyone`s RCON kicked,server returns to normal.
-AleXandeR (TruckingWorld Staff team)
Re: Server Hangs - Riddy - 25.10.2011
Checked server log?
Re: Server Hangs -
Ash. - 25.10.2011
Quote:
Originally Posted by Riddy
Checked server log?
|
The server_log.txt file is normal. You can see the incoming connections, but that is all - As you would expect if the server were empty; however with no "Connected", just "Incoming Connection".
Код:
//Before hang
[20:03:47] [chat] [misha_rapan]: now not problems?
//After hang
[20:10:18] Incoming connection: 78.1.190.100:54499
[20:13:07] Incoming connection: 78.1.190.100:54500
[20:13:29] Incoming connection: 157.157.174.57:50254
[20:13:44] Incoming connection: 79.113.210.136:1282
[20:14:06] Incoming connection: 78.1.190.100:59115
[20:15:16] Incoming connection: 78.1.190.100:65341
[20:16:04] Incoming connection: 79.113.225.197:1312
Re: Server Hangs - Riddy - 25.10.2011
Seems like your server is crashing, check your script and recompile it
Re: Server Hangs -
Ash. - 25.10.2011
Quote:
Originally Posted by Riddy
Seems like your server is crashing, check your script and recompile it
|
The server doesn't crash, merely hangs - A crash would mean a segmentation fault within the linux executable, this doesn't happen as Linux/CentOS still reports that it is processing correctly.
I haven't edited the script in nearly a month, so this should have happened a long time ago, if it were the script, surely?
Re: Server Hangs - Riddy - 25.10.2011
Reboot your Linux server, Delet the server contents and then wget them back and try
Re: Server Hangs -
Ash. - 25.10.2011
Quote:
Originally Posted by Riddy
Reboot your Linux server, Delet the server contents and then wget them back and try
|
That was my next thing, though something I wanted to avoid. I have contacted my data centre and requested that the most recent *.tar.gz backup of my server can be made available to me. They'll be getting back to me shortly. I will be doing a fresh install of CentOS5 and re-instating my entire server/database. I'm hoping this will solve the issues.
Hopefully a full reboot will solve the issue; however, I want to keep it as a last resort. I think I'm at that stage now though; been at this damn desk for about 6 hours now trying to sort this out!
Hopefully my data-centre will reply soon, so I can finally get this done.
Thanks (+rep),
Ash
Re: Server Hangs - Riddy - 25.10.2011
I dont think its the VPS though, VPS/Dedi doesnt mix with the Gameserver, but we'll find that out when the last backup comes
Re: Server Hangs -
Ash. - 25.10.2011
Quote:
Originally Posted by Riddy
I dont think its the VPS though, VPS/Dedi doesnt mix with the Gameserver, but we'll find that out when the last backup comes
|
The backup was taken on Sunday (can't remember if I've mentioned that), which was before this all started. It's a dedicated server, the particular data-centre I'm with specifically has a server just for backing-up their systems HDD's. I guess it could be the Linux kernel itself, seeing as the server executes there. Though, I've never come across that problem, ever, in my Linux life!
Re: Server Hangs -
4Brothers - 25.10.2011
If you haven't edited the script when this problem occurred, Its not SA-MP, Its most likely the OS, Any updates for software and or hardware updates around the time this problem started?
Re: Server Hangs -
Ash. - 25.10.2011
Quote:
Originally Posted by 4Brothers
If you haven't edited the script when this problem occurred, Its not SA-MP, Its most likely the OS, Any updates for software and or hardware updates around the time this problem started?
|
Erm, no Hardware updates (not that I know of, but they have to be authorised by me as it's my hardware to begin with) - But; I did update EVERYTHING (through yum); this could be the cause. I'm just going to go for the full re-install, it will be quicker than reverting all those updates.
Thanks for your help though!
Ash
Re: Server Hangs -
4Brothers - 25.10.2011
Good luck mate
Re: Server Hangs -
Ash. - 25.10.2011
Quote:
Originally Posted by 4Brothers
Good luck mate
|
Cheers buddy
Just incase any players are actually reading this: Check the TruckingWorld forums; don't look here for updates, I simply won't post them here!
Re: Server Hangs -
Ash. - 26.10.2011
Update: Okay, the server hung again. I ran the "players" command to return the player list, and to kick all the connected ID's (which seems to get the server working again).
It looks like this:

The list should be sorted by player id, right? So 0, 1, 2, 3, 4, 5, 6... but, in that list, the order is wrong! I'm still awaiting on the final backup being downloaded from the backup server in my data-centre, and so it hasn't actually be reinstalled yet. I did do, a "yum update" - which updates all the software and drivers on the dedicated server. This, seemed to work for about 12 hours; then it started hanging again. I'm just going to go for the full re-install of the operating system, when the backup is finally downloaded and ready to go on my home network server.
Thanks,
Ash
Re: Server Hangs - Riddy - 26.10.2011
I see, You got any NPCs?