Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2423

Fix failure to reload Server in Java 11

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SERVER 6.6.0
    • Component/s: None
    • Template:
    • Team:
      Server
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Puppet Server can now be reloaded and run with multiple JRuby instances when running under Java 11.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Reloading Puppet Server fails in Java 11 with:

      $ journalctl -xe
      ...
      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
      ...
      

      $ cat /var/log/puppetlabs/puppetserver/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)
      ...
      

      Reloading Puppet Server 6.0.2 also fails in Java 11 but with an error to call a reflection API when finding Puppet Server's version.

      Unknown if these two kinds of failures are related but since Server seems to have never reloaded properly in Java 9+. This ticket should be considered a blocker to official support of those versions.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                justin Justin Stoller
                Reporter:
                justin Justin Stoller
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support