Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

MineStart - Automatically restart crashed minecraft server [WIN/LINUX]

minestart restart auto autorestart crash crashed server

  • Please log in to reply
61 replies to this topic

#1

TNOMCat
    TNOMCat

    Carpenter

  • Members
  • 55 posts

Posted 04 January 2013 - 11:12 PM

Posted Image

MineStart is a java program I wrote that automatically restarts your server if it crashes.
No additional plugins or updating needed, works on all minecraft servers!
And as far as I know, this is the best solution to use! Maximum uptime guaranteed!

Remember to read the README file!
Instructions included for both Windows and Linux

Download the package: http://tastethetest....art_distrib.zip
backup link: http://www.sendspace.com/file/8lbmx3

Feel free to post questions !

Register or log in to remove.

#2

ryanch09
    ryanch09

    Tree Puncher

  • Members
  • 16 posts
  • Minecraft: ryanch09

Posted 05 January 2013 - 11:38 AM

MyMcAdmin does this for you already, and there are a few other plugins that do too, but good work, looks good!
Posted Image

#3

TNOMCat
    TNOMCat

    Carpenter

  • Members
  • 55 posts

Posted 05 January 2013 - 12:14 PM

View Postryanch09, on 05 January 2013 - 11:38 AM, said:

MyMcAdmin does this for you already, and there are a few other plugins that do too, but good work, looks good!

The difference is, that this requires no plugins and no updating!
Plugins are highly dependant of Bukkit and the version.

#4

rebepoi
    rebepoi

    Out of the Water

  • Members
  • 2 posts

Posted 11 January 2013 - 07:06 PM

Only problem with MineStart is that if you have linux and run forge server, you will have config file all ready (actually a folder, but in unix based system, its just file that can store files) so you can't have two files with same name... :( can you please rename config file or give it some filetype.

#5

TNOMCat
    TNOMCat

    Carpenter

  • Members
  • 55 posts

Posted 14 January 2013 - 01:44 PM

View Postrebepoi, on 11 January 2013 - 07:06 PM, said:

Only problem with MineStart is that if you have linux and run forge server, you will have config file all ready (actually a folder, but in unix based system, its just file that can store files) so you can't have two files with same name... Posted Image can you please rename config file or give it some filetype.

Ah, totally forgot about that.
Updated! You can download the new version from the same link.

#6

unrivaledneo
  • Location: A galaxy far far away...

Posted 16 January 2013 - 01:25 AM

anyone else get a empty zip?

#7

TNOMCat
    TNOMCat

    Carpenter

  • Members
  • 55 posts

Posted 16 January 2013 - 05:39 PM

View Postunrivaledneo, on 16 January 2013 - 01:25 AM, said:

anyone else get a empty zip?

Fixed.

#8

snell
    snell

    Carpenter

  • Members
  • 68 posts
  • Minecraft: Snelling

Posted 17 January 2013 - 01:50 PM

Seems like a useful tool :D
<(") ~Penguins #1

#9

hippomormor
  • Location: Denmark

Posted 31 January 2013 - 03:34 AM

Awesome mod!

#10

Slay3R?
    Slay3R?

    Void Walker

  • Members
  • 1556 posts
  • Location: High up in the sky

Posted 31 January 2013 - 11:24 AM

Analyzed the tool and it isn't malware.

#11

hippomormor
  • Location: Denmark

Posted 02 February 2013 - 06:24 PM

Works awesome except it spams the server console with this every time it checks for online status:

2013-02-02 16:55:12 [INFO] [STDERR] java.net.SocketException: Connection reset
2013-02-02 16:55:12 [INFO] [STDERR]     at java.net.SocketInputStream.read(SocketInputStream.java:189)
2013-02-02 16:55:12 [INFO] [STDERR]     at java.net.SocketInputStream.read(SocketInputStream.java:121)
2013-02-02 16:55:12 [INFO] [STDERR]     at java.net.SocketInputStream.read(SocketInputStream.java:203)
2013-02-02 16:55:12 [INFO] [STDERR]     at java.io.FilterInputStream.read(FilterInputStream.java:83)
2013-02-02 16:55:12 [INFO] [STDERR]     at ef.a(Packet.java:142)
2013-02-02 16:55:12 [INFO] [STDERR]     at cg.i(TcpConnection.java:324)
2013-02-02 16:55:12 [INFO] [STDERR]     at cg.c(TcpConnection.java:544)
2013-02-02 16:55:12 [INFO] [STDERR]     at ch.run(SourceFile:93)

Btw. i havn't found anything similar to this for non-bukkit servers!

#12

Empty22
    Empty22

    Coal Miner

  • Members
  • 140 posts
  • Minecraft: empty22

Posted 07 February 2013 - 05:01 AM

View Posthippomormor, on 02 February 2013 - 06:24 PM, said:

Works awesome except it spams the server console with this every time it checks for online status:

2013-02-02 16:55:12 [INFO] [STDERR] java.net.SocketException: Connection reset
2013-02-02 16:55:12 [INFO] [STDERR] at java.net.SocketInputStream.read(SocketInputStream.java:189)
2013-02-02 16:55:12 [INFO] [STDERR] at java.net.SocketInputStream.read(SocketInputStream.java:121)
2013-02-02 16:55:12 [INFO] [STDERR] at java.net.SocketInputStream.read(SocketInputStream.java:203)
2013-02-02 16:55:12 [INFO] [STDERR] at java.io.FilterInputStream.read(FilterInputStream.java:83)
2013-02-02 16:55:12 [INFO] [STDERR] at ef.a(Packet.java:142)
2013-02-02 16:55:12 [INFO] [STDERR] at cg.i(TcpConnection.java:324)
2013-02-02 16:55:12 [INFO] [STDERR] at cg.c(TcpConnection.java:544)
2013-02-02 16:55:12 [INFO] [STDERR] at ch.run(SourceFile:93)

Btw. i havn't found anything similar to this for non-bukkit servers!
I don't believe that is MineStart! I have a forge server without MineStart, and this happens every couple of hours crashing the server. Does anyone know a fix for this?

MineStart is exactly what I'm looking for though! Hopefully this can be a temporary fix to bring my server back online when it crashes.

EDIT: 'java.net.SocketException: Connection reset' whenever that happens apparently some client's configs for the mods aren't matching up with the server. It was not crashing my server!
A 'java.lang.ArrayIndexOutOfBoundsException' error was.

Posted Image


#13

hippomormor
  • Location: Denmark

Posted 08 February 2013 - 08:13 AM

It is because of MineStart! And it's not crashing the server.. I't makes alot of sense, it's because of MineStart checking if it's possible to connect to the server. If i change the check-in interval of MineStart the 'connection reset' offcourse changes with it..

#14

Empty22
    Empty22

    Coal Miner

  • Members
  • 140 posts
  • Minecraft: empty22

Posted 09 February 2013 - 05:55 PM

Indeed, that error is related to it being pinged... It was gametracker in my instance. Other than spamming the console, it doesn't have any other side effects?

Posted Image


#15

hippomormor
  • Location: Denmark

Posted 09 February 2013 - 07:01 PM

Nope, not for me atleast. It could have a very minimal performance impact, but nothing noticeable

#16

Mortagonus

Posted 14 February 2013 - 07:30 AM

This is JUST what I was looking for! THANKS

#17

jammieftw
    jammieftw

    Lapis Lazuli Collector

  • Curse Premium
  • Curse Premium
  • 940 posts
  • Location: Server: mc.xpcentralrs.co.uk
  • Minecraft: jammieisftw
  • Xbox:jammieisftw

Posted 14 February 2013 - 01:40 PM

https://www.virustot...sis/1360849065/

This is not malware :)
Posted Image
HELP MEH OWN TEH INTERWEBS! >:D

#18

Mortagonus

Posted 15 February 2013 - 12:47 AM

When I try to run this and the server crashes, it says server offline, tries to restart server, then gives me an error that it can't restart. I am on windows 8 and using a batch file to open up server with 4 gigs of RAM. Anything I can do? Thanks

#19

Mortagonus

Posted 15 February 2013 - 12:58 AM

Should I be altering "WINDOWTITLE ne MineStart" to something else?

EDIT: Also note that when I do start up MineStart is says

Picked up _JAVA_OPTIONS: -Xmx5120M
MineStart initiated [192.168.1.100:25565]
Server online

It also detects me closing the server shortly after I do. It attempts the restart, it is just unable to.

run_win.bat is:


@echo off
TITLE MineStart
java -Xmx124M -Xms124M -jar MineStart.jar

and config.mscfg is


ip=192.168.1.100
port=25565
interval=30
closecmd=taskkill /f /fi "WINDOWTITLE ne MineStart" /im cmd.exe
opencmd=cd C:\Users\Me\Minecraft Server\ && start run.bat

run.bat is my server's startup script

#20

hippomormor
  • Location: Denmark

Posted 16 February 2013 - 10:06 AM

Don't know if it helps anyone but i wrote this is in response to someone asking me how i made it work:

All in all you need the following information in your config.mscfg:
This is my config with my settings using 10gb of ram and 6 CPU cores to run minecraft on Arch Linux.
This closecmd and opencmd will not work in Windows!. If you are using Linux, then u HAVE TO install the screen package in order for this to work, it should be native in OS X. I'll explain Windows later.

config.mscfg example:

ip=192.168.0.10
port=25565
interval=120
closecmd=pkill -f MC
opencmd=screen -d -m -S MC java -Xmx10240M -Xms1024M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=6 -XX:+AggressiveOpts -jar minecraft_server.jar nogui

Explanation:

ip=Write your server's ip here (if your server is not on your local network, remember to use the external ip of the server!)

port=Write your Minecraft server port here.

interval=Write how often you want MineStart to check if your server is online (in seconds!)

closecmd=Write your Minecraft Server shutdown command here. If you are using Linux or Mac, then the easiest way to close your server is using pkill -f [insert 'screen' session here].
If you are using Windows use this line:
taskkill /F /IM java.exe /FI "WINDOWTITLE eq Minecraft server"
If you are using another exe than java.exe then just change it so it matches the one you use Posted Image

opencmd=Write your Minecraft startup command here. If you are on Linux or Mac use 'screen' to execute your server:
screen -d -m MC java [your startup commands] -jar minecraft_server.jar nogui
If you are using Windows write this:
java -jar minecraft_server.jar [your startup commands]


To run minestart right click MineStart.jar in your Minecraft Server folder and make a shortcut to your desktop. Right click the shortcut on your desktop press properties and paste this line where it says Target:
"c:\Program Files\Java\jre7\bin\java.exe" -Xmx128M -Xms128M -jar MineStart.jar
Click apply/ok.
Run the MineStart shortcut on your desktop.

Hope it helps!