{"issue":{"created_at":"2011-07-24T14:37:57Z","state":"closed","updated_at":"2011-12-01T19:38:49Z","comments":8,"user":{"gravatar_id":"5e9bf51ea94a9062a06848e8e0ef1281","id":843060,"url":"https://api.github.com/users/Graloth","avatar_url":"https://secure.gravatar.com/avatar/5e9bf51ea94a9062a06848e8e0ef1281?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Graloth"},"body":"So i've just noticed this problem on my test server, since it has very limited space.\r\n\r\nAfter a while it throws this error:\r\n\r\n```java\r\n2011-07-22 15:45:30 [SEVERE] org.yaml.snakeyaml.error.YAMLException: java.io.IOException: No space left on device\r\n2011-07-22 15:45:30 [SEVERE] \tat org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:225)\r\n2011-07-22 15:45:30 [SEVERE] \tat org.yaml.snakeyaml.Yaml.dump(Yaml.java:205)\r\n2011-07-22 15:45:30 [SEVERE] \tat org.bukkit.util.config.Configuration.save(Configuration.java:158)\r\n2011-07-22 15:45:30 [SEVERE] \tat com.herocraftonline.dthielke.herochat.util.ConfigManager.savePlayer(ConfigManager.java:258)\r\n2011-07-22 15:45:30 [SEVERE] \tat com.herocraftonline.dthielke.herochat.HeroChatPlay2011-07-22 15:45:30 [SEVERE] \tat com.herocraftonline.dthielke.herochat.HeroChatPlayerListener.onPlayerQuit(HeroChatPlayerListener.java:92)\r\n2011-07-22 15:45:30 [SEVERE] \tat org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)\r\n2011-07-22 15:45:30 [SEVERE] \tat org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)\r\n2011-07-22 15:45:30 [SEVERE] \tat org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)\r\n2011-07-22 15:45:30 [SEVERE] \tat net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)\r\n2011-07-22 15:45:30 [SEVERE] \tat net.minecraft.server.NetServerHandler.a(NetServerHandler.java:608)\r\n2011-07-22 15:45:30 [SEVERE] \tat net.minecraft.server.NetworkManager.b(NetworkManager.java:231)\r\n2011-07-22 15:45:30 [SEVERE] \tat net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)\r\n2011-07-22 15:45:31 [SEVERE] \tat net.minecraft.server.NetworkListenThread.a(SourceFile:105)\r\n2011-07-22 15:45:31 [SEVERE] \tat net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)\r\n2011-07-22 15:45:31 [SEVERE] \tat net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)\r\n2011-07-22 15:45:31 [SEVERE] \tat net.minecraft.server.ThreadServerApplication.run(SourceFile:422)\r\n2011-07-22 15:45:31 [SEVERE] Caused by: java.io.IOException: No space left on device\r\n2011-07-22 15:45:31 [SEVERE] \tat java.io.FileOutputStream.writeBytes(Native Method)\r\n2011-07-22 15:45:31 [SEVERE] \tat java.io.FileOutputStream.write(FileOutputStream.java:282)\r\n2011-07-22 15:45:31 [SEVERE] \tat sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)\r\n2011-07-22 15:45:31 [SEVERE] \tat sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)\r\n2011-07-22 15:45:31 [SEVERE] \tat sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)\r\n2011-07-22 15:45:31 [SEVERE] \tat sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)\r\n2011-07-22 15:45:31 [SEVERE] \tat java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)\r\n2011-07-22 15:45:31 [SEVERE] \tat org.yaml.snakeyaml.emitter.Emitter.flushStream(Emitter.java:1081)\r\n2011-07-22 15:45:31 [SEVERE] \tat org.yaml.snakeyaml.emitter.Emitter$ExpectDocumentEnd.expect(Emitter.java:362)\r\n2011-07-22 15:45:31 [SEVERE] \tat org.yaml.snakeyaml.emitter.Emitter.emit(Emitter.java:216)\r\n2011-07-22 15:45:31 [SEVERE] \tat org.yaml.snakeyaml.serializer.Serializer.serialize(Serializer.java:115)\r\n2011-07-22 15:45:31 [SEVERE] \tat org.yaml.snakeyaml.representer.BaseRepresenter.represent(BaseRepresenter.java:68)\r\n2011-07-22 15:45:31 [SEVERE] \tat org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:221)\r\n2011-07-22 15:45:32 [SEVERE] \t... 15 more\r\n```\r\nWhich basically means that it's run out of space (other plugins that use space threw a similar error, as you can see in it)\r\n\r\nDuring that, dynmap will literally spam:\r\n\r\n```java\r\n2011-07-22 15:45:32 [INFO] [dynmap] Image file plugins/dynmap/web/tiles/world/zt/1_-2/zz_7168_-8192.png - unable to write - failed\r\n2011-07-22 15:45:33 [INFO] [dynmap] Image file plugins/dynmap/web/tiles/world/flat_128/-2_-1/zzz_-64_-8.png - unable to write - retry #0\r\n2011-07-22 15:45:33 [INFO] [dynmap] Image file plugins/dynmap/web/tiles/world/flat_128/-2_-1/zzz_-64_-8.png - unable to write - retry #1\r\n2011-07-22 15:45:33 [INFO] [dynmap] Image file plugins/dynmap/web/tiles/world/flat_128/-2_-1/zzz_-64_-8.png - unable to write - retry #2\r\n2011-07-22 15:45:33 [INFO] [dynmap] Image file plugins/dynmap/web/tiles/world/flat_128/-2_-1/zzz_-64_-8.png - unable to write - retry #3\r\n2011-07-22 15:45:34 [INFO] [dynmap] Image file plugins/dynmap/web/tiles/world/flat_128/-2_-1/zzz_-64_-8.png - unable to write - retry #4\r\n2011-07-22 15:45:35 [INFO] [dynmap] Image file plugins/dynmap/web/tiles/world/flat_128/-2_-1/zzz_-64_-8.png - unable to write - retry #5\r\n2011-07-22 15:45:36 [INFO] [dynmap] Image file plugins/dynmap/web/tiles/world/flat_128/-2_-1/zzz_-64_-8.png - unable to write - failed\r\n2011-07-22 15:45:36 [INFO] [dynmap] Image file plugins/dynmap/web/tiles/world/flat_128/-1_0/zzz_-8_24.png - unable to write - retry #0\r\n```\r\nSo often that it will crash the server.\r\n\r\n__Solution?__\r\nHave it stop writing tiles after a certain about of write failures.\r\n\r\nOf course a server shouldn't run out of space, and even if dynmap stops writing tiles, many other plugins wont work either. My problem here was that the crash completely removed any ability from me to shut down the server, as the console did not listen to any command i threw at it.","assignee":null,"id":1277576,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":314,"title":"[Bug] 0.20 If server runs out of space, dynmap crashes the server","html_url":"https://github.com/webbukkit/dynmap/issues/314","closed_at":"2011-12-01T19:38:47Z","url":"https://api.github.com/repos/webbukkit/dynmap/issues/314","milestone":null},"action":"closed"}