Comments (4)
Hey @tommyblue, thanks for filing an issue.
~$ ulimit -H -n
unlimited~$ ulimit -S -n
256~$ launchctl limit maxfiles
maxfiles 10240 10240
In addition to that, could you share the output of ulimit -n
please.
s5cmd
walks given <src>
directory and sends each file to an internal queue, where workers receive from. By default, 256 workers are up and running and each one tries to open the file they received from the queue. The limit here is your OSs open file descriptor limit. I suspect your open file descriptor limit is around 256.
Increasing the limit to a high value should work.
from s5cmd.
ulimit -n => 256
from s5cmd.
Your diagnosis and proposed solution are certainly correct, but I think the behaviour of s5cmd under this situation is misleading. Moreover the error message is tagged "VERBOSE" so it's probably hidden without the -vv
flag.
Some possible solutions:
- Show this kind of errors also without the verbose flag
- check ulimit against the number of configured workers at startup and notify the user if the values are incompatible
- catch the error and show a suggestion at the end of the output. Something like: "s5cmd found that the configured ulimit is too low for the number of worker you're using. Either increase the ulimit value or decrease the number of parallel workers"
from s5cmd.
@tommyblue You're right. The first one is definitely needed. If there is a non-retriable error, it needs to be shown without a verbose flag.
Others are good suggestions also. Let's keep the issue open till we've a fix.
Thanks again.
from s5cmd.
Related Issues (20)
- Common mutipart signature auth error can cause multipart uploads to fail HOT 1
- Dry-run indication (feature request)
- Question: Specify different endpoint for source and destination
- s5cmd ls --region argument, and implied lists respect the cp argument
- Facilitating Python Usage: Proposal for s5cmd Wheels HOT 2
- README.md incorrect example "you can compress the data before uploading" HOT 1
- Path globbing syntax is not documented HOT 2
- README.md internal link is incorrect
- rm doesn't delete 0-byte folder placeholders
- Region setting ignored in credentials file (and awscli doesn't need the setting at all)
- Copying object onto itself with metadata fails
- sync command copies a new object everytime when the s3 version is on GLACIER
- run input syntax is not documented HOT 1
- "Beast mode" example is incorrect
- remote-to-remote copy with --if-source-newer uses wrong region
- Support cat with glob
- Please create a new release with updated `github.com/lanrat/extsort` version HOT 2
- Parameters --no-clobber, -n with cp is working in a wrong way.
- Dualstack (IPv6) endpoint doesn't work
- Strange behaviour of sync
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s5cmd.