Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent EOF errors when trying to sync directory #3

Open
isabanin opened this issue Aug 2, 2012 · 2 comments
Open

Persistent EOF errors when trying to sync directory #3

isabanin opened this issue Aug 2, 2012 · 2 comments

Comments

@isabanin
Copy link

isabanin commented Aug 2, 2012

Hey,

We are using s3sync extensively to sync thousands of Subversion and Git repositories to S3. Most of the time it works just great, but recently I had this very strange case when s3sync would fail to sync one specific Subversion repository. I ran s3sync with debugging enabled and noticed this:

s3TreeRecurse xxx xxx /db/revprops/102/
Trying command list_bucket xxx prefix xxx/xxx/db/revprops/102/ max-keys 200 delimiter / with 100 retries left
EOF error: end of file reached
No result available
99 retries left, sleeping for 30 seconds

It would go through all 100 retires, throw the same EOF error every time and then exit. Every time I run it it fails on a different directory inside "db/revprops". This directory contains around 12,000 files.

Any ideas?

@isabanin
Copy link
Author

Here's a better excerpt from a verbose output from s3sync with debug enabled:

local item /storage/performances.git/objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f
local node object init. Name:objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f Path:/storage/performances.git/objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f Size:1983 Tag:79f8564e7b07180644dbd2431d83fded Date:Tue Dec 06 17:02:07 UTC 2011
source: objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f
s3 node object init. Name:objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f Path:performances.git/objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f Size: Tag: Date:
Create node objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f
performances.git/objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f
File extension: git/objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f
Trying command put backups performances.git/objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f # Content-Length 1983 with 99 retries left
Connection timed out: Connection timed out - connect(2)
warning: peer certificate won't be verified in this SSL session
No result available
98 retries left, sleeping for 30 seconds
Trying command put backups performances.git/objects/d9/384ec76a47eebeade1369aa93e97ecb8cb904f # Content-Length 1983 with 98 retries left
EOF error: end of file reached
warning: peer certificate won't be verified in this SSL session
No result available
97 retries left, sleeping for 30 seconds

So far it looks like s3sync can not recover from a connection time out properly.

@tomchiverton
Copy link

As a work around, you can use find to try each top level directory in turn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants