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)

Sonatype JIRA | Peter Lynch | 4 years ago
  1. 0

    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}

    Sonatype JIRA | 4 years ago | Peter Lynch
    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)
  2. 0

    java.io.FileNotFoundException: C:\opt\apache-tomcat-6.0.36-ins2\logs\localhost.2013-02-11.log (Access is denied)

    Stack Overflow | 4 years ago | ssgao
    java.io.FileNotFoundException: C:\opt\apache-tomcat-6.0.36-ins2\logs\localhost.2013-02-11.log (Access is denied)
  3. 0

    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)

    SpringSource Issue Tracker | 4 years ago | Hong Cheng (c)
    java.io.FileNotFoundException: TestDFSIO_results.log (Permission denied)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Renaming a build configuration into a name with dots reports error, but renames it in UI

    YouTrack | 5 years ago
    java.io.FileNotFoundException: C:\Work\perforce\run-sandbox\server\.BuildServer\system\artifacts\Project_1\1..\63290\.teamcity\logs\buildLog.msg5.i1 (The system cannot find the path specified)
  6. 0

    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)

    SpringSource Issue Tracker | 4 years ago | Hong Cheng (c)
    java.io.FileNotFoundException: TestDFSIO_results.log (Permission denied)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  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)

    at java.io.FileOutputStream.openAppend()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.openAppend(Native Method)[na:1.6.0_37]
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:192)[na:1.6.0_37]
    2 frames
  3. org.sonatype.timeline
    DefaultTimeline.add
    1. org.sonatype.timeline.internal.DefaultTimelinePersistor.persist(DefaultTimelinePersistor.java:111)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT]
    2. org.sonatype.timeline.internal.DefaultTimeline.add(DefaultTimeline.java:153)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT]
    2 frames
  4. org.sonatype.nexus
    LoggingToFeedEventInspector.inspect
    1. org.sonatype.nexus.timeline.DefaultNexusTimeline.add(DefaultNexusTimeline.java:157)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT]
    2. org.sonatype.nexus.feeds.DefaultFeedRecorder.addToTimeline(DefaultFeedRecorder.java:475)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT]
    3. org.sonatype.nexus.feeds.DefaultFeedRecorder.addErrorWarningEvent(DefaultFeedRecorder.java:510)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT]
    4. org.sonatype.nexus.feeds.DefaultFeedRecorder.addErrorWarningEvent(DefaultFeedRecorder.java:487)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT]
    5. org.sonatype.nexus.feeds.record.LoggingToFeedEventInspector.inspect(LoggingToFeedEventInspector.java:70)[nexus-timeline-plugin-2.3-SNAPSHOT.jar:2.3-SNAPSHOT]
    5 frames
  5. ${project.groupId}:${project.artifactId}
    DefaultEventInspectorHost$EventInspectorHandler.run
    1. org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:187)[nexus-app-2.3-SNAPSHOT.jar:2.3-SNAPSHOT]
    1 frame
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_37]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_37]
    3. java.lang.Thread.run(Thread.java:680)[na:1.6.0_37]
    3 frames