Official Soldat Forums

Soldat Talk => Need Help? Report Bugs! => Topic started by: kicikici on January 17, 2016, 02:45:15 am

Title: Server crash after start ("" is an invalid integer)
Post by: kicikici on January 17, 2016, 02:45:15 am
I have restarted one of my servers today. Now I am still getting this bug. Everything was fine until that restart.

Code: [Select]
             -= Soldat Dedicated Server 1.6.9 - 2.7.8 =-

----------------------------------------------------------------
         Soldat Dedicated Server initializing...
----------------------------------------------------------------

   Need help running your server?
   IRC: #soldat.devs @ irc.quakenet.org

   ---> http://forums.soldat.pl/

   Additional parameters:
   ./soldatserver -p PORT -l MAXPLAYERS -k PASSWORD
   Example: ./soldatserver -p 23073 -l 16 -k "my pass"


 Compiled with FreePascal (Indy 10)

Server Encountered an error:
"" is an invalid integer
Shutting down server...
Shutting down admin server...

Any ideas? Probably deleting all files and setting everything from start will solve this problem but maybe someone knows something about it.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: darDar on January 17, 2016, 07:29:26 am
Maybe there is something missing? e.g; in the soldat.ini? empty adminlog = "" ?
Title: Re: Server crash after start ("" is an invalid integer)
Post by: darDar on January 17, 2016, 08:41:49 am
Server Encountered an error:
"" is an invalid integer
Shutting down server...
Shutting down admin server...

Well, I get the same now.

Edit1: scripting = 0 will fix this.
Edit2: scripting = 1 works again.

just change scripting to off and on again and restart, worked for me.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: KoGAi on August 24, 2017, 02:29:13 pm
We're getting the same thing, however nothing has changed recently. It happens so sporadically, even when the servers are empty, that it's either the entire server itself or some kind of server bug being exploited.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: You Got Served! on August 24, 2017, 03:12:03 pm
[!] Update

Can confirm, the kid is at it again.

He gets bored after a while.

Server Encountered an error:
"" is an invalid integer

Every 10 minutes or so.. for 2.5 hours =D

I have cycled scripts on & off and checked .ini files.

I need backup!
Title: Re: Server crash after start ("" is an invalid integer)
Post by: Hubiq on August 24, 2017, 05:17:14 pm
Today 30 servers have disappeared. Probably this error is the cause  :|
Title: Re: Server crash after start ("" is an invalid integer)
Post by: KoGAi on August 24, 2017, 07:02:28 pm
Yep, it first started around 9:30 AM US ET, which means it must be an unemployed individual, most likely under-aged with loads of time at hand.
We would appreciate any feedback from the developers to perhaps issue a permanent fix or advise on how to prevent it from happening. I know there are new communities out there with inexperienced server admins that may succumb to this more than others.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: Hubiq on August 25, 2017, 12:38:54 pm
This bug totally destroys the game. And developers? They have it in their ass.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: Petterkowski on August 25, 2017, 12:45:49 pm
Servers are still disconnecting. Let's just hope it's going to be taken care of asap :]
Title: Re: Server crash after start ("" is an invalid integer)
Post by: Shoozza on August 26, 2017, 02:33:39 am
A few things that might help the devs to quickly figure out what is causing the bug:

Does it happen on windows or linux or mac servers (or some/all of them)?
Are there patterns when this bug happens more often (game modes, scripting on/off, player count, etc, soldat.ini/server.ini for comparisson (don't forget to remove admin passwords before uploading))?
Also log files could come in handy (again make sure to remove passwords if someone wrote it in chat).

Thanks ;)
Title: Re: Server crash after start ("" is an invalid integer)
Post by: kicikici on August 26, 2017, 04:20:00 am
IMO someone is messing with ip/hwid. Recently I had a hacker who have tried crash my servers using repeatedly login as tcp admin using bad password. Maybe he found better way?

From logs, I saw something like this (lack of hwid):
17-08-13 11:08:08 78.166.250.30:23073| requesting game...
17-08-13 11:08:14 78.166.250.30:23073| requesting game...

Yesterday, I realized that one of my servers wont start after few invalid integers crashes. After investigating, I found banned ip in banned.txt which looked like xxx.xxx.xxx.xxx:23073)
No idea why that ip contained ":23073)".
Title: Re: Server crash after start ("" is an invalid integer)
Post by: Shoozza on August 26, 2017, 05:20:45 am
What did you do to get it back up?
I just checked and if the banned.txt or bannedhw.txt contain invalid text (not numbers) the "" is not an valid integer number will happen.
Does the server still crash for you?
If so can you check if it starts if you use a clean banned.txt and bannedhw.txt?
Title: Re: Server crash after start ("" is an invalid integer)
Post by: kicikici on August 26, 2017, 06:47:11 am
Yes, I just cleaned these txt's. Server works normally now.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: Hubiq on August 26, 2017, 07:41:25 am
Starts again... I played on 3 public servers (10 minutes ago) and each server has been disabled.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: KoGAi on August 26, 2017, 09:31:23 am
Well, that may be true, however servers that have no data inside those files will also be disabled. Our servers turn themselves on automatically so it isn't any more pernicious than that. It is still surprising that the issue was reported almost 2 years ago and there hasn't been an official feedback from the developers or a fix. The servers do not get anything logged other than the errors, and it seems to be happening for Linux users as well.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: Shoozza on August 26, 2017, 03:24:39 pm
If someone has these issues (and can update soldatserver + test it) please contact me (pm here or better on discord) and I'll see if we can figure out what's the reason for it.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: skrX on August 26, 2017, 04:28:36 pm
I had the same thing, every now and then the server loses connection

host: gshost.us
Title: Re: Server crash after start ("" is an invalid integer)
Post by: soldat-game on August 26, 2017, 05:12:00 pm
Oh no others also have discovered how to change HWID :( Shoozza you maybe implemented functions for hacked servers knowing your hacking history 1.5.0 :))
Title: Re: Server crash after start ("" is an invalid integer)
Post by: jrgp on August 27, 2017, 02:50:02 pm
I had the same thing, every now and then the server loses connection

host: gshost.us

I just implemented the tweak per https://forums.soldat.pl/index.php?topic=44957.0 on all my soldat servers in my EU region. If your server is there maybe that fix will help you. Let me know which server is yours (maybe PM me) and I can dig deeper for you.
Title: Re: Server crash after start ("" is an invalid integer)
Post by: You Got Served! on August 27, 2017, 03:31:26 pm
Great work.

Thanks to Helloer, Moroes & jrgp

You guys are K!ngs <3