Slimefun / Slimefun4

Slimefun 4 - A unique Spigot/Paper plugin that looks and feels like a modpack. We've been giving you backpacks, jetpacks, reactors and much more since 2013.
GNU General Public License v3.0
958 stars 547 forks source link

Error on auto-saving data #4164

Closed masood151117 closed 5 months ago

masood151117 commented 5 months ago

โ— Checklist

๐Ÿ“ Description

`[10:35:47` INFO]: [Slimefun] Auto-saving block data... (Next auto-save: 10m)
[10:35:47 INFO]: [Slimefun] Saving block data for world "world" (20,401 change(s) queued)
[10:35:47 ERROR]: [Slimefun] An Error occurred while copying a temporary File for Slimefun Dev - 1143
java.nio.file.AccessDeniedException: data-storage\Slimefun\stored-blocks\world\DUST_EXTRACTOR.sfb.tmp -> data-storage\Slimefun\stored-blocks\world\DUST_EXTRACTOR.sfb
        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89) ~[?:?]
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) ~[?:?]
        at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:317) ~[?:?]
        at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:293) ~[?:?]
        at java.nio.file.Files.move(Files.java:1432) ~[?:?]
        at me.mrCookieSlime.Slimefun.api.BlockStorage.save(BlockStorage.java:336) ~[Slimefun4-Dev.jar:?]
        at io.github.thebusybiscuit.slimefun4.core.services.AutoSavingService.saveAllBlocks(AutoSavingService.java:110) ~[Slimefun4-Dev.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.20.4.jar:git-Purpur-2142]
        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.20.4.jar:git-Purpur-2142]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.20.4.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
[10:35:48 INFO]: [Slimefun] Auto-saved all player data for 4 player(s)!
`

In my server console, I often see this error for different Slimefan blocks. And players are reporting that their items turned into vanilla Block I use Windows 2019 Java 17 Purpur 1.20.4 The latest version of slimefun development build Aikar flags startup 12G is the maximum allowed RAM

๐Ÿ“‘ Reproduction Steps

.

๐Ÿ’ก Expected Behavior

.

๐Ÿ“ท Screenshots / Videos

No response

๐Ÿ“œ Server Log

No response

๐Ÿ“‚ /error-reports/ folder

No response

๐Ÿ’ป Server Software

Purpur

๐ŸŽฎ Minecraft Version

1.20.x

โญ Slimefun version

Dev 1143

๐Ÿงญ Other plugins

No response

J3fftw1 commented 5 months ago

Go into the folder specified (in this case data-storage/Slimefun/world) and rename BLOCK.sfb.tmp to BLOCK.sfb. Override the existing file and boom. The updated file is there

If this doesnt work set the owner of the the folder data-storage to everyone and restart the server. This is an windows issue we sadly can not resolve. If this is your own server you should check if the file is locked.

Join the discord for more help if you need it

masood151117 commented 5 months ago

ok tnx