Skip to content

s3cmd dies when summarizing PUT of multipart upload when not using progress_meter #39

Closed
alienth opened this Issue Mar 25, 2012 · 3 comments

3 participants

@alienth
alienth commented Mar 25, 2012

Following error occurs when uploading a file with --multipart-chunk-size-mb and --no-progress.

Problem: KeyError: 'size'
S3cmd:   1.1.0-beta2

Traceback (most recent call last):
 File "/usr/bin/s3cmd", line 1804, in <module>
   main()
 File "/usr/bin/s3cmd", line 1745, in main
   cmd_func(args)
 File "/usr/bin/s3cmd", line 309, in cmd_object_put
   (unicodise(full_name_orig), uri_final, response["size"], response["elapsed"],
KeyError: 'size'

This is because send_file_multipart() does not set a "size" key in its response, but send_file() does.

@ronnix
ronnix commented Apr 24, 2012

Same issue in 1.1.0-beta3:

Problem: KeyError: 'elapsed'
S3cmd:   1.1.0-beta3

Traceback (most recent call last):
 File "/usr/local/bin/s3cmd", line 1800, in <module>
   main()
 File "/usr/local/bin/s3cmd", line 1741, in main
   cmd_func(args)
 File "/usr/local/bin/s3cmd", line 309, in cmd_object_put
   (unicodise(full_name_orig), uri_final, response["size"], response["elapsed"],
KeyError: 'elapsed'
@ronnix
ronnix commented Apr 24, 2012

Looks like a duplicate of #24, and the issue was fixed 3 months ago in 9c57a3b but there has been no new release since 1.1.0-beta3.

@mdomsch
s3tools member
mdomsch commented Mar 9, 2013

merged shortly after 1.1.0-beta3 was released.

@mdomsch mdomsch closed this Mar 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.