27th
Puppet - Could not retrieve catalog from remote server
Today I was having issues running puppet (for the first time), I bought an Amazon EC2 micro instance to run the master, and I was working with a vagrant lucid64 box to check that the initial setup for agent nodes was working correctly; sadly I got stuck with an error for a few hours, after doing the SSL certification on the agent. The error was the following:
err: Could not retrieve catalog from remote server: Error 403 on SERVER: Forbidden request: lucid64.hsd1.ca.comcast.net.(XX.XX.XX.XX) access to /catalog/lucid64.hsd1.ca.comcast.net. [find] authenticated at line 52
notice: Using cached catalog
err: Could not retrieve catalog; skipping run
After a long googling session, I came up with this link that pointed me to the right direction. In order to fix this problem, in the puppet agent (the vagrant instance in this case) you have to set the certname attribute on the puppet.conf file like so:
[main]
certname=lucid64
This way you won’t have any leading dot (“.”) on the hostname, and puppet won’t bite you in the ass, Hope this help you and future me.
