#118 KeyErr: 'elapsed' when redirecting output to a file

Malfunction
closed-fixed
nobody
s3cmd (119)
5
2014-06-17
2012-06-15
Anonymous
No

When redirecting output to a file, and there are a few retries for some parts, I get the following error:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the following lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

Traceback (most recent call last):
File "/usr/bin/s3cmd", line 1800, in ?
main()
File "/usr/bin/s3cmd", line 1741, in main
cmd_func(args)
File "/usr/bin/s3cmd", line 308, in cmd_object_put
output(u"File '%s' stored as '%s' (%d bytes in %0.1f seconds, %0.2f %sB/s) %s" %
KeyError: 'elapsed'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the above lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Works fine if not redirecting to a file, or if no warning & retry

Discussion

  • Kelson Vibber

    Kelson Vibber - 2012-06-28

    I receive this same error when running through cron.

     
  • Alonso Quijano

    Alonso Quijano - 2012-10-27

    The same problem,

    It fails with big file 1.5 GB, it works with small files.

    I get error in line 309.

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
    Please report the following lines to:
    s3tools-bugs@lists.sourceforge.net
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    Traceback (most recent call last):
    File "/usr/bin/s3cmd", line 1800, in <module>
    main()
    File "/usr/bin/s3cmd", line 1741, 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: 'elapsed'

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
    Please report the above lines to:
    s3tools-bugs@lists.sourceforge.net
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

     
  • Matt Domsch

    Matt Domsch - 2014-06-17
    • status: open --> closed-fixed
     
  • Matt Domsch

    Matt Domsch - 2014-06-17

    I believe this is fixed in upstream github.com/s3tools/s3cmd master branch now.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks