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

Too many open files error #308

Open
joeyvmason opened this issue May 10, 2018 · 0 comments · May be fixed by #316
Open

Too many open files error #308

joeyvmason opened this issue May 10, 2018 · 0 comments · May be fixed by #316

Comments

@joeyvmason
Copy link

We've been encountering this error sporadically for months. It definitely helps to set the concurrency level to 1 (as suggested by #8), but that does not completely resolve the issue.

[fail] Failed to upload lib/bootstrap/dist/js/bootstrap.js.map (/home/rof/src/github.com/joeyvmason/test-website/./lib/bootstrap/dist/js/bootstrap.js.map (Too many open files)
java.io.FileInputStream.open(Native Method)
java.io.FileInputStream.<init>(FileInputStream.java:146)
org.apache.tika.io.TikaInputStream.<init>(TikaInputStream.java:444)
org.apache.tika.io.TikaInputStream.get(TikaInputStream.java:231)
org.apache.tika.io.TikaInputStream.get(TikaInputStream.java:365)
org.apache.tika.Tika.detect(Tika.java:265)
org.apache.tika.Tika.detect(Tika.java:248)
s3.website.model.Upload$$anonfun$contentType$1$$anonfun$6.apply(push.scala:75)
s3.website.model.Upload$$anonfun$contentType$1$$anonfun$6.apply(push.scala:75)
scala.Option.getOrElse(Option.scala:121)
s3.website.model.Upload$$anonfun$contentType$1.apply(push.scala:75)
s3.website.model.Upload$$anonfun$contentType$1.apply(push.scala:60)
scala.util.Success$$anonfun$map$1.apply(Try.scala:237)
scala.util.Try$.apply(Try.scala:192)
scala.util.Success.map(Try.scala:237)
s3.website.model.Upload.contentType$lzycompute(push.scala:60)
s3.website.model.Upload.contentType(push.scala:60)
s3.website.S3$$anonfun$toPutObjectRequest$1$$anonfun$apply$3.apply(S3.scala:69)
s3.website.S3$$anonfun$toPutObjectRequest$1$$anonfun$apply$3.apply(S3.scala:68)
scala.util.Success.flatMap(Try.scala:231)
s3.website.S3$$anonfun$toPutObjectRequest$1.apply(S3.scala:68)
s3.website.S3$$anonfun$toPutObjectRequest$1.apply(S3.scala:66)
scala.util.Either.fold(Either.scala:98)
s3.website.S3$.toPutObjectRequest(S3.scala:65)
s3.website.S3$$anonfun$uploadToS3$1.apply(S3.scala:32)
s3.website.S3$$anonfun$uploadToS3$1.apply(S3.scala:31)
scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
java.lang.Thread.run(Thread.java:748))

I'm going to do some more investigation, but I have a feeling the issue is that the file streams are not being closed properly.

@maxbendick maxbendick linked a pull request Oct 17, 2018 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant