Application RemoteToolkit - Restarts + crash detection + auto saves + remote console!

Discussion in 'Bukkit Tools' started by drdanick, Jan 15, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    drdanick

    Minecraft RemoteToolkit
    -Less downtime, more fun for your players, more power to you!

    Are you a Minecraft server administrator? Do you value up-time and stability? Do you fancy the ability to remotely control your server, both in-game and out of game, in a myriad of useful ways from a plethora of different devices?
    If you answered yes to any of the above, then the Minecraft RemoteToolkit is for you!


    What the Minecraft RemoteToolkit Plugin and Wrapper do for you:
    • Provides almost perfect server uptime with no need for action from an owner/administrator!
    • Have your server save and restart at any time period with configurable restart warnings!
    • The Toolkit guarantees a restart within the set restart period, even if your server crashes, becomes unresponsive, or encounters a "SEVERE" exception!
    • Remotely control every function of the Toolkit, even from your smart phone!
    • Full remote console access via telnet with support for multiple terminal types!
    • Telnet daemon conforms to current Telnet related RFCs!
    • Customizable alert messages!
    • Fully extendable though 3rd party modules!
    • Full feature set works with most craftbukkit builds!
    • Most features work with any Minecraft server variation, even vanilla!
    • Telnet can be disabled!
    For server administrators
    Download - Release 10, Alpha 15.3 [CB 1.7.2-R0.2] (wget friendly)
    Instructions & Documentation

    For developers
    UDP API REV 8 | Documentation
    Module API | Coming soon!

    For everyone
    Official IRC channel
    #remotetoolkit @ irc.esper.net


    "Help! I've downloaded it, but I do not know how to get it working!"
    Stop! Before you give up or ask for help, make sure you have read the step-by-step installation instructions on the wiki page. If you are still having problems, please do not be hesitant to post a request for help on this thread or in the IRC channel - no matter how simple your problem seems.


    Todo


    [​IMG][​IMG]
    Any donation would be very much appreciated. I'm but a poor University student, and I sacrifice quite a lot of unpaid time to keep the Toolkit updates and support flowing.

    Thank you to the following who have chosen to support the Toolkit through a donation:
    Deren909, marshall007, Vittek, clanslots, meee, KyneSilverhide, szoller, hungoverfurball, Lama_0, Viet, acc1dent, joby890, Liger_XT5
     
    Last edited: May 6, 2017
  2. Offline

    drdanick

    Well, firstly, how do you usually start your server?
    It seems you are hosting the server externally with some VPS provider, but it's not clear whether you have shell access or not. Also, you won't need both the .bat and the .sh, as they are the startup scripts for both Windows and Linux/Unix based operating systems respectively.

    Also, what client are you referring to?

    Remember, if your provider doesn't give you shell access, you are going to have to have a way of launching Minecraft_RKit.jar whilst being able to specify startup arguments like -Xmx, -D, etc. This may require that you talk to your server provider if they have only provided a basic control panel.
     
  3. Offline

    Sooks

    I have 4gb dedicated ram what should be my initial heap and my maximum heap, also is there something I should put in to decrease lag? Or something.
     
  4. Offline

    drdanick

    Try this configuration for wrapper.properties:
    Code:
    minecraft-server-jar=craftbukkit.jar
    extra-runtime-arguments=-Djline.terminal=jline.UnsupportedTerminal,-Xincgc, -XX\:ParallelGCThreads\=2
    server-arguments=nogui
    initial-heap-size=3500M
    maximum-heap-size=
    overridden-process-arguments=
    server-restart-alerts=10m,5m,1m
    server-saveall-period=0
    server-restart-delay=5h
    forced-restart-delay=5m
    restart-on-severe-exception=false
    severe-exception-detection-level=1
    server-heartbeat-threshold=1m
    failed-heartbeat-restart-count=5
    import-properties=true
    
    If it fails to start, try setting initial-heap-size to 3300M or 3072M.
     
  5. Offline

    ruben

    Why is it broken on windows XP?
    My server doesn't run anymore!

    It doesn't start up.
     
  6. Offline

    Bakies

    Does this work on Windows XP seems when i run it it doesnt start the server but it does start the CMD window. any thoughts?
     
  7. @drdanick

    I put "server-restart-delay=03:30" in the wrapper.properties, but when I loaded the server through the wrapper, I noticed it had changed to "server-restart-delay=03\:30".

    Is that normal?
     
  8. Offline

    sharkale

    i have the same RTPING++ spam only in the server.log in the console dont appear anything.

    Code:
    2011-05-01 15:50:39 [INFO] Done (0.291s)! For help, type "help" or "?"
    2011-05-01 15:51:36 [INFO] RTPONG++
    2011-05-01 15:52:36 [INFO] RTPONG++
    2011-05-01 15:53:36 [INFO] RTPONG++
    2011-05-01 15:54:36 [INFO] RTPONG++
    2011-05-01 15:55:36 [INFO] RTPONG++
    2011-05-01 15:56:36 [INFO] RTPONG++
    2011-05-01 15:57:36 [INFO] RTPONG++
    2011-05-01 15:58:36 [INFO] RTPONG++
    2011-05-01 15:59:36 [INFO] RTPONG++
    2011-05-01 16:00:36 [INFO] RTPONG++
    2011-05-01 16:01:36 [INFO] RTPONG++
    2011-05-01 16:02:36 [INFO] RTPONG++
    2011-05-01 16:03:36 [INFO] RTPONG++
    2011-05-01 16:04:36 [INFO] RTPONG++
    2011-05-01 16:05:36 [INFO] RTPONG++
    2011-05-01 16:06:36 [INFO] RTPONG++
    2011-05-01 16:07:36 [INFO] RTPONG++
    2011-05-01 16:08:36 [INFO] RTPONG++
    2011-05-01 16:08:41 [INFO] [CONSOLE] **APAGANDO SERVER**
    2011-05-01 16:08:47 [INFO] Stopping the server..
    happend with the newest version.

    Code:
    #Minecraft Remote Toolkit Properties File
    #Sun May 01 12:44:05 ART 2011
    minecraft-server-jar=craftbukkit.jar
    severe-exception-detection-level=1
    server-saveall-period=1h
    maximum-heap-size=1524M
    import-properties=false
    server-restart-delay=0
    server-heartbeat-threshold=1m
    restart-on-severe-exception=false
    server-arguments=nogui
    overridden-process-arguments=
    failed-heartbeat-restart-count=5
    server-restart-alerts=10m,5m,1m
    initial-heap-size=512M
    forced-restart-delay=5m
    extra-runtime-arguments=-Djline.terminal=jline.UnsupportedTerminal
     
  9. Offline

    drdanick

    I didn't change anything other than have that message printed. It should still work if you press enter a few times.

    Press enter a few times. Unfortunately, there does not seem to be a fix to this problem avaliable to me, and seems to be an issue with the bukkit side of things. It works with any other server mod or the vanilla server just fine on XP.

    It's an escape character imposed by java, so it's completely normal. If there were an invalid value, the wrapper would overwrite it with the default value of 5h (this would be reflected in the configuration file).

    Unfortunately, that is normal and is the result of the recently added heartbeat system.
    Ideally, it would be nice to have a method of sending bytes to the standard output/error streams without having them logged, but it's up to the Bukkit developers to implement such a facility (But perhaps there is a method that I have overlooked).

    If it is too much of a bother, you can set server-heartbeat-threshold to 0 if you want to disable heartbeats. Keep in mind that the wrapper will no longer be able to detect if the server has become unresponsive.

    When I have some free time in between assignments, i'll implement a different method that bypasses the output streams entirely.
     
  10. Offline

    ViZiT

    THNKS! But i have some question. Is that plugin restart the server when it overloaded with read time out? Second: What need to Select in drop down list (minecraft recon) if i want to server closing or restarting it self after ERROR
    Sorry if u do not understand My English )))
     
  11. Offline

    Bakies

    My server is still not starting pressing enter a couple times, after i tried holding down the enter button but that did not work maybe im doing something wrong
     
  12. Offline

    Lynxdragon

    Does the included .bat file start the server aswell, or does the server need to be started individually with its own .bat, and if it does need to be started individually can the .bat files be combined. My host wont let me install the .bat because 'It could compromise secuirty!!'
     
  13. Offline

    CougarHat

    Same problem as stated above. I hope there's a workaround, since I've been getting pretty infrequent crashes, but crashes nonetheless lately.
     
  14. Offline

    drdanick

    It will only automatically restart if either the server process closes, or it stops responding for a few minutes. I'm not sure if your problem causes the server to become completely unresponsive, but it likely doesn't, meaning that it will not automatically restart on those errors in your case.

    If you want to perform a restart, always try "Restart Now" first. If that fails, try using "Force Restart".

    Try entering in some arbitrary input. It may take a bit of button mashing to get working. This is exactly why I am not continuing development of the XP side of things.

    All you need to be able to do is launch Minecraft_RKit.jar in place of craftbukkit.jar. Since it is unlikely that you will be able to configure command line arguments, you will need to upload the users file manually. To do this, create a text file, users.txt and give it the following body:

    Code:
    [users]
    admin:21232f297a57a5a743894a0e4a801fc3
    
    Upload this file to the toolkit directory.
    You will then be able to log in to the remote console using the username 'admin' and the password 'admin'. Since it is unlikely that you will want to keep it like that, enter the following lines after logging in through telnet:
    Code:
    .userremove admin
    .useradd USERNAME PASSWORD
    
    Be sure to replace USERNAME and PASSWORD with something that suits you.

    There is one caveat, however. Since the wrapper itself requires only a small amount of memory, you are going to have to (if your provider doesn't let you do this yourself) talk to your provider about lowering the amount of memory allocated to the server (20MB should be adequate). The amount of memory actually being allocated to the minecraft server can then be set in wrapper.properties.

    I'm assuming that you are having issues with XP:
    I have been attempting to write a workaround for the XP problem for a while now. It worked with both the Vanilla server and hMod, but has since broken with bukkit. The problem even persisted with the bare minimum needed in java to launch a subprocess. Unfortunately, this has resulted in my decision to no longer directly support windows XP indefinitely. However I am likely to look at the issue again when I have time, I am interested to know why it's behaving like that on XP.
     
  15. Offline

    ViZiT

    restar now, and forse restar does't help when server crashed down
     
  16. Offline

    drdanick

    If it doesn't then the wrapper is likely not wrapping around the server. Remember, you should be running Minecraft_RKit.jar in place of craftbukkit.jar. Force restart will always work if the server has stopped responding.
     
  17. Offline

    ViZiT

    do not even know how to explain. But still try)). I run a server using rtoolkit.bat, everything works fine. But when the server hangs rtoolkit creates a new process allegedly server. This process is very CPU cycles it can be seen only in the task manager and no one can go to the server. and the server is hanging dead from the endless error: read time out

    #Minecraft Remote Toolkit Properties File
    #Thu May 05 05:21:10 YEKST 2011
    minecraft-server-jar=craftbukkit-0.0.1-SNAPSHOT.jar
    severe-exception-detection-level=1
    server-saveall-period=0
    maximum-heap-size=16384M
    import-properties=false
    server-restart-delay=5h
    server-heartbeat-threshold=10m
    restart-on-severe-exception=false
    server-arguments=nogui
    overridden-process-arguments=
    failed-heartbeat-restart-count=5
    server-restart-alerts=10m,5m,1m
    forced-restart-delay=2s
    initial-heap-size=1024M
    extra-runtime-arguments=-Djline.terminal\=jline.UnsupportedTerminal
     
  18. Offline

    drdanick

    Firstly, how many Java processes can you see in the task manager both before and while the above problem is occuring?

    Secondly, looking at your configuration I can see that you have set the heartbeat threshold to 10m. Seeing as failed-heartbeat-restart-count is 5, it would take 50 minutes for the server to restart if it hung - that's a little long.
    Also, if you set forced-restart-delay to 2s, that would mean the wrapper would give the server two seconds to close after a stop command was issued. Since it is vewry unlikely your server will stop that fast, it would mean that it would always force the server to close and this could possibly lead to map corruption/other problems.

    Try this configuration:

    Code:
      minecraft-server-jar=craftbukkit-0.0.1-SNAPSHOT.jar
      severe-exception-detection-level=1
      server-saveall-period=0
      maximum-heap-size=16384M
      import-properties=false
      server-restart-delay=5h
      server-heartbeat-threshold=2m
      restart-on-severe-exception=false
      server-arguments=nogui
      overridden-process-arguments=
      failed-heartbeat-restart-count=3
      server-restart-alerts=10m,5m,1m
      forced-restart-delay=1m
      initial-heap-size=1024M
      extra-runtime-arguments=-Djline.terminal\=jline.UnsupportedTerminal
    
    With that configuration, it will take the wrapper at most 6 minutes to restart the server if it hangs.
     
  19. Offline

    ViZiT

    I guessed that the case in the settings. Please tell me what to change?
     
  20. Offline

    drdanick

    You can replace everything in wrapper.properties with what I gave you.
    If you really want, these are the settings I changed:

    server-heartbeat-threshold=2m
    failed-heartbeat-restart-count=3
    forced-restart-delay=1m
     
  21. Offline

    Michael Murphy

    can you specify a class path for the craftbukkit.jar this way? I really need to T_T
    Code:
    #Minecraft Remote Toolkit Properties File
    #Wed May 04 23:41:12 UTC 2011
    minecraft-server-jar=craftbukkit.jar
    severe-exception-detection-level=1
    server-saveall-period=30m
    maximum-heap-size=1024M
    import-properties=false
    server-restart-delay=5h
    server-heartbeat-threshold=1m
    restart-on-severe-exception=false
    server-arguments=nogui
    overridden-process-arguments=
    failed-heartbeat-restart-count=5
    server-restart-alerts=10m,5m,1m
    initial-heap-size=1024M
    forced-restart-delay=5m
    extra-runtime-arguments=-server,-Xincgc,-Djline.terminal\=jline.UnsupportedTerminal,-XX\:+UseConcMarkSweepGC,-XX\:+DisableExplicitGC,-XX\:+UseAdaptiveGCBoundary,-XX\:MaxGCPauseMillis\=500,-XX\:-UseGCOverheadLimit,-XX\:SurvivorRatio\=16,-Xnoclassgc,-XX\:UseSSE\=3,-XX\:ParallelGCThreads\=6,-cp pluginsItemCraft.jar;craftbukkit.jar org.bukkit.craftbukkit.Main
    server-arguments=nogui
    
    Code:
    Minecraft Remote Toolkit V1.0_b19_23 ALPHA
    Initializing...
    Loading toolkit properties...Done.
    Loading toolkit modules...Done.
    Wrapper is running on: Linux 2.6.18-194.26.1.el5xen i386
    Starting wrapper...
    Starting UDP listen server on port 25561
    May 5, 2011 6:06:17 AM net.wimpi.telnetd.net.PortListener run
    INFO: Listening to Port 25,561 with a connectivity queue size of 5.
    Restarting...
    Invalid or corrupt jarfile /opt/Bukkit/craftbukkit.jar
    Invalid or corrupt jarfile /opt/Bukkit/craftbukkit.jar
    Restarting...
    
    -cp pluginsItemCraft.jar;craftbukkit.jar org.bukkit.craftbukkit.Main
    doesn't seem to work.
     
  22. Offline

    drdanick

    Set overridden-process-arguments to this:
    Code:
    overridden-process-arguments=java -Xmx1024M -Xincgc -Djline.terminal=jline.UnsupportedTerminal -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:-UseGCOverheadLimit -XX:SurvivorRatio=16 -Xnoclassgc -XX:UseSSE=3 -XX:ParallelGCThreads=6 -cp pluginsItemCraft.jar;craftbukkit.jar org.bukkit.craftbukkit.Main
    
     
  23. Offline

    sharkale

    for all with the xp problem wait to the "16 achivement loaded" print in the console and press Enter. if you press enter before, the toolkit crash. only wait for this line (3~4 seconds) and press enter. Its a dirty workaround but it works.

    pd: drdanick when you update please post the date beside the version. and make ".version" return the same value of this post :D
     
  24. Offline

    ViZiT

    #Minecraft Remote Toolkit Properties File
    #Thu May 05 05:21:10 YEKST 2011
    minecraft-server-jar=craftbukkit-0.0.1-SNAPSHOT.jar
    severe-exception-detection-level=1
    server-saveall-period=0
    maximum-heap-size=16384M
    import-properties=false
    server-restart-delay=5h
    server-heartbeat-threshold=5s
    restart-on-severe-exception=true
    server-arguments=nogui
    overridden-process-arguments=
    failed-heartbeat-restart-count=3
    server-restart-alerts=10m,5m,1m
    forced-restart-delay=1s
    initial-heap-size=1024M
    extra-runtime-arguments=-Djline.terminal\=jline.UnsupportedTerminal

    still no restart (( please healp
    Just need force restart immediately after read time out Error! But nothing happens
     
  25. Offline

    CougarHat

    By that I meant my host will not allow me to upload .bat files. Is there some way you can combine it into another one of the files? Maybe the jar?
     
  26. Offline

    PatrickFreed

    First off: You are a god.
    Secondly, is there a way to start the server if it is offline?
    Edit: I reread the wiki, .hold is amazing! This is possibly the greatest plugin ever!
     
  27. Offline

    luna0316

    is it normal for the heartbeat-threshold to report an unknown command error in the consol everytime it sends out the "heartbeat"? or is there a setting i have messed up?

    wrapper properties
    Code:
    #Minecraft Remote Toolkit Properties File
    #Thu May 05 23:13:29 PDT 2011
    minecraft-server-jar=craftbukkit.jar
    severe-exception-detection-level=1
    server-saveall-period=0
    maximum-heap-size=1024M
    import-properties=false
    server-restart-delay=3h
    server-heartbeat-threshold=2m
    restart-on-severe-exception=false
    server-arguments=nogui
    overridden-process-arguments=
    failed-heartbeat-restart-count=5
    server-restart-alerts=10m,5m,1m
    forced-restart-delay=2m
    initial-heap-size=1024M
    extra-runtime-arguments=-Djline.terminal\=jline.UnsupportedTerminal
    
    and the .bat file, and everything else is the same as it was packaged, with exception of having it point to craftbukkit.jar and my user and pass in the .bat
     
  28. Offline

    drdanick

    That means you are not running the plugin. Make sure MinecraftRKitPlugin.jar in in the plugins directory. Conform that it is running with the console command 'plugins'

    http://forums.bukkit.org/threads/ad...es-remote-console-740.674/page-25#post-269829

    If you did wait 10 minutes and it didn't restart, that means the problem you're having is not making the server entirely unresponsive, thus the toolkit won't restart it automatically. Please use the configuration I provided earlier, there are a few values you've changed that may be detrimantal to performance, on top of the fact that it won't ever restart correctly with the forced-restart-delay you've set.

    My only other suggestion is to lower the restart delay to something like 1h. This will mean that if you are having problems, the server will at least restart itself every hour.
     
  29. Offline

    flames

    drdanick, thanks a lot for RTkit, very usefull!
    here is an issue i cant solve: using server-saveall-period=5m, which works fine, but i want to disable the broadcast messages "saving, save complete", so i edited messages.txt and removed the values, on every restart of RTkit the messages.txt is resetted to factory defaults. also changing the messages to another text is resetted to defaults on restart. any idea?
     
  30. Offline

    madmac

    how do i make it to where it uses C:\Program Files\Java\jre7\bin instead of just 'java' ?:D not super important but i am under the impression that using java for some reason still uses jre6
     
  31. Offline

    drdanick

    Ah, I was planning on doing that a while ago, i'll fix that soon.

    Ideally, you should be changing the path environment variable to include the JRE7 bin folder in place of the JRE6 bin folder. You can always use overridden-process-arguments to specify the entire startup command, but the former approach is probably a better idea.
     
Thread Status:
Not open for further replies.

Share This Page