Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Froyo
-
Needs Assessment
-
Not Needed
-
Needs Assessment
Description
In attempt to fix AOT compilation across Java versions, we updated dynapath from 0.2.4 to 1.0.0, because of the way it uses Java 8 vs Java 9+ APIs differently. However, this seems to have broken reloading the puppetserver service in a package install.
From journalctl following a reload command:
Jan 08 00:29:50 k3vztg6tn4y2stv puppetserver[21913]: NameError: Could not create resources for managing Puppet's files and directories in sections [:main, :master, :ssl, :metrics]: c
|
Jan 08 00:29:50 k3vztg6tn4y2stv puppetserver[21913]: cannot link Java class com.puppetlabs.Facter (java.lang.UnsatisfiedLinkError: Native Library /opt/puppetlabs/puppet/lib/libfacter
|
From puppetserver.log:
Caused by: org.jruby.embed.InvokeFailedException: (NameError) Could not create resources for managing Puppet's files and directories in sections [:main, :master, :ssl, :metrics]: cannot link Java class com.puppetlabs.Facter (java.lang.UnsatisfiedLinkError: Native Library /opt/puppetlabs/puppet/lib/libfacter.so.3.12.3 already loaded in another classloader)
|
cannot link Java class com.puppetlabs.Facter (java.lang.UnsatisfiedLinkError: Native Library /opt/puppetlabs/puppet/lib/libfacter.so.3.12.3 already loaded in another classloader)
|
Rolling dynapath back to 0.2.4 fixes this. I haven't tried it on Java 11 or with dynapath 0.2.5.
Attachments
Issue Links
- relates to
-
SERVER-2404 puppetserver 6.1.0 dies with OpenJDK 11, but 6.0.2 worked
-
- Closed
-
-
SERVER-2423 Fix failure to reload Server in Java 11
-
- Resolved
-
-
TK-481 Add Java 11 support to trapperkeeper-metrics
-
- Closed
-