Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby java mismatch with puppetserver 8 on EL8 systems - puppetserver does not start #2870

Open
tskirvin opened this issue Aug 8, 2024 · 9 comments
Labels

Comments

@tskirvin
Copy link

tskirvin commented Aug 8, 2024

Describe the Bug

The ruby version built into puppetserver doesn't work with EL8 systems:

HOST1 ~# puppetserver ruby --version
Execution error (UnsupportedClassVersionError) at java.lang.ClassLoader/defineClass1 (ClassLoader.java:-2).
com/puppetlabs/puppetserver/EnvironmentRegistry 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

Expected Behavior

This is what it looked like on EL8 running puppetserver 7:

HOST2 ~# puppetserver ruby --version
jruby 9.3.4.0 (2.6.8) 2022-03-23 eff48c1ebf OpenJDK 64-Bit Server VM 25.412-b08 on 1.8.0_412-b08 +jit [x86_64-linux]

And, on the first host after downgrading to puppetserver-7.17.2-1:

HOST1 ~# puppetserver ruby --version
jruby 9.3.14.0 (2.6.8) 2024-02-20 0db23ddd14 OpenJDK 64-Bit Server VM 25.422-b05 on 1.8.0_422-b05 +jit [x86_64-linux]

Steps to Reproduce

yum localinstall https://yum.puppetlabs.com/puppet8/el/8/x86_64/puppetserver-8.6.2-1.el8.noarch.rpm
puppetserver ruby --version

Environment

  • Version 8.6.2, 8.6.1
  • Platform Alma Linux 8.10, 8.9

Additional Context

@tskirvin tskirvin added the bug label Aug 8, 2024
@tskirvin
Copy link
Author

To be clear, this means that puppetserver does not start.

@joshcooper
Copy link
Contributor

@tskirvin
Copy link
Author

Yes, but this is (as a far as I can tell) all running within the internal rpm stack? There's no java to upgrade on the system, and no additional puppet-land rpms to install. What should I be installing to make this work on EL8?

@joshcooper
Copy link
Contributor

Try Java 11 as described in https://developers.redhat.com/blog/2018/12/10/install-java-rhel8

@tskirvin
Copy link
Author

Good, that works! Should there be documentation to that effect? Is there a simple puppet module to handle this with the puppetlabs/java module, assuming we're already properly bootstrapped?

@tskirvin
Copy link
Author

Or maybe this is just a packaging thing? Shouldn't the rpm specify the requirements adequately to run the software?

@bastelfreak
Copy link
Contributor

@tskirvin check puppetlabs/ezbake#627 please

@tskirvin
Copy link
Author

tskirvin commented Oct 4, 2024

Looks like it'll do the job, is that merged up and in a public release I can test?

@bastelfreak
Copy link
Contributor

puppetlabs/ezbake#627 is open since March, without any real feedback from Puppet since April.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants