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

Path $JENKINS_HOME/.cache not use at Jenkins 2.235.1-1.1 start

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • core, packaging
    • None
    • Jenkins 2.235.1-1.1 - Centos 7.5.1804 -

      Hi,

      i just migrate from 2.176 to 2.235, and my jenkins refused to start : 

      Caused by: java.lang.UnsatisfiedLinkError: /var/lib/jenkins/.cache/JNA/temp/jna8797556965940915421.tmp: /var/lib/jenkins/.cache/JNA/temp/jna8797556965940915421.tmp: failed to map segment from shared object: Operation not permitted

      because my /var   have  "noexec" mount  setting.

      But  my jenkins $JENKINS_HOME is set to /srv/jenkins in  /etc/sysconfig/jenkins  , so  i expect at start the process  it to reach /var/lib/jenkins/.cache    but  /srv/jenkins/.cache.

       

          [JENKINS-63076] Path $JENKINS_HOME/.cache not use at Jenkins 2.235.1-1.1 start

          Oleg Nenashev added a comment -

          Might be a packaging bug. We do not have a standard of how caches should be handled in Jenkins. Ideally they should be configurable as a separate vairiable in the Jenkins core

          Oleg Nenashev added a comment - Might be a packaging bug. We do not have a standard of how caches should be handled in Jenkins. Ideally they should be configurable as a separate vairiable in the Jenkins core

          Basil Crow added a comment -

          The noexec mount setting is not an officially tested configuration. To use such a configuration, set the Java system property -Djna.tmpdir=/path/to/jenkins/home to customize the JNA temporary directory.

          Basil Crow added a comment - The noexec mount setting is not an officially tested configuration. To use such a configuration, set the Java system property -Djna.tmpdir=/path/to/jenkins/home to customize the JNA temporary directory.

            Unassigned Unassigned
            _835_ Sebastien AUCOUTURIER
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: