Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getaddrinfo #17

Open
tekknolagi opened this issue Dec 4, 2014 · 9 comments
Open

getaddrinfo #17

tekknolagi opened this issue Dec 4, 2014 · 9 comments

Comments

@tekknolagi
Copy link

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
@mikker
Copy link

mikker commented Dec 4, 2014

Me too.

@mikker
Copy link

mikker commented Dec 4, 2014

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!

@tekknolagi
Copy link
Author

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]

@audy
Copy link

audy commented Dec 4, 2014

I'm here too:

erver hostname 'tilde' did not match server certificate

@audy
Copy link

audy commented Dec 4, 2014

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

@tekknolagi
Copy link
Author

What do you have? I have 3.7.3.

@audy
Copy link

audy commented Dec 5, 2014

The same.

@tekknolagi
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants