Bug 1389027 - awscli-1.11.0 fails when copying an empty file
Summary: awscli-1.11.0 fails when copying an empty file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: awscli
Version: epel7
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Fabio Alessandro Locati
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-26 17:00 UTC by Ben Smith
Modified: 2017-07-31 18:49 UTC (History)
2 users (show)

Fixed In Version: awscli-1.11.10-1.fc25 awscli-1.11.10-1.fc24 awscli-1.11.10-1.fc23 awscli-1.11.10-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-07 23:24:24 UTC
Type: Bug


Attachments (Terms of Use)

Description Ben Smith 2016-10-26 17:00:34 UTC
Description of problem:
aws 1.11.0 fails when copying empty files. This has been fixed in 1.11.1.
This was working in previous version, but when we updated recently it broke one of our systems. Upgrading to 1.11.2 fixed the problem.

Version-Release number of selected component (if applicable):
1.11.0

How reproducible:
Create an empty file on s3 and try to copy it.

Steps to Reproduce:
1. Put an empty file on s3
2. aws s3 cp s3://path/to/empty/file/ .

Actual results:
"download failed: s3://path/to/empty/file [Errno 2] No such file or directory"

Expected results:
Empty file copied to destination

Additional info:
Fixed in 1.11.1 
https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst#1111

Comment 1 Ben Smith 2016-10-26 18:44:17 UTC
It turns out there's an additional dependency. We discovered that the problem was fixed on one machine but not the other. It turns out s3transfer also has an issue with this, which was fixed in 0.16 https://github.com/boto/s3transfer/blob/develop/CHANGELOG.rst#016

So python2-s3transfer also needs to be upgraded to at least 0.1.6. We had success with 0.1.7.

Comment 2 Ben Smith 2016-10-26 18:45:53 UTC
One more thing, for the example above I have a trailing slash that shouldn't be there. The command that fails is:

aws s3 cp s3://path/to/empty/file .

Comment 3 Fedora Update System 2016-10-28 12:49:30 UTC
awscli-1.11.10-1.el7, python-botocore-1.4.67-1.el7, python-s3transfer-0.1.9-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-314dbab16e

Comment 4 Fedora Update System 2016-10-28 14:55:49 UTC
awscli-1.11.10-1.fc25, python-botocore-1.4.67-1.fc25, python-s3transfer-0.1.9-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-536b244f32

Comment 5 Fedora Update System 2016-10-28 15:55:15 UTC
awscli-1.11.10-1.fc23, python-botocore-1.4.67-1.fc23, python-s3transfer-0.1.9-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-756e935d18

Comment 6 Fedora Update System 2016-10-29 03:55:34 UTC
awscli-1.11.10-1.fc24, python-botocore-1.4.67-1.fc24, python-s3transfer-0.1.9-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-3c4dd4e7ea

Comment 7 Fedora Update System 2016-11-03 18:21:52 UTC
awscli-1.11.10-1.fc25, python-botocore-1.4.67-1.fc25, python-s3transfer-0.1.9-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2016-11-07 23:24:24 UTC
awscli-1.11.10-1.fc24, python-botocore-1.4.67-1.fc24, python-s3transfer-0.1.9-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2016-11-08 22:52:58 UTC
awscli-1.11.10-1.fc23, python-botocore-1.4.67-1.fc23, python-s3transfer-0.1.9-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2016-11-19 12:48:30 UTC
awscli-1.11.10-1.el7, python-botocore-1.4.67-1.el7, python-s3transfer-0.1.9-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2016-11-19 21:03:09 UTC
awscli-1.11.10-1.fc25, python-botocore-1.4.67-1.fc25, python-s3transfer-0.1.9-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.