Kicking X because they didn't logon to the game.
#1

I upgraded my server to 0.3x but now everyone gets kicked after joining:
Код:
[12:54:04] Kicking 78.188.189.188 because they didn't logon to the game.
This problem occurred ~12 hrs after serverstart.

Before that, this message was printed to the server log:

Код:
[12:05:20] Incoming connection: 78.188.189.188:2453
[12:05:30] Invalid client connecting from 78.188.189.188
The player count were frozen at 28.

The problem is that everyone gets kicked after joining, any idea how to solve this?

I posted it in 0.3x section because it seems to be new in 0.3x.
Reply
#2

No other server has reported this. At least, not yet.

The 'Kicking {} because they didn't logon to the game.' message is normal. It means the client is too slow to connect and probably has a high amount of packet loss. In previous versions of the SA-MP server, the same problem could happen, although the player would eventually just have to quit and try reconnecting.

Are you sure there aren't external factors causing this problem? There could some type of packet filtering in the firewall. The physical server which hosts the game server could be under attack.

You can PM me a bigger server log if you like. If most servers work fine and there are problems like this, it usually turns out that it's not caused by SA-MP.
Reply
#3

Quote:
Originally Posted by Kalcor
Посмотреть сообщение
The 'Kicking {} because they didn't logon to the game.' message is normal. It means the client is too slow to connect and probably has a high amount of packet loss. In previous versions of the SA-MP server, the same problem could happen, although the player would eventually just have to quit and try reconnecting.
Thanks for this information. It's weird because everyone were kicked again after rejoining.

I'm sure that it is not caused by server's firewall because no changes have been made to it and there were no problems before the 0.3x upgrade. I haven't noticed any other attacks.

When I tried to stop the SA-MP server with CTRL+C (Screen) it failed, it literally seemed to be frozen also the player count. I had to kill hole process.

I can't send you the log because I've lost it while overriding it accidentally but it looked like this:
Код:
Incoming connection: X
Kicking X because they didn't logon to the game.
Incoming connection: X
Kicking X because they didn't logon to the game.
Incoming connection: X
Incoming connection: X
Kicking X because they didn't logon to the game.
Kicking X because they didn't logon to the game.
And so on...


Код:
Invalid client connecting from 78.188.189.188
was printed 1 time before the "Kicking" stuff occurred.
Reply
#4

Maybe you should check if there is any infinite loop, or check where the server hangs at.
I had weird bugs that was finally found to be caused by something like using strins for unknown-sized strings (cmdtext[] in OnPlayerCommandText).
Reply
#5

Same problem
Reply
#6

Quote:
Originally Posted by nGen.SoNNy
Посмотреть сообщение
Same problem
You should provide more information such as the server log.
Reply
#7

Didn't seem to occur to me yet using the 0.3X R1-2. I think the problem is elsewhere.
Reply
#8

I also saw similar messages today. I watched at the server console and found that the whole computer was hanging. Players weren't disconnected to the server but they couldn't do anything.
They were obviously connected, but the server tried to kick them (but failed). I try to show the player list and the server couldn't get information from some players. I tried to kick the players manually so as to prevent data loss, weird run-time error started to occur, and it finally crashed:

