Update from Puppet 7 to 8

Problem:
After updating the puppetserver and puppet-agent packages to version 8 we got the following error on running the foreman-installer:

[ERROR ] [root] /opt/puppetlabs/puppet/bin/ruby: error while loading shared libraries: libcrypt.so.2: cannot open shared object file: No such file or directory
/opt/puppetlabs/puppet/bin/ruby: error while loading shared libraries: libcrypt.so.2: cannot open shared object file: No such file or directory

Is there a way to update an existing Foreman installation with Puppet 7 to Puppet 8?

Foreman and Proxy versions:
3.12
Foreman and Proxy plugin versions:
3.12
Distribution and version:
RedHat 8.10

It looks like you have installed the el9 rpms on a el8 system. /lib64/libcrypt.so.2 is available on el9, not on el8.

Check with

$ rpm -q puppetserver puppet-agent
$ uname -a

Thx for your quick answer. You’re right I used the wrong packages.
I will test it with the correct packages and will give feedback.

Now we’re one step closer but I get SSL errors.

2025-05-07 16:14:46 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[server.de]: Could not evaluate: Exception SSL_CTX_load_verify_file: system lib in get request to: https://foreman.server.de/api/v2/smart_proxies?search=name%3D"server.de"
2025-05-07 16:14:46 [ERROR ] [configure] Wrapped exception:
2025-05-07 16:14:46 [ERROR ] [configure] SSL_CTX_load_verify_file: system lib
2025-05-07 16:14:46 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[server.de]: Evaluated in 0.00 seconds
2025-05-07 16:14:46 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-server.de]: Starting to evaluate the resource (1336 of 1362)
2025-05-07 16:14:46 [DEBUG ] [configure] Foreman_hostforeman-proxy-server.de: Making get request to https://foreman.server.de/api/v2/hosts?search=name%3D"server.de"
2025-05-07 16:14:46 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-server.de]: Could not evaluate: Exception SSL_CTX_load_verify_file: system lib in get request to: https://foreman.server.de/api/v2/hosts?search=name%3D"server.de"
2025-05-07 16:14:46 [ERROR ] [configure] Wrapped exception:
2025-05-07 16:14:46 [ERROR ] [configure] SSL_CTX_load_verify_file: system lib

There was a missing CA file referenced in the settings.yml of foreman-proxy. Now it works.
Thanks!

Please remember: changes to /etc/foreman-proxy/settings.yml will be overwritten during the next foreman-installer run. Always make changes only with foreman-installer.

1 Like