fodev.net

Other => FOnline:2238 Forum => Archives => General Game Discussion => Topic started by: Pandemon on May 01, 2010, 10:11:43 am

Title: The problem with daily crash
Post by: Pandemon on May 01, 2010, 10:11:43 am
I've noticed that the server crashes in the morning (or even earlier) when "everybody are sleeping" and is off until any Dev will come. When he come, he just turn it on in 2 minutes.
So I suppose there is no problem to start the server whenever it gets crashed but there isn't noone to turn it on.

My idea is to make another application which will watch work of FOnline (watch the process) and when it crash new application will immidiately turn server on.
And I know that write this kind of application is very simple, f.e. in C# because I've done something like that before.

That's just suggest to keep the server still on.
Title: Re: The problem with daily crash
Post by: Endless on May 01, 2010, 10:17:55 am
This is too risky. Because should the server crash because of something serious, integrity needs to be checked before it's rebooted. Or bad bad things can happen to players/inventories/ etc. This is the safe way :)
Title: Re: The problem with daily crash
Post by: Pandemon on May 01, 2010, 10:20:13 am
Who said that this application wouldn't catch exceptions caused by crash of FOnline?
The server crash, say the exception, application save exception message, turn server on and when Dev will come he will read what exception was catched.

Also that would solve the problem of server online time which is already probably about 12/24 daily.
Title: Re: The problem with daily crash
Post by: blahblah on May 01, 2010, 04:37:35 pm
There already was an watchdog setup to see when the application crashes and rebooted it. Then players started losing characters because the files were corrupt.
Title: Re: The problem with daily crash
Post by: Pandemon on May 02, 2010, 08:13:59 pm
So, there are only two explanations:
1) FOnline server files were (are?) written not-properly
2) "watch-dog" was written not-properly

If this second, I don't see a problem to fix it, if that first... well I dunno how looks server engine so I can't say anything in this topic.
Anyway, I'd like to hear an opinion of Dev.