jamtur01 / puppet-rundeck

Puppet integration with RunDeck
Apache License 2.0
45 stars 16 forks source link

Puppet::Error Could not find class #4

Closed lrhazi closed 12 years ago

lrhazi commented 12 years ago

I get a 500 Error with this exception when I try this module:

Puppet::Error - Could not find class gu_modules for uis-cesia-1.example.com on node uis-cesia-1.example.com :

How can I debug to find the root cause?

All my modules are in per environment tree, as follows, could this be the problem?

[master] templatedir = /etc/puppet/environments/$environment/ modulepath = /etc/puppet/environments/$environment/modules manifest = /etc/puppet/environments/$environment/manifests/site.pp manifestdir = /etc/puppet/environments/$environment/manifests

Thanks.

lrhazi commented 12 years ago

The full stack:

Puppet::Error - Could not find class gu_modules for uis-cesia-1.example.comon node uis-cesia-1.example.com: /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/parser/compiler.rb:27:in compile' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/indirector/catalog/compiler.rb:77:incompile' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/util.rb:185:in benchmark' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/indirector/catalog/compiler.rb:75:incompile' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/indirector/catalog/compiler.rb:35:in find' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/indirector/indirection.rb:189:infind' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-rundeck-0.0.5/lib/puppet-rundeck.rb:62:in GET /' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-rundeck-0.0.5/lib/puppet-rundeck.rb:56:ineach' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-rundeck-0.0.5/lib/puppet-rundeck.rb:56:in GET /' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:incall' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in compile!' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in[]' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in route!' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:inroute_eval' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in route!' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:inprocess_route' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in catch' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:inprocess_route' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in route!' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:ineach' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in route!' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:indispatch!' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in call!' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:ininvoke' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in catch' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:ininvoke' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in call!' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:incall' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:incall' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:incall' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/nulllogger.rb:9:incall' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/head.rb:9:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/showexceptions.rb:21:incall' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1403:insynchronize' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/handler/webrick.rb:59:inservice' /opt/ruby-enterprise/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /opt/ruby-enterprise/lib/ruby/1.8/webrick/httpserver.rb:65:inrun' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:162:instart' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:95:instart' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:92:in each' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:92:instart' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:23:in start' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:82:instart' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/handler/webrick.rb:13:in run' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1295:inrun!' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/puppet-rundeck-0.0.5/bin/puppet-rundeck:63 /opt/ruby-enterprise/bin/puppet-rundeck:19:in `load' /opt/ruby-enterprise/bin/puppet-rundeck:19

jamtur01 commented 12 years ago

I don't think this has anything to do with Puppet Rundeck. I suspect this is a Puppet error being presented up. Do you see this at all in your Puppet runs?

lrhazi commented 12 years ago

Nope. I went to the specific node being complained about and did a puppet run and it succeeds with no errors!

lrhazi commented 12 years ago

Where can I increase debugging level in Puppet and/or in Puppet Rundeck, so as to see more into the issue?

Thanks a lot. Mohamed.

lrhazi commented 12 years ago

And I am using a custom ENC script... is that the problem you think?

lrhazi commented 12 years ago

I puts a few "puts" to figure out where it breaks. Narrowed it down to the tags lines. I removed lines 60, 63 and 74, and it works now.

I don't think I have any tags defined in my manifests... is that causing it to fail?

jamtur01 commented 12 years ago

Tags are automatically added - so even if you don't define any there still should be some. I'll do some testing tonight. I am leaning towards an ENC error but it's odd output.

jamtur01 commented 12 years ago

This is fixed. Looks like the method for grabbing tags is broken. For the moment I'm just grabbing environment.