Juan Cubillo
2013-Jan-22 17:40 UTC
[Puppet Users] New user learning puppet and getting error> getaddrinfo: Name or service not known
Hello everyone, I''m a new user regarding puppet but I''m skilled with linux. I have setup a puppetmaster server and also have a puppet client for testing on a different box. /etc/sysconfig/puppet has been edited to reach puppetmaster with option PUPPET_SERVER=puppet.mydomain.cr (I''m in Costa Rica) On the puppetmaster I was able to see the client with puppetca --list. I was also able to sign the certificate with puppetca --sign schoolserver.flexi.mydomain.cr That''s as much as I have done. However, looking at the log files on the client I noticed some error. When I run on the client puppet agent --test I get the following lines> err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run I googled the *getaddrinfo: Name or service not known* error, however, I cant seem to get a proper answer to my error. I was hoping that this community might be able to help me on this. Any suggestions? Thanks in advance, - Juan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/uTyBx26lqZgJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jason Cochard
2013-Jan-22 21:21 UTC
[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known
Hi Juan, I believe your puppet.conf file should contain the line: [main] server = puppet.mydomain.cr and not "PUPPET_SERVER". At least, that is how my clients determine which server to connect to. This error usually is a failure of the client to find the puppetmaster. Can you ping the puppet master from the client? -jason On Tuesday, January 22, 2013 9:40:53 AM UTC-8, Juan Cubillo wrote:> > Hello everyone, > > I''m a new user regarding puppet but I''m skilled with linux. I have setup a > puppetmaster server and also have a puppet client for testing on a > different box. > > /etc/sysconfig/puppet has been edited to reach puppetmaster with > option PUPPET_SERVER=puppet.mydomain.cr (I''m in Costa Rica) > > On the puppetmaster I was able to see the client with puppetca --list. I > was also able to sign the certificate with puppetca --sign > schoolserver.flexi.mydomain.cr > > That''s as much as I have done. However, looking at the log files on the > client I noticed some error. When I run on the client puppet agent --test I > get the following lines> > > err: Could not retrieve catalog from remote server: getaddrinfo: Name or > service not known > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > I googled the *getaddrinfo: Name or service not known* error, however, I > cant seem to get a proper answer to my error. > > I was hoping that this community might be able to help me on this. Any > suggestions? > > Thanks in advance, > > - Juan >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/O6vOgW67aDoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Juan Cubillo
2013-Jan-22 21:24 UTC
[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known
I just made a slight change that also changed the error... According to google the* getaddrinfo: Name or service not known *means that the client can not find the server. I decided to specify the server uusing the command> puppet agent --server=puppet.mydomain.cr --test And now this is returned: err: Could not retrieve catalog from remote server: Error 414 on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <HTML> <HEAD><TITLE>Request-URI Too Large</TITLE></HEAD> <BODY> <H1>Request-URI Too Large</H1> WEBrick::HTTPStatus::RequestURITooLarge <HR> <ADDRESS> WEBrick/1.3.1 (Ruby/1.9.3/2012-12-25) OpenSSL/1.0.0j at puppet.fqt.cr:8140 </ADDRESS> </BODY> </HTML> warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run What may be causing this? The server is already specified on the /etc/sysconfig/puppet file on the client and is also the reason why the client was able to get it''s certificate request! Anyone knows what may be going on? And now... what is the 414 error? - Juan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/QMuJJ5iyUDcJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Juan Cubillo
2013-Jan-22 21:27 UTC
[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known
I made my initial config on the file /etc/sysconfig/puppet because the guide I used said so. However, I was reading some more and it seems the correct file to edit should be /etc/puppet/puppet.conf I''m going to edit the file and report what happens. - Juan On Tuesday, 22 January 2013 15:21:36 UTC-6, Jason Cochard wrote:> > Hi Juan, > > I believe your puppet.conf file should contain the line: > > [main] > server = puppet.mydomain.cr > > and not "PUPPET_SERVER". At least, that is how my clients determine which > server to connect to. This error usually is a failure of the client to > find the puppetmaster. Can you ping the puppet master from the client? > > -jason > > On Tuesday, January 22, 2013 9:40:53 AM UTC-8, Juan Cubillo wrote: >> >> Hello everyone, >> >> I''m a new user regarding puppet but I''m skilled with linux. I have setup >> a puppetmaster server and also have a puppet client for testing on a >> different box. >> >> /etc/sysconfig/puppet has been edited to reach puppetmaster with >> option PUPPET_SERVER=puppet.mydomain.cr (I''m in Costa Rica) >> >> On the puppetmaster I was able to see the client with puppetca --list. I >> was also able to sign the certificate with puppetca --sign >> schoolserver.flexi.mydomain.cr >> >> That''s as much as I have done. However, looking at the log files on the >> client I noticed some error. When I run on the client puppet agent --test I >> get the following lines> >> >> err: Could not retrieve catalog from remote server: getaddrinfo: Name or >> service not known >> warning: Not using cache on failed catalog >> err: Could not retrieve catalog; skipping run >> >> I googled the *getaddrinfo: Name or service not known* error, however, I >> cant seem to get a proper answer to my error. >> >> I was hoping that this community might be able to help me on this. Any >> suggestions? >> >> Thanks in advance, >> >> - Juan >> >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/OR2BaScE8v0J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Juan Cubillo
2013-Jan-22 22:03 UTC
[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known
FIXED! Returned default values to /etc/sysconfig/puppet and added *server = fqt.mydomain.cr* to the [main] block on /etc/puppet/puppet.conf This fixed the *getaddrinfo: Name or service not known* erro but now added the following: err: Could not retrieve catalog from remote server: Error 414 on SERVER: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <HTML> <HEAD><TITLE>Request-URI Too Large</TITLE></HEAD> <BODY> <H1>Request-URI Too Large</H1> WEBrick::HTTPStatus::RequestURITooLarge <HR> <ADDRESS> WEBrick/1.3.1 (Ruby/1.9.3/2012-12-25) OpenSSL/1.0.0j at puppet.fqt.cr:8140 </ADDRESS> </BODY> </HTML> According to google this is a bug on the 2.6 version. This was fixed by editing the file */usr/share/ruby/webrick/httprequest.rb* and changing the variable *MAX_URI_LENGTH = 2083* for a value of *4096* * * Thanks for the help! :) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/F4wo5kW8vuIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jason Cochard
2013-Jan-22 22:34 UTC
[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known
Excellent. Glad you were able to fix it. May I next suggest moving your puppet deployment to Passenger and Apache? :) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/U7lI1scHHHsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Juan Cubillo
2013-Jan-22 22:46 UTC
[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known
I''m still learning about puppet. I''ll try to read some more about Passenger. If you have any good links with info I''ll aprreciate if you may guide me on my "quest" to learn about this system. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/IZKflA1c6xAJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jason Cochard
2013-Jan-24 22:29 UTC
[Puppet Users] Re: New user learning puppet and getting error> getaddrinfo: Name or service not known
Here is a good start: http://projects.puppetlabs.com/projects/1/wiki/using_passenger Also the book, Pro Puppet, covers this in detail. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/s51R4OavTioJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Reasonably Related Threads
- getaddrinfo: Name or service not known
- how to specify the the source directory
- Fileserver configuration Files are created but not replaced
- errors on getaddrinfo(): nodename nor servname provided, or not known
- mcollective getaddrinfo: Name or service not known