Re: Need help! Puppet could not request certificate: No route to host -connect(2)

14.340 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Schofield

ungelesen,
23.04.2013, 12:37:5823.04.13
an puppet...@googlegroups.com

Try using "telnet <your_master_fqdn> 8140"  This will validate the network on the proper port.  ping does not use port 8140.

mart...@gmail.com

ungelesen,
23.04.2013, 18:24:5623.04.13
an puppet...@googlegroups.com
I am able to ssh to both host.  Am now getting the error:  [Could not request certificate:  Connection refused]

This error is different to the first error.  This one seems to deal with IP Tables rules.

Przemek

ungelesen,
24.04.2013, 08:34:0624.04.13
an puppet...@googlegroups.com
You get also this error when puppet master server is disabled or unresponsive (there is no response to the client and you get error)
Make sure that your puppet master server is running by command:

ps -aux

If process is running and you still get this error message, kill this process (kill 'PID') and try run server in no--damenoize mode by command:

puppet master --no-daemonize --verbose

then try connect again and observe server responses
Best Regards

W dniu wtorek, 23 kwietnia 2013 16:57:02 UTC+2 użytkownik mart...@gmail.com napisał:
Hello,

I am installing puppet and keep getting this error [Puppet could not request certificate:  No route to host -connect(2)]

My DNS is resloving and i can ping the master from the agent. 

I have added this line to the iptables [iptables  -I INPUT -s 192.168.1.20 -m tcp -p tcp --dport 8140 -j ACCEPT], where the IP is my agent.

I have also added my master ip to /etc/puppet/puppet.conf

Why am I still getting this error? 

Felix Frank

ungelesen,
24.04.2013, 08:42:5024.04.13
an puppet...@googlegroups.com
On 04/24/2013 02:34 PM, Przemek wrote:
> ps -aux

That should just be "ps aux", no dash, actually.

On 04/24/2013 12:24 AM, mart...@gmail.com wrote:
> I am able to ssh to both host. Am now getting the error: [Could not
> request certificate: Connection refused]
>
> This error is different to the first error. This one seems to deal with
> IP Tables rules.

It pretty much says that the port is not open. This may or may not be
iptables related.

On the agent, make extra sure that "puppet" (or whatever you use as
servername) resolves to a valid IP of the master machine.

On the master, use "netstat -tlnp" to verify that there is indeed a
process listening to port 8140, either on 0.0.0.0 or the dedicated
master IP address. In the former case, make sure the master IP is bound
to the machine.

HTH,
Felix

rony thomas

ungelesen,
06.04.2014, 00:24:5806.04.14
an puppet...@googlegroups.com
Could you add the hostnames and IP addresses of master and client in /etc/hosts on both master and client. On RHEL 5.8, I was able to fix this error  after flushing the iptables with "iptables -F" and then saving it with "service iptables save".
 
 
Kind Regards,
Rony Thomas

Philip Mosquera

ungelesen,
16.06.2014, 07:07:5716.06.14
an puppet...@googlegroups.com
I was in the exact same situation and found a dirty solution was to simply to use service iptables stop.

It's a bit of a dirty workaround and definitely wouldn't recommend it on an open network but it solved the issue for me to use it on a few internal vms.

Hope it helped.

Amarinder singh

ungelesen,
16.10.2014, 08:44:1116.10.14
an puppet...@googlegroups.com
Thanks Rony, that worked for me. 

Amarnath Reddy Manam

ungelesen,
13.11.2014, 14:19:5913.11.14
an puppet...@googlegroups.com
Hi Rony,
I was having the same issue and given iptables -F and service iptables save and it worked. When i gave to open port 8140 on master server in Iptables it did not worked, what exactly these command are doing to make it work?
iptables -F
service iptables save

Vishal Biyani

ungelesen,
26.03.2015, 09:52:2626.03.15
an puppet...@googlegroups.com
+1 to "iptables -F"

I was saving exactly same issue on a setup I created using Vagrant - one master and some slaves. The agents won't connect to master no matter what ping/ssh etc. said. Telnet didn't work of course in spite of all other right configurations. Thanks for making my day!

Karel Lenc

ungelesen,
27.04.2016, 08:17:5027.04.16
an Puppet Users, vrbi...@gmail.com
Just for a reference, what worked for me was to reconfigure the firewall:

firewall-cmd --zone=public --add-port=8140/tcp --permanent

firewall-cmd --reload

Source: http://www.unixmen.com/install-puppet-server-centos-7/
No need to flush all iptables rules...


Swapnil Abnave

ungelesen,
04.05.2016, 12:15:3304.05.16
an Puppet Users, vrbi...@gmail.com
@Karel Lenc
After hours and days of headbang.
That did worked.
Thanks!!!

SAMBIT NAYAK

ungelesen,
02.11.2016, 12:05:4402.11.16
an Puppet Users, vrbi...@gmail.com
Thanks for the answer . after configuring firewall services  i can able to use  puppet agent -t
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten