• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Jenkins 1.537 installed on CentOS 6.2 as RPM and running as a service.

      Images, such as build icons, start disappearing sporadically from the Jenkins UI. The UI instead displays a "broken image" icon. When accessing the image's URL, such as e.g. http://<jenkins-host>:6080/static/cc7624e2/images/32x32/health-00to19.png, a 404 error is returned.

      Analysis:
      The images appear to be served from the /tmp/jetty-0.0.0.0-6080-jenkins.war-any/webapp/images/ folder. By default, CentOS runs a daily cron of tmpwatch, which deletes files under /tmp that haven't been accessed in 10 days. So image files are deleted if Jenkins is running for more than 10 days, and an image hasn't been accessed (for example, the health-00to19.png won't be accessed if there were no builds with <20% health lately).

      Workaround:
      I was able to resolve the problem by editing /etc/sysconfig/jenkins and adding " -Djava.io.tmpdir=/var/tmp" to JENKINS_JAVA_OPTIONS. However, it would be better if Jenkins came correctly configured out-of-the-box.

          [JENKINS-20858] Images missing from Jenkins UI

          See JENKINS-22442
          It should fix the issue reported here without requiring the tmpdir hack in 1.555

          Richard Mortimer added a comment - See JENKINS-22442 It should fix the issue reported here without requiring the tmpdir hack in 1.555

          Yves Schumann added a comment -

          We're facing the same problem with 1.557. Any news here?

          Yves Schumann added a comment - We're facing the same problem with 1.557. Any news here?

          The fix went into 1.558. I have that running here and it is now unpacking the WAR file into /var/cache/jenkins/war as per the --webroot setting.

          Richard Mortimer added a comment - The fix went into 1.558. I have that running here and it is now unpacking the WAR file into /var/cache/jenkins/war as per the --webroot setting.

          Daniel Beck added a comment -

          Duplicate of JENKINS-22442 which was fixed in 1.558 and 1.554.1.

          Daniel Beck added a comment - Duplicate of JENKINS-22442 which was fixed in 1.558 and 1.554.1.

          Jonathan Langevin added a comment - - edited

          In 1.576, seeing a similar issue where plugin images for the left nav menu are broken. Inspecting the images in browser shows URL of

          //plugin/config-rotator/images/rotate.png

          Jenkins is installed via Ubuntu APT, running as a service.

          Jonathan Langevin added a comment - - edited In 1.576, seeing a similar issue where plugin images for the left nav menu are broken. Inspecting the images in browser shows URL of //plugin/config-rotator/images/rotate.png Jenkins is installed via Ubuntu APT, running as a service.

          This doesn't look like the same problem. The URL you included looks to be wrong there should be something between the "//" at the start of the URL. This needs logging as a separate issue probably against the config-rotator plugin.

          Richard Mortimer added a comment - This doesn't look like the same problem. The URL you included looks to be wrong there should be something between the " // " at the start of the URL. This needs logging as a separate issue probably against the config-rotator plugin.

          Jonathan Langevin added a comment - - edited

          This issue isn't specific to config-rotator, as there are multiple broken plugin images in the menu.

          I'll get a new bug report created later this morning

          Jonathan Langevin added a comment - - edited This issue isn't specific to config-rotator, as there are multiple broken plugin images in the menu. I'll get a new bug report created later this morning

          James Howe added a comment -

          Already been done: JENKINS-24316

          James Howe added a comment - Already been done: JENKINS-24316

          Thanks for the link James

          Jonathan Langevin added a comment - Thanks for the link James

          Daniel Beck added a comment -

          Just in case someone visits:

          This is not the issue that occurs after upgrade to 1.576. Visit JENKINS-24316

          Daniel Beck added a comment - Just in case someone visits: This is not the issue that occurs after upgrade to 1.576. Visit JENKINS-24316

            Unassigned Unassigned
            eliac Eli Acherkan
            Votes:
            16 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: