s3cmd icon indicating copy to clipboard operation
s3cmd copied to clipboard

[Errno 32] Broken pipe when using 'get' command with --recursive and --remove-after-fetch

Open dalenhughes opened this issue 11 years ago • 4 comments

When trying to get ~200,000 small files <2kb, I get a broken pipe error using version 1.5.0

Also, deletes aren't logged when doing --dry-run in conjunction with --remove-after-fetch.

dalenhughes avatar Feb 18 '15 19:02 dalenhughes

try github.com/mdomsch/s3cmd bug/broken-pipe branch. This may fix the broken pipe error. S3 is closing the connection when we don't expect it in v1.5.0.

--dry-run exits far earlier in the loop then where the --delete-after-fetch test occurs, so no, it won't log the deletes because it never gets anywhere near that far.

On Wed, Feb 18, 2015 at 1:22 PM, dalenhughes [email protected] wrote:

When trying to get ~200,000 small files <2kb, I get a broken pipe error using version 1.5.0

Also, deletes aren't logged when doing --dry-run in conjunction with --remove-after-fetch.

— Reply to this email directly or view it on GitHub https://github.com/s3tools/s3cmd/issues/482.

mdomsch avatar Feb 18 '15 19:02 mdomsch

You can try upstream master branch now. The original reporter confirmed this worked for him, so I pulled my broken-pipe branch into upstream master branch.

Thanks, Matt

On Wed, Feb 18, 2015 at 1:30 PM, Matt Domsch [email protected] wrote:

try github.com/mdomsch/s3cmd bug/broken-pipe branch. This may fix the broken pipe error. S3 is closing the connection when we don't expect it in v1.5.0.

--dry-run exits far earlier in the loop then where the --delete-after-fetch test occurs, so no, it won't log the deletes because it never gets anywhere near that far.

On Wed, Feb 18, 2015 at 1:22 PM, dalenhughes [email protected] wrote:

When trying to get ~200,000 small files <2kb, I get a broken pipe error using version 1.5.0

Also, deletes aren't logged when doing --dry-run in conjunction with --remove-after-fetch.

— Reply to this email directly or view it on GitHub https://github.com/s3tools/s3cmd/issues/482.

mdomsch avatar Feb 18 '15 21:02 mdomsch

Matt, Thanks for reaching out and, more importantly, for tackling this problem! I'll let you know if this passes my tests. Best,Dalen Date: Wed, 18 Feb 2015 13:52:53 -0800 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [s3cmd] [Errno 32] Broken pipe when using 'get' command with --recursive and --remove-after-fetch (#482)

You can try upstream master branch now. The original reporter confirmed

this worked for him, so I pulled my broken-pipe branch into upstream master

branch.

Thanks,

Matt

On Wed, Feb 18, 2015 at 1:30 PM, Matt Domsch [email protected] wrote:

try github.com/mdomsch/s3cmd bug/broken-pipe branch. This may fix the

broken pipe error. S3 is closing the connection when we don't expect it in

v1.5.0.

--dry-run exits far earlier in the loop then where the

--delete-after-fetch test occurs, so no, it won't log the deletes because

it never gets anywhere near that far.

On Wed, Feb 18, 2015 at 1:22 PM, dalenhughes [email protected]

wrote:

When trying to get ~200,000 small files <2kb, I get a broken pipe error

using version 1.5.0

Also, deletes aren't logged when doing --dry-run in conjunction with

--remove-after-fetch.

—

Reply to this email directly or view it on GitHub

https://github.com/s3tools/s3cmd/issues/482.

— Reply to this email directly or view it on GitHub.

dalenhughes avatar Feb 19 '15 00:02 dalenhughes

I'm using s3cmd v 1.6.0+ doing get with --recursive and incurring the same errno 32 broken pipe error trying to get thousands of small files recursively.

marcelmfs avatar Oct 19 '15 09:10 marcelmfs