Код:
[2013-02-05 18:57:53] [18:57:53] playerid18(18) entered command:/t
[2013-02-05 18:58:01] [18:58:01] playerid28(28) entered command:/v uran
[2013-02-05 18:58:02] [18:58:02] playerid28(28) entered command:/lights
[2013-02-05 19:00:41] Incoming connection: (valid ip 1):52804
[2013-02-05 19:01:11] Kicking (valid ip 1) because they didn't logon to the game.
[2013-02-05 19:01:22] Incoming connection: (valid ip 1):52805
[2013-02-05 19:01:55] Incoming connection: (valid ip 2):49215
[2013-02-05 19:02:25] Kicking (valid ip 2) because they didn't logon to the game.
[2013-02-05 19:03:16] Incoming connection: (valid ip 3):62227
[2013-02-05 19:03:46] Kicking (valid ip 3) because they didn't logon to the game.
[2013-02-05 19:04:56] Incoming connection: (valid ip 3):62657
[2013-02-05 19:05:26] Kicking (valid ip 3) because they didn't logon to the game.
[2013-02-05 19:05:52] Incoming connection: (valid ip 4):9918
[2013-02-05 19:06:22] Kicking (valid ip 4) because they didn't logon to the game.
[2013-02-05 19:06:59] Incoming connection: (valid ip 4):9920
[2013-02-05 19:09:28] Incoming connection: (valid ip 5):55585
[2013-02-05 19:09:58] Kicking (valid ip 5) because they didn't logon to the game.
[2013-02-05 19:11:27] Incoming connection: (valid ip 6):4588
[2013-02-05 19:11:57] Kicking (valid ip 6) because they didn't logon to the game.
[2013-02-05 19:12:26] Incoming connection: (valid ip 6):4602
[2013-02-05 19:13:39] Incoming connection: (valid ip 4):10784
[2013-02-05 19:14:09] Kicking (valid ip 4) because they didn't logon to the game.
[2013-02-05 19:17:10] Incoming connection: (valid ip 7):2209
[2013-02-05 19:17:16] Incoming connection: (valid ip 7):2210
[2013-02-05 19:17:57] Incoming connection: (valid ip 7):2211
[2013-02-05 19:18:27] Kicking (valid ip 7) because they didn't logon to the game.
[2013-02-05 19:18:49] Incoming connection: (valid ip 2):53741
[2013-02-05 19:19:00] Incoming connection: (valid ip 3):60274
[2013-02-05 19:19:00] Incoming connection: (valid ip 4):11056
[2013-02-05 19:19:02] Incoming connection: (valid ip 7):2212
[2013-02-05 19:19:26] Incoming connection: (valid ip 6):1243
[2013-02-05 19:19:30] Kicking (valid ip 3) because they didn't logon to the game.
[2013-02-05 19:19:30] Kicking (valid ip 4) because they didn't logon to the game.
[2013-02-05 19:19:32] Kicking (valid ip 7) because they didn't logon to the game.
[2013-02-05 19:19:56] Kicking (valid ip 6) because they didn't logon to the game.
[2013-02-05 19:20:20] Incoming connection: (valid ip 6):1263
[2013-02-05 19:20:50] Kicking (valid ip 6) because they didn't logon to the game.
[2013-02-05 19:21:35] Incoming connection: (valid ip 3):53490
[2013-02-05 19:22:05] Kicking (valid ip 3) because they didn't logon to the game.
[2013-02-05 19:23:49] Incoming connection: (valid ip 4):11294
[2013-02-05 19:32:25] Incoming connection: (valid ip 3):61802
[2013-02-05 19:32:55] Kicking (valid ip 3) because they didn't logon to the game.
Console input: players
[2013-02-05 19:33:54] ID	Name	Ping	IP
[2013-02-05 19:33:54] 0	npc1	-1	255.255.255.255 //NPCs are connected at localhost(127.0.0.1).
[2013-02-05 19:33:55] 1	npc2	-1	255.255.255.255
[2013-02-05 19:33:55] 2	npc3	-1	255.255.255.255
[2013-02-05 19:33:55] 3	npc4	-1	255.255.255.255
[2013-02-05 19:33:55] 4	npc5	47	127.0.0.1
[2013-02-05 19:33:55] 5	npc6	47	127.0.0.1
[2013-02-05 19:33:55] 6	npc7	23	127.0.0.1
[2013-02-05 19:33:55] 7	npc8	23	127.0.0.1
[2013-02-05 19:33:55] 8	npc9	23	127.0.0.1
[2013-02-05 19:33:55] 9	npc10	23	127.0.0.1
[2013-02-05 19:33:55] 10	npc11	17	127.0.0.1
[2013-02-05 19:33:55] 11	npc12	24	127.0.0.1
[2013-02-05 19:33:55] 12	npc13	23	127.0.0.1
[2013-02-05 19:33:55] 13	npc14	31	127.0.0.1
[2013-02-05 19:33:55] 14	npc15	26	127.0.0.1
[2013-02-05 19:33:55] 15	npc16	53	127.0.0.1
[2013-02-05 19:33:55] 17	playerid17	-1	255.255.255.255
[2013-02-05 19:33:55] 18	playerid18	-1	255.255.255.255
[2013-02-05 19:33:55] 19	playerid19	-1	255.255.255.255
[2013-02-05 19:33:55] 20	playerid20	-1	255.255.255.255
[2013-02-05 19:33:55] 21	playerid21	23	***.***.***.***
[2013-02-05 19:33:55] 22	playerid22	-1	255.255.255.255
[2013-02-05 19:33:55] 25	playerid25	35	***.***.***.***
[2013-02-05 19:33:55] 28	playerid28	-1	255.255.255.255
[2013-02-05 19:35:00] Incoming connection: (valid ip 9):62713
[2013-02-05 19:35:30] Kicking (valid ip 9) because they didn't logon to the game.
[2013-02-05 19:35:36] Incoming connection: (valid ip 9):65088
Console input: kick 17
[2013-02-05 19:35:36] playerid17 <#17 - 255.255.255.255> has been kicked.
[2013-02-05 19:35:36] Incoming connection: (valid ip 8):63990
[2013-02-05 19:35:37] [debug] Run time error 4: "Array index out of bounds"
[2013-02-05 19:35:37] [debug]  Accessing element at index 1 past array upper bound 13
[2013-02-05 19:35:37] [debug] AMX backtrace:
[2013-02-05 19:35:39] [debug] #0 0000000c in ?? () at (server path)\pawno\include\float.inc:111
[2013-02-05 19:35:39] [debug] Run time error 4: "Array index out of bounds"
[2013-02-05 19:35:39] [debug]  Accessing element at index 2315962 past array upper bound 13
[2013-02-05 19:35:39] [debug] AMX backtrace:
[2013-02-05 19:35:39] [debug] #0 00000008 in ?? () at (server path)\pawno\include\float.inc:111
[2013-02-05 19:35:39] [debug] #1 native CallLocalFunction () [00471c30] from samp-server.exe
[2013-02-05 19:35:39] [debug] Run time error 5: "Invalid memory access"
[2013-02-05 19:35:39] [debug] Run time error 5: "Invalid memory access"
[2013-02-05 19:35:39] [debug] AMX backtrace:
[2013-02-05 19:35:39] --- Server Shutting Down.
[2013-02-05 19:35:39] [debug] Run time error 6: "Invalid instruction"
[2013-02-05 19:35:39] [debug]  Unknown opcode 0x78 at address 0x00000008
[2013-02-05 19:35:39] [debug] AMX backtrace:
[2013-02-05 19:35:39] [debug] #0 native CallRemoteFunction () [00471880] from samp-server.exe
[2013-02-05 19:35:39] [debug] #1 native CallRemoteFunction () [00471880] from samp-server.exe
[2013-02-05 19:35:40] [debug] #2 0005f1b0 in public Audio_OnPlayerDisconnect (playerid=0, reason=2) at (gamemode script path):11533
[2013-02-05 19:35:41] [debug] #3 native CallLocalFunction () [00471c30] from samp-server.exe
[2013-02-05 19:35:41] [debug] #4 0000e6d0 in public Itter_OnPlayerDisconnect (playerid=0, reason=2) at (server path)\pawno\include\audio.inc:166
[2013-02-05 19:35:41] [debug] #5 native CallLocalFunction () [00471c30] from samp-server.exe
[2013-02-05 19:35:41] [debug] #6 00009e94 in public Streamer_OnPlayerDisconnect (playerid=0, reason=2) at (server path)\pawno\include\foreach.inc:735
[2013-02-05 19:35:41] [debug] #7 native CallLocalFunction () [00471c30] from samp-server.exe
[2013-02-05 19:35:41] [debug] #8 000092e8 in public SSCANF_OnFilterScriptInit (... <2 variable arguments>) at (server path)\pawno\include\streamer.inc:361
[2013-02-05 19:35:41] [debug] #9 000031ec in public OnPlayerDisconnect (playerid=0, reason=2) at (server path)\pawno\include\sscanf2.inc:184
[2013-02-05 19:35:41] [debug] #10 native Kick () [0046eca0] from samp-server.exe
[2013-02-05 19:35:41] [debug] #11 0005f04c in public Audio_OnPlayerDisconnect (playerid=0, reason=0) at (gamemode script path):11531
[2013-02-05 19:35:41] [debug] #12 native CallLocalFunction () [00471c30] from samp-server.exe
[2013-02-05 19:35:41] [debug] #13 0000e6d0 in public Itter_OnPlayerDisconnect (playerid=0, reason=0) at (server path)\pawno\include\audio.inc:166
[2013-02-05 19:35:41] [debug] #14 native CallLocalFunction () [00471c30] from samp-server.exe
[2013-02-05 19:35:42] [npc:part] npc1 has left the server (0:2)
[2013-02-05 19:35:42] [debug] #15 001d18c8 in KickAllPlayers () at (gamemode script path):45315
[2013-02-05 19:35:42] [debug] #16 native CallLocalFunction () [00471c30] from samp-server.exe
[2013-02-05 19:35:42] [debug] Run time error 6: "Invalid instruction"
[2013-02-05 19:35:42] [debug]  Unknown opcode 0x78 at address 0x00000008
[2013-02-05 19:36:07] Kicking (valid ip 8) because they didn't logon to the game.
[2013-02-05 19:36:17] Incoming connection: (valid ip 8):63992
[2013-02-05 19:36:22] Incoming connection: (valid ip 9):63788
//Server crashed and closed here
Name and IP addresses are hidden for privacy.
I'm not sure if it is SA-MP related, or it is actually script/plugin problem. One more interesting thing, i start the server at about 7:30am, and the problem starts at 7pm, which is also about 12 hours as Mellnik's server did.
Reply
#9

