Author Topic: Why they crash ?  (Read 14963 times)

0 Members and 1 Guest are viewing this topic.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Why they crash ?
« on: June 05, 2007, 05:08:45 am »
My linux servers crash. 2-3 times a day they just crash. No errors no nothing, one moment they are there next moment they are gone. This happened at selfkill and it happens at my new host too. Why ? Do your servers run days without a crash ? Any ideas on what to do maybe not to completely fix it but at least to make it happen less often ? And I don't want to disable scripting because same thing happens even with scripting off.

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: Why they crash ?
« Reply #1 on: June 05, 2007, 10:23:32 am »
Try to have your servers run with actual logging, ie:
Code: [Select]
./soldatserver > log.txt 2>&1 &disown
Most likely, you will be able to see the error then; and it's probably something along the lines of a segfault.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Why they crash ?
« Reply #2 on: June 05, 2007, 12:07:57 pm »
aha, good, I'm not alone.

Every single server I host crashes often, every day.  All 56 of them.


Leo, I have a hunch.  Does your server have dual cores or dual processors?


This only started happening to me in 1.4.1.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Why they crash ?
« Reply #3 on: June 05, 2007, 12:26:56 pm »
It's a Celeron at 3066 MhZ

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Why they crash ?
« Reply #4 on: June 05, 2007, 12:27:56 pm »
Single core or dual?

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Why they crash ?
« Reply #5 on: June 05, 2007, 12:43:43 pm »
Single, I am not going to start selling servers :)

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Why they crash ?
« Reply #6 on: June 05, 2007, 12:46:33 pm »
I know, it was just a hunch

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Why they crash ?
« Reply #7 on: June 05, 2007, 12:48:27 pm »
Well, I am just running servers and I can't know what causing this. Enesce must find the reason and fix it I suppose.

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: Why they crash ?
« Reply #8 on: June 05, 2007, 03:53:16 pm »
Need excessive logging information to track things like this down; more information makes it more likely that the server can be put into a position where it can be induced to crash; if this happens it can be fixed.

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Why they crash ?
« Reply #9 on: June 05, 2007, 04:01:38 pm »
Servers with a lot of busy slots over a long period of time seem to crash much more often than servers with less slots and less usage.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Why they crash ?
« Reply #10 on: June 05, 2007, 04:31:40 pm »
Servers with a lot of busy slots over a long period of time seem to crash much more often than servers with less slots and less usage.

I've heard this from a few of my customers as well

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Why they crash ?
« Reply #11 on: June 05, 2007, 04:53:45 pm »
Servers with a lot of busy slots over a long period of time seem to crash much more often than servers with less slots and less usage.
True, my gather server with 8 slots and not so much usage never crash. Same with any of my 16 slots server if it runs with a few players. Servers crash only if they are full and busy.
« Last Edit: June 05, 2007, 04:55:25 pm by Leo »

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Why they crash ?
« Reply #12 on: June 05, 2007, 05:21:49 pm »
Oh and also, I have scripting disabled.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Why they crash ?
« Reply #13 on: June 05, 2007, 06:05:46 pm »
I'm running a server on Windows. It has never crashed before (except when i messed up with scripts), but today it crashed showing one of that ugly and useless error message boxes, and the server was empty. No idea why that happened.
urraka

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Why they crash ?
« Reply #14 on: June 05, 2007, 06:44:22 pm »
what ugly and useless messages?

Offline HEX

  • Major
  • *
  • Posts: 77
  • =tNt=
    • SoldatX Brazilian Community
Re: Why they crash ?
« Reply #15 on: June 05, 2007, 07:11:08 pm »
Yes, I have this problem too.
Some of my servers just get crashed one time per week. It runs on Windows.



Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Why they crash ?
« Reply #16 on: June 05, 2007, 09:24:11 pm »
I'd give some input into this but I cant really. My servers can run for almost a week and not crash, my TW servers which are always full only restart about once every 3 days.

And yeah, need logging. All errors ARE outputted into the console, there is never a crash with no error message.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Why they crash ?
« Reply #17 on: June 05, 2007, 09:32:04 pm »
what ugly and useless messages?

I guess it was an memory access violation message.

@EnEsCe: no error was outputted on the console, i checked the logs too. It just closed as if i had used ctrl+alt+del
urraka

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Why they crash ?
« Reply #18 on: June 05, 2007, 09:40:46 pm »
Well then its an external error caused by something else other than the server's coding

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: Why they crash ?
« Reply #19 on: June 05, 2007, 10:02:16 pm »
what ugly and useless messages?

I guess it was an memory access violation message.

@EnEsCe: no error was outputted on the console, i checked the logs too. It just closed as if i had used ctrl+alt+del


If you're running on windows, don't start the binary directly, start it from cmd.exe. Windows closes console program windows when they terminate, whether they did it properly or not. You can see this if you deliberately put bad data into soldat.ini; the server will flash on the screen then disappear. Starting it from cmd.exe allows you to see what errors occur, and note that not all errors are logged to the log files, simply because certain conditions cause the OS to terminate the application directly, bypassing error catching.