Backup purge failed...
 
Notifications
Clear all

Backup purge failed with: Error decoding old base64 metadata

2 Posts
2 Users
0 Likes
568 Views
(@emilian)
Joined: 4 years ago
Posts: 2
Topic starter  

Hi,

I get periodic email notifications from zextras that the backup purge has failed with a warning that one or more files could be corrupted and to run a coherency check in order to fix it. But after running the coherency check at least 2 times the problem has not been fixed.

If I read further into the email notifications, each one shows the same error at the -- exceptions -- part:

[Purge] Error decoding old base64 metadata in /mnt/zimbra-backup/zextras/backup/accounts/ee57551d-d76d-40df-87e1-d85cf32b1748/items/93/86393: com.zimbra.common.util.BEncoding$BEncodingException: java.lang.NumberFormatException: For input string: "86>93"

Any idea how could I fix this error?

 

Zextras version: 3.8.1

Zimbra version: 8.8.15_GA_4203

OS version: Ubuntu 20.04


   
Quote
(@smith54)
Joined: 1 year ago
Posts: 1
 

I think you are misunderstanding the usage of the encoding argument a bit. If you are going to specify encoding 'binary', then you need to do it consistently. But really you don't need it at all. You seem to be confusing the usage of Buffer vs binary strings.

Can you try this:

fs.readFile(image_origial, 'binary', function(err, original_data){
fs.writeFile('image_orig.jpg', original_data, 'binary', function(err) {});
var base64Image = new Buffer(original_data, 'binary').toString('base64');
var decodedImage = new Buffer(base64Image, 'base64').toString('binary');
fs.writeFile('image_decoded.jpg', decodedImage, 'binary', function(err) {});
});


   
ReplyQuote