Foreman-installer error with Foreman_proxy::Register

Hi'

Here is my configuration :

  • OS : Debian 7
  • Puppetmaster : 3.3 (from puppet lab repos)
  • *Foreman-installer *: 1.3
  • Hostname : puppetmaster.foo.fr

On an already configure puppet master, I try to install foreman using the
foreman-installer method, but It doesn't work.

I'd several problem cause by my personal /etc/puppet/puppet.conf . So I
need to remove my puppet.conf before executing the foreman-installer.

I use the default option in forman-installer.

But when I execute foreman-installer i've got an error during the process :

[DEBUG 2013-11-03 22:43:12 main] Executing '/etc/init.d/foreman-proxy
status'
[ERROR 2013-11-03 22:43:12 main]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[puppetmaster.foo.fr]:
Could not evaluate: Connection refused - connect(2)

Try running it again and see if it recurs? There's a known ordering bug
with the installer where it may run before Apache starts up.

··· On 04/11/13 11:37, AnOnJoe wrote: > Hi' > > Here is my configuration : > > * *OS* : Debian 7 > * *Puppetmaster* : 3.3 (from puppet lab repos) > * *Foreman-installer *: 1.3 > * *Hostname* : puppetmaster.foo.fr > > > On an already configure puppet master, I try to install foreman using > the foreman-installer method, but It doesn't work. > > I'd several problem cause by my personal /*etc/puppet/puppet.conf* . So > I need to remove my puppet.conf before executing the foreman-installer. > > I use the default option in forman-installer. > > But when I execute foreman-installer i've got an error during the process : > > [DEBUG 2013-11-03 22:43:12 main] Executing > '/etc/init.d/foreman-proxy status' > [ERROR 2013-11-03 22:43:12 main] > /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[puppetmaster.foo.fr]: > Could not evaluate: Connection refused - connect(2)


Dominic Cleal
Red Hat Engineering

Even when I exec a 2nd time foreman-installer, I've got the same error.

··· Le lundi 4 novembre 2013 12:37:39 UTC+1, AnOnJoe a écrit : > > Hi' > > Here is my configuration : > > - *OS* : Debian 7 > - *Puppetmaster* : 3.3 (from puppet lab repos) > - *Foreman-installer *: 1.3 > - *Hostname* : puppetmaster.foo.fr > > > On an already configure puppet master, I try to install foreman using the > foreman-installer method, but It doesn't work. > > I'd several problem cause by my personal /*etc/puppet/puppet.conf* . So I > need to remove my puppet.conf before executing the foreman-installer. > > I use the default option in forman-installer. > > But when I execute foreman-installer i've got an error during the process > : > > [DEBUG 2013-11-03 22:43:12 main] Executing '/etc/init.d/foreman-proxy > status' > [ERROR 2013-11-03 22:43:12 main] > /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ > puppetmaster.foo.fr]: Could not evaluate: Connection refused - connect(2) > >

I have made another try :

  1. Install a new server : foreman.foo.com
  2. install foreman-installer
  3. rsync form my puppetmaster.foo.com to foreman.foo.com

foreman-installer works
I can import my node.

But I can't import my classes (I will open another thread for this if I
can't find a solution)

··· Le lundi 4 novembre 2013 12:37:39 UTC+1, AnOnJoe a écrit : > > Hi' > > Here is my configuration : > > - *OS* : Debian 7 > - *Puppetmaster* : 3.3 (from puppet lab repos) > - *Foreman-installer *: 1.3 > - *Hostname* : puppetmaster.foo.fr > > > On an already configure puppet master, I try to install foreman using the > foreman-installer method, but It doesn't work. > > I'd several problem cause by my personal /*etc/puppet/puppet.conf* . So I > need to remove my puppet.conf before executing the foreman-installer. > > I use the default option in forman-installer. > > But when I execute foreman-installer i've got an error during the process > : > > [DEBUG 2013-11-03 22:43:12 main] Executing '/etc/init.d/foreman-proxy > status' > [ERROR 2013-11-03 22:43:12 main] > /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ > puppetmaster.foo.fr]: Could not evaluate: Connection refused - connect(2) > >

It's now OK with my classes (were not in the correct Production Directory)

··· Le lundi 4 novembre 2013 12:37:39 UTC+1, AnOnJoe a écrit : > > Hi' > > Here is my configuration : > > - *OS* : Debian 7 > - *Puppetmaster* : 3.3 (from puppet lab repos) > - *Foreman-installer *: 1.3 > - *Hostname* : puppetmaster.foo.fr > > > On an already configure puppet master, I try to install foreman using the > foreman-installer method, but It doesn't work. > > I'd several problem cause by my personal /*etc/puppet/puppet.conf* . So I > need to remove my puppet.conf before executing the foreman-installer. > > I use the default option in forman-installer. > > But when I execute foreman-installer i've got an error during the process > : > > [DEBUG 2013-11-03 22:43:12 main] Executing '/etc/init.d/foreman-proxy > status' > [ERROR 2013-11-03 22:43:12 main] > /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ > puppetmaster.foo.fr]: Could not evaluate: Connection refused - connect(2) > >