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

          Code changed in jenkins
          User: Jerome Lacoste
          Path:
          src/com/sun/jna/Native.java
          test/com/sun/jna/NativeTest.java
          http://jenkins-ci.org/commit/jna/ac8c5bba6bac2c07a41e14bbae5cab757e3916a4
          Log:
          Fix for JENKINS-10774: ensure that the temporary directory selected can be written too.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jerome Lacoste Path: src/com/sun/jna/Native.java test/com/sun/jna/NativeTest.java http://jenkins-ci.org/commit/jna/ac8c5bba6bac2c07a41e14bbae5cab757e3916a4 Log: Fix for JENKINS-10774 : ensure that the temporary directory selected can be written too.

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          src/com/sun/jna/Native.java
          test/com/sun/jna/NativeTest.java
          http://jenkins-ci.org/commit/jna/37f60ebb2d27480a4bd3aff622ed597f6408302c
          Log:
          Merge pull request #1 from lacostej/master

          Fix for JENKINS-10774: ensure that the temporary directory selected can be written too.

          Compare: https://github.com/jenkinsci/jna/compare/fcf5db7...37f60eb

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: src/com/sun/jna/Native.java test/com/sun/jna/NativeTest.java http://jenkins-ci.org/commit/jna/37f60ebb2d27480a4bd3aff622ed597f6408302c Log: Merge pull request #1 from lacostej/master Fix for JENKINS-10774 : ensure that the temporary directory selected can be written too. Compare: https://github.com/jenkinsci/jna/compare/fcf5db7...37f60eb

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/e7c3a58e7d0285fbb74e7a77f572576eb0535666
          Log:
          [FIXED JENKINS-10774] integrated the JNA jar that contains the fix

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/pom.xml http://jenkins-ci.org/commit/jenkins/e7c3a58e7d0285fbb74e7a77f572576eb0535666 Log: [FIXED JENKINS-10774] integrated the JNA jar that contains the fix

          dogfood added a comment -

          dogfood added a comment - Integrated in jenkins_main_trunk #1129

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/e7c3a58e7d0285fbb74e7a77f572576eb0535666
          Log:
          [FIXED JENKINS-10774] integrated the JNA jar that contains the fix

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/pom.xml http://jenkins-ci.org/commit/jenkins/e7c3a58e7d0285fbb74e7a77f572576eb0535666 Log: [FIXED JENKINS-10774] integrated the JNA jar that contains the fix

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

              Created:
              Updated:
              Resolved: