puppetlabs / puppetserver

Server automation framework and application
https://tickets.puppetlabs.com/browse/SERVER
Apache License 2.0
292 stars 236 forks source link

Puppetserver 8.4.0 No longer compatible with Java 11 #2817

Closed Matty-uk closed 9 months ago

Matty-uk commented 9 months ago

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

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.

Matty-uk commented 9 months ago

52 = Java 8

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

Matty-uk commented 9 months ago

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.