java.io.FileNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • after startup with ~1000 empty repos. Nexus Professional 2.2-01, > lsof -p 41757 | wc -l 1807 Nexus 2.3-SNAPSHOT ( nexus-professional-2.3-20121113.114232-64-bundle ) > lsof -p 41368 | wc -l 5793 In fact, if I control-C Nexus 2.3 while it is loading the repos, the timeline becomes corrupted, such that on restart, I get a million of these: {noformat} jvm 1 | 2012-11-14 14:10:26 WARN [st-1-thread-195] - org.sonatype.timeline.internal.DefaultTimeline - Failed to add a timeline record jvm 1 | java.io.FileNotFoundException: /Volumes/D/app/nexus/2.3-SNAPSHOT/nexus-professional-2.3-20121113.114232-64-bundle/sonatype-work/nexus/timeline/persist/timeline.2012-11-14.14-10-09-0330.dat (Too many open files) jvm 1 | at java.io.FileOutputStream.openAppend(Native Method) ~[na:1.6.0_37] jvm 1 | at java.io.FileOutputStream.<init>(FileOutputStream.java:192) ~[na:1.6.0_37] jvm 1 | at org.sonatype.timeline.internal.DefaultTimelinePersistor.persist(DefaultTimelinePersistor.java:111) ~[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] jvm 1 | at org.sonatype.timeline.internal.DefaultTimeline.add(DefaultTimeline.java:153) ~[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] jvm 1 | at org.sonatype.nexus.timeline.DefaultNexusTimeline.add(DefaultNexusTimeline.java:157) [nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] jvm 1 | at org.sonatype.nexus.feeds.DefaultFeedRecorder.addToTimeline(DefaultFeedRecorder.java:475) [nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] jvm 1 | at org.sonatype.nexus.feeds.DefaultFeedRecorder.addErrorWarningEvent(DefaultFeedRecorder.java:510) [nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] jvm 1 | at org.sonatype.nexus.feeds.DefaultFeedRecorder.addErrorWarningEvent(DefaultFeedRecorder.java:487) [nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] jvm 1 | at org.sonatype.nexus.feeds.record.LoggingToFeedEventInspector.inspect(LoggingToFeedEventInspector.java:70) [nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] jvm 1 | at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:187) [nexus-app-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_37] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_37] jvm 1 | at java.lang.Thread.run(Thread.java:680) [na:1.6.0_37] {noformat}
    via by Peter Lynch,
  • Reproduce steps: 1,Create cdh4 cluster with attached spec file:default_cdh4_ha_and_federation_hadoop_cluster.json 2,Run TestDFSIO job from Client with user joe; hadoop jar hadoop-test-2.0.0-mr1-cdh4.1.2.jar TestDFSIO -write -nrFiles 5 -fileSize 100 3,Clean temp files; hadoop jar hadoop-test-2.0.0-mr1-cdh4.1.2.jar TestDFSIO clean 4,Run TestDFSIO again(or swith active namenode twice if you can't reproduce the bug); Expected results: No error in step 2 and 4; Actual results: Find below messages after job running done. java.io.FileNotFoundException: TestDFSIO_results.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:192) at org.apache.hadoop.fs.TestDFSIO.analyzeResult(TestDFSIO.java:526) at org.apache.hadoop.fs.TestDFSIO.run(TestDFSIO.java:623) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84) at org.apache.hadoop.fs.TestDFSIO.main(TestDFSIO.java:456) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:144) at org.apache.hadoop.test.AllTestDriver.main(AllTestDriver.java:81) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
    via by Hong Cheng (c),
  • Reproduce steps: 1,Create cdh4 cluster with attached spec file:default_cdh4_ha_and_federation_hadoop_cluster.json 2,Run TestDFSIO job from Client with user joe; hadoop jar hadoop-test-2.0.0-mr1-cdh4.1.2.jar TestDFSIO -write -nrFiles 5 -fileSize 100 3,Clean temp files; hadoop jar hadoop-test-2.0.0-mr1-cdh4.1.2.jar TestDFSIO clean 4,Run TestDFSIO again(or swith active namenode twice if you can't reproduce the bug); Expected results: No error in step 2 and 4; Actual results: Find below messages after job running done. java.io.FileNotFoundException: TestDFSIO_results.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:192) at org.apache.hadoop.fs.TestDFSIO.analyzeResult(TestDFSIO.java:526) at org.apache.hadoop.fs.TestDFSIO.run(TestDFSIO.java:623) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84) at org.apache.hadoop.fs.TestDFSIO.main(TestDFSIO.java:456) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:144) at org.apache.hadoop.test.AllTestDriver.main(AllTestDriver.java:81) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
    via by Hong Cheng (c),
  • Apache Spark User List - distinct on huge dataset
    via by Unknown author,
  • Saving causing time outs
    via GitHub by prodkid
    ,
  • setting up connection issues
    via by 713392,
    • java.io.FileNotFoundException: /Volumes/D/app
    • exus/2.3-SNAPSHOT
    • exus-professional-2.3-20121113.114232-64-bundle/sonatype-work
    • exus/timeline/persist/timeline.2012-11-14.14-10-09-0330.dat (Too many open files) at java.io.FileOutputStream.openAppend(Native Method)[na:1.6.0_37] at java.io.FileOutputStream.<init>(FileOutputStream.java:192)[na:1.6.0_37] at org.sonatype.timeline.internal.DefaultTimelinePersistor.persist(DefaultTimelinePersistor.java:111)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] at org.sonatype.timeline.internal.DefaultTimeline.add(DefaultTimeline.java:153)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] at org.sonatype.nexus.timeline.DefaultNexusTimeline.add(DefaultNexusTimeline.java:157)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] at org.sonatype.nexus.feeds.DefaultFeedRecorder.addToTimeline(DefaultFeedRecorder.java:475)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] at org.sonatype.nexus.feeds.DefaultFeedRecorder.addErrorWarningEvent(DefaultFeedRecorder.java:510)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] at org.sonatype.nexus.feeds.DefaultFeedRecorder.addErrorWarningEvent(DefaultFeedRecorder.java:487)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] at org.sonatype.nexus.feeds.record.LoggingToFeedEventInspector.inspect(LoggingToFeedEventInspector.java:70)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:187)[nexus-app-2.3-SNAPSHOT.jar:2.3-SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_37] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_37] at java.lang.Thread.run(Thread.java:680)[na:1.6.0_37]

    Users with the same issue

    filipebatistafilipebatista
    5 times, last one,
    MattyMatty
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    AxeloAxelo
    2 times, last one,
    rprp
    1 times, last one,
    138 more bugmates