Bug Closed · Could not replicate

when party after dungeon this error appear, and create another instance even if you have set to only 1 instance.

#4108 opened by Unknown 3 years ago

Unknownreported this bug

[17:50:43 WARN]: org.apache.commons.io.IOExceptionList: .\cuevaduende_4 [17:50:43 WARN]: at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:331) [17:50:43 WARN]: at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1192) [17:50:43 WARN]: at MythicDungeons-1.1.2-SNAPSHOT.jar//net.playavalon.mythicdungeons.dungeons.Instance.lambda$dispose$3(Instance.java:494) [17:50:43 WARN]: at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) [17:50:43 WARN]: at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) [17:50:43 WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [17:50:43 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [17:50:43 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [17:50:43 WARN]: at java.base/java.lang.Thread.run(Thread.java:833) [17:50:43 WARN]: Caused by: java.io.IOException: Cannot delete file: .\cuevaduende_4\entities [17:50:43 WARN]: at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1344) [17:50:43 WARN]: at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:324) [17:50:43 WARN]: ... 8 more [17:50:43 WARN]: Caused by: org.apache.commons.io.IOExceptionList: .\cuevaduende_4\entities\r.0.-1.mca [17:50:43 WARN]: at org.apache.commons.io.file.PathUtils.setReadOnly(PathUtils.java:939) [17:50:43 WARN]: at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:159) [17:50:43 WARN]: at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:37) [17:50:43 WARN]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2811) [17:50:43 WARN]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2882) [17:50:43 WARN]: at org.apache.commons.io.file.PathUtils.visitFileTree(PathUtils.java:971) [17:50:43 WARN]: at org.apache.commons.io.file.PathUtils.deleteDirectory(PathUtils.java:434) [17:50:43 WARN]: at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:391) [17:50:43 WARN]: at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1341) [17:50:43 WARN]: ... 9 more [17:50:43 WARN]: Caused by: java.nio.file.NoSuchFileException: .\cuevaduende_4\entities\r.0.-1.mca [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85) [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsLinkSupport.getFinalPath(WindowsLinkSupport.java:108) [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsFileAttributeViews$Dos.updateAttributes(WindowsFileAttributeViews.java:228) [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsFileAttributeViews$Dos.setReadOnly(WindowsFileAttributeViews.java:248) [17:50:43 WARN]: at org.apache.commons.io.file.PathUtils.setReadOnly(PathUtils.java:914) [17:50:43 WARN]: ... 17 more [17:50:43 WARN]: org.apache.commons.io.IOExceptionList: .\cuevaduende_4 [17:50:43 WARN]: at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:331) [17:50:43 WARN]: at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1192) [17:50:43 WARN]: at MythicDungeons-1.1.2-SNAPSHOT.jar//net.playavalon.mythicdungeons.dungeons.Instance.lambda$dispose$3(Instance.java:494) [17:50:43 WARN]: at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) [17:50:43 WARN]: at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) [17:50:43 WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [17:50:43 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [17:50:43 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [17:50:43 WARN]: at java.base/java.lang.Thread.run(Thread.java:833) [17:50:43 WARN]: Caused by: java.io.IOException: Cannot delete file: .\cuevaduende_4\data [17:50:43 WARN]: at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1344) [17:50:43 WARN]: at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:324) [17:50:43 WARN]: ... 8 more [17:50:43 WARN]: Caused by: java.nio.file.AccessDeniedException: .\cuevaduende_4\data\raids.dat [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89) [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) [17:50:43 WARN]: at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275) [17:50:43 WARN]: at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) [17:50:43 WARN]: at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) [17:50:43 WARN]: at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:161) [17:50:43 WARN]: at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:37) [17:50:43 WARN]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2811) [17:50:43 WARN]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2882) [17:50:43 WARN]: at org.apache.commons.io.file.PathUtils.visitFileTree(PathUtils.java:971) [17:50:43 WARN]: at org.apache.commons.io.file.PathUtils.deleteDirectory(PathUtils.java:434) [17:50:43 WARN]: at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:391) [17:50:43 WARN]: at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1341)

Unknowncommented

Hey there. I'm having trouble replicating this issue... does it happen every time for you? What kind of environment are you hosting your server on? It appears that Mythic Dungeons is having trouble deleting the instance world.

I do have a potential fix, but it's very difficult for me to test, so let me know if this is random for you or happens every time.

Unknowncommented

hey there! thanks for responding! well actually yes it happens to me all the time when a party (more than 1 player in a dungeon) exit from dungeon, that error occurs all the time, just with party system, and sometimes randomly the players get stuck insed even if they are not online, therefore if somebody enter on that dungeon create another instance. so in order to replicate this issue just two players need to be in party and enter in a dungeon. PD.i did not download the lastets build yet, maybe that error is fixed already? i will test it btw

Unknowncommented

Hey there. Can you try the latest dev build? I made an attempted fix at cleaning this up, but I can't guarantee it'll work.

What's happening here is when Mythic Dungeons attempts to delete the dungeon world, it breaks because something else is using files from that world. This could be something saving to it, or the world not being fully unloaded yet. Either way, in my experience, most use-cases for Mythic Dungeons don't encounter this issue so I'm not entirely sure why your server is running into it...

I can't promise a solution, but if you can tell me the following I may be able to narrow it down:

  • What operating system are you using, and what version? (Windows 10, Mac OS, Linux, etc.)
  • What server software are you using? (Spigot? Paper? Purpur?)
  • Do you have any other plugins that work with additional worlds? (I.e. Multiverse)
Sign in to join the discussion.