You should probably ignore what's going on in the log there. The network thread is still running, while the main server thread running your script and all the SA-MP server logic is in an infinite loop. That is the real problem.

If you're running on linux, there is a good tutorial here about getting a backtrace out of an infinite loop using gdb: http://www.unknownroad.com/rtfm/gdbtut/gdbinfloop.html.

Unfortunately on Windows it's more difficult to get the backtrace unless you have Visual Studio installed or some third-party debugger.

The SA-MP server is not known to have any issues with entering infinite loops, so I'd say it's going to be your script or a plugin causing it.
Reply
#10

i have this problem too
Reply
#11

Had the same problem a few minutes ago as described here.

150 players are connected, those connection logs appear and the server freezes. I didn't have to restart it, the new connections stopped after a few minutes.

First a bunch of;
Kicking [...] because they didn't logon to the game.

Then;
(1) Invalid client connecting from [...]

server_log.txt here.

plugins crashdetect2.so irc2.so mysql.so streamer.so sscanf.so
Reply
#12

Hmm, so I am not alone : p

Plugins I used:
crashdetect 4.9
mysql R7-2 (http://egaming.ro/MySQL/R7-2/)
streamer 2.6.1 R80
sscanf 2.8.1

And my custom one but it has no inf loops at all.
Reply
#13

I'm also experiencing this issue, yesterday I found these messages in my server log file. I'm pretty sure there are no infinite loops, but I have noticed it happened shortly after an attempt to access an invalid array elements (out of bounds) - However that may be a co-incidence, there was also a large number of deaths around the same time as well. If anyone has any more information on this subject it would be greatly appreciated.
Reply
#14

i think the problem is in plugins because all who face this problem have same plugin directory and mysql is recently get updated to its newer version (so check that thing also) .
Reply
#15

Hi,

Maybe it is the MySQL plugin, I cannot upgrade due to the massive difference in versions that has been introduced, it would not be practical to convert to the new mysql functions. However I did solve this issue by threading a query that I neglected to thread previously. Perhaps that is the issue for others.

TJ
Reply
#16

Hi TTJJ,

i just compiled r15 (shared) myself and after 2 hours the same problem again. I used r14 (static) before -> No kicking problems but crash after few hours.
Could you describe exactly what you changed in order to solve the problem?

The last query which run through was:
PHP Code:
    format(querysizeof(query), "SELECT `Hash` FROM `"#TABLE_ACCOUNT"` WHERE `Name` = '%s' AND `Hash` = MD5('%s');", __GetName(playerid), escape); 
To send the query, i'm using the mysql_query macro but this shouldnt be the problem.
pawn Code:
mysql_query(query, THREAD_CHECKPLAYERPW, playerid, g_SQL_handle);
Reply
#17

i am not able to enter my server because it keeps kicking me

[21:39:48] Number of vehicle models: 186
[21:39:48] Incoming connection: 127.0.0.1:56249
[21:39:48] Incoming connection: 127.0.0.1:56250
[21:39:49] Incoming connection: 127.0.0.1:56252
[21:39:49] Incoming connection: 127.0.0.1:56251
[21:39:49] Incoming connection: 127.0.0.1:56253
[21:40:10] Incoming connection: 127.0.0.1:57787
[21:40:18] Kicking 127.0.0.1 because they didn't logon to the game.
[21:40:18] Kicking 127.0.0.1 because they didn't logon to the game.
[21:40:19] Kicking 127.0.0.1 because they didn't logon to the game.
[21:40:19] Kicking 127.0.0.1 because they didn't logon to the game.
[21:40:19] Kicking 127.0.0.1 because they didn't logon to the game.
[21:40:40] Kicking 127.0.0.1 because they didn't logon to the game..


i got 5 NPC bots
Reply
#18

I see this VERY occasionally in my logs. Like maybe once or twice per day. Only plugins I'm running are irc, streamer, sscanf2 and I think thats it. No MySQL or anything like that.

i've never had problems entering my server, even with multiple clients. I've never heard of anyone complaining about it either.
Reply
#19

I have the same problem, my server sometimes get stuck and random times, sometimes multiple times a day, but some days it runs fine, also my logs are not giving any relevant information, I will add some debug lines in my gamemode and see if I can find out if it is caused by a infinite loop or not, when I find it, I will reply here if it is usefull for any of you.
Reply
#20

have same problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)