A better way of fixing the server when it breaks!

Recently the server breaks a lot with the time out error, as I am sure you have noticed. With some of my random computing knowledge, I know there is probably a way that you could fix the server exactly when that happens!

When the server gets this problem is you open command prompt and do "ping play.minecraft.cc" you get a result that the request timed out. With a bit of research i could probably make a batch file that you can run on the server computer so that IF when you ping the server and it times out it will kill the server process and start it again.

Would take a bit of work to make a batch file do this, but it would be an effective cure as far as I can tell. Thoughts?
 
Sorta, though I'm not sure if the server program is crashed when we get time out, or if it just inst responding. If it crashes that is perfect, if it just not responding for whatever reason then that wont help at all
 

SgtSpike

Site Admin & Server Owner
Staff member
If there was a way to check for a specific response on a specific port, that would work well. The problem is, the server will still respond to a basic ping request despite a crashed/nonworking JVM.

There is a batch file called "Minecraft Guardian" I just need to get it back up and running...
 

hometoast

New Member
SgtSpike said:
If there was a way to check for a specific response on a specific port, that would work well. The problem is, the server will still respond to a basic ping request despite a crashed/nonworking JVM.

There is a batch file called "Minecraft Guardian" I just need to get it back up and running...
On connection one should get this packet from the server: http://mc.kev009.com/wiki/Protocol#Hand ... 80x02.29_2

should be pretty trivial to code something up.
 

SgtSpike

Site Admin & Server Owner
Staff member
I don't know enough about network programming to make something like that, but if anyone wants to volunteer... I'd certainly be willing to use it. :) Only issue is, I'd need a way for the batch file to issue save-all and stop commands in the minecraft console... not sure if that is possible.
 

Socrates271

Turtle Lover
hometoast said:
SgtSpike said:
If there was a way to check for a specific response on a specific port, that would work well. The problem is, the server will still respond to a basic ping request despite a crashed/nonworking JVM.

There is a batch file called "Minecraft Guardian" I just need to get it back up and running...
On connection one should get this packet from the server: http://mc.kev009.com/wiki/Protocol#Hand ... 80x02.29_2

should be pretty trivial to code something up.
TYSM Hometoast!
 
Top