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

Missing dependency on RPM package

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: packaging
    • Labels:
    • Environment:
      Jenkins Long-term Support Release version 1.565.3-1.1
      CentOS 7.0.1406
      OpenJDK Headless 1.7.0_71
    • Similar Issues:

      Description

      Hi,

      I was not able to restart Jenkins on my CentOS 7 box by using systemctl, but it was ok after a server reboot.

      I got a HTTP 503 error and NullPointerException into log file.

      I was able to resolve this issue by installing dejavu-sans-fonts package, even on Java headless configuration.

      I think it would be better to add a RPM dependency to dejavu-sans-fonts package (and also probably to fontconfig).

      Regards.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          This is very weird, as the code in question catches everything that could possibly be thrown. It even runs for the explicit purpose of diagnosing font problems:
          https://github.com/jenkinsci/jenkins/blob/stable-1.565/core/src/main/java/hudson/util/ChartUtil.java#L229

          Could you launch Jenkins on the machine without fonts with `-Dsun.java2d.debugfonts=warning` and report the logging output?

          Show
          danielbeck Daniel Beck added a comment - This is very weird, as the code in question catches everything that could possibly be thrown. It even runs for the explicit purpose of diagnosing font problems: https://github.com/jenkinsci/jenkins/blob/stable-1.565/core/src/main/java/hudson/util/ChartUtil.java#L229 Could you launch Jenkins on the machine without fonts with `-Dsun.java2d.debugfonts=warning` and report the logging output?
          Hide
          teilo James Nord added a comment -

          @Daniel - the exception isn;t thrown there.
          It is saved as a static reference and checked in https://github.com/jenkinsci/jenkins/blob/stable-1.565/core/src/main/java/hudson/WebAppMain.java#L181

          Show
          teilo James Nord added a comment - @Daniel - the exception isn;t thrown there. It is saved as a static reference and checked in https://github.com/jenkinsci/jenkins/blob/stable-1.565/core/src/main/java/hudson/WebAppMain.java#L181
          Hide
          danielbeck Daniel Beck added a comment -

          Thanks James Nord. Clearly I'm blind.

          I remember that older versions of Jenkins just included an error image if the charts didn't work, so I assumed that was still the case. It's still in hudson.util.Graph#doPng(...) to show headless.png on error (which wouldn't help in this case, but at least it wouldn't break everything).

          What happened to that behavior?

          Show
          danielbeck Daniel Beck added a comment - Thanks James Nord . Clearly I'm blind. I remember that older versions of Jenkins just included an error image if the charts didn't work, so I assumed that was still the case. It's still in hudson.util.Graph#doPng(...) to show headless.png on error (which wouldn't help in this case, but at least it wouldn't break everything). What happened to that behavior?
          Hide
          mika Michael Prokop added a comment -

          Just ran into this issue on CentOS 6.5 with Jenkins v1.596.1-1.1 and java-1.8.0-openjdk-headless, "yum -y install fontconfig dejavu-sans-fonts" fixed this issue.

          Show
          mika Michael Prokop added a comment - Just ran into this issue on CentOS 6.5 with Jenkins v1.596.1-1.1 and java-1.8.0-openjdk-headless, "yum -y install fontconfig dejavu-sans-fonts" fixed this issue.
          Hide
          tjormola tjormola added a comment -

          Just wanted to  confirm that this problem still exists.

          CentOS 7.3 x86_64, java-1.8.0-openjdk-headless-1.8.0.131-3.b12.el7_3.x86_64 from CentOS repo, jenkins-2.46.3-1.1.noarch from http://pkg.jenkins.io/redhat-stable and default /etc/sysconfig/jenkins with "-Djava.awt.headless=true" in the Jenkins Tomcat JVM command line. Installing the packages mentioned in the previous comment fixed it.

          Show
          tjormola tjormola added a comment - Just wanted to  confirm that this problem still exists. CentOS 7.3 x86_64, java-1.8.0-openjdk-headless-1.8.0.131-3.b12.el7_3.x86_64 from CentOS repo, jenkins-2.46.3-1.1.noarch from http://pkg.jenkins.io/redhat-stable and default /etc/sysconfig/jenkins with "-Djava.awt.headless=true" in the Jenkins Tomcat JVM command line. Installing the packages mentioned in the previous comment fixed it.

            People

            • Assignee:
              Unassigned
              Reporter:
              lionel_lyra Lionel Beard
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: