Skip to content

Failure with puppet.service systemd unit #9573

Open

Description

@flaruina

Describe the Bug

If I try to start puppet.service on a SLES15.6 server I get an error reguarding openssl.

/opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux/openssl.so: undefined symbol: EC_GROUP_new_curve_GF2m, version OPENSSL_3.0.0 - /opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux/openssl.so

Puppet agent works as expected if launched interactively.
As a workaround, setting LD_LIBRARY_PATH seems to fix the issue

# cat /etc/systemd/system/puppet.service.d/override.conf 
[Service]
Environment=LD_LIBRARY_PATH=/opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux:/opt/puppetlabs/puppet/lib

Expected Behavior

Since puppet agent works if launched interactively I would expect the unit to start correctly.

Steps to Reproduce

Steps to reproduce the behavior:

  1. systemctl start puppet.service
  2. systemctl status puppet.service

Environment

  • Version puppet-agent-8.10.0-1.sles15.x86_64
  • Platform SLES 15.6

Activity

  1. added
    bug
    on Mar 23, 2026
  2. flaruina commented on Aug 7, 2026

    @flaruina
    Author

    There is a conflict betweeen the openssl/libcrypto bundled with puppet and the one provided by SLES (which does not include the symbol):

    > objdump -T /opt/puppetlabs/puppet/lib/libcrypto.so.3     | grep EC_GROUP_new_curve_GF2m
    00000000001673d0 g    DF .text  0000000000000075  OPENSSL_3.0.0 EC_GROUP_new_curve_GF2m
    >  objdump -T /usr/lib64/libcrypto.so.3     | grep EC_GROUP_new_curve_GF2m
    

    By means of LD_DEBUG=libs, I observed that when launched by systemd (without the LD_LIBRARY_PATH workaround) this chain of events makes the system load the SUSE provided libcrypto

    libnsl.so.2
      -> libtirpc.so.3
        -> libgssapi_krb5.so.2
          -> libkrb5.so.3 / libk5crypto.so.3
            -> libcrypto.so.3
    

    In the interactive case, the puppet provided libcrypto is loaded before the system one and it works.
    With the LD_LIBRARY_PATH set, puppet provided libs are loaded in advance, then puppet run and afterwards there are errors of missing symbol (puppet provided libcrypto do not ship with the EVP_camellia_256_cbc symbol required by the system provided libk5crypto.so.3).

    In my case, I just ignore this errors since they are limited to Puppet launches and do not seem to create real issues.

  3. fragrantauto commented on Aug 14, 2026

    @fragrantauto

    Have you checked if the system's OpenSSL library is overriding the one bundled with Puppet when starting the service? Specifically, verifying the output of ldd /opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux/openssl.so could help identify if the loaded library is the expected version. Additionally, consider checking the LD_LIBRARY_PATH in the context of systemd services to ensure that it's being set correctly, as environment variables can sometimes behave differently when running as a service compared to an interactive shell.

  4. flaruina commented on Aug 28, 2026

    @flaruina
    Author

    Thanks for all the suggestions. Forcing the puppet-provided libcrypto.so.3 to be loaded, the systemd unit works fine

    # cat /etc/systemd/system/puppet.service.d/override.conf
    [Service]
    Environment=LD_PRELOAD=/opt/puppetlabs/puppet/lib/libcrypto.so.3
  5. christianfrei791 commented on Sep 5, 2026

    @christianfrei791

    The root cause looks like an missing or incorrect RPATH/RUNPATH setting in `openssl.so

  6. cherryrodney26 commented on Sep 11, 2026

    @cherryrodney26

    soloading systemlibcrypto` instead of puppet's bundled one in the first place?
    *

  7. dayvenhppg2 commented on Oct 5, 2026

    @dayvenhppg2

    Since the error specifically mentions an undefined symbol for EC_GROUP_new_curve_GF2m at version OPENSSL_3.0.0, this suggests the system loader is resolving to an incompatible OpenSSL library version at runtime that lacks support for legacy curves. While LD_PRELOAD is a functional workaround, it is fragile if the bundled OpenSSL version changes during a future agent update. Could you check the output of readelf -d /opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux/openssl.so | grep -E 'RPATH|RUNPATH' to confirm if the expected path is truly missing or if it is being shadowed by system-wide library search order?

  8. tyshawnaamonte commented on Oct 15, 2026

    @tyshawnaamonte

    Since the undefined symbol: EC_GROUP_new_curve_GF2m error persists, it is likely that the bundled Ruby binary is resolving symbols against the system's OpenSSL 3.0.x libraries instead of the Puppet-provided ones at runtime. Have you checked the output of readelf -d /opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux/openssl.so | grep -E 'RPATH|RUNPATH' to confirm if the expected library search path is entirely absent from the binary's headers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions