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

Puppetserver fails to reload with dynapath 1.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SERVER 6.0.3, SERVER 6.2.0
    • Component/s: None
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Team:
      Server
    • Method Found:
      Needs Assessment
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      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

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  justin Justin Stoller
                  Reporter:
                  maggie Maggie Dreyer
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: