Sudden server shut down.
Hey guys,
I've built a DR plugin and I played it for a while, today evening some problem occured and it is really wierd, it is coming from my plugin because i disabled all plugins and left only it, and it still happened, and when I removed it, it didnt happen. The problem is that I play and sometimes it suddenly shuts down (Sending everyone the message "Server shutting down") and comes back after 5 seconds. What may cause it? How can I check where's the problem coming from? What is most common to cause it? Is there any good method to check those type of mysterious annoying problems? Just so you know, I debugged it and no error logs or bad logs indication on it doing something to the server. What to do?? D: |
Re: Sudden server shut down.
Did you disable auto-restart and then look at the server console when it "crashed"? You should try this as part of your debugging.
|
Re: Sudden server shut down.
If it says server shutting down (not an unknown crash), then it means the game knows about it. Check cstrike/logs, there should be written the reason why it is crashing the server.
|
Re: Sudden server shut down.
Yeah, I tried to check that, and before each shut down I saw in the console: "sv_restart" changed to "1"
I checked the cstrike/logs and it said before each shutdown World Round_Start event triggered, and then the sv_restart, and then server shutting down. I tried removing the "round_start" function from my code, and the server did not shutdown anymore! then I put it back and it kept on shutting down again. Thats how the logs look like, even though it doesnt remind Round_Start before Server crashing, I know its round_start cuz I disabled it and server does not shut down anymore. Code:
L 11/12/2011 - 14:39:50: Server cvar "sv_restart" = "1"PHP Code:
I hope I provided enough information, I wonder now if you can guys still help me. Thanks for the time, Diegork. EDIT: I just discovered something new, I discovered that when I DO NOT remove the round_Start public (put it in a note /* */) but DO put everything inside in NOTE (meaning I do like this:) PHP Code:
but when I put the whole round_start public in a note like this: PHP Code:
Is there something wrong with my logevent register then??: PHP Code:
• Metamod begins re-reading his plugins and then updating them. • All the clients on the server disconnect • Round_End is triggered • Server Shutdown. And it all happens on the same second (at the time of the log lines), it all happens in the same second.. That's the wierdest thing ever happened to me. What the heck also round_start has to do with this? (cuz when I remove it, the problem is fixed). |
Re: Sudden server shut down.
I discovered another thing. If I turn off either Round_Start event or Round_End event the server would work fine. If BOTH are working, it'll do server shutting down. I dont get ANY clues from the logs about the cause of server crash.
Why the heck it happens, it didnt happen to me before, I mean, why would it make it crash when both running (register_event of round_end and register_logevent of round_start), I even tried to change the logevent of round_start to a register_event of the HLTV method. does anyone have any ideas..? |
Re: Sudden server shut down.
How is g_Speed defined?
|
Re: Sudden server shut down.
Nevermind, I fixed it....
It didnt have anything to do with round_start or round_end, but when I disabled one of them it didnt happen, but check this out: I set a task with ID 35, to a function() that gets no parameters, like this: set_task(1.0, "Function", 35) I didnt care about the TASK ID so I just put 35 I noticed server is shutting down so instead of sending 35 I did set_task(1.0, "Function", _), and it fixed it. Why the hell is it making a server shut down? |
| All times are GMT -4. The time now is 14:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.