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

    It does issue a stop, but not a save-all on a restart. Under normal circumstances, stop should save changes to disk, but it is likely it won't if level saving is disabled. There were issues a while ago with performing a save-all directly before a restart, but those may not be a problem anymore. I'll look into reintroducing forced level saves on restart.
    It will always wait 5 seconds AFTER the server has completely stopped before restarting. I've been seeing a number of people with rollback issues with the last bukkit build, and I am aware that they have changed how level saves work. I'm currently investigating the issue and will try to have a fix avaliable soon. In the mean time, reverting to an earlier recocmended build may be the safest option.

    You can specify custon startup args in wrapper.properties under the overridden-process-arguments key.
     
  3. Offline

    Kahl

    I am running 766, will upgrading to the latest RB stop these rollbacks from occuring?
     
  4. Offline

    sharkale

    It seems an error of "Craftbukkit". Every time you close the server is:
    When should be:
    On the other hand, the periodical saving saved successfully the changes on the map.
     
  5. Offline

    drdanick

    It may or may not, i'll be getting a fix out shortly.

    Seems that it no longer saves correctly on the stop command. The solution seems to be to force a save before stopping the server.
     
  6. Offline

    Kahl

    Running 803 and the problem still persists. I notice it saves twice before restarting.

    Check this out from my server log:
    Code:
    2011-05-25 13:13:38 [INFO] [Achievements-0.981] Achievements 0.981 Plugin Disabled
    2011-05-25 13:13:38 [INFO] Saving chunks
    2011-05-25 13:13:38 [INFO] Stopping server
    2011-05-25 13:13:38 [INFO] Saving chunks
    2011-05-25 13:13:43 [INFO] Starting minecraft server version Beta 1.5_02
    2011-05-25 13:13:43 [INFO] Loading properties
    2011-05-25 13:13:43 [INFO] Starting Minecraft server on *:25565
    2011-05-25 13:13:43 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-753-g34e310c-b803jnks (MC: 1.5_02)
    2011-05-25 13:13:43 [INFO] Preparing level "world"
    Could this possibly be the problem?
     
  7. Offline

    drdanick

    Do you get simillar output when you issue the stop command manually?
     
  8. Offline

    Kahl

    I cannot really test this currently, I have 60+ players online and don't want kids raging.

    On a vanilla server I got this when stopping and then manually running again:
    Code:
    2011-05-26 06:31:00 [INFO] Stopping the server..
    2011-05-26 06:31:00 [INFO] Stopping server
    2011-05-26 06:31:00 [INFO] Saving chunks
    2011-05-26 06:31:24 [INFO] Starting minecraft server version Beta 1.5_02
    2011-05-26 06:31:24 [INFO] Loading properties
    2011-05-26 06:31:24 [INFO] Starting Minecraft server on *:25565
    The sooner this gets resolved the better... I'm sure many high-capacity servers are being affected by this. Thanks for the support.
     
  9. Offline

    drdanick

    Is your restart period a multiple of the save period?
    I have been unable to replicate this on my test server, but it may have something to do with forcing a save and stopping the server simultaneously.
     
  10. Offline

    Unscrewed

    I get JavaSocketError: socket closed
    Am I supposed to put the UDP Port from 25561 to my server port (25565)?
    CB Build: 812
     
  11. Offline

    Kahl

    Yes it is. Restarts every 3h and saves every 1h.

    May I should change restarts to every 3h 30m ?
     
  12. Offline

    drdanick

    That is perfectly normal and is a side effect of having the UDP server refresh every so often. I should have those messages suppressed in the next update.

    Yes. I have a feeling that is probably where the problem is. Tell me if that fixes it.
    Also, out of curiosity, how large is your world on disk and approximately how long does it take to perform a save-all?
     
  13. Offline

    Kahl

    It takes 2-4 seconds and I'm not sure on the size, but it is pretty massive.

    These are our server stats:
    Code:
       Player on Server 4,881
    
       Total Blocks Destroyed 4,958,825
    
       Total Blocks Placed 1,620,372
    
       Total Armswing 3,343,163x
    
       Total Gametime 13,284  Hours
    
       Logins 15,984x
    
       Move 152,042,326  Blocks
    
       Open Chest 247,235x
    
       Commands 175,528x
    
       Chat 273,279  with  4,830,171 letters
    
     
  14. Offline

    drdanick

    If it takes more than 3 seconds it does have a chance of occuring concurrently to the save performed on a server stop, which seems to be the root of the problem. I'll try to get a bugfix for this out today, thank you for all the information you have provided, it has been invaluable in diagnosing the cause of this problem. (do still confirm that changing the restart time corrected the issue)
     
  15. Offline

    Kahl

    I'll let you know if I get any complaints on 1h and 3h 30m.

    If you're interested on testing some new features large-scale I'd be happy to help you as our server gets a ton of traffic. Message me for our website/IP.
     
  16. Offline

    Unscrewed

    @drdanick
    I don't get it, I did everything in the wiki and I get the socket closed error.
    I have the idea it means a port is closed? Because when I restart it remotly, it gives that error and nothing happens.
    I wanted to run the UDP remote thing on port 25565, thats were my server is running on.. soo I changed it to 25565.
     
  17. Offline

    drdanick

    Ah. The telnet daemon also runs on the remote port, and seeing as it is TCP it will clash with the minecraft server, which also binds to TCP port 25565. Can you give me a larger, more broad paste of the console? I'd like to see what the surrounding output is.
     
  18. Offline

    l104693

    Hello drdanick, I really appreciate your work!

    I have a small question, when I login to my console through telnet. How do I close the connection? When I just press the exit button the server is giving error's after each line of text...
    Kind Regards,

    l104693
     
  19. Offline

    drdanick

    Odd, what telnet client are you using?
    Try pressing ctrl+d.
     
  20. Offline

    l104693

    I'm using putty.exe (as said on: http://wiki.bukkit.org/Server_Remote_Toolkit)
    The error I get is:
    Code:
    Telnet input stream error: java.io.EOFException
    Telnet input stream closing...
    save-all
    15:40:26 [INFO] Forcing save..
    15:40:26 [INFO] Save complete.
    Telnet shell IO exception: java.net.SocketException: Software caused connection
    abort: socket write error
    And that last error will go after each rule of new text in the console.
    I'll test ctrl+d now ;)
     
  21. Offline

    drdanick

    So long as those exceptions aren't printed any more than that, then it is perfectly normal. ;)
     
  22. Offline

    l104693

    That works perfect! Thank you!
    Besides, after each command through console I get:
    Code:
    15:42:44 [INFO] Unknown console command. Type "help" for help.
    Is there something I can do about it?
     
  23. Offline

    drdanick

    If this is happening after disconnecting the telnet client abruptly, then it is indeed a bug. I will look into it.
     
  24. Offline

    l104693

    No, I'll explain it a little better ;) With a screenshot :)
    http://img20.imageshack.us/img20/6205/naamloossj.jpg
    [​IMG]

    P.s. Thanks for your quick reply's! :D
     
  25. Offline

    drdanick

    Have you made sure that these errors aren't present even without the wrapper? If they are then there is little I can do.
     
  26. Offline

    l104693

    In the screenshots I'm running: Craftbukkit 814 & remote toolkit r10.
    I use no other plug-ins...
     
  27. Offline

    drdanick

    Ok, i'll see if I can investigate what the problem is now.
     
  28. Offline

    Unscrewed

    Code:
    2011-05-28 05:57:23 [INFO] Starting minecraft server version Beta 1.6.4
    2011-05-28 05:57:23 [INFO] Loading properties
    2011-05-28 05:57:23 [INFO] Starting Minecraft server on 72.26.196.178:25565
    2011-05-28 05:58:10 [INFO] Starting minecraft server version Beta 1.6.4
    2011-05-28 05:58:10 [INFO] Loading properties
    2011-05-28 05:58:10 [INFO] Starting Minecraft server on 72.26.196.178:25565
    2011-05-28 05:58:10 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-762-g69e11d1-b815jnks (MC: 1.6.4)
    2011-05-28 05:58:10 [INFO] Preparing level "world"
    2011-05-28 05:58:10 [INFO] Preparing start region for level 0
    2011-05-28 05:58:11 [INFO] DataSourcePool [BukkitPiston] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-28 05:58:11 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-28 05:58:12 [INFO] trimming off 'is' from boolean field name isOp in class com.bukkit.redspider.bukkitPiston.PersistentPlayer
    2011-05-28 05:58:12 [INFO] Entities enhanced[0] subclassed[3]
    2011-05-28 05:58:12 [INFO] DataSourcePool [iConomyChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-28 05:58:12 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-28 05:58:12 [INFO] Entities enhanced[0] subclassed[1]
    2011-05-28 05:58:12 [INFO] LWC	Loading shared objects
    2011-05-28 05:58:12 [INFO] LWC	Native library: plugins/LWC/lib/native/Windows/x86/sqlitejdbc.dll
    2011-05-28 05:58:12 [INFO] [LogBlock] Connecting to unscrewed@jdbc:mysql://db4free.net:3306/mclblock...
    2011-05-28 05:58:14 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
    2011-05-28 05:58:14 [INFO] GroupManager version 1.0(alpha-5) is enabled!
    2011-05-28 05:58:14 [INFO] Fake Permissions version 2.5.1 is enabled!
    2011-05-28 05:58:14 [INFO] Backup v1.5 was sucessfully loaded!
    2011-05-28 05:58:14 [INFO] Loading BukkitPiston 0.53
    2011-05-28 05:58:14 [INFO] [ColorMe] v2.0 has been enabled.
    2011-05-28 05:58:14 [INFO] CommandBook 1.5.1-customized enabled.
    2011-05-28 05:58:14 [INFO] CommandBook: 89 banned name(s) loaded.
    2011-05-28 05:58:14 [INFO] CommandBook: 1 kit(s) loaded.
    2011-05-28 05:58:14 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-28 05:58:14 [INFO] [HeroicDeath] 1.8.1.156 enabled.
    2011-05-28 05:58:14 [INFO] [iChat] Found Permissions (v2.5.1)
    2011-05-28 05:58:14 [INFO] iChat (v2.2.3) enabled
    2011-05-28 05:58:15 [INFO] [iConomy] Logging is currently disabled.
    2011-05-28 05:58:15 [INFO] [iConomy] v5.0 (Eruanna) loaded.
    2011-05-28 05:58:15 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-05-28 05:58:15 [INFO] [iConomy] hooked into Permissions.
    2011-05-28 05:58:15 [INFO] [iConomyChestShop] version 2.6 initialized!
    2011-05-28 05:58:15 [INFO] [iConomyChestShop] iConomy version 5.0 loaded.
    2011-05-28 05:58:15 [INFO] [iConomyChestShop] Permissions version 2.5.1 loaded.
    2011-05-28 05:58:15 [INFO] [iConomyChestShop] LWC version 2.31 loaded.
    2011-05-28 05:58:15 [INFO] [LogBlock] Permissions enabled
    2011-05-28 05:58:15 [INFO] [LogBlock] Scheduled consumer with bukkit scheduler.
    2011-05-28 05:58:15 [INFO] Logblock v0.15b enabled.
    2011-05-28 05:58:15 [INFO] LWC	Loaded 116 locale strings (0 overrides)
    2011-05-28 05:58:15 [INFO] LWC	Using Nijikokun's permissions plugin for permissions
    2011-05-28 05:58:15 [INFO] LWC	Loading SQLite
    2011-05-28 05:58:15 [INFO] SQLite	Using: Native
    2011-05-28 05:58:15 [INFO] LWC	At version: v2.31
    2011-05-28 05:58:15 [INFO] [mcMMO] Permissions enabled.
    2011-05-28 05:58:15 [INFO] mcMMO version 1.0.07 is enabled!
    2011-05-28 05:58:15 [INFO] Memory max: 1037959168 bytes
    2011-05-28 05:58:15 [INFO] Memory total: 1037959168 bytes
    2011-05-28 05:58:15 [INFO] Remote Toolkit Plugin V0.4b enabled!
    2011-05-28 05:58:15 [INFO] [MYHOME]: 187 homes loaded
    2011-05-28 05:58:15 [INFO] [MYHOME] Permissions enabled using: GroupManager v1.0(alpha-5)
    2011-05-28 05:58:15 [WARNING] [MYHOME] 'Help' isn't detected. No /help support.
    2011-05-28 05:58:15 [INFO] [MYHOME] MyHome 1.9.5 enabled
    2011-05-28 05:58:15 [WARNING] [NoCheat] version [0.8.6] couldn't find CrafTIRC plugin. Disabling logging to IRC.
    2011-05-28 05:58:15 [INFO] [NoCheat] version [0.8.6] is enabled with the following checks: moving flying speedhack bedteleport
    2011-05-28 05:58:15 [INFO] SimpleHelp V1.3 Enabled!
    2011-05-28 05:58:15 [INFO] [SpawnControl] version [0.8.1] loaded
    2011-05-28 05:58:15 [INFO] [VanishNoPickup] 1.7 enabled.
    2011-05-28 05:58:15 [INFO] WorldEdit 4.4 enabled.
    2011-05-28 05:58:15 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-28 05:58:16 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-28 05:58:16 [INFO] WorldGuard: (world) Single session is enforced.
    2011-05-28 05:58:16 [INFO] WorldGuard: (world) TNT ignition is blocked.
    2011-05-28 05:58:16 [INFO] WorldGuard: (world) Lighters are PERMITTED.
    2011-05-28 05:58:16 [INFO] WorldGuard: (world) Lava fire is blocked.
    2011-05-28 05:58:16 [INFO] WorldGuard: (world) All fire spread is disabled.
    2011-05-28 05:58:16 [INFO] WorldGuard: Loaded configuration for world 'world"
    2011-05-28 05:58:16 [INFO] WorldGuard: 1 regions loaded for 'world'
    2011-05-28 05:58:16 [INFO] WorldGuard 5.0-alpha10 enabled.
    2011-05-28 05:58:16 [INFO] Done (0.526s)! For help, type "help" or "?"
    There you go and thanks for the explaination and help! :)
     
  29. Offline

    drdanick

    I can't see the issue in there. Are you still getting the problem, or did you just not include it in the paste?
     
  30. Offline

    EnzoFX

    This might not be ideal =P, but I just had the idea of an option that restarted the server as well on a schedule.
     
  31. Offline

    drdanick

    How would it be different from the current restart scheduling?
     
Thread Status:
Not open for further replies.

Share This Page