Szum123321 / textile_backup

Backup Mod for Fabric
https://www.curseforge.com/minecraft/mc-mods/textile-backup
GNU General Public License v3.0
90 stars 30 forks source link

Backup files are 1 KB (1.18.1) #80

Closed pokeblokdude closed 2 years ago

pokeblokdude commented 2 years ago

Very similar issue to #20, but with a different exception.

image

Using all default settings. One interesting thing is that the first two backups the server made were fine, but since then every backup has failed, resulting in a 1 KB empty zip file. Uncompressed world size is 964 MB. Server is running on Debian.

Other mods installed are Lithium and Starlight.

Szum123321 commented 2 years ago

You're right that it looks very similar but appears because the tmp file system is read-only I'll add a check for that. Follow the wiki for repair

Edit: #20 was caused by a lock file having funny permissions on windows, this is related to #51 and has the same root cause

Szum123321 commented 2 years ago

Can you tell what permission does the /tmp directory have?

pokeblokdude commented 2 years ago

rwxrwxrwt

Szum123321 commented 2 years ago

That's interesting...

Szum123321 commented 2 years ago

Ok, so I added a test to see if the tmp directory is writable, here's a test build, could you tell me if it screams at you? textile_backup-2.3.1-a-1.18.jar.tar.gz

pokeblokdude commented 2 years ago

image

Seems to have worked! The backup file is now ~930 MB, as expected.

Szum123321 commented 2 years ago

Great! Keep in mind there's still something wrong with your system as java correctly detected it doesn't have the write permissions and just used slower compressor which won't use the tmp files.