Shevchik / AutoSaveWorld

Bukkit plugin that provides advanced bukkit server management capabilities. Supports automatic saves, backups, stale data purge, plugin management, and more.
GNU General Public License v3.0
35 stars 36 forks source link

Autobackup causing server crashes and saving failure? #14

Closed Elgorond closed 9 years ago

Elgorond commented 9 years ago

http://hastebin.com/okamejeyet.vhdl

We use AutoSaveWorld to auto-save and auto-backup at intervals. Any ideas if this would be Playervaults issue, or AutoSaveWorld's?

This issue seemed to have just started happening recently, like a week and a half ago. And i'm commonly seeing this when it's backuping as well: http://hastebin.com/oxoguqufuh.avrasm

Shevchik commented 9 years ago

Update to latest dev build version, or increase the limit of maximum open files (ulimit)

Elgorond commented 9 years ago

We have been on the latest dev build. (861).

So is the only option increasing the limit of maximum open files?

Shevchik commented 9 years ago

Yep. Maybe for some reason RandomAccessFile channel input stream doesn't close properly, i will check this later.

Shevchik commented 9 years ago

Anyway try latest dev build, maybe it will solve your problem without changing the limit of open files.

Elgorond commented 9 years ago

We re-enabled backuping, and on the first backup server crashed.

Full server log file: https://www.dropbox.com/s/3p5filwd69jd506/server-2015-09-15-19-21-34-crashed.log?dl=0

Autobackup begins at line 3612 (if viewing with notepadplusplus).

I believe this issue started happening after updating to one of your August builds.

Edit: An interesting thing I've noticed is that the auto-backup feature is crashing 2 out of the 3 servers with it enabled. Not sure why it isn't crashing our Creative server.

Shevchik commented 9 years ago

Increase open files limit, i'm not sure why randomaccess files are not closed properly, will have to figure it out later.

Shevchik commented 9 years ago

What java version do you have?

Elgorond commented 9 years ago

java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

Shevchik commented 9 years ago

Okay, i reverted to use FileInputStream, but that was a blind commit, so you should also check if backup is done properly.