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

[Bug]: openvox-server 7.18.1 fails to start #5

Closed
1 task done
silug opened this issue Feb 18, 2025 · 7 comments · Fixed by OpenVoxProject/ezbake#1
Closed
1 task done

[Bug]: openvox-server 7.18.1 fails to start #5

silug opened this issue Feb 18, 2025 · 7 comments · Fixed by OpenVoxProject/ezbake#1
Labels
bug Something isn't working

Comments

@silug
Copy link

silug commented Feb 18, 2025

Is this a critical security issue?

  • This is not a security issue.

Describe the Bug

The puppetserver service fails to start with the following error:

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

Expected Behavior

puppetserver service starts

Steps to Reproduce

  1. Install openvox-server-7.18.1-1.el9
  2. systemctl enable --now puppetserver.service

Environment

Version: 7.18.1-1.el9
Platform: AlmaLinux 9.5

Additional Context

No response

Relevant log output

@silug silug added the bug Something isn't working label Feb 18, 2025
@nmburgan
Copy link
Member

What Java version are you using?

@nmburgan
Copy link
Member

nmburgan commented Feb 18, 2025

I think class file version 52 is Java 8, and 55 is Java 11. It is now compiled against Java 11. If you must use Java 8, we can probably change the build to use that instead.

@nmburgan
Copy link
Member

Looks like Java 8 support was dropped for puppetserver as well in 7.x
https://www.puppet.com/docs/puppet/7/server/install_from_packages#java-support

@silug
Copy link
Author

silug commented Feb 19, 2025

The package requires java-1.8.0-openjdk-headless, so that's what it was using.

@silug
Copy link
Author

silug commented Feb 19, 2025

I think class file version 52 is Java 8, and 55 is Java 11. It is now compiled against Java 11. If you must use Java 8, we can probably change the build to use that instead.

So based on that, the package dependency should be updated from java-1.8.0-openjdk-headless to java-11-openjdk-headless?

@silug
Copy link
Author

silug commented Feb 19, 2025

@nmburgan it looks like the following change to ezbake is needed:

diff --git a/resources/puppetlabs/lein-ezbake/template/global/ext/fpm.rb b/resources/puppetlabs/lein-ezbake/template/global/ext/fpm.rb
index e2339f7..a8a116a 100755
--- a/resources/puppetlabs/lein-ezbake/template/global/ext/fpm.rb
+++ b/resources/puppetlabs/lein-ezbake/template/global/ext/fpm.rb
@@ -204,7 +204,7 @@ if options.output_type == 'rpm'
             fail "Unrecognized el os version #{options.os_version}"
           end
         when 7
-          'java-1.8.0-openjdk-headless'
+          'java-11-openjdk-headless'
         else
           fail "Unknown Puppet Platform Version #{options.platform_version}"
         end

If that looks right, I'm happy to put in a PR.

@nmburgan
Copy link
Member

nmburgan commented Feb 19, 2025

Ah yes, you're right! In fact, I'd probably just remove the platform versioning switch and make 11 or 17 for everything. If we drop 11 for openvox 9, we can add more logic back if we have to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants