Re: Error: Could not request certificate: Connection refused - connect(2)

11,901 views
Skip to first unread message

Diogo Martinez

unread,
Dec 5, 2012, 11:57:13 AM12/5/12
to puppet...@googlegroups.com
to complete, im using puppet 3 on centos 5.6
Em quarta-feira, 5 de dezembro de 2012 08h16min58s UTC-2, Diogo Martinez escreveu:
Hi all,
I am new at puppet and Im using the puppet learning tutorial. I execute until Basic agent/master puppet. Everything worked ok but after 2 or 3 days, running the command "puppet agent --test", start throw the error in subject. That left me with the following questions:
 
how to puppet agent connect to master without service started on master?
 
If this connection is possible ( worked firsts times )what are the possibilities I to be receiving this error?
 
I needed install puppet using tarball because a business rules is that servers have not internet access.
 
Thanks in advance, and sorry for the bad English.

Fran Rodríguez

unread,
Dec 5, 2012, 12:03:20 PM12/5/12
to puppet...@googlegroups.com
Puppetmaster has to sign the agent certificated, if you do:

puppetca list

Normally, you wiill see something interesting. After that, with puppetca sign, you will sign the certificate from agent. This is the normal process so you could do the test command without that error.

Cheers

jcbollinger

unread,
Dec 5, 2012, 5:07:45 PM12/5/12
to puppet...@googlegroups.com


On Wednesday, December 5, 2012 4:16:58 AM UTC-6, Diogo Martinez wrote:
Hi all,
I am new at puppet and Im using the puppet learning tutorial. I execute until Basic agent/master puppet. Everything worked ok but after 2 or 3 days, running the command "puppet agent --test", start throw the error in subject. That left me with the following questions:
 
how to puppet agent connect to master without service started on master?
 
If this connection is possible ( worked firsts times )what are the possibilities I to be receiving this error?
 
I needed install puppet using tarball because a business rules is that servers have not internet access.


That error probably indicates either that the puppetmaster process is no longer running (on the master), or that connections to it are being blocked by the firewall.


John

Diogo Martinez

unread,
Dec 6, 2012, 11:18:33 AM12/6/12
to puppet...@googlegroups.com
The solutions went start master pid and redo the ssl certificates with puppet cert clean host_name and deleting var/lib/puppet/ssl.
 
thanks Fran and Jc!!!

Em quarta-feira, 5 de dezembro de 2012 08h16min58s UTC-2, Diogo Martinez escreveu:
Hi all,
I am new at puppet and Im using the puppet learning tutorial. I execute until Basic agent/master puppet. Everything worked ok but after 2 or 3 days, running the command "puppet agent --test", start throw the error in subject. That left me with the following questions:
 
how to puppet agent connect to master without service started on master?
 
If this connection is possible ( worked firsts times )what are the possibilities I to be receiving this error?
 
I needed install puppet using tarball because a business rules is that servers have not internet access.
 

Diogo Martinez

unread,
Jan 23, 2013, 5:24:33 AM1/23/13
to puppet...@googlegroups.com
Hi Doug

Sorry my bad English.
I executed this commands:

1. puppet cert clean<agent-hostname> -

2. rm -rf $(puppet agent --configprint ssldir)

Do you run master init shell script?

2013/1/22 Doug <douglas...@aapt.com.au>
>
> Hi Diogo
>
> I have this same issue.
>
> I don't quite understand your message, could you please help me?
>
> You say to fix it you:
>
> -restart puppet master
> -run puppetca --clean 'host_name'
> -deleting var/lib/puppet/ssl
>
> 1. Is that right?
>
> 2. Which host do you delete var/lib/puppet/ssl on?
>
> Many thanks
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/v1fyCfCiCCEJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Douglas Nethery

unread,
Jan 23, 2013, 6:46:19 PM1/23/13
to puppet...@googlegroups.com
Not at all! Thanks for your help.

End to end for anyone else with this issue: 

Stopping puppetd on the client, 
deleting the ssl dir on the client, 
restarting puppetd on the client, 
resigning the cert request on the master with puppetca, 
and puppetrun from master to host fixed it.
--

Douglas Nethery



Developer, Frontier Team | frontier.aapt.com.au

E

douglas...@aapt.com.au 

W

aapt.com.au

AAPT Ltd.  Ground Floor, 30 Ross St, Glebe. 2077

This communication, including any attachments, is confidential. If you are not the intended
recipient, you should not read it - please contact me immediately, destroy it, and do not
copy or use any part of this communication or disclose anything about it.

Diogo Martinez

unread,
Jan 24, 2013, 5:21:54 AM1/24/13
to puppet...@googlegroups.com
That commands were to delete the ssl dir. Really when i executed, puppet is stoped.
I have been installed puppet by tarball, then I have a script to start master and agent.

2013/1/23 Douglas Nethery <douglas...@aapt.com.au>
Reply all
Reply to author
Forward
0 new messages