Bootstrap script failing. Puppet Could not request certificate: No content type in http response; cannot parse

Problem:

The bootstrap script just hangs on the step

/usr/bin/puppet agent --test --noop --tags no_such_tag --waitforcert 10

When I run it manually I see the following logs

Error: Could not request certificate: No content type in http response; cannot parse
Error: Could not request certificate: No content type in http response; cannot parse
Error: Could not request certificate: No content type in http response; cannot parse
Error: Could not request certificate: No content type in http response; cannot parse
Error: Could not request certificate: No content type in http response; cannot parse
Error: Could not request certificate: No content type in http response; cannot parse
Error: Could not request certificate: No content type in http response; cannot parse
Error: Could not request certificate: No content type in http response; cannot parse
Error: Could not request certificate: No content type in http response; cannot parse
Error: Could not request certificate: No content type in http response; cannot parse

Expected outcome:

Should work

Foreman and Proxy versions:

tfm-rubygem-foreman-tasks-0.17.5-1.fm1_24.el7.noarch
rubygem-foreman_maintain-0.5.4-1.el7.noarch
tfm-rubygem-foreman-tasks-core-0.3.3-1.fm1_24.el7.noarch
foreman.n4monitoring.co.uk-qpid-router-server-1.0-1.noarch
foreman-installer-1.24.3-1.el7.noarch
foreman.n4monitoring.co.uk-qpid-broker-1.0-1.noarch
foreman.n4monitoring.co.uk-apache-1.0-1.noarch
foreman.n4monitoring.co.uk-foreman-proxy-client-1.0-1.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.13-1.fm1_20.el7.noarch
foreman-release-1.24.3-1.el7.noarch
foreman-1.24.3-1.el7.noarch
foreman-installer-katello-1.24.3-1.el7.noarch
foreman-proxy-1.24.3-1.el7.noarch
foreman-cli-1.24.3-1.el7.noarch
foreman.n4monitoring.co.uk-tomcat-1.0-1.noarch
foreman.n4monitoring.co.uk-foreman-proxy-1.0-1.noarch
foreman.n4monitoring.co.uk-puppet-client-1.0-1.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.3.0-1.el7.noarch
foreman-release-scl-7-2.el7.noarch
foreman-selinux-1.24.3-1.el7.noarch
foreman.n4monitoring.co.uk-qpid-router-client-1.0-1.noarch
tfm-rubygem-hammer_cli_foreman-0.19.6-1.el7.noarch
foreman-debug-1.24.3-1.el7.noarch
foreman.n4monitoring.co.uk-qpid-client-cert-1.0-1.noarch
foreman.n4monitoring.co.uk-foreman-client-1.0-1.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.4-4.el7.noarch
foreman-postgresql-1.24.3-1.el7.noarch

Distribution and version:

CentOS 7.9.2009

Foreman 1.24 is very old and out of the support, please upgrade first to some new version.

Hey, I’ve managed to get it working and this is a fresh install of foreman so not sure why I’ve got 1.24 installed. When I run [root@foreman ~]# foreman-maintain upgrade list-versions I get nothing back. How can I do the incremental upgrades to get up to the latest release?