uskudnik / amazon-glacier-cmd-interface

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

Cannot upload if --partsize isn't specified #58

Closed gvonbergen closed 11 years ago

gvonbergen commented 11 years ago

root@debian:~/src/amazon-glacier-cmd-interface# glacier-cmd upload test1 ../spl-0.6.0-rc10.tar.gz Traceback (most recent call last): File "/usr/local/bin/glacier-cmd", line 8, in 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 797, in main args.func(args) File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glacier.py", line 298, in putarchive part_size=(part_size_1024_1024)) File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glaciercorecalls.py", line 273, in init % (response.status, response.read()) AssertionError: Multipart-start should respond with a 201! (got 400): '{"code":"InvalidParameterValueException","message":"Invalid part size: 0. Part size must not be null, must be a power of two and be between 1048576 and 4294967296 bytes.","type":"Client"}'