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

/tmp mounted noexec fails startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • core
    • None
    • Nonprod

      Hi Team,

       

      When  upgrading jenkins LTS version from 2.319 to 2.332, we have observed issue that even after declaring JENKINS_JAVA_OPTIONS="-Djava.io.tmpdir=$JENKINS_HOME/tmp", jenkins still uses /tmp path for temporariry directory (and fails to write as we have noexec enabled on /tmp). Can I understand how that can be fixed? would need to know why its no picking specified temp directory. Thanks

      ERROR logs observerd 

       jenkins[13605]: 2024-03-11 09:01:54.407+0000 [id=23]        INFO        winstone.Logger#logInternal: Winstone Servlet Engine running
       jenkins[13605]: 2024-03-11 09:01:55.130+0000 [id=22]        SEVERE        hudson.util.BootFailure#publish: Failed to initialize Jenk
       jenkins[13605]: java.lang.UnsatisfiedLinkError: /tmp/jna4367146334196090260.tmp: /tmp/jna4367146334196090260.tmp: failed to map segm
       jenkins[13605]: at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
       jenkins[13605]: at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2450)
       jenkins[13605]: at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2506)

            Unassigned Unassigned
            mallayya_s Mallayya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: