Linux Server "exit" itself?

Old bugs stored here for reference.
Locked
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Linux Server "exit" itself?

Post by John Adams » Tue Apr 02, 2013 7:00 pm

Not sure if this is a real bug yet, but this is the weirdest thing... I saw the DB Project server was down, checked the log to see what the crash was... and there was no crash. It "Exit"d... like someone at Windows console typed "exit".
23:56:04 D Player: Toggling Character OFFLINE!
23:56:04 D CClient: Client Disconnect...
23:56:04 D Zone: Starting zone shutdown timers...
23:56:04 I Zone: Initiating zone shutdown of 'FrostfangSea'
23:56:05 I Zone: Completed zone shutdown of 'FrostfangSea'
23:56:05 I World: Zone shutdown complete
23:56:05 D World: Shutting down LUA interface...
23:56:05 D World: Removing connection...
23:56:05 D World: Removing connection...
23:56:05 I World: Exiting... we hope you enjoyed your flight.
BUTT! No one but me has access, and I certainly was not away typing at any consoles at 11:56pm last night :) Not only that, but I'm pretty sure Linux doesn't even support console commands, especially in a shelled launch (&)... so I have no idea wtf happened here. I'll keep an eye on it though.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Linux Server "exit" itself?

Post by Jabantiz » Tue Apr 02, 2013 7:54 pm

The only other way for the server to shutdown like that is in void CatchSignal(int sig_num), did you get a log for catch signal?

Code: Select all

LogWrite(WORLD__WARNING, 0, "World", "Got signal %i", sig_num);
Looking at the code more closely, if this function was called the server will shut down, but you won't always get a log. If this happens again will have to look into why this function gets called.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Linux Server "exit" itself?

Post by John Adams » Tue Apr 02, 2013 8:20 pm

No, what you see up there is all there was. Foof logging off, and the server executing an "exit".

There must have been a catch though, if the server had exited cleanly, the "persist_world" script would have restarted it as a crash, and there was no crashlog... so it exited, but hung. If it happens again, I'll put the Dev server in gdb and try to catch it.

Locked

Who is online

Users browsing this forum: No registered users and 0 guests