Server's crashing every 7 minutes or so
#1

Hello,

I run an RPG script that runned very good for 6 months, but suddenly every 4 or 7 minutes (something around that) the server will crash.
How will it crash? well, first of all the commands and text doesn't work anymore and i see people keep repeating there last action (like some of them are running at the wall for example, then i see ''game mode restarting'' and the server restarts.

Nobody did the restart command and nobody can login to rcon since i change it a several times, or admin.

I debugged EVERY single ''public'' in my script except for OnPlayerText and OnPlayerCommandText, and the last logs before crash are:

Quote:

[16:11:05] [chat] [Gpisla]: iz ?
[16:11:08] [chat] [[ViP]Divine[CL]]: house car
[16:11:12] [chat] [[SFP]Mars[CL]]: admiral
[16:11:14] [DEBUG] SetRandomWeather()
[16:11:14] [chat] [[ViP]Future[HL]]: lol wacko
[16:11:16] [chat] [Tpisla]: I'm Marc Cripson, How are you?
[16:11:18] [chat] [Gpisla]: TPISLA ЬЙЙЙЙЙ
[16:11:20] [DEBUG] SendQuestionForMoney()
[16:11:20] [DEBUG] OnGameModeMission()
[16:11:20] [DEBUG] ResetMissions()
[16:11:24] [chat] [Tpisla]: Deam i'm John
[16:11:26] [chat] [[ViP]Divine[CL]]: good and whith you?
[16:11:31] [chat] [Gpisla]: He i'm Chuck Cripson how's your day
[16:11:31] [chat] [Tpisla]: My brothers name is marc
[16:11:33] [chat] [[SFP]Mars[CL]]: im john
[16:11:35] [chat] [[ViP]Future[HL]]: My name is Ugly Bitch what is your name?
[16:11:37] [chat] [[SFP]Mars[CL]]: john english
[16:11:49] [DEBUG] SendTeamMessage(ЄђfЌ
Г=‰j
[16:11:50] [chat] [Gpisla]: Future шууюжб
[16:11:53] [DEBUG] OnVehicleSpawn(91)
[16:11:54] [chat] [Tpisla]: I'm John Cripson
[16:11:57] [chat] [Gpisla]: He i'm Chuck Cripson how's your day
[16:12:00] [chat] [Tpisla]: Gpisla шууюжб
[16:12:01] [chat] [Gpisla]: >.<
[16:12:01] [DEBUG] OnVehicleSpawn(26)
[16:12:04] [chat] [Gpisla]: GRR

My server is hosted at ServerFFS and they run Linux, for if you want to know that.

More information:

* I don't know for sure if the server will crash without players.
* Sometime the ping of my server raises from ~20 to ~300 or even ~500, and then after a few seconds it's just back normal.

Then it stopped and started the gamemode again, please could you help me because all my players are leaving because of this!
Reply
#2

check the IP of players connecting.

also try doing this:

Run the server on your own private IP.

Don't connect or type any commands. See if it still crashes. If it does then check everything that happens players or no players.
e.g. OnGameModeInit, timers, createobjects etc...

If not, restart it then connect and do everything possible on the server. If it crashes then restart it, and:
Test everything, from what happens when you connect, to what commands you typed last etc...

If it doesn't crash then lock your public server and give some players the password. If it crashes then somewhere you have something that only affects ID 0. Test everything back from the last command etc..

If it doesn't crash then i believe your server is being attacked.

Reply
#3

or try Speaking to the ServerFFS team. They are quite helpful. When u log in you should see something like a 'live chat' button and they should hopefully respond. There might be problems with their server connection, which might explain your lag spikes.

Reply
#4

Quote:
Originally Posted by -The_Badger-
check the IP of players connecting.

also try doing this:

Run the server on your own private IP.

Don't connect or type any commands. See if it still crashes. If it does then check everything that happens players or no players.
e.g. OnGameModeInit, timers, createobjects etc...

If not, restart it then connect and do everything possible on the server. If it crashes then restart it, and:
Test everything, from what happens when you connect, to what commands you typed last etc...

If it doesn't crash then lock your public server and give some players the password. If it crashes then somewhere you have something that only affects ID 0. Test everything back from the last command etc..

If it doesn't crash then i believe your server is being attacked.

Thanks you really mutch my friend!

Okay here we go,
my server runned for 20 minutes on my own PC, that's longer then i should give him if i should let players go in it.
it's still not crashing, so that means that there are 2 possibilities:

* The problem is caused by the server host.
* The problem is caused by the script, somewhere around the text or/and command part.

I am now going into my server testing EVERY command!
Reply
#5

Quote:
Originally Posted by Andom
I am now going into my server testing EVERY command!
woah, before u do that, speak to ServerFFS first to see if the problem is on their side, saves u time having to type all ur commands.
Reply
#6

Quote:
Originally Posted by [B2K
Hustler ]
Quote:
Originally Posted by Andom
I am now going into my server testing EVERY command!
woah, before u do that, speak to ServerFFS first to see if the problem is on their side, saves u time having to type all ur commands.
Well, it's my script i think;

I was just in my server, didn't do any command, i was alt-tab to my desktop typing to someone on msn, i wanted to get back ingame with alt-tab and suddenly my PC started to lag for a few seconds (5 or something).

So i get ingame, i saw that my weather has changed (by my automatic weather system) and suddenly i couldn't do any command, i got to the desktop again and i saw that my server was crashed (with error, and send report yes or no)

This where my last logs with debugging everything i had in my gamemode:

Quote:

[17:03:15] [DEBUG] OnPlayerCommandText(0, /anim piss)
[17:03:15] [DEBUG] PlayAnimation(0, PAULNMAC, Piss_loop, 4.000000, 1, 1, 0)
[17:03:18] [chat] [[SFP]WackoX2]: t
[17:03:26] [DEBUG] RandomAnnounce()
[17:04:23] [DEBUG] SetRandomWeather()

--- Then it gave my server a report error.
Reply
#7

This happened to me im with ServerFFS

It is because you are going over the CPU limit

Try and contact Woet
Reply
#8

Quote:
Originally Posted by [SP
Foxy[FnC] ]
This happened to me im with ServerFFS

It is because you are going over the CPU limit

Try and contact Woet
But why it didn't hapend earlyer?

EDIT:
Now i even can't join my own server, my client is crashing now :S

Quote:

Exception At Address: 0x006D1136

Registers:
EAX: 0x00000036 EBX: 0x00000000 ECX: 0x00000000 EDX: 0x08200081
ESI: 0x02298088 EDI: 0x0D890A38 EBP: 0x02298088 ESP: 0x0022F1AC
EFLAGS: 0x00210246

Stack:
+0000: 0x00000000 0x0D890A38 0x006D6A5D 0x02298088
+0010: 0x0D89115C 0x0D890A38 0x006B0B7C 0x00000000
+0020: 0x0022F394 0x00000001 0x00000000 0x02536318
+0030: 0x0022F27C 0x00000000 0x00000000 0x000059ED
+0040: 0x00568D3E 0x00B99604 0x0D890A38 0x00000007
+0050: 0x012FBA8C 0x0022F29C 0x01166D8C 0x012FBA98
+0060: 0x0022F29C 0x0022F29C 0x012FBA80 0x00000002
+0070: 0x01166BE4 0x00000000 0x0022F29C 0x0022F29C
+0080: 0x012FBA5C 0x00000002 0x01166BC3 0x05F05418
+0090: 0x0022F29C 0x00000000 0x02536318 0x00000008
+00A0: 0x02536318 0x022A0008 0x00494EBB 0x0022F270
+00B0: 0x00494EF7 0x00000000 0x00000674 0x0022F394
+00C0: 0x00000008 0x20203333 0x20202020 0x00000200
+00D0: 0x02530338 0x00000001 0x0000004D 0x0022F2A8
+00E0: 0x0084815E 0x00000000 0x004216EA 0x00000000
+00F0: 0x00000002 0x00000001 0x00000000 0x0022F2D0
+0100: 0x0083741E 0x00000009 0x00432113 0x0D890A38
+0110: 0x00000002 0x00000001 0x02536318 0x02536318
+0120: 0x0022F2E4 0x0022F334 0x008374BB 0xFFFFFFFF
+0130: 0x00467B06 0x00000000 0x40400000 0x40000000

SCM Op: 0xA5, L: 1, Dump:
+0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0010: 00 00 00 00 4E 20 2A 02 00 00 00 00 00 00 00 00
+0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00C0: 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00
+00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Game Version: US 1.0

State Information: L: 0 N: 0

EDIT: Okay now i can go into my server, but all the skins are CJ and there ar 47541249 classes!!!
Reply
#9

I had This Problem on linux at first as after sometime shae at x-serverz went through all logs and found out it was a function in my plugins then he did something added a few files think he customed they and bam my server run sweet as it was xStreamers plugin was making mine mess up when ever a object moved but he did something to my Xstreamers.so file and now its fine
Reply
#10

Okay, i removed all plugins and filterscripts, let's hope it i'll work next time.
But it's really strange, it keeps crashing a random time, somewhere between 4 or 30 minutes, and if there aren't players it doesn't crash.
The script always worked good, but suddenly it doens't, and mostly if the server crashes the only thing my log sais is that a player typed some text, so that means the crash isn't one of all available public's in samp!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)