Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-10774

Jenkins unable to start if the /tmp/jna catalogue exists and is owned by a different user

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      If temporary catalogue required by akuma/jna to work is owned by a different user, jenkins startup will fail.

      See https://groups.google.com/forum/#!topic/jenkinsci-users/SnRGmOrgJN4

      # service jenkins start 
      Starting Jenkins Exception in thread "main" 
      java.lang.reflect.InvocationTargetException 
              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 Main._main(Main.java:91) 
              at Main.main(Main.java:61) 
      Caused by: java.lang.Error: Failed to create temporary file for jnidispatch library: java.io.IOException: Permission denied 
              at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java: 735) 
              at com.sun.jna.Native.loadNativeLibrary(Native.java:674) 
              at com.sun.jna.Native.<clinit>(Native.java:115) 
              at com.sun.akuma.CLibrary.<clinit>(CLibrary.java:54) 
              at com.sun.akuma.JavaVMArguments.resolvePID(JavaVMArguments.java:103) 
              at com.sun.akuma.JavaVMArguments.ofLinux(JavaVMArguments.java: 91) 
      

          [JENKINS-10774] Jenkins unable to start if the /tmp/jna catalogue exists and is owned by a different user

          lacostej created issue -
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Craig Rodrigues made changes -
          Link New: This issue is related to JENKINS-24521 [ JENKINS-24521 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 140976 ] New: JNJira + In-Review [ 189366 ]

            lacostej lacostej
            lacostej lacostej
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: