-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trouble with snapshots #23
Comments
no dice with -mx1. I should try it with regular zip I guess. |
When I try to //use today-01:18.zip, it says "That snapshot does not exist or is not available" in-game. When I rename it to 'tester.zip' (this one made with the regular zip utility, not 7zip), I get "invalid CEN header" again. I'm running on Debian, here's my worldedit.properties: #Minecraft Properties File I'm going to bed. If you guys have any input for tomorrow that'd be great. |
How big is the ZIP file? Regardless, I just searched around and it appears that Java's Zip implementation has some major flaws that may be contributing to your problem. I think I'll be replacing Java's Zip implementation with a 3rd-party's by the next release. Hopefully that will resolve your issue. As for the "snapshot does not exist or is not available," it's due to the bit zealous check on the list of allowed characters in a filename. (":" isn't currently an allowed character.) I'll see if I can make it more lenient in the next version. |
Thanks for the response, the zip file is about 1.3 gigabytes. Good catch on the allowed characters. I'm okay with overzealous filename rules, as long as the rules are documented. :) Really looking forward to getting this working, selective rollbacks without a server restart will be fantastic! |
Try this: You need to download TrueZIP: There's nothing indicating that TrueZIP is being used though (it falls back to Java's ZIP library), so the real test is whether your ZIP files open. :) |
Seems to work now. :D |
Good to hear! |
I'm generating a snapshot file with 7zip -
7z a -tzip -xr!imgcache -xr!public_html/map -mx0 $backupdir/$filename . > /dev/null
and seeing the filename, subsequently, in-game with /listsnapshots,
but when I do //use latest, and //restore, I get
"Failed to load snapshot: invalid CEN header"
The zip file is valid (unzip can list the files and extract from it) as far as I can tell.
Maybe if I try a different compression level..
The text was updated successfully, but these errors were encountered: