I had to make an https connection. That is why I have to had an apache conf
like this :
Listen 4443
>
> <VirtualHost *:4443>
> ServerName MyServer
> DocumentRoot /var/lib/foreman/public
> PassengerEnabled On
> AddDefaultCharset UTF-8
> SSLEngine on
> SSLCertificateFile /etc/pki/tls/certs/ca.crt
> SSLCertificateKeyFile /etc/pki/tls/private/ca.key
> </VirtualHost>
>
Previously, this conf was working great. But not anymore. Now, foreman is
on stand alone and doesn't use apache. (it works on port 3000).
Why it is not working anymore ? :S
···
Le mardi 21 mai 2013 13:30:01 UTC+2, Emeric Million a écrit :
>
> Hi.
>
> I've upgrade a server from RedHat 5 to RedHat 6. After that, foreman
> doesn't work anymore.
>
> If I go to the web interface of Forman, I arrive on an apache page telling
> me apache is working.
>
> When a host is trying to contact puppet master I get :
>
> [code]
> Error: Failed to find host.domain.tld via exec: Execution of
> '/etc/puppet/node.rb host.domain.tld' returned 1:
>
> Error: Failed when searching for node host.domain.tld: Failed to find
> host.domain.tld via exec: Execution of '/etc/puppet/node.rb
> host.domain.tld' returned 1:
>
> Error: Failed when searching for node host.domain.tld: Failed to find
> host.domain.tld via exec: Execution of '/etc/puppet/node.rb
> host.domain.tld' returned 1:
>
> Warning: //host.domain.tld/Puppet: Unable to fetch my node definition, but
> the agent run will continue:
> Warning: //host.domain.tld/Puppet: Error 400 on SERVER: Date: Tue, 21 May
> 2013 08:00:02 GMT
> Server: WEBrick/1.3.1 (Ruby/1.8.7/2011-06-30) OpenSSL/1.0.0
> Content-Type: text/plain
> Connection: close
> Content-Length: 117
>
> Failed to find host.domain.tld via exec: Execution of '/etc/puppet/node.rb
> host.domain.tld' returned 1:
>
> Error: //host.domain.tld/Puppet: Could not retrieve catalog from remote
> server: Error 400 on SERVER: Date: Tue, 21 May 2013 08:00:04 GMT
> Server: WEBrick/1.3.1 (Ruby/1.8.7/2011-06-30) OpenSSL/1.0.0
> Content-Type: text/plain
> Connection: close
> Content-Length: 171
>
> Failed when searching for node host.domain.tld: Failed to find
> host.domain.tld via exec: Execution of '/etc/puppet/node.rb
> host.domain.tld' returned 1:
>
> Notice: //host.domain.tld/Puppet: Using cached catalog
> Error: //host.domain.tld/Puppet: Could not retrieve catalog; skipping run
> [/code]
>
> When I run the code node.rb (found here :
> https://github.com/theforeman/puppet-foreman/blob/master/templates/external_node.rb.erb)
> I get :
> [code]
> # /etc/puppet/node.rb host.domain.tld
> Error retrieving node host.domain.tld: Net::HTTPNotFound
> [/code]
>
> In my apache log I have :
> File does not exist /usr/share/foreman/public/host
>
> My postgresql database is working and my user have the rights privileges.
> When I start foreman / foreman-proxy and puppet I got no errors.
>
> Any idea of what's the problem ?
>