puppetlabs / puppetserver

Server automation framework and application

Home Page:https://tickets.puppetlabs.com/browse/SERVER

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Puppetserver 8.4.0 No longer compatible with Java 11

Matty-uk opened this issue · comments

Describe the Bug

Updating from pupperserver 8.3.0 to 8.4.0 on RHEL8 running java 11 results in service startup failure

Expected Behavior

Our two puppetservers were automatically updated last night (8.3.0 to 8.4.0) and subsequently failed to start.

Steps to Reproduce

Steps to reproduce the behavior:

  1. dnf update puppetserver
  2. systemctl status puppetserver

Environment

  • Version 8.4.0
  • Platform RHEL8

Additional Context

Performing a 'dnf downgrade puppetserver' returns the version to 8.3.0 and the service starts again.

Log for 8.4.0 show:
com/puppetlabs/puppetserver/JRubyPuppetResponse has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Java Support at 'https://www.puppet.com/docs/puppet/8/server/install_from_packages.html' shows Java 11 as being supported. So either this needs fixing or the documentation needs to be updated.

52 = Java 8

I need to figure out and correct the version used to Java 11 which is installed. So not a bug.

Encase anyone comes across this, needed to run as root (or sudo) the 'alternatives --config java' command and change the system wide java to 11 from 8.