Ask Your Question

puppet-agent-el-7-x86_64.tar.gz Not Found

asked 2016-10-13 09:36:58 -0500

davis190 gravatar image

I am working to do an enterprise puppet install and I am getting a not found when trying to download a file from S3. It looks like the file doesnt exist.

One interesting thing I saw is that when you navigate to the link it redirects to S3 but it also changes the URI string. Not sure if that is intentional but when I change it back I get and error because the content can only be accessed through specified URLs.

I am working to install this on AWS. Outbound security groups are wide open.

2016-10-13 10:19:40,665 - [Error]: curl  -f -L -o puppet-agent-el-7-x86_64.tar.gz returned 22 instead of one of [0]

2016-10-13 10:19:40,666 - [Error]: /Stage[main]/Pe_repo::Platform::El_7_x86_64/Pe_repo::El[el-7-x86_64]/Pe_repo::Repo[el-7-x86_64 2016.2.1]/Pe_staging::Deploy[puppet-agent-el-7-x86_64.tar.gz]/Pe_staging::File[puppet-agent-el-7-x86_64.tar.gz]/Exec[/opt/puppetlabs/server/data/staging/pe_repo-puppet-agent-1.7.0/puppet-agent-el-7-x86_64.tar.gz]/returns: change from notrun to 0 failed: curl  -f -L -o puppet-agent-el-7-x86_64.tar.gz returned 22 instead of one of [0]

When I just run the curl command from the command line I get a similar result.

[root@ip-172-31-3-215 ~]# curl  -f -L -o puppet-agent-el-7-x86_64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   286  100   286    0     0   1228      0 --:--:-- --:--:-- --:--:--  1232
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

Thanks for the help!

edit retag flag offensive close merge delete


It seems that a 2015.2 repository is used : The XML shows only 2015.2 please fix this asap this is just a stupid mistake that shutsdown puppet masters and should be tested with .....puppet

lemac4444 gravatar imagelemac4444 ( 2016-10-17 18:32:20 -0500 )edit

This can be puppetized using the pe_repo module included with a PE master. The module will construct the correct combination of version numbers and url strings and deposit the pacakges under /opt/puppetlabs/server/data/staging.

csharpsteen gravatar imagecsharpsteen ( 2016-10-17 20:59:12 -0500 )edit

The 1.7.0 version number isn't correct for PE 2016.2.1 as it should be downloading 1.5.3. The version number used comes from the agent installed on the master, which should always come from a PE tarball installer. Was the agent on the master upgraded outside of a normal PE upgrade?

csharpsteen gravatar imagecsharpsteen ( 2016-10-17 21:03:52 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2016-10-18 04:37:22 -0500

lemac4444 gravatar image

puppetlabs repository PC1 puppet-agent 1.7 source :

Downgraded to 1.5.3 and all works. So the sollution is don't use PC1 repo on 2016.2.x

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


Asked: 2016-10-13 09:33:32 -0500

Seen: 101 times

Last updated: Oct 18 '16