首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >S3cmd在ubuntu中不起作用

S3cmd在ubuntu中不起作用
EN

Stack Overflow用户
提问于 2013-03-05 20:07:45
回答 1查看 722关注 0票数 0

我已经在我的机器上安装了s3cmd,它是ubuntu11.10,当我试图从s3下载一些数据时,它给了我这个错误,我也已经用我拥有的访问密钥配置了s3cmd (.s3cfg文件在主文件夹中)

代码语言:javascript
复制
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please report the following lines to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Problem: KeyError: 'content-length'
S3cmd:   1.0.0

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 2006, in <module>
    main()
  File "/usr/bin/s3cmd", line 1950, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 513, in cmd_object_get
    response = s3.object_get(uri, dst_stream, start_position = start_position, extra_label = seq_label)
  File "/usr/share/s3cmd/S3/S3.py", line 285, in object_get
    response = self.recv_file(request, stream, labels, start_position)
  File "/usr/share/s3cmd/S3/S3.py", line 691, in recv_file
    size_left = int(response["headers"]["content-length"])
KeyError: 'content-length'

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

回答 1

Stack Overflow用户

发布于 2013-03-05 21:18:24

请尝试较新版本的s3cmd,例如昨晚在SourceForge上的s3tools项目上或在github中发布的1.5.0-alpha2。在此特定情况下,您正在尝试下载0长度的文件,这会触发此错误

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15223381

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档