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

Out-Of-Box Red Hat Install wont start on stock RHEL 8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • packaging
    • RHEL 8.8 All downloads from Red Hat or from Jenkins, nothing else on system.

      Issue is in Red Hat/.rpm packaging for Jenkins, not Jenkins itself.

      Brand-new, standard RHEL8.8 install.  Followed instructions at https://pkg.jenkins.io/redhat-stable/ then startup via systemd per Handbook.  This is what a newbie does.

      Wont start.

      RH standard Java is Java 8, and installing either java-11-openjdk or java-17-openjdk doesn't change system default "java", so documented systemd startup dies w/ "wrong java".  The smarter code in init.d/jenkins doesn't seem to be involved in this path. Messages saying so are hidden, so an inexperienced installer would be clueless and frustrated.

      Recommendations:

      1. Set JAVA_HOME=/usr/lib/jre-11 in the distributed jenkins.service and sysconfig/jenkins files
      2. Remove java 8 choices from init.d/jenkins, none of them will work.
      3. Add dependencies on "jre-11" and "fontconfig" to the .rpm
      4. Somewhat larger change: Merge the SysV init.d/jenkins and systemd methods so both pull config from a single file (probably sysconfig/jenkins) and set it there.

       

            Unassigned Unassigned
            woodrufj John "Woody" Woodruff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: