Closed jennyfountain closed 10 years ago
Looks like you've got a nil
in your node[:kernel]
. This is a duplicate of https://github.com/oswaldlabs/chef-rundeck/issues/1
:-(
I think we do node object validation before emitting it in the project XML now, so this issue shouldn't pop up anymore. Is it still happening in the latest version?
@leftathome I'm reasonably certain this is fixed by /lib/chef-rundeck.rb:228. It's certainly fixed for the borked nodes on my system that used to trigger this. I'm thinking this is entirely safe to close.
@jennyfountain if you're still hitting this, can you let us know?
Yep, I'll close this one out.
In the course of addressing #4 I can see how we might trigger this type of issue again. Guess I'll have to write a clever test case (our test coverage on the data validation side is a bit weak) ...
I am still getting the following error:
Writing to /var/run/chef-rundeck-9980.pid Puma 1.6.3 starting...
[]' for nil:NilClass: /usr/lib64/ruby/gems/1.9.1/gems/chef-rundeck-1.0.1/lib/chef-rundeck.rb:59:in
block (2 levels) in class:ChefRundeck' /usr/lib64/ruby/gems/1.9.1/gems/chef-rundeck-1.0.1/lib/chef-rundeck.rb:54:ineach' /usr/lib64/ruby/gems/1.9.1/gems/chef-rundeck-1.0.1/lib/chef-rundeck.rb:54:in
block in class:ChefRundeck' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:incall' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in
block in compile!' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in[]' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in
block (3 levels) in route!' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:976:inroute_eval' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in
block (2 levels) in route!' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:997:inblock in process_route' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in
catch' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:inprocess_route' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:955:in
block in route!' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:ineach' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in
route!' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1067:inblock in dispatch!' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in
block in invoke' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:incatch' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in
invoke' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1064:indispatch!' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in
block in call!' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:inblock in invoke' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in
catch' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:ininvoke' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in
call!' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:877:incall' /usr/lib64/ruby/gems/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in
call' /usr/lib64/ruby/gems/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:incall' /usr/lib64/ruby/gems/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in
call' /usr/lib64/ruby/gems/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:incall' /usr/lib64/ruby/gems/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in
call' /usr/lib64/ruby/gems/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:incall' /usr/lib64/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in
call' /usr/lib64/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/head.rb:11:incall' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in
call' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:incall' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in
call' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:inblock in call' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1778:in
synchronize' /usr/lib64/ruby/gems/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:incall' /usr/lib64/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/server.rb:412:in
handle_request' /usr/lib64/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/server.rb:306:inprocess_client' /usr/lib64/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/server.rb:215:in
block in run' /usr/lib64/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/thread_pool.rb:94:incall' /usr/lib64/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/thread_pool.rb:94:in
block in spawn_thread'Here is the cli I am using: /usr/bin/ruby /usr/bin/chef-rundeck -a https://chef.server -k /etc/chef/rundeck.pem -c /etc/chef/chef-rundeck.rb -u rundeck
Ruby version -> ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]
Cert isn't self signed. How can I troubleshoot this? Thanks!