java.io.IOException: Permission denied

Sonatype JIRA | Jochen Wiedmann | 5 years ago
  1. 0

    I can't start Nexus, due to the following messages in the log file: wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. jvm 1 | jvm 1 | 2012-03-29 10:57:35.492:INFO:oejs.Server:jetty-7.5.4.v20111024 jvm 1 | Starting Jetty... jvm 1 | 2012-03-29 10:57:35.667:INFO:ospjc.DisableTagLibsListener:Disabling TLD support for: null (context path: /nexus) jvm 1 | 2012-03-29 10:57:35.725:WARN:oejw.WebInfConfiguration:tmpdir jvm 1 | java.io.IOException: Permission denied jvm 1 | at java.io.UnixFileSystem.createFileExclusively(Native Method) jvm 1 | at java.io.File.checkAndCreate(File.java:1704) jvm 1 | at java.io.File.createTempFile(File.java:1793) jvm 1 | at java.io.File.createTempFile(File.java:1830) jvm 1 | at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:299) jvm 1 | at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:49) jvm 1 | at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:417) jvm 1 | at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:453) jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) jvm 1 | at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) jvm 1 | at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) jvm 1 | at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89) jvm 1 | at org.eclipse.jetty.server.Server.doStart(Server.java:261) jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) jvm 1 | at org.sonatype.plexus.jetty.Jetty7$JettyWrapperThread.run(Jetty7.java:142) wrapper | Shutdown failed: Timed out waiting for the JVM to terminate. wrapper | JVM did not exit on request, terminated wrapper | JVM exited on its own while waiting to kill the application. wrapper | JVM exited in response to signal SIGKILL (9). wrapper | <-- Wrapper Stopped Obviously Nexus requires write permissions in some temporary directory, which is perfectly fine. The bug is that the error message gives absolutely no clue where that directory is located. For example, my first guess would be /tmp, aka ${TEMP}, but that directory is perfectly writable on my Linux server. [jwi@stugforge nexus-2.0.2]$ ls -ald /tmp/ drwxrwxrwt 12 root root 8192 Mar 29 10:57 /tmp/

    Sonatype JIRA | 5 years ago | Jochen Wiedmann
    java.io.IOException: Permission denied
  2. 0

    [jira] Commented: (AMQ-2946) Issues with Win32 wrapper

    activemq-dev | 6 years ago | Jonathan Ward (JIRA)
    java.io.IOException: The system cannot find the path specified
  3. 0

    Error log {noformat} STATUS | wrapper | 2011/02/11 10:42:18 | Bamboo build server installed. STATUS | wrapper | 2011/02/11 10:42:52 | --> Wrapper Started as Service STATUS | wrapper | 2011/02/11 10:42:52 | Launching a JVM... INFO | jvm 1 | 2011/02/11 10:42:52 | Wrapper (Version 3.2.3-atlassian-1) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2011/02/11 10:42:52 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 1 | 2011/02/11 10:42:52 | INFO | jvm 1 | 2011/02/11 10:42:52 | Port = 8085 INFO | jvm 1 | 2011/02/11 10:42:52 | Web App = ../webapp INFO | jvm 1 | 2011/02/11 10:42:52 | contextPath = / INFO | jvm 1 | 2011/02/11 10:42:52 | 2011-02-11 10:42:52.477:INFO::jetty-7.2.1.v20101111 INFO | jvm 1 | 2011/02/11 10:42:52 | 2011-02-11 10:42:52.589:WARN::tmpdir INFO | jvm 1 | 2011/02/11 10:42:52 | java.io.IOException: The system cannot find the path specified INFO | jvm 1 | 2011/02/11 10:42:52 | at java.io.WinNTFileSystem.createFileExclusively(Native Method) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.io.File.checkAndCreate(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.io.File.createTempFile(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.io.File.createTempFile(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:291) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:46) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:463) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:491) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.server.Server.doStart(Server.java:243) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) INFO | jvm 1 | 2011/02/11 10:42:52 | at com.atlassian.bamboo.server.Server.main(Server.java:77) INFO | jvm 1 | 2011/02/11 10:42:52 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2011/02/11 10:42:52 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.lang.reflect.Method.invoke(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.lang.Thread.run(Unknown Source) STATUS | wrapper | 2011/02/11 10:42:54 | <-- Wrapper Stopped {noformat}

    Atlassian JIRA | 6 years ago | Michael Truong
    java.io.IOException: The system cannot find the path specified
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error log {noformat} STATUS | wrapper | 2011/02/11 10:42:18 | Bamboo build server installed. STATUS | wrapper | 2011/02/11 10:42:52 | --> Wrapper Started as Service STATUS | wrapper | 2011/02/11 10:42:52 | Launching a JVM... INFO | jvm 1 | 2011/02/11 10:42:52 | Wrapper (Version 3.2.3-atlassian-1) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2011/02/11 10:42:52 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 1 | 2011/02/11 10:42:52 | INFO | jvm 1 | 2011/02/11 10:42:52 | Port = 8085 INFO | jvm 1 | 2011/02/11 10:42:52 | Web App = ../webapp INFO | jvm 1 | 2011/02/11 10:42:52 | contextPath = / INFO | jvm 1 | 2011/02/11 10:42:52 | 2011-02-11 10:42:52.477:INFO::jetty-7.2.1.v20101111 INFO | jvm 1 | 2011/02/11 10:42:52 | 2011-02-11 10:42:52.589:WARN::tmpdir INFO | jvm 1 | 2011/02/11 10:42:52 | java.io.IOException: The system cannot find the path specified INFO | jvm 1 | 2011/02/11 10:42:52 | at java.io.WinNTFileSystem.createFileExclusively(Native Method) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.io.File.checkAndCreate(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.io.File.createTempFile(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.io.File.createTempFile(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:291) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:46) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:463) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:491) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.server.Server.doStart(Server.java:243) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) INFO | jvm 1 | 2011/02/11 10:42:52 | at com.atlassian.bamboo.server.Server.main(Server.java:77) INFO | jvm 1 | 2011/02/11 10:42:52 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2011/02/11 10:42:52 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.lang.reflect.Method.invoke(Unknown Source) INFO | jvm 1 | 2011/02/11 10:42:52 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) INFO | jvm 1 | 2011/02/11 10:42:52 | at java.lang.Thread.run(Unknown Source) STATUS | wrapper | 2011/02/11 10:42:54 | <-- Wrapper Stopped {noformat}

    Atlassian JIRA | 6 years ago | Michael Truong
    java.io.IOException: The system cannot find the path specified

  1. davidvanlaatum 2 times, last 1 week ago
  2. Vladimir Dmie 1 times, last 4 months ago
  3. davidvanlaatum 5 times, last 6 months ago
21 unregistered visitors
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.IOException

    Permission denied

    at java.io.UnixFileSystem.createFileExclusively()
  2. Java RT
    File.createTempFile
    1. java.io.UnixFileSystem.createFileExclusively(Native Method)
    2. java.io.File.checkAndCreate(File.java:1704)
    3. java.io.File.createTempFile(File.java:1793)
    4. java.io.File.createTempFile(File.java:1830)
    4 frames
  3. Jetty
    AbstractLifeCycle.start
    1. org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:299)
    2. org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:49)
    3. org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:417)
    4. org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:453)
    5. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
    6. org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
    7. org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167)
    8. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
    9. org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89)
    10. org.eclipse.jetty.server.Server.doStart(Server.java:261)
    11. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
    11 frames
  4. org.sonatype.plexus
    Jetty7$JettyWrapperThread.run
    1. org.sonatype.plexus.jetty.Jetty7$JettyWrapperThread.run(Jetty7.java:142)
    1 frame