Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Interrupted downloadDir() fails to resume #125

Open
aaroncowie opened this issue Feb 26, 2016 · 5 comments
Open

Interrupted downloadDir() fails to resume #125

aaroncowie opened this issue Feb 26, 2016 · 5 comments
Milestone

Comments

@aaroncowie
Copy link

Steps to reproduce:

  1. call downloadDir on a large bucket with lots of nested folders
  2. Interrupt script halfway (ctrl-c)
  3. Re-run script

You will receive various filesystem errors, seemingly on the files that were being touched when the process was ended.

Examples:
Error: EISDIR: illegal operation on a directory, open
Error: EPERM: operation not permitted, unlink
Error: ENOENT: no such file or directory, open

This happens every time, it is not intermittent.

Is there any way I can work around this? I don't mind if the sync takes forever, I'm more concerned that it doesn't get stuck in an invalid state.

@jasiedu
Copy link

jasiedu commented Mar 21, 2016

Having the same issue.
unable to download: Error: EISDIR, open...

@alexisreina
Copy link

alexisreina commented Jul 1, 2016

Same issue here... I updated graceful-fs dependency to version 4 and seems to work so far. I'm downloading 3 prefixes? from a bucket... over 7.500 files and 250 folders. There's an open issue #122 to upgrade graceful-fs from version 3 to 4, as monkey-patching is no longer supported.

I opened my node_modules folder, find the s3 module package.json and update the graceful-fs dependency to the 4.1.4.

run npm update inside the s3 folder.

@celicoo
Copy link

celicoo commented Aug 14, 2016

Not working here. I've already try to update graceful-fs.

@celicoo
Copy link

celicoo commented Aug 31, 2016

Any updates on this subject?

@cstjohn-bhg
Copy link

Bump, this error interrupts downloadDir() at about 1/4 progress consistently for me.

@OmgImAlexis OmgImAlexis modified the milestone: Backlog Aug 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants