quanta
2012-Sep-15 13:10 UTC
[Puppet Users] err: Could not request certificate: stack level too deep
- ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] - puppet-2.7.19-1.el5 I''m facing with the following error when starting puppet agent: **`puppet agent --server=puppetmaster.domain.com --no-daemonize --verbose --debug`** debug: Failed to load library ''selinux'' for feature ''selinux'' debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderUser_role_add: file roledel does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Failed to load library ''ldap'' for feature ''ldap'' debug: Puppet::Type::User::ProviderLdap: feature ldap is missing debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private_keys/tomcat_5.149.pem]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/run]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/lib/puppet/state] debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/lib/puppet/client_data]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/log]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/public_keys/tomcat_5.149.pem]: Autorequiring File[/etc/puppet/ssl/public_keys] debug: /File[/var/lib/puppet/run/agent.pid]: Autorequiring File[/var/lib/puppet/run] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/lib/puppet/ssl/certs/tomcat_5.149.pem]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/public_keys/tomcat_5.149.pem]/mode: mode changed ''0640'' to ''0644'' debug: Finishing transaction 23622871341440 debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/certs/tomcat_5.149.pem]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/ssl/private_keys/tomcat_5.149.pem]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/run]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/log]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/public_keys/tomcat_5.149.pem]: Autorequiring File[/etc/puppet/ssl/public_keys] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl] debug: Finishing transaction 23622870227040 debug: Using cached certificate for ca err: Could not request certificate: stack level too deep debug: Using cached certificate for ca debug: Using cached certificate for ca /usr/lib/ruby/1.8/sync.rb:58:in `Fail'': Thread(#<Thread:0x2af83efcd378 run>) not locked. (Sync_m::Err::UnknownLocker) from /usr/lib/ruby/1.8/sync.rb:64:in `Fail'' from /usr/lib/ruby/1.8/sync.rb:184:in `sync_unlock'' from /usr/lib/ruby/1.8/sync.rb:232:in `synchronize'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:650:in `uninterpolated_value'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:800:in `each_source'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:797:in `each'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:797:in `each_source'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:647:in `uninterpolated_value'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:646:in `catch'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:646:in `uninterpolated_value'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:682:in `value'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:21:in `[]'' from /usr/lib/ruby/site_ruby/1.8/puppet.rb:65:in `[]'' from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:297:in `wait_for_cert'' from /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:407:in `setup_host'' from /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:425:in `setup_agent'' from /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:484:in `setup'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:416:in `hook'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:407:in `exit_on_fail'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute'' from /usr/bin/puppet:4 Since I''m not familiar with Ruby, could you help me please to solve this? -- 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/-/FGkyolEa8ecJ. 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.
Steve Roberts
2012-Dec-16 07:20 UTC
[Puppet Users] Re: err: Could not request certificate: stack level too deep
On Saturday, September 15, 2012 6:10:33 AM UTC-7, quanta wrote:> > debug: Using cached certificate for ca > err: Could not request certificate: stack level too deep > debug: Using cached certificate for ca > debug: Using cached certificate for ca > /usr/lib/ruby/1.8/sync.rb:58:in `Fail'': Thread(#<Thread:0x2af83efcd378 > run>) not locked. (Sync_m::Err::UnknownLocker) > from /usr/lib/ruby/1.8/sync.rb:64:in `Fail'' > from /usr/lib/ruby/1.8/sync.rb:184:in `sync_unlock'' > from /usr/lib/ruby/1.8/sync.rb:232:in `synchronize'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:650:in > `uninterpolated_value'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:800:in > `each_source'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:797:in `each'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:797:in > `each_source'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:647:in > `uninterpolated_value'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:646:in > `catch'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:646:in > `uninterpolated_value'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:682:in > `value'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:21:in `[]'' > from /usr/lib/ruby/site_ruby/1.8/puppet.rb:65:in `[]'' > from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:297:in > `wait_for_cert'' > from /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:407:in > `setup_host'' > from /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:425:in > `setup_agent'' > from /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:484:in > `setup'' > from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'' > from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:416:in `hook'' > from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'' > from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:407:in > `exit_on_fail'' > from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in > `execute'' > from /usr/bin/puppet:4 > > Since I''m not familiar with Ruby, could you help me please to solve this? >I had what I think is the same thing hit me today. looks like in newer puppet agent''s if you only have the client cert local but not the CA.pem you get this obtuse error: Error: Could not request certificate: stack level too deep And if I add debug I get the trace like above. solution was to add ca.pem in the bundle I unpack during system initialization. Very frustrating nothing in release notes and other docs that I have been able to find on this change. The number of tools I have been bumping into recently that really heavily on certs but don''t tend to manage/deal with them well -- 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/-/PoDJ1EimHLcJ. 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.