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

Cache dependencies #13

Open
shedd opened this issue Nov 20, 2013 · 0 comments
Open

Cache dependencies #13

shedd opened this issue Nov 20, 2013 · 0 comments

Comments

@shedd
Copy link
Owner

shedd commented Nov 20, 2013

An issue with Module::Data (http://cpansearch.perl.org/src/KENTNL/Module-Data-0.007/Changes) blocked successful creation of the Vagrant environment. This was initially difficult to diagnose - it presented itself as a generic Chef error:

[2013-11-20T06:18:55+00:00] DEBUG: Re-raising exception: TypeError - can't convert nil into String
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/formatters/error_inspectors/resource_failure_inspector.rb:96:in `+'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/formatters/error_inspectors/resource_failure_inspector.rb:96:in `format_line'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/formatters/error_inspectors/resource_failure_inspector.rb:70:in `recipe_snippet'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/formatters/error_inspectors/resource_failure_inspector.rb:63:in `loop'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/formatters/error_inspectors/resource_failure_inspector.rb:63:in `recipe_snippet'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/formatters/error_inspectors/resource_failure_inspector.rb:43:in `add_explanation'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/formatters/error_mapper.rb:72:in `resource_failed'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/formatters/base.rb:157:in `resource_failed'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/event_dispatch/dispatcher.rb:29:in `resource_failed'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/event_dispatch/dispatcher.rb:29:in `each'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/event_dispatch/dispatcher.rb:29:in `resource_failed'

Only by patching Chef to avoid the nil error were we able to see that the issue was in fact an error with Module::Data:

! Installing Module::Data failed. See /home/vagrant/.cpanm/work/1384929078.27801/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Module::Data' is not installed
! Bailing out the installation for App-DuckPAN-0.132.
---- End output of su -l vagrant -c 'bash -l -i -c "perl duckpan-install.pl"' ----
Ran su -l vagrant -c 'bash -l -i -c "perl duckpan-install.pl"' returned 1

Need to look into caching or otherwise stabilizing the dependencies for the environment to avoid these types of intermittant failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant