puppet-tilde icon indicating copy to clipboard operation
puppet-tilde copied to clipboard

getaddrinfo

Open tekknolagi opened this issue 10 years ago • 9 comments

When I run the agent, I get this error. Not sure what's wrong.

λ aether ~ → sudo puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: getaddrinfo: Name or service not known
Info: Retrieving pluginfacts
Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/pluginfacts: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/plugins: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known
Error: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: getaddrinfo: Name or service not known

tekknolagi avatar Dec 04 '14 02:12 tekknolagi

Me too.

mikker avatar Dec 04 '14 09:12 mikker

I think what fixed this was a mixture of adding server=tilde to the [main] section of /etc/puppet/puppet.conf and having this in /etc/hosts:

127.0.1.1 matilde.club tilde

And /etc/hostname:

matilde.club

At least some of that made it work. Good luck!

mikker avatar Dec 04 '14 09:12 mikker

Okay, then I get these errors:

λ aether ~ → sudo puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Server hostname 'aether.[MYDOMAIN]' did not match server certificate; expected one of aether.[SEARCH DOMAIN], DNS:aether.[SEARCH DOMAIN], DNS:puppet, DNS:puppet.[SEARCH DOMAIN]

tekknolagi avatar Dec 04 '14 17:12 tekknolagi

I'm here too:

erver hostname 'tilde' did not match server certificate

audy avatar Dec 04 '14 18:12 audy

Okay I have it running :) Make sure you're running the right version of Puppet.

audy avatar Dec 04 '14 21:12 audy

What do you have? I have 3.7.3.

tekknolagi avatar Dec 05 '14 07:12 tekknolagi

The same.

audy avatar Dec 05 '14 14:12 audy

OK! Got it. You should run 3.4.3 even though it's old. Then I generated a new SSL certificate for the actual hostname/domain. Then it worked! :D

tekknolagi avatar Dec 05 '14 19:12 tekknolagi

Though 3.4.x+ was not immediately clear that I could not run anything but the 3.4 series. I interpreted it as anything above 3.4. In retrospect it seems more obvious.

tekknolagi avatar Dec 05 '14 19:12 tekknolagi