Errors when installing Foreman

Hi everyone,

I’m trying to install Foreman on a test Puppet server and am getting several errors, specifically:

2021-06-02 10:23:23 [NOTICE] [root] Loading default values from puppet modules...
2021-06-02 10:23:28 [NOTICE] [root] ... finished
2021-06-02 10:23:31 [NOTICE] [root] Running validation checks
2021-06-02 10:23:36 [NOTICE] [configure] Starting system configuration.
  The total number of configuration tasks may increase during the run.
  Observe logs or specify --verbose-log-level to see individual configuration tasks.
2021-06-02 10:23:42 [ERROR ] [configure] Could not autoload puppet/provider/exec/powershell: cannot load such file -- /opt/puppetlabs/puppet/cache/lib/puppet/provider/exec/../../../puppet_x/puppetlabs/powershell/compatible_powershell_version
2021-06-02 10:23:42 [ERROR ] [configure] Could not autoload puppet/type/exec: Could not autoload puppet/provider/exec/powershell: cannot load such file -- /opt/puppetlabs/puppet/cache/lib/puppet/provider/exec/../../../puppet_x/puppetlabs/powershell/compatible_powershell_version
2021-06-02 10:23:42 [ERROR ] [configure] Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/exec: Could not autoload puppet/provider/exec/powershell: cannot load such file -- /opt/puppetlabs/puppet/cache/lib/puppet/provider/exec/../../../puppet_x/puppetlabs/powershell/compatible_powershell_version (file: /usr/share/foreman-installer/modules/apache/manifests/init.pp, line: 631, column: 3)

The server’s running CentOS 8.3 and the Puppet server is version 6.15.3. Foreman version is 2.4.0.

The foreman.log doesn’t have any extra information on those errors, just those lines exactly the same.

The Puppetlabs Powershell module is installed but the file the installer complains about is nowhere to be found on the system.

First time trying to install Foreman, so apologies if I’m missing something obvious or if any more info is needed, let me know and I’ll try to find it and post it in a reply.

Thanks in advance,
Dan

What repositories are enabled? What is the foreman-installer command?

Thanks for the reply gvde. I followed the install instructions located here, so the repo is https://yum.theforeman.org/releases/2.4/el8/x86_64/foreman-release.rpm and the command was just foreman-installer (all this after a sudo -s)

As for repos in general that are enabled on the Puppet server, they’re:

appstream                                                                                                   CentOS Linux 8 - AppStream
baseos                                                                                                      CentOS Linux 8 - BaseOS
extras                                                                                                      CentOS Linux 8 - Extras
foreman                                                                                                     Foreman 2.4
foreman-plugins                                                                                             Foreman plugins 2.4
puppet6                                                                                                     Puppet 6 Repository el 8 - x86_64

Thanks,
Dan