Foreman-installer error with "puppetca --generate"

Hi,

i'm trying to play with foreman 1.3.
After installtion of foreman-installer package, i have executed
foreman-installer as "default" ( without any options)
I see at console and in /var/log/foreman-installer/foreman-installer.log
this ERROR-Message

··· ----------------------------------------------------------------------- /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]/returns: change from notrun to 0 failed: /usr/sbin/puppetca --generate tbwvl-lxman03.intern.rossmann.de returned 23 instead of one of [0] at /usr/share/foreman-installer/modules/puppet/manifests/server/config.pp:67 /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]: Failed to call refresh: /usr/sbin/puppetca --generate tbwvl-lxman03.intern.rossmann.de returned 23 instead of one of [0] at /usr/share/foreman-installer/modules/puppet/manifests/server/config.pp:67 ----------------------------------------------------------------------- How I can repair my installation?

OS: CentOS 6.4

Regards
Oleg

You might not have any problems, it's usually a bug in Puppet where the
autosign.conf configuration interferes with the generate call. If
Foreman's up and running, I'd ignore it as the cert must have been
generated successfully.

If not, delete or empty /etc/puppet/autosign.conf, /var/lib/puppet/ssl
and then re-run the generate command and restart all services.

··· On 05/11/13 08:20, Oleg Roitburd wrote: > Hi, > > i'm trying to play with foreman 1.3. > After installtion of foreman-installer package, i have executed > foreman-installer as "default" ( without any options) > I see at console and in /var/log/foreman-installer/foreman-installer.log > this ERROR-Message > ----------------------------------------------------------------------- > /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]/returns: > change from notrun to 0 failed: /usr/sbin/puppetca --generate > tbwvl-lxman03.intern.rossmann.de returned 23 instead of one of [0] at > /usr/share/foreman-installer/modules/puppet/manifests/server/config.pp:67 > /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]: > Failed to call refresh: /usr/sbin/puppetca --generate > tbwvl-lxman03.intern.rossmann.de returned 23 instead of one of [0] at > /usr/share/foreman-installer/modules/puppet/manifests/server/config.pp:67 > ----------------------------------------------------------------------- > How I can repair my installation?


Dominic Cleal
Red Hat Engineering

Thx a lot.
File /etc/puppet/autosign.conf doesn't exist. After deleting of
/var/lib/puppet/ssl and new "signing" is all OK.
I'm missing also automatic start of httpd ( service httpd start ; chkconfig
httpd on ) after installation

Regards
Oleg

··· Am Dienstag, 5. November 2013 10:02:44 UTC+1 schrieb Dominic Cleal: > > On 05/11/13 08:20, Oleg Roitburd wrote: > > Hi, > > > > i'm trying to play with foreman 1.3. > > After installtion of foreman-installer package, i have executed > > foreman-installer as "default" ( without any options) > > I see at console and in /var/log/foreman-installer/foreman-installer.log > > this ERROR-Message > > ----------------------------------------------------------------------- > > > /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]/returns: > > > change from notrun to 0 failed: /usr/sbin/puppetca --generate > > tbwvl-lxman03.intern.rossmann.de returned 23 instead of one of [0] at > > > /usr/share/foreman-installer/modules/puppet/manifests/server/config.pp:67 > > > /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]: > > > Failed to call refresh: /usr/sbin/puppetca --generate > > tbwvl-lxman03.intern.rossmann.de returned 23 instead of one of [0] at > > > /usr/share/foreman-installer/modules/puppet/manifests/server/config.pp:67 > > ----------------------------------------------------------------------- > > How I can repair my installation? > > You might not have any problems, it's usually a bug in Puppet where the > autosign.conf configuration interferes with the generate call. If > Foreman's up and running, I'd ignore it as the cert must have been > generated successfully. > > If not, delete or empty /etc/puppet/autosign.conf, /var/lib/puppet/ssl > and then re-run the generate command and restart all services. > > -- > Dominic Cleal > Red Hat Engineering >

Hi all,

FYI, I had exactly the same issue for the sertificate (solved as indicated
by Dominic) and on HTTP.
There were 2 issues on HTTP

  • I had to relaunch foreman-installer to have it installed correctly
  • I also had to check HTTP configuration and especially ssl. The SSL.conf
    (in /etc/httpd/) tried to open port 443 as foreman.conf. I just delete the
    virtualhost bloc in ssl.conf and everything ran ok;

Regards
Yannig

··· On Tuesday, November 5, 2013 12:55:03 PM UTC+1, Oleg Roitburd wrote: > > Thx a lot. > File /etc/puppet/autosign.conf doesn't exist. After deleting of > /var/lib/puppet/ssl and new "signing" is all OK. > I'm missing also automatic start of httpd ( service httpd start ; > chkconfig httpd on ) after installation > > Regards > Oleg > > > Am Dienstag, 5. November 2013 10:02:44 UTC+1 schrieb Dominic Cleal: >> >> On 05/11/13 08:20, Oleg Roitburd wrote: >> > Hi, >> > >> > i'm trying to play with foreman 1.3. >> > After installtion of foreman-installer package, i have executed >> > foreman-installer as "default" ( without any options) >> > I see at console and in >> /var/log/foreman-installer/foreman-installer.log >> > this ERROR-Message >> > ----------------------------------------------------------------------- >> > >> /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]/returns: >> >> > change from notrun to 0 failed: /usr/sbin/puppetca --generate >> > tbwvl-lxman03.intern.rossmann.de returned 23 instead of one of [0] at >> > >> /usr/share/foreman-installer/modules/puppet/manifests/server/config.pp:67 >> > >> /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]: >> >> > Failed to call refresh: /usr/sbin/puppetca --generate >> > tbwvl-lxman03.intern.rossmann.de returned 23 instead of one of [0] at >> > >> /usr/share/foreman-installer/modules/puppet/manifests/server/config.pp:67 >> > ----------------------------------------------------------------------- >> > How I can repair my installation? >> >> You might not have any problems, it's usually a bug in Puppet where the >> autosign.conf configuration interferes with the generate call. If >> Foreman's up and running, I'd ignore it as the cert must have been >> generated successfully. >> >> If not, delete or empty /etc/puppet/autosign.conf, /var/lib/puppet/ssl >> and then re-run the generate command and restart all services. >> >> -- >> Dominic Cleal >> Red Hat Engineering >> >

It's possible the installer stopped early because of that error,
re-running it should continue from where it left off.

··· On 05/11/13 11:55, Oleg Roitburd wrote: > Thx a lot. > File /etc/puppet/autosign.conf doesn't exist. After deleting of > /var/lib/puppet/ssl and new "signing" is all OK. > I'm missing also automatic start of httpd ( service httpd start ; > chkconfig httpd on ) after installation


Dominic Cleal
Red Hat Engineering