Server crashing

All other Source.Python topics and issues.
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Server crashing

Postby velocity » Tue Oct 16, 2018 10:33 pm

Okay, so my server is crashing randomly and the console log says nothing. It is probably some of my plugins but I want to narrow it down to what and where. How should I proceed?
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Server crashing

Postby L'In20Cible » Wed Oct 17, 2018 4:18 am

First step would be to disable your plugins one-by-one until the crashes stops, then debug the guilty one.
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: Server crashing

Postby velocity » Wed Oct 17, 2018 10:05 am

Yeah, I only have one plugin running and since server crash randomly it is hard to just comment out some of the code and wait... Some crash can occur after half an hour. I wonder if there is a different method to make it output something.
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: Server crashing

Postby velocity » Wed Oct 17, 2018 1:55 pm

Well I figured it out, or more like "so far so good". I was just wondering what you do if you don't have a log.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Server crashing

Postby L'In20Cible » Thu Oct 18, 2018 1:40 am

velocity wrote:Well I figured it out, or more like "so far so good". I was just wondering what you do if you don't have a log.

You debug your code by adding debug messages everywhere in an attempt to identify the exact line/context that causes it. There is unfortunately no magic solution.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 23 guests