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. I have this same problem, but from my limited understanding, it is impossible to execute files remotely on a server when only give FTP access.
    Now, if you had telnet or SSH access to the server, THEN you could give it remote commands and execute the files. But from what I know, Brohoster doesn't provide this.
    But that's just my limited understanding.
    Would love to find a way for this to work as I am using Brohoster as well.

    EDIT: Looks like Brohoster actually supports Telnet through MCTelnet, another Bukkit plugin.
    Workin on setting it up right now.
     
  3. Offline

    drdanick

    @cholo71796 @Alpha52 Unfortunately, not yet. That particular host, and many others, do not allow anything other than the jars they've sanctioned to be launched. It is possible that in the future that this wrapper will be included on the list of wrappers used by various providers, and I would like to work towards this happening at some point.

    For everyone:
    If you would like the wrapper used on a provider such as this, please get in contact with both them and me about it, i'd be more than happy to try and work something out.
     
  4. Yeah I noticed that in the process. Brohoster won't even allow you to upload .bat files. I was doing it in SmartFTP and wondering why the damn thing was locked in the upload queue until I went and tried it on their TCAdmin Panel and it said bat files weren't allowed.
    Lame stuff but I guess I can throw in a support ticket urging them to allow it.
     
  5. Offline

    Ahfaichucky

    i have some problems while attempting to use .hold & .unhold

    Code:
    java.io.IOException: The pipe is being closed
            at java.io.FileOutputStream.writeBytes(Native Method)
            at java.io.FileOutputStream.write(Unknown Source)
            at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
            at java.io.BufferedOutputStream.flush(Unknown Source)
            at com.drdanick.McRKit.Wrapper$4.run(Wrapper.java:373)
    Error: Console input stream closed unexpectedly. Attempting to re-open stream i
     60 seconds...
     
  6. Offline

    drdanick

    Ah, thanks for picking that up. I've applied a fix and you may download it from the first post.
    Please tell me if you still have problems with .hold and .unhold.
     
  7. Offline

    cholo71796

    Would there be a way to launch it without using a .bat file though? Brohoster does not restrict which jars you can have- you can use any plugin you want- or what files you can upload to the server, it's that you can only start the server (craftbukkit.jar) which then starts all the plugins. If there was a way (and I have no idea if there is) to start the thing running through a plugin it would work just fine.
     
  8. Offline

    Ahfaichucky

    Thanks for fixing it, it works perfectly now.
     
  9. Offline

    drdanick

    Yes, you can. But it will only work properly if Brohoster allows you to change the amount of memory allocated to the jar that is launched. The toolkit itself requires <20MB of ram to work, and so you're obviously not going to be wanting to waste multiple gigabytes of RAM on it, when that really should be allocated to the server.

    I reccomend getting in touch with them and asking if it is at all possible that they lower the amount of ram that is allocated to the server jar that is launched.
     
  10. Offline

    Skirmisher

    What's the format of the users.txt file? I can't change the commandline arguments for the server in Art of War Central, so manually creating this file would be nice.
     
  11. Offline

    drdanick

    Ah, I should have put this somewhere.

    Here's one with the username and password both set as "admin":
    Code:
    [users]
    admin:21232f297a57a5a743894a0e4a801fc3
    
    You can log in to the console using that, then remove it/add your own.
     
  12. Offline

    Skirmisher

    Great, thanks! :D
     
  13. Offline

    anon

    Wuts that?

    Code:
    >RTPING
    >RTPING
    22:05:01 [INFO] Connection reset
    22:05:01 [INFO] new lost connection: disconnect.endOfStream
    >RTPING
    >RTPING
    >RTPING
    >RTPING
    >RTPING
    >RTPING
    >RTPING
    >RTPING
    >RTPING
    >stop
    22:14:28 [INFO] Stopping the server..
    22:14:28 [INFO] CONSOLE: Stopping the server..
    RTPING span is annoying me. How do I fix it?
     
  14. Offline

    drdanick

    It looks like you're using jline, otherwise those wouldn't be printed. It's to do with the server hertbeat.
    Can you post the contents of wrapper.properties?
     
  15. Offline

    anon

    Code:
    #Minecraft Remote Toolkit Properties File
    #Tue Apr 26 18:36:44 EDT 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=1m
    restart-on-severe-exception=false
    server-arguments=nogui
    overridden-process-arguments=java -Xincgc -Xmx3072M -XX:ParallelGCThreads=3 -XX:+AggressiveOpts -jar craftbukkit.jar
    failed-heartbeat-restart-count=5
    server-restart-alerts=10m,5m,1m
    forced-restart-delay=5m
    initial-heap-size=1024M
    extra-runtime-arguments=-Djline.terminal\=jline.UnsupportedTerminal
    im lazy, I ignored every line and put all teh command on the overridden-process-arguments. Is that bad?
     
  16. Offline

    drdanick


    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. ;)
     
  17. Offline

    anon

    Works great! Many thanks man :D :D :D
     
  18. Offline

    NEO

    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?
     
  19. Offline

    drdanick

    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?
     
  20. Offline

    Combat Wombat

    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?
     
  21. Offline

    NEO

    @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
     
  22. Offline

    HexedGoth

    I'm wonder how well would this work with the vps Brohoster?
     
  23. Offline

    untergrundbiber

    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)
     
  24. Offline

    abaldwin11

    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?
     
  25. Offline

    Combat Wombat

    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 :)
     
  26. Offline

    new001

    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.
     
  27. Offline

    drdanick

    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.
     
  28. Offline

    NEO

    @drdanick alright thank you for the support. Rtoolkit is still functioning perfectly fine, the spam is just a little annoying :)
     
  29. Offline

    drdanick

    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.
     
  30. Offline

    MaoN

    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
     
  31. Offline

    untergrundbiber

    Big Thanks! :D
     
Thread Status:
Not open for further replies.

Share This Page