[ADMN] RemoteToolkit [R10 a14] - Restarts + crash detection + auto saves + remote console! [1.5.1]

Discussion in 'Plugin Releases' started by drdanick, Jan 16, 2011.

     
  1. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 14.5 [CB 1.5.1-R1.0] (wget friendly)

    For developers
    Module API | Coming soon!

    For everyone
    Official IRC channel


    "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.

    Changelog
    Release 10, Alpha 1


    [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 donations:

    This post has been edited 95 times. It was last edited by drdanick Jun 11, 2013.
  2.  
  3. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    Ah, you forgot to put -Djline.terminal=jline.UnsupportedTerminal in the overridden command.

    If you would like, here's a modification without the override being used:
    Code:
    minecraft-server-jar=craftbukkit.jar
    severe-exception-detection-level=1
    server-saveall-period=0
    maximum-heap-size=3072M
    import-properties=false
    server-restart-delay=3h
    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
    forced-restart-delay=5m
    initial-heap-size=
    extra-runtime-arguments=-Xincgc,-XX:ParallelGCThreads=3,-XX:+AggressiveOpts,-Djline.terminal\=jline.UnsupportedTerminal
    
    Remember to tell me if that fixes it or not. ;)
  4. Offline

    anon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Works great! Many thanks man :D :D :D
  5. Offline

    NEO

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    R10 A9.2 CB 733

    2011-04-28 05:51:00 [INFO] RTPONG++

    Assuming this is from RToolkit, how do i get it to stop spamming my console?
  6. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can you post the body of wrapper.properties
    Also, double check the full version number with the console command .version

    Edit: Also, what Operating system are you running the toolkit on?
  7. Offline

    Combat Wombat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey, I am trying to get this to run on a CentOS installation, but my old .sh file required me to run craftbukkit using the "/usr/java/jre1.6.0_24/bin/java" command, because my default java runtime isn't 1.6. How do I get this to work using the toolkit?
  8. Offline

    NEO

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @drdanick

    Sorry for the late reply

    Code:
    #Minecraft Remote Toolkit Properties File
    #Wed Apr 27 21:15:15 EDT 2011
    minecraft-server-jar=craftbukkit.jar
    severe-exception-detection-level=1
    server-saveall-period=30m
    maximum-heap-size=6144M
    import-properties=false
    server-restart-delay=4h
    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=3072M
    forced-restart-delay=5m
    extra-runtime-arguments=-server, -XX\:+UseConcMarkSweepGC, -XX\:+UseParNewGC, -XX\:+CMSIncrementalPacing, -XX\:ParallelGCThreads\=3, -XX\:+AggressiveOpts, -XX\:SurvivorRatio\=16
    
    .version returns this V1.0_b19_23 ALPHA

    Running on centos 5.5 64 bit with java 1.7 b131
  9. Offline

    HexedGoth

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm wonder how well would this work with the vps Brohoster?
  10. Offline

    untergrundbiber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    On CB740 i become:

    Code:
    2011-04-29 15:23:05 [SEVERE] java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    2011-04-29 15:23:05 [SEVERE]     at java.lang.String.substring(String.java:1937)
    2011-04-29 15:23:05 [SEVERE]     at java.lang.String.substring(String.java:1904)
    2011-04-29 15:23:05 [SEVERE]     at com.drdanick.McRKit.plugin.RTKPlugin.loadMap(RTKPlugin.java:96)
    2011-04-29 15:23:05 [SEVERE]     at com.drdanick.McRKit.plugin.RTKPlugin.onEnable(RTKPlugin.java:46)
    2011-04-29 15:23:05 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-04-29 15:23:05 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-04-29 15:23:05 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-04-29 15:23:05 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-04-29 15:23:05 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-04-29 15:23:05 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    2011-04-29 15:23:05 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    2011-04-29 15:23:05 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    2011-04-29 15:23:05 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    2011-04-29 15:23:05 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
  11. Offline

    abaldwin11

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I got everything installed and started the server but I can't log into my server to play or anything. I get a "Failed to connect to the server" message. When the server starts up it says the correct Minecraft port. Any idea's? Do I need to add the UDP port to the router first?
  12. Offline

    Combat Wombat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well, I looked back into the thread and found how to switch the java runtime environment, but I still get the RTPING spam.

    Here's my properties file:


    Code:
    #Minecraft Remote Toolkit Properties File
    #Fri Apr 29 12:50:24 SGT 2011
    minecraft-server-jar=craftbukkit-0.0.1-SNAPSHOT.jar
    severe-exception-detection-level=1
    server-saveall-period=0
    maximum-heap-size=1500M
    import-properties=false
    server-restart-delay=5h
    server-heartbeat-threshold=1m
    restart-on-severe-exception=false
    server-arguments=nogui
    overridden-process-arguments=/usr/java/jre1.6.0_24/bin/java -Xincgc -Xmx1500M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
    failed-heartbeat-restart-count=5
    server-restart-alerts=10m,5m,1m
    forced-restart-delay=5m
    initial-heap-size=1500M
    extra-runtime-arguments=-Djline.terminal=jline.UnsupportedTerminal
    
    Any help would be appreciated :)
  13. Offline

    new001

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I am having the following error:

    Code:
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
        at com.drdanick.McRKit.auth.UserManager.load(UserManager.java:99)
        at com.drdanick.McRKit.auth.UserManager.<init>(UserManager.java:24)
        at com.drdanick.McRKit.auth.UserManager.constructUserManager(UserManager.java:28)
        at com.drdanick.McRKit.McRKitLauncher.main(McRKitLauncher.java:80)
    On build 740.
  14. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok, I am going to have to send you a debug version to better see what's going on on your end. The spam you're seeing is the response from the plugin after every heartbeat request from the wrapper. If it's being displayed, then it means that the wrapper isn't detecting it as a heartbeat response correctly.

    Have you tried connecting on the local area network, or only externally?
    The toolkit should not interfere with the server like that, so if you can connect without the toolkit, it should still work with it.

    Ah, you didn't disable jline. Use this config:

    Code:
    #Minecraft Remote Toolkit Properties File
    #Fri Apr 29 12:50:24 SGT 2011
    minecraft-server-jar=craftbukkit-0.0.1-SNAPSHOT.jar
    severe-exception-detection-level=1
    server-saveall-period=0
    maximum-heap-size=1500M
    import-properties=false
    server-restart-delay=5h
    server-heartbeat-threshold=1m
    restart-on-severe-exception=false
    server-arguments=nogui
    overridden-process-arguments=/usr/java/jre1.6.0_24/bin/java -Djline.terminal=jline.UnsupportedTerminal -Xincgc -Xmx1500M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
    failed-heartbeat-restart-count=5
    server-restart-alerts=10m,5m,1m
    forced-restart-delay=5m
    initial-heap-size=1500M
    extra-runtime-arguments=-Djline.terminal=jline.UnsupportedTerminal
    
    Delete users.txt in the toolkit directory. You'll get that error if it tries to parse something incorrect in the file.
    The next version, which will be released soon, will not have this problem.

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

    I would love to have support for people using Brohoster. But for that to happen, they will need to at the very least have support for changing the amount of ram allocated to the server, whether this is done by the client or the providers themselves at request.

    Please feel free to email them about this.

    Delete messages.txt in the toolkit directory. I haven't seen this error occur before, but I will look into it.
  15. Offline

    NEO

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @drdanick alright thank you for the support. Rtoolkit is still functioning perfectly fine, the spam is just a little annoying :)
  16. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Great to hear. I would still love to get to the bottom of this, having it print the heartbeat response every minute is hardly ideal for the end-user.
  17. Offline

    MaoN

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello,

    got some problems trying to install this amazing tool ;D

    i've uploaded everything right and changed the both things:
    rtoolkit.sh
    Code:
    #!/bin/bash
    
    USER=**********
    PASS=**********
    
    ##YOU SHOULD NOT NEED TO EDIT ANYTHING BELOW THIS LINE##
    DIRECTORY=$(cd "`dirname "$0"`" && pwd)
    (cd "$DIRECTORY"; java -Xmx30M -Xms30M -XX:MaxPermSize=40M -jar Minecraft_RKit.jar ${USER}:${PASS})
    and the rtoolkit.bat
    Code:
    @echo off
    java -Xmx30M -Xms30M -XX:MaxPermSize=40M -jar Minecraft_RKit.jar ********:*******
    
    all should be in the right direction but i cant login via browser
    and also via the client getting this error: java.net.SocketException: socket closed


    didn't think the setup is difficult but what's my mistake?

    thanks for help
  18. Offline

    untergrundbiber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Big Thanks! :D
  19. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  20. Offline

    Sooks

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  21. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  22. Offline

    ruben

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Why is it broken on windows XP?
    My server doesn't run anymore!

    It doesn't start up.
  23. Offline

    Bakies

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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?
  24. Offline

    SpyDaniel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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?
  25. Offline

    sharkale

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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
  26. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  27. Offline

    ViZiT

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 )))
  28. Offline

    Bakies

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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
  29. Offline

    Lynxdragon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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!!'
  30. Offline

    CougarHat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Same problem as stated above. I hope there's a workaround, since I've been getting pretty infrequent crashes, but crashes nonetheless lately.
  31. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  32. Offline

    ViZiT

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    restar now, and forse restar does't help when server crashed down

Share This Page