Ruby error when installing on Ubuntu 19.10

Problem:
I am new to Foreman and puppet and would appreciate some assistance with the installation.

Ubuntu 19 essentially the same as Ubuntu 18
This is a blank VM Ubuntu server with only the OS installed. I turned ufw off for the installation but will turn it on once I have everything installed.

I’ve posted my exact steps below.

When it finishes
“Preparing installation Done”
“Something went wrong! Check the log for ERROR-level output”

The first error in /var/log/foreman-installer/foreman.log

“[ERROR 2020-02-27T07:22:37 main] Evaluation Error: Error while evaluating a Function Call, No preferred version defined or automatically detected. (file: /usr/share/foreman-installer/modules/postgresql/manifests/globals.pp, line: 227, column: 5) on node .local”

Most of the errors occur in this path
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/

Additionally, I cannot get to the website. The error says that “This site can’t be reached”

When I search for a solution I found Foreman Installer issue under Ubuntu 18.04
so I deleted my Ubuntu VM and started over

Did the first 8 steps from the installation above then I did

sudo apt install -y puppetserver

When the install finished then did the last 2 steps from above.

Had the exact same outcome, so I am going to wipe out this server so I can start fresh again.

Expected outcome:
Expected the software to install correctly.

Foreman and Proxy versions:
1.24
Foreman and Proxy plugin versions:
1.24
Distribution and version:
Ubuntut 19.10
Other relevant data:
indent preformatted text by 4 spaces
sudo apt-get -y install ca-certificates
cd /tmp && wget https://apt.puppet.com/puppet6-release-bionic.deb
sudo dpkg -i /tmp/puppet6-release-bionic.deb
cd /home/
echo “deb http://deb.theforeman.org/ bionic 1.24” | sudo tee /etc/apt/sources.list.d/foreman.list
echo “deb http://deb.theforeman.org/ plugins 1.24” | sudo tee -a /etc/apt/sources.list.d/foreman.list
wget -q https://deb.theforeman.org/pubkey.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt install -y foreman-installer
sudo foreman-installer

I reran the installation on a fresh server in verbose mode and notice a warning just before receiving all the ruby errors

[ WARN 2020-02-28T05:24:23 verbose] /etc/foreman-installer/custom-hiera.yaml: file does not contain a valid yaml hash

After reading Foreman Proxy won’t start due to ruby load error (Concurrent::Edge::Future), I destroyed my Ubuntu VM and created a base CentOS 8 VM. Installed per the instructions found Foreman :: Quickstart

Running transaction
Installing : 1:foreman-installer-1.9.3-1.el7.noarch
Verifying : 1:foreman-installer-1.9.3-1.el7.noarch

Received a lot of errors
[ WARN 2020-02-28 06:12:19 verbose] Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
[ WARN 2020-02-28 06:12:25 verbose] Compiled catalog for in environment production in 6.97 seconds
[ INFO 2020-02-28 06:12:29 verbose] Applying configuration version ‘1582899138’
[ WARN 2020-02-28 06:12:29 verbose] /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat]/ensure: created
[ WARN 2020-02-28 06:12:29 verbose] /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin]/ensure: created
[ WARN 2020-02-28 06:12:29 verbose] /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin/concatfragments.rb]/ensure: defined content as ‘{md5}b684db0eac243553a6a79365119a363d’
[ WARN 2020-02-28 06:12:38 verbose] /Stage[main]/Postgresql::Client/Package[postgresql-client]/ensure: created
[ WARN 2020-02-28 06:12:38 verbose] /Stage[main]/Postgresql::Client/File[/usr/local/bin/validate_postgresql_connection.sh]/ensure: defined content as ‘{md5}20301932819f035492a30880f5bf335a’
[ WARN 2020-02-28 06:12:44 verbose] /Stage[main]/Foreman::Install::Repos::Extra/Package[foreman-release-scl]/ensure: created
[ WARN 2020-02-28 06:12:44 verbose] /Stage[main]/Foreman::Install::Repos::Extra/Yumrepo[epel]/mirrorlist: defined ‘mirrorlist’ as ‘https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch’
[ WARN 2020-02-28 06:12:44 verbose] /Stage[main]/Foreman::Install::Repos::Extra/Yumrepo[epel]/baseurl: defined ‘baseurl’ as ‘http://download.fedoraproject.org/pub/epel/7/$basearch’
[ WARN 2020-02-28 06:12:44 verbose] /Stage[main]/Foreman::Install::Repos::Extra/Yumrepo[epel]/gpgkey: gpgkey changed ‘file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7’ to ‘https://fedoraproject.org/static/352C64E5.txt’
[ WARN 2020-02-28 06:12:53 verbose] /Stage[main]/Puppet::Server::Install/Package[puppet-server]/ensure: created

I decided that this cannot be right, so I reinstalled and re-ran sudo foreman-installer -v and received the exact same thing.

I’m a little confused on what to do next.

Ran sudo foreman-installer -v but did not stop it when I saw the warnings. The installer finished with errors.

I attached the text of the error the web site provided. CentosForemanwebError.log (149.4 KB)

Still, this is not supported. The exact error you’re getting is because Ubuntu 19 is not supported.

This warning can be safely ignored

CentOS 8 is not yet supported.

This version is ancient, please use a current one on a supported platform.

Ok, I will bring up a Ubuntu 18 VM and try it on that. Thank you

It worked :-). Thank you. Thus far, everything that I have ever installed on Ubuntu 18 works fine on Ubuntu 19. It must be the Ruby portion. Thank you for your assistance.

1 Like