uskudnik / amazon-glacier-cmd-interface

Command line interface for Amazon Glacier
MIT License
374 stars 100 forks source link

Downloading: Gives error, but file is complete #110

Open SitronNO opened 11 years ago

SitronNO commented 11 years ago

Some wise men said that a backup without verification is as good as no backup, so I tried to download one of my archives on another computer. But when the download finished, it gave me an error:

$ glacier-cmd download --outfile "2012.07.31 - Ferietur til Rondane og Orkla.tar" Pictures S0UYQmvmNXytUSbOTJoat6oRwwxNz59Da2IQBjQWznsrXkZoispn9dNdgm7mDoXjH4BCH
brrrWXUgTwEdseiJKVONQv_vWTE23P0v1P2Dl7MdAakk2rUT1VowZpJi01qImXP4CsN7Q
Traceback (most recent call last): 351.07 KB/s, average 328.49 KB/s, eta 05:31:36.
  File "/usr/local/bin/glacier-cmd", line 9, in <module>
    load_entry_point('glacier==0.2dev', 'console_scripts', 'glacier-cmd')()
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glacier.py", line 751, in main
    args.func(args)
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glacier.py", line 147, in wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glacier.py", line 258, in download
    out_file_name=args.outfile, overwrite=args.overwrite)
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/GlacierWrapper.py", line 62, in wrapper
    ret = fn(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/GlacierWrapper.py", line 221, in glacier_connect_wrap
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/GlacierWrapper.py", line 62, in wrapper
    ret = fn(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/GlacierWrapper.py", line 274, in sdb_connect_wrap
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/GlacierWrapper.py", line 62, in wrapper
    ret = fn(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/GlacierWrapper.py", line 1360, in download
    if glaciercorecalls.tree_hash(hash_list) != download_job['SHA256TreeHash']:
  File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glaciercorecalls.py", line 58, in tree_hash
    new_hashes.append(hashlib.sha256(first + second).digest())
TypeError: sha256() argument 1 must be string or read-only buffer, not list

However, the file seem OK, since the treehash is the same before uploading and after downloading.

burakbozyigit commented 11 years ago

No updates on this yet?