question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nondeterministic "No such file or directory" failure when cleaning project

See original GitHub issue

I’m not sure if this is the right place to report this - I’d rather put this first on some forum, but since SBT does not have any mailing list for users, I’m forced to put it here.

I’m randomly getting this error when trying to build my project:

[default-tests-sbt] $ /usr/lib/jvm/java-8-oracle/bin/java -Dsbt.log.noformat=true -Xmx2G -jar /var/lib/jenkins/tools/org.jvnet.hudson.plugins.SbtPluginBuilder_SbtInstallation/SBT_default_launcher/bin/sbt-launch.jar clean test:clean buildUmp test
[info] Loading project definition from /var/lib/jenkins/workspace/default-tests-sbt/project
[info] Set current project to ump (in build file:/var/lib/jenkins/workspace/default-tests-sbt/)
Could not create file /var/lib/jenkins/workspace/default-tests-sbt/launcher/target/streams/$global/ivyConfiguration/$global/streams/outjava.io.IOException: No such file or directory
    at sbt.ErrorHandling$.translate(ErrorHandling.scala:10)
    at sbt.IO$.touch(IO.scala:143)
    at sbt.std.Streams$$anon$3$$anon$2.make(Streams.scala:129)
    at sbt.std.Streams$$anon$3$$anon$2.text(Streams.scala:113)
    at sbt.std.Streams$$anon$3$$anon$2.log(Streams.scala:124)
    at sbt.std.TaskStreams$class.log(Streams.scala:56)
    at sbt.std.Streams$$anon$3$$anon$2.log$lzycompute(Streams.scala:102)
    at sbt.std.Streams$$anon$3$$anon$2.log(Streams.scala:102)
    at sbt.Classpaths$$anonfun$mkIvyConfiguration$1.apply(Defaults.scala:1533)
    at sbt.Classpaths$$anonfun$mkIvyConfiguration$1.apply(Defaults.scala:1532)
    at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35)
    at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
    at sbt.std.Transform$$anon$4.work(System.scala:63)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    at sbt.Execute.work(Execute.scala:235)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: No such file or directory
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:1012)
    at sbt.IO$$anonfun$1.apply$mcZ$sp(IO.scala:143)
    at sbt.IO$$anonfun$1.apply(IO.scala:143)
    at sbt.IO$$anonfun$1.apply(IO.scala:143)
    at sbt.ErrorHandling$.translate(ErrorHandling.scala:10)
    at sbt.IO$.touch(IO.scala:143)
    at sbt.std.Streams$$anon$3$$anon$2.make(Streams.scala:129)
    at sbt.std.Streams$$anon$3$$anon$2.text(Streams.scala:113)
    at sbt.std.Streams$$anon$3$$anon$2.log(Streams.scala:124)
    at sbt.std.TaskStreams$class.log(Streams.scala:56)
    at sbt.std.Streams$$anon$3$$anon$2.log$lzycompute(Streams.scala:102)
    at sbt.std.Streams$$anon$3$$anon$2.log(Streams.scala:102)
    at sbt.Classpaths$$anonfun$mkIvyConfiguration$1.apply(Defaults.scala:1533)
    at sbt.Classpaths$$anonfun$mkIvyConfiguration$1.apply(Defaults.scala:1532)
    at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35)
    at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
    at sbt.std.Transform$$anon$4.work(System.scala:63)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    at sbt.Execute.work(Execute.scala:235)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
[error] (launcher/*:ivyConfiguration) Could not create file /var/lib/jenkins/workspace/default-tests-sbt/launcher/target/streams/$global/ivyConfiguration/$global/streams/outjava.io.IOException: No such file or directory
[error] Total time: 76 s, completed 2015-08-14 13:05:08

Can anyone direct me how do I even troubleshoot/debug this?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:12
  • Comments:50 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
ghikcommented, Aug 28, 2015

Does anyone have an idea what may be causing this error? It’s giving me nightmares - happens only sometimes, can’t reliably reproduce it.

1reaction
ganeshkaspatecommented, Jun 27, 2017

After debugging , I found that 4096 was limit for my application. So, whenever it reaches to that limit I use to get that error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker-windows executor fails in seemingly nondeterministic ...
When trying to run a build inside a windows docker container, a "file not found" or similar error in the helper image occurs....
Read more >
PostgreSQL error 'Could not connect to server: No such file or ...
I've read since that this is occuring because OS X installs its own version of PostgreSQL and Homebrew installs a different version in...
Read more >
R Installation and Administration
Choose a directory to install the R tree (R is not just a binary, ... Rout.fail file in the directory being checked (often...
Read more >
pipenv Documentation - Read the Docs
Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the. Python...
Read more >
1 Technical Issues — MOSEK FAQ 10.0.33 - Documentation
4.8 The lmutil and lmgrd will not start on Linux: No such file or directory.¶. If you run a command from the licensing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found