Inactive [ADMN] AutoSave v2.0.1 - Automatic World Saves [935]

Discussion in 'Inactive/Unsupported Plugins' started by cereal, Feb 13, 2011.

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

    cereal

    AutoSave is now on Bukkit Dev! Plenty of information and it is overall much better documented there than it has been here. Wiki pages really help organize all the information that is needed.

    Discuss AutoSave on Bukkit Dev and get information, files, and more from there!




    AutoSave - Automatic World Saves:
    Version: 2.0.1

    AutoSave is meant to provide a simple method to automatically save your world at a defined interval! This plugin ONLY saves to the proper world directories within the Minecraft server. It is not a backup plugin, it is meant to increase persistence and reduce the affects of a server crash.

    Features:
    • Performs a world saves (same as save-all on console)
    • Repeats the above at user defined interval!
    • Warning messages
    • Multi-World Support
    • Configurable messages
    • Option to disable broadcast message
    Download The Plugin
    Source Code

    Changelog:
    Version 2.0.1
    • Small library changes
    Version 2.0.0
    • Color Messages support!
    • Support for Multiple Permissions Plugins (natively)
    • No more version nagging
    • ASync Tasks instead of Sync Tasks (possible performance increase)
    Version 1.3.0
    • Perform save after last player leaves (quits/kicked).
    Full Changelog

    Future Release To-do List:
    • Calculate and create variable for time elapsed during save
    • Make bacon
    • Get more feature suggestions
    Configuration:

    You can configure the plugin via an XML file located at "plugins/AutoSave/config.properties".
    • message.broadcastpre: Message broadcast to all players prior to save
    • message.broadcastprost: Message broadcast to all players after save completed
    • message.insufficentpermissions: Customizable generic insufficient permissions message
    • message.saveplayers: Customizable players save message
    • message.saveworlds: Customizable worlds save message
    • message.warning: Customizable warning message
    • value.off: Customizable value of "off"
    • value.on: Customizable value of "on"
    • var.broadcast: True or False value specifying if broadcasts should be used
    • var.debug: True or False value specifying for additional console output
    • var.interval: Number of seconds between saves
    • var.permissions: Bypass permissions entirely
    • var.report: Toggles reporting thread
    • var.uuid: Anonymous identification
    • var.warntime: n time before the save happens when a warning is broadcast to players, multiple values can be passed by separating by commas
    • var.worlds: Comma seperated list of loaded worlds to be saved. * indicates ALL worlds will be saved.
    Colors:
    If you want to user colors, its simple. Just use one of the following in the appropriate location (config file):
    • Aqua: %AQUA%
    • Black: %BLACK%
    • Dark Aqua: %DARK_AQUA%
    • Dark Blue: %DARK_BLUE%
    • Dark Gray: %DARK_GRAY%
    • Dark Green: %DARK_GREEN%
    • Dark Purple: %DARK_PURPLE%
    • Dark Red: %DARK_RED%
    • Gold: %GOLD%
    • Gray: %GRAY%
    • Green: %GREEN%
    • Light Purple: %LIGHT_PURPLE%
    • Red: %RED%
    • White: %WHITE%
    • Yellow: %YELLOW%
    License:
    Copyright 2011 MilkBowl (https://github.com/MilkBowl)

    This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.


    Commands:

    Note: ALL of the below commands can start with autosave instead of save if another plugin is using the save command such as WorldEdit. This will always allow access to the in game configuration of the plugin.

    /save
    Saves the world outside of the interval.​
    Requires Permission: autosave.save​
    /save help
    Displays help dialogue​
    /save toggle
    Toggles the automatic saves (turns off or on depending on current setting)​
    Requires Permission: autosave.toggle​
    /save status
    Prints status message about the current state of automatic saves​
    Requires Permission: autosave.status​
    /save interval {seconds}
    Sets or gets the interval setting in seconds​
    Requires Permission: autosave.interval​
    /save addworld [value]
    Adds world to the World Save List​
    Requires Permission: autosave.world.add​
    /save remworld [value]
    Removes world from the World Save List​
    Requires Permission: autosave.world.rem​
    /save world
    Displays the World Save List​
    Requires Permission: autosave.world​
    /save broadcast {on|off}
    Sets or gets the broadcast setting​
    Requires Permission: autosave.broadcast​
    /save debug {on|off}
    Sets or gets the debug setting​
    Requires Permission: autosave.debug​
    /save warn {seconds[,seconds]...}
    Sets or gets the warning time setting in seconds (warns users of an upcoming save n seconds before it happens)​
    Requires Permission: autosave.warn​
    /save version
    Prints AutoSave version​
    Requires Permission: autosave.version​

    Reporting:

    AutoSave reports minimal anonymous data to provide general usage tracking. No personal or server information is ever transmitted. The following data is provided:
    • Plugin Name (this will always be AutoSave)
    • Plugin Version
    • Bukkit Version (the full Bukkit version string)
    • Operating System
      • Name
      • Version
      • Architecture
    • Java Version
    This data helps me understand the environments in which AutoSave is used within, however you are more than welcome to disable it, either via "var.report" in the configuration file, or "save report [off|on]" from console.

    Known Issues:
    • During upgrade messages no longer are colored
      • Solution: Delete config file or add colors manually
    Permissions:

    Permissions can be disabled by manually editing the config file and setting "permissions" to false. That will completely disable Permissions. Running AutoSave without Permissions with the value to true (default) will cause the plugin to unload itself.

    Here are the permission settings, either do 'autosave.*' or use the granular permissions below:
    autosave.save: Allows the ability to save at any time​
    autosave.toggle: Allows the ability to stop and start AutoSave​
    autosave.status: Allows the ability to see status of AutoSave​
    autosave.interval: Allows the ability to see and change interval setting​
    autosave.broadcast: Allows the ability to see and change broadcast setting​
    autosave.version: Allows the ability to see the version of AutoSave​
    autosave.debug: Allows the ability to change the debug setting​
    autosave.warn: Allows the ability to see and change the warning time setting​
    autosave.world: Allows the ability to view the world save list​
    autosave.world.add: Allows the ability to add to the world save list​
    autosave.world.rem: Allows the ability to remove from the world save list​
     
    bobacadodl, iKeirNez, Joe12o and 12 others like this.
  2. Offline

    cereal

    Build 935 is within 2 Recommended Builds (and it works fine on Build 1000). No update is needed.
     
  3. Offline

    mmousa

    Hahaha I Sure did Friend :D
     
  4. Offline

    h0us3cat

    this is not a backup plugin.
     
  5. Offline

    MusicMonkey5555

    I am having a couple issues. One this plugin seems to work sometimes and sometimes not. I am not sure if it is because there is a conflict with something like WorldEdit or not. I am not getting any errors in the console it just sometimes (when I restart my server or /reloadall) doesn't save after the interval time when people are on (waited a long while).

    Also /save-all doesn't seem to work neither does /save. I read over this thread and it seems instead I need to use the command /autosave but that doesn't do anything either. I also tried /autosave help and /simplesave help and still nothing in the console.

    Not sure what is going on.

    I have the latest version of the mincraft server and my plugins are:
    ChatManager.jar
    CraftBook.jar
    CraftBookCircuits.jar
    CraftBookMechanisms.jar
    CraftBookVehicles.jar
    dynmap.jar
    Essentials.jar
    EssentialsChat.jar
    EssentialsGeoIP.jar
    EssentialsProtect.jar
    EssentialsSpawn.jar
    HeroicDeath.jar
    iChat-p3.jar
    iConomy.jar
    LWC.jar
    mcMMO.jar
    MobRider.jar
    Modifyworld.jar
    Paid2Mine.jar
    Permissions.jar
    PermissionsEx.jar
    SimpleSave.jar
    Tombstone.jar
    uQuest.jar
    WorldEdit.jar
    WorldGuard.jar

    If you need to know any more info let me know.
     
  6. Offline

    Magie

    Everytime when the AutoSave start I have this error in server log...
    Code:
    2011-08-15 16:30:59 [INFO] [AutoSave] World Auto-Saving
    2011-08-15 16:31:00 [SEVERE] java.io.IOException: Bad file descriptor
    2011-08-15 16:31:00 [SEVERE]     at java.io.RandomAccessFile.write(Native Method)
    2011-08-15 16:31:00 [SEVERE]     at java.io.RandomAccessFile.writeInt(RandomAccessFile.java:987)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.RegionFile.a(SourceFile:364)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.RegionFile.a(SourceFile:310)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    2011-08-15 16:31:00 [SEVERE]     at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:149)
    2011-08-15 16:31:00 [SEVERE]     at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.ChunkProviderServer.saveChunk(ChunkProviderServer.java:164)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.ChunkProviderServer.saveChunks(ChunkProviderServer.java:213)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.World.save(World.java:210)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.World.doTick(World.java:1718)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-08-15 16:31:00 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  7. Offline

    jyggen

    Latest Recommended Build (#1060), get this every 5 minutes or so:
    Code:
    23:43:32 [INFO] [AutoSave] AutoSaveThread Started: Interval is 300 seconds, Warn Times are 0
    23:43:32 [SEVERE] java.lang.NullPointerException
    23:43:32 [SEVERE]       at java.lang.System.arraycopy(Native Method)
    23:43:32 [SEVERE]       at java.io.BufferedOutputStream.write(BufferedOutputStream.java:111)
    23:43:32 [SEVERE]       at java.io.DataOutputStream.write(DataOutputStream.java:90)
    23:43:32 [SEVERE]       at net.minecraft.server.Packet51MapChunk.a(Packet51MapChunk.java:88)
    23:43:32 [SEVERE]       at net.minecraft.server.Packet.a(Packet.java:116)
    23:43:32 [SEVERE]       at net.minecraft.server.NetworkManager.f(NetworkManager.java:107)
    23:43:32 [SEVERE]       at net.minecraft.server.NetworkManager.d(NetworkManager.java:263)
    23:43:32 [SEVERE]       at net.minecraft.server.NetworkWriterThread.run(SourceFile:107)
    23:43:32 [INFO] Connection reset
    
     
  8. Offline

    Leviathanx

    Getting the same error the person above me is getting using #1060, update soon?
     
  9. Offline

    kevishou

    hum lol where does it save and it save the whole world??
     
  10. Offline

    Deano

    *slap* dude. 1060 just came out. and it works fine in 1000.
     
  11. Offline

    KrisEike

    Does this work with 1060?
     
  12. Offline

    cereal

    This doesn't make any sense. Run /version AutoSave and see what it reports? Also you should make an effort to enable debug mode by using /autosave debug on

    Good luck.

    Read the 1st post again.

    Should ;) No changes in Bukkit for world saving. As a note, Bukkit has not broken AutoSave since it pulled the commits for World and Player saves in. They likely have no need to change these functions and as such, I pay less attention to AutoSave because its been stable for so long. Give it a test and you'll know if it works!

    It's expected and hasn't caused issues. This is happening because we're making it run as an ASynchronous Thread which for large server can be a huge performance gain. I'm going to soon be adding an option to choose how the saves are performed so you don't see these errors.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  13. Offline

    KillFce

    great plugin never failed me although i still do manual back ups this makes saving really great, will there be updates in the future?
     
  14. Offline

    cereal

    Yes, I am working on it right now ;)
     
  15. Offline

    KillFce

    Great to know, thanks! :D
     
  16. Offline

    cereal

    I'm either feeling brave or generous. I'm unsure which it is at this point, maybe a little bit of both!

    I've got some development builds running of the next version of AutoSave (v3.0.0), feel free to give it a trial run but normal disclaimer applies. Don't expect it to be flawless, make backups, and expect I'll be slow to fix any issues with the code. Any of the side effects of the code are fully your responsibility so don't be mad.

    Some notable changes:
    • yaml configuration
    • Color codes are now &1-&f (you must use & now)
    • Messages were slightly re-worked
    • Synchronous & ASynchronous saving support
    • ASynchronous saving support
      • DISABLES internal bukkit saving to prevent errors
      • Enables internal bukkit saving when AutoSave is disabled
      • Allows for significant lag reductions, but think before you do this!
      • Currently disables internal bukkit saving on ALL worlds regardless of the configuration (to be fixed)
    • Synchronous saving support (DEFAULT)
      • Internal bukkit saving is not disabled
    • Saving Thread is only started and stoped during onEnable and onDisable and player join/quit events do not affect this thread (fix for multiple save threads running)
    So yea, give it a try. If you don't understand how to configure yaml, move on as I won't accept support requests on this thread. If you encounter an error with AutoSave 3.0.0 please post a bug report directly to our Github issues page here. Bug reports and support for v3 will be ignored on this thread!

    With that said, here's the dev builds:
    http://ci.milkbowl.net/job/AutoSave/lastBuild/
     
  17. Offline

    GordonGrey

    Using this currently and it runs like butter in the sun.
    Ill report if anything goes wonky. Thanks, great plugin.
     
  18. Offline

    cereal

    Your speaking of the development version (3.0.0)?
     
  19. Offline

    GordonGrey

    No sorry I am using 2.0.1. I had issues with other plugins of this nature. Not anymore though :)
     
  20. Offline

    erdrickk

    I get this error when AutoSave does its thing.... It also mentions Falsebook in the error so I am not sure if its AutoSave or Falsebook...

    Code:
    19:02:40 [INFO] [AutoSave] ?9World Auto-Saving
    19:02:40 [SEVERE] java.io.IOException: Stream Closed
    19:02:40 [SEVERE] at java.io.RandomAccessFile.seek(Native Method)
    19:02:40 [SEVERE] at net.minecraft.server.RegionFile.a(SourceFile:342)
    19:02:40 [SEVERE] at net.minecraft.server.RegionFile.a(SourceFile:279)
    19:02:40 [SEVERE] at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    19:02:40 [SEVERE] at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:166)
    19:02:40 [SEVERE] at java.io.FilterOutputStream.close(FilterOutputStream.java:160)
    19:02:40 [SEVERE] at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    19:02:40 [SEVERE] at net.minecraft.server.ChunkProviderServer.saveChunk(ChunkProviderServer.java:164)
    19:02:40 [SEVERE] at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:248)
    19:02:40 [SEVERE] at net.minecraft.server.World.doTick(World.java:1719)
    19:02:40 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
    19:02:40 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    19:02:40 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    19:02:44 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to FalseBookIC
    java.lang.ArrayIndexOutOfBoundsException: 6
    at com.gemo.FalseBook.IC.FalseBookICBlockListener.checkPistonEvent(FalseBookICBlockListener.java:92)
    at com.gemo.FalseBook.IC.FalseBookICBlockListener.onBlockPistonExtend(FalseBookICBlockListener.java:112)
    at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:540)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
    at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
    at net.minecraft.server.World.k(World.java:459)
    at net.minecraft.server.World.applyPhysics(World.java:437)
    at net.minecraft.server.World.update(World.java:407)
    at net.minecraft.server.World.setTypeIdAndData(World.java:391)
    at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:142)
    at net.minecraft.server.World.a(World.java:1997)
    at net.minecraft.server.World.doTick(World.java:1736)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    19:02:44 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to FalseBookIC
    java.lang.ArrayIndexOutOfBoundsException: 6
    at com.gemo.FalseBook.IC.FalseBookICBlockListener.checkPistonEvent(FalseBookICBlockListener.java:92)
    at com.gemo.FalseBook.IC.FalseBookICBlockListener.onBlockPistonExtend(FalseBookICBlockListener.java:112)
    at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:540)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
    at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
    at net.minecraft.server.World.k(World.java:459)
    at net.minecraft.server.World.applyPhysics(World.java:437)
    at net.minecraft.server.World.update(World.java:407)
    at net.minecraft.server.World.setTypeIdAndData(World.java:391)
    at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:142)
    at net.minecraft.server.World.a(World.java:1997)
    at net.minecraft.server.World.doTick(World.java:1736)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    19:02:45 [INFO] [AutoSave] ?9World Auto-Save Complete
     
  21. Offline

    davvem

    Great! i used to have simplerestart (not saying it's bad ofc) but my iternet is really odd, once i loose connection to the server, my internet dies, so i needed something to keep it up =p Thx for devloping this pluggin =)
     
  22. Offline

    Matty2010

    so what does this actully do?
     
  23. Offline

    raupy

    Does it still work?
     
  24. Offline

    cereal

    @erdrickk You actually have two distinctly different errors. First is one that occurs from AutoSave at 19:02:40 and then 4 seconds later at 19:02:44 you get two from FalseBookIC. They are not related.

    AutoSave Exception:
    Code:
    19:02:40 [INFO] [AutoSave] ?9World Auto-Saving
    19:02:40 [SEVERE] java.io.IOException: Stream Closed
    19:02:40 [SEVERE] at java.io.RandomAccessFile.seek(Native Method)
    19:02:40 [SEVERE] at net.minecraft.server.RegionFile.a(SourceFile:342)
    19:02:40 [SEVERE] at net.minecraft.server.RegionFile.a(SourceFile:279)
    19:02:40 [SEVERE] at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    19:02:40 [SEVERE] at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:166)
    19:02:40 [SEVERE] at java.io.FilterOutputStream.close(FilterOutputStream.java:160)
    19:02:40 [SEVERE] at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    19:02:40 [SEVERE] at net.minecraft.server.ChunkProviderServer.saveChunk(ChunkProviderServer.java:164)
    19:02:40 [SEVERE] at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:248)
    19:02:40 [SEVERE] at net.minecraft.server.World.doTick(World.java:1719)
    19:02:40 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
    19:02:40 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    19:02:40 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    FalseBookIC Exception #1:
    Code:
    19:02:44 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to FalseBookIC
    java.lang.ArrayIndexOutOfBoundsException: 6
    at com.gemo.FalseBook.IC.FalseBookICBlockListener.checkPistonEvent(FalseBookICBlockListener.java:92)
    at com.gemo.FalseBook.IC.FalseBookICBlockListener.onBlockPistonExtend(FalseBookICBlockListener.java:112)
    at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:540)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
    at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
    at net.minecraft.server.World.k(World.java:459)
    at net.minecraft.server.World.applyPhysics(World.java:437)
    at net.minecraft.server.World.update(World.java:407)
    at net.minecraft.server.World.setTypeIdAndData(World.java:391)
    at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:142)
    at net.minecraft.server.World.a(World.java:1997)
    at net.minecraft.server.World.doTick(World.java:1736)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    FalseBookIC Exception #2:
    Code:
    19:02:44 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to FalseBookIC
    java.lang.ArrayIndexOutOfBoundsException: 6
    at com.gemo.FalseBook.IC.FalseBookICBlockListener.checkPistonEvent(FalseBookICBlockListener.java:92)
    at com.gemo.FalseBook.IC.FalseBookICBlockListener.onBlockPistonExtend(FalseBookICBlockListener.java:112)
    at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:540)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
    at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
    at net.minecraft.server.World.k(World.java:459)
    at net.minecraft.server.World.applyPhysics(World.java:437)
    at net.minecraft.server.World.update(World.java:407)
    at net.minecraft.server.World.setTypeIdAndData(World.java:391)
    at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:142)
    at net.minecraft.server.World.a(World.java:1997)
    at net.minecraft.server.World.doTick(World.java:1736)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    As far as the AutoSave exception you see, it is expected in AutoSave 2.0.1 and we haven't seen any side effects beyond the exception itself. I wouldn't loose sleep over it. However, in AutoSave 3.0.0 (Alpha) these errors should not occur and you are more than welcome to give it a trial run. I posted the information about it a page ago I believe.

    Glad to help!

    You could at least guess at what it does and ask if it actually does what your guessing. I'd reply with a nice explanation, but seriously I did that in the first post and about 100 other times in this thread. Read the first post, and if you still can't guess as to what it does, read it again.

    Did you even try it? I'm guessing not.

    AutoSave is now on Bukkit Dev! Plenty of information and it is overall much better documented there than it has been here. Wiki pages really help organize all the information that is needed.

    AutoSave on Bukkit Dev

    Further discuss AutoSave on Bukkit Dev and get information, files, and more from there!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  25. Offline

    h0us3cat

    @cereal

    Getting this error when the worlds are saving
    Code:
    2011-08-28 13:15:26 [INFO] [AutoSave] §9Warning, AutoSave will commence soon.
    2011-08-28 13:15:36 [INFO] [AutoSave] §9Saving worlds
    2011-08-28 13:15:38 [SEVERE] java.io.IOException: Stream Closed
    2011-08-28 13:15:38 [SEVERE]     at java.io.RandomAccessFile.seek(Native Method)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.RegionFile.a(SourceFile:342)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.RegionFile.a(SourceFile:279)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    2011-08-28 13:15:38 [SEVERE]     at java.util.zip.DeflaterOutputStream.close(Unknown Source)
    2011-08-28 13:15:38 [SEVERE]     at java.io.FilterOutputStream.close(Unknown Source)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.ChunkProviderServer.saveChunk(ChunkProviderServer.java:164)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.ChunkProviderServer.saveChunks(ChunkProviderServer.java:213)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.World.save(World.java:216)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.World.doTick(World.java:1732)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:443)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    2011-08-28 13:15:38 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-28 13:15:39 [SEVERE] java.io.IOException: Stream Closed
    2011-08-28 13:15:39 [SEVERE]     at java.io.RandomAccessFile.seek(Native Method)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.RegionFile.a(SourceFile:342)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.RegionFile.a(SourceFile:279)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    2011-08-28 13:15:39 [SEVERE]     at java.util.zip.DeflaterOutputStream.close(Unknown Source)
    2011-08-28 13:15:39 [SEVERE]     at java.io.FilterOutputStream.close(Unknown Source)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ChunkProviderServer.saveChunk(ChunkProviderServer.java:164)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ChunkProviderServer.saveChunks(ChunkProviderServer.java:213)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.World.save(World.java:216)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.World.doTick(World.java:1732)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:443)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-28 13:15:39 [SEVERE] java.io.IOException: Stream Closed
    2011-08-28 13:15:39 [SEVERE]     at java.io.RandomAccessFile.seek(Native Method)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.RegionFile.a(SourceFile:342)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.RegionFile.a(SourceFile:279)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ChunkBuffer.close(SourceFile:259)
    2011-08-28 13:15:39 [SEVERE]     at java.util.zip.DeflaterOutputStream.close(Unknown Source)
    2011-08-28 13:15:39 [SEVERE]     at java.io.FilterOutputStream.close(Unknown Source)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ChunkRegionLoader.a(SourceFile:64)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ChunkProviderServer.saveChunk(ChunkProviderServer.java:164)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ChunkProviderServer.saveChunks(ChunkProviderServer.java:213)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.World.save(World.java:216)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.World.doTick(World.java:1732)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:443)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    2011-08-28 13:15:39 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-28 13:15:40 [INFO] [AutoSave] §9Worlds saved
    cb # 1064
    as # 2.01
     
  26. Offline

    cereal

     
  27. Offline

    sayton12

    Finally tracked down the buggy plugin that was causing a spike to 30% CPU every 5-6 seconds. It was this plugin. Any chance you can fix that?
     
  28. Offline

    cereal

    What version were you using? You are the first to comment on this so you'll need to explain your setup (hardware [disk, memory, cpu, etc], softare [bukkit version, os], minecraft environment [number of players, number of worlds, sizes of each world]). Without this, I don't think anyone could really troubleshoot that.
     
  29. Offline

    AgentKid

    @cereal Just found that my server had, out of nowhere, decided to access a few thousand completely random files. I took down the server and re-added the plugins one by one, and to my amazement, it seems to have been AutoSave. I don't know what exactly happened to trigger it, as it has been working for months and I didn't update any plugins/CB when it started happening, but it happened. I'll try 3.0.0 and see if that works. If you want, here's the output of 'lsof' on console: http://pastebin.com/Si05c1ys . I have no clue what files it's trying to access, but I know that it appears to go away when I remove AutoSave.
    Java specs:
    [email protected]:~$ java -version
    java version "1.6.0_22"
    OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
    OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

    Formal bug report:

    Plugin Name: AutoSave
    Plugin Version: 2.0.1
    Bukkit Version: Craftbukkit version git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks (MC: 1.7.3)
    OS: Ubuntu 11.04 64-bit
    Java: java version "1.6.0_22"; OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1); OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)


    EDIT: Happens on 3.0.0-dev-22 as well. Any ideas? Also if you need it:
    Code:
    05:51:47 [INFO] Plugins: Inception, WaterproofRedstone, BlockCantKeepUpSpam, CommandAlert, KiwiAdmin, AutoSave, Minequery, mobchange, Lockette, WorldGuard, PressurePort, NarrowtuxLib, MCDocs, TelePlusPlus, OpenInv, DeathTpPlus, Spout, SpyerAdminCommands, PlugMan, PDrill, PlgColdLightning, Biome, TooManyBuckets, MultiInv, CommandHelper, MachineCraft, Backup, RemoteToolkitPlugin, CommandBook, MobRain, FlowerPower, HeroChat, SpoutCoords, SpoutEssentials, HeadBlocks, MobDisguise, MagicCarpet, BorderGuard, MobRider, SpyerAdmin, Mobiile, BigBrother, WorldEdit, Superpickaxe, BlockCrusher, BlockDetect, Multiverse-Core, PaintingSwitch, MinecraftViewer, SkyPirates, VoxelSniper, Warpz0r, GroupManager, LibertasLoader, Vanilla, Transporter, Multiverse-Portals, PlayerEditor, Permissions, Multiverse-NetherPortals, ScubaKit, NoCheat, MyWolf, StyxSpace
     
  30. Offline

    TewDIE

    I just had the weirdest crash ever this morning. it involved AutoSave...

    So what happened was, I was sleeping since it was around 4-5 this morning I guess. (7-8 hours ago) When I got back up and started my computer I got some messages from one of my players that the server was down.

    Checked it out and yup the server was down.

    Read the errors and stuff. Had a bunch that said "Too many files opened"
    Restarted the server, then I got another error at first. Saying something about "Could not read server.lock blabla aborting" The server lock file are in each of the world folders and probably locks something idk.

    Anyway. I started the usual failsafe error check by removing one plugin at a time. didnt get very far tho. stopped at AutoSave. I was like WTH? AutoSave of all the plugins... But why? It's been working on my servers for probably 6 months or so. Then completely random it crashes. On both of my servers...

    I got 2 explanations for this. Either Notch can send server updates to craftbukkit servers (or them connected to his stuff somehow) or The plugin developer for AutoSave had a "timebomb" installed in the plugin xD but thats just silly tho.

    Anyway. Im now running ServerSave and it works like a charm.

    If anyone else has a hunch about what the hell happened id love to hear it.

    - TewDIE


    Thats the exact same thing that happened to me! D: read my post above!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
Thread Status:
Not open for further replies.

Share This Page