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

Debian packages depend on Java 7 even though Jenkins requires Java 8

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • packaging
    • None

      Jenkins 2.54 started requiring Java 8 [1], but the 2.54 package in the Jenkins-provided Debian package repository [2] still depends on openjdk-7-jre-headless. This means that on distros that do not provide Java 8 the package will successfully update but fail to start.

      [1] https://jenkins.io/blog/2017/04/10/jenkins-has-upgraded-to-java-8/
      [2] https://pkg.jenkins.io/debian

          [JENKINS-43495] Debian packages depend on Java 7 even though Jenkins requires Java 8

          Dave Miller added a comment -

          I have attached the jenkins.wrapper.log and jenkins.err.log files.  Jenkins was installed by somebody else who is no longer with our company, so I "inherited" the setup.  It was installed as a service that gets automatically started every time that server is rebooted.  I know that server does have Java 8 on it.

           

          C:\>java -version
          java version "1.8.0_74"
          Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
          Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

           

          If different logs are needed, please let me know.

          Dave Miller added a comment - I have attached the jenkins.wrapper.log and jenkins.err.log files.  Jenkins was installed by somebody else who is no longer with our company, so I "inherited" the setup.  It was installed as a service that gets automatically started every time that server is rebooted.  I know that server does have Java 8 on it.   C:\>java -version java version "1.8.0_74" Java(TM) SE Runtime Environment (build 1.8.0_74-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)   If different logs are needed, please let me know.

          Oleg Nenashev added a comment -

          millda4, Please continue the discussion in the Ticket for Windows and provide the info you have there. You definitely have wrong Java version on the master: "Caused by: java.lang.UnsupportedClassVersionError: jenkins/util/SystemProperties : Unsupported major.minor version 52.0" in your log.

          Oleg Nenashev added a comment - millda4 , Please continue the discussion in the Ticket for Windows and provide the info you have there. You definitely have wrong Java version on the master: "Caused by: java.lang.UnsupportedClassVersionError: jenkins/util/SystemProperties : Unsupported major.minor version 52.0" in your log.

          Dave Miller added a comment -

          Please excuse the dumb question, but what and where is the "Ticket for Windows"?  I don't post messages here very often, so I don't know my way around.  Is it a separate forum?

          Dave Miller added a comment - Please excuse the dumb question, but what and where is the "Ticket for Windows"?  I don't post messages here very often, so I don't know my way around.  Is it a separate forum?

          Oleg Nenashev added a comment -

          I have referenced JENKINS-43499 above.

          This site is not a forum, it is a bugtracker. And this particular bug is for Debian, not for Windows.

          Oleg Nenashev added a comment - I have referenced JENKINS-43499 above. This site is not a forum, it is a bugtracker. And this particular bug is for Debian, not for Windows.

          Jeroen Bogers added a comment - - edited

          Please remove Jenkins 2.54 from apt/pkg.jenkins-ci.org. All Ubuntu 14.04 users will run into this issue as there is no Java 8 available for 14.04 by default so this will be the version these users will be stuck on (unless they install Java 8 via the proper PPA). They will be wondering why Jenkins is broken and why apt is refusing to update.

          See also JENKINS-43629

          Jeroen Bogers added a comment - - edited Please remove Jenkins 2.54 from apt/pkg.jenkins-ci.org. All Ubuntu 14.04 users will run into this issue as there is no Java 8 available for 14.04 by default so this will be the version these users will be stuck on (unless they install Java 8 via the proper PPA). They will be wondering why Jenkins is broken and why apt is refusing to update. See also JENKINS-43629

          Oleg Nenashev added a comment -

          jbogers As I have written above, you should create an INFRA ticket for it. This issue is not "just delete it", so it requires involvement of the INFRA team

          Oleg Nenashev added a comment - jbogers As I have written above, you should create an INFRA ticket for it. This issue is not "just delete it", so it requires involvement of the INFRA team

          Jeroen Bogers added a comment -

          Created INFRA-1167 to handle the removal.

          Jeroen Bogers added a comment - Created INFRA-1167 to handle the removal.

          Oleg Nenashev added a comment -

          Thanks!

          Oleg Nenashev added a comment - Thanks!

          Code changed in jenkins
          User: Sam Van Oort
          Path:
          deb/build/debian/control
          http://jenkins-ci.org/commit/packaging/887711072814b0033e490d7cda031ef64ba87c94
          Log:
          Revert "JENKINS-43495 - Updated Java dependency to Java 8"

          This reverts commit 70ac244a0f102365fdc60bba0eae429fc4be8eca.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sam Van Oort Path: deb/build/debian/control http://jenkins-ci.org/commit/packaging/887711072814b0033e490d7cda031ef64ba87c94 Log: Revert " JENKINS-43495 - Updated Java dependency to Java 8" This reverts commit 70ac244a0f102365fdc60bba0eae429fc4be8eca.

          Kevin Lyda added a comment -

          Just in case millda4 is a former coworker dealing with a machine I installed, the solution is as follows on an Ubuntu 14.04 machine (all as root):

           

          add-apt-repository ppa:openjdk-r/ppa
          apt-get update
          apt-get install openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk
          apt-get remove --purge openjdk-7-jre openjdk-7-jre-headless openjdk-7-jdk
          apt-get dist-upgrade
          

          And that should update jenkins to the latest released version.

           

          Kevin Lyda added a comment - Just in case millda4 is a former coworker dealing with a machine I installed, the solution is as follows on an Ubuntu 14.04 machine (all as root):   add-apt-repository ppa:openjdk-r/ppa apt-get update apt-get install openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk apt-get remove --purge openjdk-7-jre openjdk-7-jre-headless openjdk-7-jdk apt-get dist-upgrade And that should update jenkins to the latest released version.  

            oleg_nenashev Oleg Nenashev
            mkarlsson Marcus Karlsson
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: