[ADMN] RemoteToolkit [R10 a15] - Restarts + crash detection + auto saves + remote console! [1.7.2]

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 15.3 [CB 1.7.2-R0.2] (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 110 times. It was last edited by drdanick Jan 27, 2014.
  2.  
  3. Offline

    Kaptain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The server stops normally and everything is fine. And yes I do have shell access.
  4. Offline

    Kahl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Save announcements really need to be added considering anyone PvPing at the time of a save will experience lag and many people end up dieing because of saves. Warnings for saves would allow people to take cover before a save occurs.

    Thanks for all the feedback. I still get rollbacks but I have my last save run 30 seconds before a restart
  5. Offline

    Tbot117

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Installed this plugin following the Wiki step by step, however I cannot get rtoolkit to run Minecraft_RKit.jar, either by running it or trying to run it with a command prompt. I edited the user.txt to accomidate for my inability to run the script, but the UDP Client (also tried to webpage client) just keeps giving me the "java.net.SocketException: Socket Closed" error. Been trying to install this for 2 hours and was supposed to be somewhere a while ago haha >.<

    Any suggestions would be GREATLY appreciated =]
  6. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Try stopping the server from the console via SSH and note if anything unusual at all is printed.
    Also, what is the output of 'java -version'?

    Firstly, what operating system are you using?

    Secondly, how exactly are you trying to launch it from the command prompt? Have you made sure that you are entering the user:pass parameter correctly?
    Also, did you make sure that what you entered into users.txt was correct?

    Try replacing everything in users.txt with this:
    Code:
    [users]
    admin:21232f297a57a5a743894a0e4a801fc3
    
    With that, you should be able to log in with the username and password both being "admin" (without quotes).
  7. Offline

    TheShadow777

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    please update it for 818
  8. Offline

    RuudschMaHinda

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey there, I really like your plugin.. but I get a lot of java child processes under ubuntu 10.04 and it maxes out my memory...
    [IMG]

    that did not happen before with just WorldEdit und WorldGuard installed... what am I doing wrong? may be the screenshot helps.. :/
  9. Offline

    Boots01

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

    I'm pretty much a complete noob at this. I run a server on a VPS to which I have root access via SSH. I've installed the wrapper and configured it. I can't execute the .sh file through Putty via SSH (I'm not sure why, liek I said - noob). If I execute the .sh file through an SFTP client it starts running, but the SFTP client crashes during the process.

    I can't seem to get into the server via putty - I can log in via SSH but there's nothing to see there - if I type 'screen -x' (what I usually type to see what the server's doing), it tells me there's no screen to be attached. I can log into the wrapper via telnet fine, but the console doesnt' seem to tell me anything.

    Everything seems to work fine from in game, the wrapper seems to be working fine, I just can't monitor it. Is there any way to still see what the server and/or wrapper is doing via SSH?
  10. Offline

    RuudschMaHinda

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

    Try
    Code:
    watch tail -n 20 /path/to/minecraft-server/server.log
  11. Offline

    Boots01

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks - figured it out. As I said, I am a total noob and was misusing screen commands.
  12. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It works with 818, I will update the thread title with 818 when I release the toolkit update, which I plan to do tonight.

    Can you show me the output of top? I've had issues with htop in the past where it seems to display dead child processes.
  13. Offline

    RuudschMaHinda

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

    Here you are... still 0M free Memory... it used to use about 1500M before... may be this helps
  14. Offline

    TheShadow777

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Okay many thanks, i love this plugin :)
  15. Offline

    murlocdummy

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

    screen -a -U -dmS mscreen java -Xms2500M -Xmx2500M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui

    I'm a bit of a noob at this, so I'm not entirely sure what -a, -U, or -dmS actually do, but one of my more technical friends told me to do it. Regardless, this command turns on the server just fine, but doesn't seem to activate RToolkit correctly.
  16. Offline

    drdanick

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

    Odd, the OOM killer should have cleared up some memory at that point. I have the feeling that these values aren't being correctly reported. Are you getting any Out Of Memory errors anywhere?



    Try (remember to replace USER and PASS with something else)
    Code:
    screen -a -U -dmS mscreen java -Xmx30M -Xms30M -XX:MaxPermSize=40M -jar Minecraft_RKit.jar USER:PASS
    
    Alternatively, you can also use:

    Code:
    screen -a -U -dmS mscreen ./rtoolkit.sh
    
    With the second option, remember to edit the .sh to change the password/username.
  17. Offline

    Kaptain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well I switched hosting providers because of other problems I was having. I'm not having any more problems, but thanks for the help lol.
  18. Offline

    yottabyte

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Using /restartsrv in game just tells me "Done!" and outputs ">Restarting server..." in the console, that's all.

    Edit: seem to happen when using overridden-process-arguments... I want to start the server like I normally do:
    Code:
    java -server -verbose:gc -Xmn1G -Xms1500M -Xmx3400M -XX:PermSize=128m -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=6 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -XX:+UseLargePages -jar craftbukkit.jar
  19. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    -Version of java?
    -When did you start having this problem?
    -Does entering .restart in the console work?
    -Can I see the body of wrapper.properties?
  20. Offline

    yottabyte

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

    - java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0-b17, mixed mode)

    - Just installed this toolkit, testing it out on my Windows PC now, hopefully going to be running it on my public server later.

    - Haven't tried that stuff yet, brings me to another point, why can't we just use the console normally? I miss that.

    -
    Code:
    #Minecraft Remote Toolkit Properties File
    #Sat Jun 04 16:32:07 CEST 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=5h
    server-heartbeat-threshold=1m
    restart-on-severe-exception=false
    server-arguments=nogui
    overridden-process-arguments=java -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:-UseGCOverheadLimit -XX:SurvivorRatio=16 -Xnoclassgc -XX:UseSSE=3 -XX:ParallelGCThreads=3 -Xincgc -Xmx2024M -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
    
  21. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @yottabyte
    Ah, there's the problem.
    You didn't disable jline when you overrided the process arguments. Actually, in your case, it would have been simpler to specify all your extra flags under extra-runtime-arguments.
    Nevertheless, if you really want to override the standard arguments, use the following config:

    Code:
    #Minecraft Remote Toolkit Properties File
    #Sat Jun 04 16:32:07 CEST 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=5h
    server-heartbeat-threshold=1m
    restart-on-severe-exception=false
    server-arguments=nogui
    overridden-process-arguments=java -Djline.terminal\=jline.UnsupportedTerminal -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:-UseGCOverheadLimit -XX:SurvivorRatio=16 -Xnoclassgc -XX:UseSSE=3 -XX:ParallelGCThreads=3 -Xincgc -Xmx2024M -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
    
    Also, on a related note, this is why the console has not been behaving as you have expected. The console will work exactly as what you are used to, minus jline (which will be difficult to implement, but I do plan on implementing it).
    yottabyte likes this.
  22. Offline

    yottabyte

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks, got it working! :)
    drdanick likes this.
  23. Offline

    drdanick

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

    Release 10 Alpha 10
    -Added the option to schedule a full wrapper shutdown, including the ability to reschedule/cancel them from the console.
    -Added the option to have the server force a save-all on a restart/hold/shutdown.
    -Added the ability to see time remaining for a restart/shutdown from the console.
    -Heartbeat responses from the plugin are no longer logged.

    Still to come
    -The ability to reload the Toolkit configuration without restarting the Toolkit.
    -An android application
    -General message broadcast scheduling (particularly useful with vanilla servers)
    -Map backups integrated into wrapper (delayed to figure out a decent way of working with the new chunk system)
    -Module documentation. Developers can PM me in the meantime for some example code.
    -Major code refactor.
  24. Offline

    51Zac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I love the plugin but I can't connect to the server through anything other than local host. I can't use the remote commands and I can't connect through the IP address. I could be a giant derp and be doing something stupid. This is my wrapper.properties and what happens when I run rtoolkit.bat

    #Minecraft Remote Toolkit Properties File
    #Sun Jun 05 00:25:53 EDT 2011
    forced-restart-delay=5s
    maximum-heap-size=1024M
    toolkit-autoshutdown-alerts=10m,5m,1m
    restart-on-severe-exception=false
    server-saveall-period=0
    extra-runtime-arguments=-Djline.terminal\=jline.UnsupportedTerminal
    force-save-on-restart=true
    server-heartbeat-threshold=1m
    server-restart-alerts=10m,5m,1m
    minecraft-server-jar=craftbukkit-0.0.1-SNAPSHOT.jar
    initial-heap-size=1024M
    overridden-process-arguments=
    failed-heartbeat-restart-count=5
    severe-exception-detection-level=1
    server-arguments=nogui
    toolkit-autoshutdown-delay=0
    import-properties=false
    server-restart-delay=5h

    Minecraft Remote Toolkit R10 Alpha 10.03
    Initializing...
    Loading toolkit properties...Done.
    Loading toolkit modules...Done.
    Wrapper is running on: Windows 7 6.1 amd64
    ERROR: Invalid shutdown time!
    Starting wrapper...
    Starting UDP listen server on port 25561
    Jun 5, 2011 12:09:20 PM net.wimpi.telnetd.net.PortListener run
    INFO: Listening to Port 25,561 with a connectivity queue size of 5.
    12:09:20 [INFO] Starting minecraft server version Beta 1.6.6
    12:09:20 [INFO] Loading properties
    12:09:20 [INFO] Starting Minecraft server on *:25565
    12:09:20 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-766-
    g3fc0460-b818jnks (MC: 1.6.6)
    12:09:20 [INFO] Preparing level "Error 404"
    12:09:20 [INFO] Preparing start region for level 0
    12:09:21 [INFO] Preparing start region for level 1
    12:09:21 [INFO] [Permissions] (Yeti) was initialized.
    12:09:21 [INFO] [Permissions] (Yeti) was initialized.
    12:09:21 [INFO] BlocksOnGlass version 0.32 is enabled!
    12:09:21 [INFO] [BlocksOnGlass] Permission system detected.
    12:09:21 [INFO] Loaded Essentials build 2.3.1 by Zenexer, ementalo, Aelux, Brett
    flan, KimKandor, snowleo, ceulemans and Xeology
    12:09:21 [INFO] Loaded EssentialsChat build 2.3.1 by Zenexer, ementalo, Aelux, B
    rettflan, KimKandor, snowleo, ceulemans and Xeology
    12:09:21 [INFO] Loaded EssentialsGeoIP build 2.3.1 by Zenexer, ementalo, Aelux,
    Brettflan, KimKandor, snowleo, ceulemans and Xeology
    12:09:21 [INFO] This product includes GeoLite data created by MaxMind, available
    from http://www.maxmind.com/.
    12:09:21 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10
    minutes!
    12:09:21 [INFO] GroupManager version 1.0(alpha-5) is enabled!
    12:09:21 [INFO] Loaded EssentialsProtect build 2.3.1 by Zenexer, ementalo, Aelux
    , Brettflan, KimKandor, snowleo, ceulemans and Xeology
    12:09:21 [INFO] Loaded EssentialsSpawn build 2.3.1 by Zenexer, ementalo, Aelux,
    Brettflan, KimKandor, snowleo, ceulemans and Xeology
    12:09:21 [INFO] Memory max: 1029046272 bytes
    12:09:21 [INFO] Memory total: 1029046272 bytes
    12:09:21 [INFO] Remote Toolkit Plugin V0.45b enabled!
    12:09:21 [INFO] [Permissions] version [3.1.1] (Yeti) loaded
    12:09:21 [INFO] RocketBoots v0.3 enabled!
    12:09:21 [INFO] [Permissions] version [2.7.2] (Yeti) loaded
    12:09:21 [INFO] Done (0.131s)! For help, type "help" or "?"

    It looked to me like a port forwarding issue but I checked and ports 25561-25565 are opened and directed to the computer I run the server from. If I run the norm,all bukkit server with out remote toolkit everything if fine. The OS is win 7 64 bit.
  25. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Try downloading it again. The IDE I switched to was causing some serious issues.
    If it still doesn't work, can you try connecting to it on a different computer on your local network?
  26. Offline

    axebyte

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Didnt think i seen this asked although there is 31 pages for me to of missed things. I had this in before, then stopped using it. when things settled down.
    I occasionally get the Read error spamming thru the console and no one able to connect. Will this detect this long stream of read timed out errors that cause no one to be able to log in. Sadly the run of errors dont even show up in the server log. Hopefully this can help.
    Thanks for keeping this plugin going awesome tool.
  27. Offline

    51Zac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    welp. When I reinstalled the toolkit it deleted all of the other plugins on its own even though just dragged and dropped the MinecraftRKitPlugin into the folder. i changed the wrapper.props to mach my craftbukkit name and ran it. I still cont connect on anycomputer.
  28. Offline

    MatCat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I didn't notice anywhere mentioned describing the settings in detail, I.E. what and how heartbeats work, how rescheduling works, etc. It showed a 4 hour I believe scheduled restart even though I have scheduled restarts turned off... Its supposed to trigger at 1 hour, I set it to 1 hour and 1 second there is no trigger, maybe because it is off? Thanks :)
  29. Offline

    drdanick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That depends on whether the server becomes unresponsive or not. There are, by default, two non-scheduled conditions that will result in an automatic server restart:
    1) The server process terminates.
    2) The server becomes unresponsive for 5 (default) minutes.

    I have not experienced that issue before, but with any luck the toolkit will force a restart.

    Are you using any firewalls? Try disabling Windows Firewall temporarily.


    I agree, there should be more detailed specifications up somewhere. Alas, my University semester finals are in a week so I can't do anything until then. I'll briefly explain heartbeats (assuming the default settings):

    -Every minute, the toolkit sends a command to the server's console.
    -This command is picked up by the plugin, and a response is sent back through the standard output stream of the server.

    The toolkit will expect at least one response every 5 minutes. If it did not receive any, it will first try to gracefully restart the server with the 'stop' command (this is in case of error), then after a minute it will force the server to stop.

    As for rescheduling, all it does is alter the time at which the next restart is due to occur. For instance, if you set the server to restart every 3 hours, and after two hours you rescheduled the time to 4h, the server would restart exactly 4 hours after you entered the reschedule command.
    Now, after the restart has occurred, the regular 3 hour restarts will resume. It is very important to note that the reschedule command will not alter the overall frequency of restarts, only the delay before the next restart.

    Now, as for your issue, how exactly did you disable the scheduled restarts? Restarts can only be totally disabled by setting the server-restart-delay key in wrapper.properties to 0. Can I have a look at the body of your wrapper configuration file?
  30. Offline

    51Zac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I should have known Windows Firewall would be the issue. Piece of junk. Thanks for the help.
  31. Offline

    gunofason

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I wouldn't say that its malfunctioning, but I have gotten this plugin/wrapper because I've been experiencing java.lang.OutOfMemoryError errors, and I'm not sure if this will restart the server. After the error goes on, no one can connect. The server is still working but just not active. After this point, I have to restart with /stop then it restarts on its own.
    My point: Is there any way you could make a option that allows the toolkit to restart server when it finds or detects the: java.lang.OutOfMemoryError ??? I don't think your toolkit will restart it after that? I tried testing it a couple of times by crashing server, and I couldnt get it to work.
    A reply on whats going on would be great!
  32. Offline

    e_zach

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ditto.
    i don't have ssh access to the server so if it gets the java.lang.OutOfMemoryError and im not near the server box (hosted at work) the server is down.
    temp solution i have currently is to have the server restart every morning automatically at 4am and allocating 6gb to the MC server so there's no issues (seems if alot of players leave/join constantly it increases the mem usage rapidly)
    so i either have to catch it when blocks start re-appearing or wait till 4am.

    being able to catch that bloody error would be awsome :)

Share This Page