Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot load such file -- nokogiri #1562

Closed
grv87 opened this issue Mar 14, 2017 · 2 comments · Fixed by #1576
Closed

cannot load such file -- nokogiri #1562

grv87 opened this issue Mar 14, 2017 · 2 comments · Fixed by #1576
Labels
Type: Bug Feature not working as expected

Comments

@grv87
Copy link
Contributor

grv87 commented Mar 14, 2017

Looks like library uses nokogiry inside, but it isn't declared as dependency.

InSpec version 0.16.1

I use kitchen-inspec plugin. Stacktrace:

E, [2017-03-14T22:50:05.838100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: ------Exception-------
E, [2017-03-14T22:50:05.838100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: Class: LoadError
E, [2017-03-14T22:50:05.838100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: Message: cannot load such file -- nokogiri
E, [2017-03-14T22:50:05.838100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: ----------------------
E, [2017-03-14T22:50:05.838100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: ------Backtrace-------
E, [2017-03-14T22:50:05.839100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/inspec-1.16.1/lib/inspec/rspec_json_formatter.rb:803:in `require'
E, [2017-03-14T22:50:05.839100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/inspec-1.16.1/lib/inspec/rspec_json_formatter.rb:803:in `close'
E, [2017-03-14T22:50:05.839100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/rspec-core-3.5.4/lib/rspec/core/reporter.rb:201:in `block in notify'
E, [2017-03-14T22:50:05.839100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/rspec-core-3.5.4/lib/rspec/core/reporter.rb:200:in `each'
E, [2017-03-14T22:50:05.839100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/rspec-core-3.5.4/lib/rspec/core/reporter.rb:200:in `notify'
E, [2017-03-14T22:50:05.839100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/rspec-core-3.5.4/lib/rspec/core/reporter.rb:226:in `close'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/rspec-core-3.5.4/lib/rspec/core/reporter.rb:189:in `close_after'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/rspec-core-3.5.4/lib/rspec/core/reporter.rb:168:in `finish'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/rspec-core-3.5.4/lib/rspec/core/reporter.rb:79:in `report'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:111:in `run_specs'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/inspec-1.16.1/lib/inspec/runner_rspec.rb:77:in `run'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/inspec-1.16.1/lib/inspec/runner.rb:117:in `run_tests'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/inspec-1.16.1/lib/inspec/runner.rb:101:in `run'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/kitchen-inspec-0.17.0/lib/kitchen/verifier/inspec.rb:94:in `call'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:434:in `block in verify_action'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:527:in `synchronize_or_call'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:489:in `block in action'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/2.2.0/benchmark.rb:288:in `measure'
E, [2017-03-14T22:50:05.840100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:488:in `action'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:426:in `verify_action'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:359:in `block in transition_to'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `each'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `transition_to'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:157:in `verify'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:186:in `block in test'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/2.2.0/benchmark.rb:288:in `measure'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:182:in `test'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `public_send'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `run_action_in_thread'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: C:/root/Ruby/2.2.4/w32/lib/ruby/gems/2.2.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2017-03-14T22:50:05.841100 #27008] ERROR -- build-environment-JenkinsSlave-UbuntuServer16042-amd64-vbox-production: ----End Backtrace-----
@adamleff adamleff self-assigned this Mar 14, 2017
@adamleff
Copy link
Contributor

Thanks for raising this bug. This is definitely an issue.

In a recent PR we accepted, we now use Nokogiri to create JUnit output. However, the nokogiri gem was added to the Gemfile instead of the gemspec.

https://github.com/chef/inspec/pull/1454/files#diff-8b7db4d5cc4b8f6dc8feb7030baa2478R11

We should remove it from the Gemfile and put it in the gemspec instead for sure.

@adamleff adamleff added the Type: Bug Feature not working as expected label Mar 14, 2017
@jkerry
Copy link
Contributor

jkerry commented Mar 20, 2017

I'll take care of this, as I broke it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants