Strange messages in logs

General discussion and help regarding JK2MV.
Post Reply
KingYodah
Posts: 15
Joined: 05 Mar 2017, 21:06

Strange messages in logs

Post by KingYodah »

Hoi hoi, I was recently checking our server logs, and they were flooded with insane amount of strange messages:

MSG_WriteBits: overflow writing -64778 in 16 bits [field delta_angles[1] offset 0]
MSG_WriteBits: overflow writing -129721 in 16 bits [field delta_angles[0] offset 0]
MSG_WriteBits: overflow writing -64778 in 16 bits [field delta_angles[1] offset 0]
MSG_WriteBits: overflow writing -129721 in 16 bits [field delta_angles[0] offset 0]

There were millions of such or similar messages in logs, the log file is usually in size of MBs or tens of MBs and is usually in txt format, but until server restart the log file grew to enormous 450 MB. Server restart made the messages stop coming, but not long after they started flooding in again. We never saw such messages before. Server had recently JK2MV updated to 1.3, could it be related to it or JK2MV itself? Or what could have been triggering the messages? A bug, attempt to attack the server, maintenance of something? Idk. Very recently these messages don't seem appearing though.

~cheers
User avatar
fau
Staff
Posts: 433
Joined: 16 Aug 2015, 01:01
Location: Warsaw / Poland
Contact:

Re: Strange messages in logs

Post by fau »

These are developer messages and should show up only with "developer 1" cvar setting. Make sure it's turned off on your server.
KingYodah
Posts: 15
Joined: 05 Mar 2017, 21:06

Re: Strange messages in logs

Post by KingYodah »

fau wrote: 14 Nov 2017, 23:15 These are developer messages and should show up only with "developer 1" cvar setting. Make sure it's turned off on your server.
It was set to "1", okay ty
KingYodah
Posts: 15
Joined: 05 Mar 2017, 21:06

Re: Strange messages in logs

Post by KingYodah »

And is it possible to disable those messages in other way? I was told that by changing that cvar to 0 it will affect some things regarding Quake3 UDP message logs or what it is which can be useful to see if someone is trying to attack server.
Kevin
Administrator
Posts: 393
Joined: 07 Jun 2015, 08:36

Re: Strange messages in logs

Post by Kevin »

Doesn't developer mode log every time someone press "Get new list", check server info, etc? In that case, do you realize how quickly your log could go from empty to so massive you can't find anything?

Should only really be used for debugging and other developer things.
KingYodah
Posts: 15
Joined: 05 Mar 2017, 21:06

Re: Strange messages in logs

Post by KingYodah »

Kameleon wrote: 17 Nov 2017, 21:15 Doesn't developer mode log every time someone press "Get new list", check server info, etc? In that case, do you realize how quickly your log could go from empty to so massive you can't find anything?

Should only really be used for debugging and other developer things.
If someone is furiously smashing "Get new list" so hard in order to trigger continuous streak of those messages then I guess so. But that would trigger getinfo/getstatus rather than MSG_WriteBits overflow I think.

Now to track speed, probably depends on frequency of those messages but, there was 4 days span between last 2 restarts and during it log file grew to almost 100 MB size. The first time I restarted server in attempt to stop those messages was 6 days ago, that log file contains period spanning two weeks into past and has 453 MB size.
User avatar
fau
Staff
Posts: 433
Joined: 16 Aug 2015, 01:01
Location: Warsaw / Poland
Contact:

Re: Strange messages in logs

Post by fau »

developer 1 is only for development purposes so I don't see it as an issue.

However using these messages to detect dos attacks makes sense, I'll make some of them visible with developer 0 in next release. For more details about attacks you should use system logs though.
User avatar
fau
Staff
Posts: 433
Joined: 16 Aug 2015, 01:01
Location: Warsaw / Poland
Contact:

Re: Strange messages in logs

Post by fau »

Ok so in 1.4 these messages no longer appear (unless you enable them with com_debugMessage). Also there is a new dos/ddos protection system and diagnostic messages about attacks will show up without developer 1 and without spamming the console so again I strongly advice to disable /developer 1 on your servers :-)
KingYodah
Posts: 15
Joined: 05 Mar 2017, 21:06

Re: Strange messages in logs

Post by KingYodah »

Great, thank you!
Post Reply
Created by Matti from StylesFactory.pl and Warlords of Draenor (modified by jk2.info)
Powered by phpBB® Forum Software © phpBB Limited