Hi I''m trying puppet for the first time and attempting to get it working in Amazon EC2 with Ubuntu 10.04 using the default puppet 0.25.4-2ubuntu4, I''ve read the ''Pulling Strings'' book and tried following various tutorials found on the net to set up it but each time I get as far as signing the certificate before getting this error.... info: Caching certificate for ip-10-243-6-14.ec2.internal info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using ''eval_generate'': undefined method `closed?'' for nil:NilClass err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: undefined method `closed?'' for nil:NilClass Could not retrieve file metadata for puppet://puppet.mydomain.com/plugins: undefined method `closed?'' for nil:NilClass err: Could not retrieve catalog from remote server: undefined method `closed?'' for nil:NilClass warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run (I''ve edited puppet.mydomain.com but mydomain.com would actually be my real domain) Searching Google for the error message brings up a few people having the same problem but no solution. It seems many of the puppet error messages are very similar so it makes it harder to pin down what I''m doing wrong. There is one suggestion that it might be a Ruby bug but if possible I''d like to use the default LTS packages. Of course if something is broken I may have no option but I find it hard to believe nobody is using the default install I assume I''m making some basic error here. ======================= Here''s my process... I boot 2 x t1-micro instances in US-East from ami-480df921 Canonical''s Ubuntu 10.04 LTS Lucid EBS boot They both have the ''default'' firewall which allows all tcp/udp traffic between them SSH in and on the first one I''m using as the puppetmaster I run... sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install puppetmaster and on the second instance which will be my client I run... sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install puppet They get their IPs automatically from AWS which will be something like... puppetmaster Private DNS: ip-10-203-66-29.ec2.internal Private IP Address: 10.203.66.29 puppetclient Private DNS: ip-10-243-6-14.ec2.internal Private IP Address: 10.243.6.14 So in /etc/hosts on both I add... 10.203.66.29 puppet.mydomain.com puppet 10.243.6.14 pclient.mydomain.com pclient I create a basic site.pp manifest on the master and restart it. Then on the client I run... sudo puppetd --server puppet.mydomain.com --waitforcert 60 --test On the master I run... sudo puppetca --list I see the client request and sign it. Back on the client I see it gets the cert but then I get the ''plugin'' error message... warning: peer certificate won''t be verified in this SSL session info: Caching certificate for ca warning: peer certificate won''t be verified in this SSL session warning: peer certificate won''t be verified in this SSL session info: Creating a new SSL certificate request for ip-10-243-6-14.ec2.internal warning: peer certificate won''t be verified in this SSL session warning: peer certificate won''t be verified in this SSL session warning: peer certificate won''t be verified in this SSL session warning: peer certificate won''t be verified in this SSL session info: Caching certificate for ip-10-243-6-14.ec2.internal info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using ''eval_generate'': undefined method `closed?'' for nil:NilClass err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: undefined method `closed?'' for nil:NilClass Could not retrieve file metadata for puppet://puppet.mydomain.com/plugins: undefined method `closed?'' for nil:NilClass err: Could not retrieve catalog from remote server: undefined method `closed?'' for nil:NilClass warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run ==================================================================== What am I doing wrong? Regards Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
On Dec 14, 2010, at 3:18 AM, Paul Willis wrote:> Hi > > I''m trying puppet for the first time and attempting to get it working in Amazon EC2 with Ubuntu 10.04 using the default puppet 0.25.4-2ubuntu4, I''ve read the ''Pulling Strings'' book and tried following various tutorials found on the net to set up it but each time I get as far as signing the certificate before getting this error.... > > info: Caching certificate for ip-10-243-6-14.ec2.internal > info: Retrieving plugin > err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using ''eval_generate'': undefined method `closed?'' for nil:NilClass > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: undefined method `closed?'' for nil:NilClass Could not retrieve file metadata for puppet://puppet.mydomain.com/plugins: undefined method `closed?'' for nil:NilClass > err: Could not retrieve catalog from remote server: undefined method `closed?'' for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > > (I''ve edited puppet.mydomain.com but mydomain.com would actually be my real domain) > > Searching Google for the error message brings up a few people having the same problem but no solution. It seems many of the puppet error messages are very similar so it makes it harder to pin down what I''m doing wrong. There is one suggestion that it might be a Ruby bug but if possible I''d like to use the default LTS packages. Of course if something is broken I may have no option but I find it hard to believe nobody is using the default install I assume I''m making some basic error here.> undefined method `closed?'' for nil:NilClassThis error is a bug that is fixes in later versions of puppet. It means, something went wrong (this might be your fault) and the cleanup code failed (this part isn''t your fault). More information at: http://projects.puppetlabs.com/issues/3101 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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
- err: Signing certificate error: Could not render to pson: getaddrinfo: Name or service not known
- info: Retrieving plugin, err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': undefined method `closed?' for nil:NilClass
- Undefined method 'closed?' for nil:NilClass
- Could not retrieve catalog from remote server: undefined method `closed?' for nil:NilClass
- Could not request certificate: undefined method `closed?' for nil:NilClass