[foreman] Problems with instalation of foreman 1.12

Hello!

I'm trying to install foreman 1.12 in a Centos 7 but I got the following
errors. I also notice that the puppet agent was not installed with the
foreman installer(in previous versions I've tried the puppet agent was
installed with foreman)
What could be wrong? Thanks in advance,

Carlos

Systemd start for puppetserver failed!
/Stage[main]/Puppet::Server::Service/Service[puppetserver]/ensure: change
from stopped to running failed: Systemd start for puppetserver failed!
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-server.example]:
Could not evaluate: Exception Connection refused - connect(2) for
"foreman-server.example" port 443 in get request to:
https://foreman-server.example/api/v2/smart_proxies?search=name="foreman-server.example"
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-server.example]:
Failed to call refresh: Exception Connection refused - connect(2) for
"foreman-server.example" port 443 in get request to:
https://foreman-server.example/api/v2/smart_proxies?search=name="foreman-server.example"
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-server.example]:
Exception Connection refused - connect(2) for "foreman-server.example" port
443 in get request to:
https://foreman-server.example/api/v2/smart_proxies?search=name="foreman-server.example"
Installing Done
[100%]
Something went wrong! Check the log for ERROR-level output

> I'm trying to install foreman 1.12 in a Centos 7 but I got the following
> errors. I also notice that the puppet agent was not installed with the
> foreman installer(in previous versions I've tried the puppet agent was
> installed with foreman)

The "puppet-agent" RPM should be installed, which provides the
puppet-agent service. Note that Puppet 4.x PC1 packages have different
service names to Puppet 3.x.

(https://docs.puppet.com/puppet/latest/reference/install_linux.html#start-the-puppet-service,
https://docs.puppet.com/puppet/4.6/reference/whered_it_go.html)

> What could be wrong? Thanks in advance,
>
> Carlos
>
>
> Systemd start for puppetserver failed!
> /Stage[main]/Puppet::Server::Service/Service[puppetserver]/ensure:
> change from stopped to running failed: Systemd start for puppetserver
> failed!

The puppetserver logs under /var/log/puppetlabs/puppetserver/ should
contain the reason.

> /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-server.example]:
> Could not evaluate: Exception Connection refused - connect(2) for
> "foreman-server.example" port 443 in get request to:
> https://foreman-server.example/api/v2/smart_proxies?search=name="foreman-server.example"

Apache is probably not running, try running systemctl start httpd and
check its logs if failing.

··· On 12/08/16 07:19, Carlos Mata wrote:


Dominic Cleal
dominic@cleal.org

Thanks for your help Dominic, It was problems regarding the changes in the
directories and the sudo path with Puppet4.

Carlos