Ask Your Question
0

Agent installation failing on CentOS 6.5

asked 2014-10-17 16:56:13 -0500

schowdh gravatar image

I am having my CentOS 6.5 installed with Puppet Entrprise 3.3.

The dashboard is running fine.

Now I want to add a puppet agent on another CentOS 6.5 box.

Since both are same OS type, Following the guidelines available in puppet docs site https://docs.puppetlabs.com/pe/latest... , I run the following

curl -k https://<mymasterserverFQDN>:8140/packages/current/install.bash | sudo bash

But I receive the error

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (56) Received HTTP code 503 from proxy after CONNECT

I checked my master server iptables.I have added rule for 8140 port and did sudo service iptables save.

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:8140 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

The supposed to be agent box can resolve the master server hostname, the ping responds properly.

I have tried to run curl by additionally providing the proxy address (using -x [protocol://proxy:port] (login credentials not needed), as I am actually behind proxy, but not sure how that will effect this installation here.
But no benefit.

Also tried with

curl -k https://<mymasterserverFQDN>:8140/packages/current/el-6-x86_64.bash | sudo bash

but same issue.

I can see the install.bash/el-6-x86_64.bash exists /opt/puppet/packages/public/current in the master server [It was a standard monolitic installation, I did not do anything funky with it]

Can anyone please help me out on this. I searched in net but not getting much information on this error.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-10-20 15:25:41 -0500

bytwocoffee gravatar image

What do you get if you do not include the | sudo bash part to the curl command?

edit flag offensive delete link more

Comments

I get the same error (I tried as **su** as well as **user with sudo permission**, no difference in result): curl: (56) Received HTTP code 503 from proxy after CONNECT

schowdh gravatar imageschowdh ( 2014-10-21 11:47:59 -0500 )edit

I found if I run sudo curl -k https://<mymasterserverfqdn>:8140/packages/current/el-6-x86_64.bash | sudo bash it solves the issue. The first **sudo** solves the problem for me.

schowdh gravatar imageschowdh ( 2014-10-21 20:09:56 -0500 )edit
0

answered 2014-10-21 20:09:19 -0500

schowdh gravatar image

I found if I run

sudo curl -k https://<mymasterserverFQDN>:8140/packages/current/el-6-x86_64.bash | sudo bash

it solves the issue. The first sudo solves the problem for me.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-17 14:37:24 -0500

Seen: 630 times

Last updated: Oct 21 '14