bakthat icon indicating copy to clipboard operation
bakthat copied to clipboard

Trying backup a file to glacier

Open wmariuss opened this issue 11 years ago • 7 comments

Error: boto.glacier.exceptions.UploadArchiveError: An error occurred while uploading an archive: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)

But after I edit the layer1.py file, it works.

a) Open this file: /usr/local/lib/python2.7/dist-packages/boto-2.34.0-py2.7.egg/boto/glacier/layer1.py b) Add str() function for last code in the file: uri = 'vaults/%s/multipart-uploads/%s' % (str(vault_name), upload_id) c) Save it and backup file to glacier.

wmariuss avatar Nov 11 '14 00:11 wmariuss

@wmariuss Hi! A huge thank you! I was able to resolve the error. By editing the line 1276 of the file /usr/local/lib/python2.7/dist-packages/boto/glacier/layer1.py (Debian 7.6)

uri = 'vaults/%s/multipart-uploads/%s' % (str(vault_name), upload_id)

PS: Shouldn't be that issue a boto/glacier issue than bakthat? => https://github.com/boto/boto/issues/2603

Does bakthat restore works for you?

norpol avatar Nov 17 '14 13:11 norpol

Hi, My restore works very well. This is works even for big files.

wmariuss avatar Nov 17 '14 14:11 wmariuss

Hm, I get Job Archive Retrieval: InProgress (2014-11-17T16:20:53...../None) Not completed yet. But that's probably an other issue :).

norpol avatar Nov 17 '14 17:11 norpol

Because is not uploaded into glacier yet. Wait, bacause glacier is upload very slow.

wmariuss avatar Nov 17 '14 18:11 wmariuss

Thanks for taking care of my issue, it's working now. :) Have a nice time.

norpol avatar Nov 19 '14 20:11 norpol

:)

wmariuss avatar Nov 19 '14 20:11 wmariuss

Thanks @norpol

GamjaPower avatar Jun 18 '15 08:06 GamjaPower