
Bug report : Error when file is deleted whilst a backup is ongoing
ModernGamingWorld opened this issue ยท 4 comments
Describe the bug
I keep getting this on every single backup. this is even after a server wipe and it was even doing it before I wiped the server
[16:52:20] [AB Active Backup Thread/INFO] [co.he.ad.AdvancedBackups/]: Preparing differential backup with name:
backup_2025-01-19_16-52-20
[16:53:35] [AB Active Backup Thread/ERROR] [co.he.ad.AdvancedBackups/]: java.nio.file.NoSuchFileException: ./world/./level1398238387448972466.dat
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:171)
at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
at java.base/java.nio.file.Files.readAttributes(Files.java:1853)
at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:220)
at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:277)
at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:374)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2820)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2857)
at TRANSFORMER/[email protected]/computer.heather.advancedbackups.core.backups.ThreadedBackup.makeDifferentialOrIncrementalBackup(ThreadedBackup.java:298)
at TRANSFORMER/[email protected]/computer.heather.advancedbackups.core.backups.ThreadedBackup.makeBackup(ThreadedBackup.java:150)
at TRANSFORMER/[email protected]/computer.heather.advancedbackups.core.backups.ThreadedBackup.run(ThreadedBackup.java:82)
[16:53:35] [AB Active Backup Thread/ERROR] [co.he.ad.AdvancedBackups/]: ERROR MAKING BACKUP!
[16:53:35] [AB Active Backup Thread/ERROR] [co.he.ad.AdvancedBackups/]: java.nio.file.NoSuchFileException: ./world/./level1398238387448972466.dat
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:171)
at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
at java.base/java.nio.file.Files.readAttributes(Files.java:1853)
at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:220)
at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:277)
at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:374)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2820)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2857)
at TRANSFORMER/[email protected]/computer.heather.advancedbackups.core.backups.ThreadedBackup.makeDifferentialOrIncrementalBackup(ThreadedBackup.java:298)
at TRANSFORMER/[email protected]/computer.heather.advancedbackups.core.backups.ThreadedBackup.makeBackup(ThreadedBackup.java:150)
at TRANSFORMER/[email protected]/computer.heather.advancedbackups.core.backups.ThreadedBackup.run(ThreadedBackup.java:82)
[16:53:35] [Server thread/INFO] [co.he.ad.AdvancedBackups/]:
SAVING ENABLED - BACKUP COMPLETE!
To Reproduce
Steps to reproduce the behavior:
Hard to provide cause its happening on my server
Expected behavior
A clear and concise description of what you expected to happen.
A reason why this is happening
Screenshots
If applicable, add screenshots to help explain your problem.
Versioning (please complete the following information):
- OS: [Not sure on server]
- Minecraft Version(s): [1.20.1]
- Modloader(s): [Forge]
- Mod Version: [Latest]
Additional context
Add any other context about the problem here.
This seems to be a mod conflict with a mod creating then deleting a file when the game is saved.
For now, you can disable config.advancedbackups.save
as a temporary fix - and I'll have a proper fix out in the next couple of days.
https://github.com/HeatherComputer/AdvancedBackups/actions/runs/12911579908 contains a patch for this, along with a couple of other changes. It'll go to CF / MR after some additional testing.