Skip to content

Instantly share code, notes, and snippets.

@aboudreault
Created January 29, 2013 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aboudreault/4661554 to your computer and use it in GitHub Desktop.
Save aboudreault/4661554 to your computer and use it in GitHub Desktop.
================================================================================
Error executing action `add` on resource 'apt_repository[ubuntugis-unstable]'
================================================================================
RuntimeError
------------
The repository file to create is nil, cannot continue.
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb:123:in `class_from_file'
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mapserver-dev/recipes/default.rb
3:
4: apt_repository "ubuntugis-unstable" do
5: uri "http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu"
6: distribution node['lsb']['codename']
7: components ["main"]
8: keyserver "keyserver.ubuntu.com"
9: key "314DF160"
10: deb_src true
11: end
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mapserver-dev/recipes/default.rb:4:in `from_file'
apt_repository("ubuntugis-unstable") do
uri "http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu"
keyserver "keyserver.ubuntu.com"
retry_delay 2
components ["main"]
retries 0
recipe_name "default"
distribution "precise"
action :add
cookbook_name :"mapserver-dev"
deb_src true
key "314DF160"
end
[2013-01-29T03:26:29+00:00] ERROR: Running exception handlers
[2013-01-29T03:26:29+00:00] ERROR: Exception handlers complete
[2013-01-29T03:26:29+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-01-29T03:26:29+00:00] FATAL: RuntimeError: apt_repository[ubuntugis-unstable] (mapserver-dev::default line 4) had an error: RuntimeError: The repository file to create is nil, cannot continue.
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
@aboudreault
Copy link
Author

RuntimeError: apt_repository[ubuntugis-unstable](mapserver-dev::default line 4) had an error: RuntimeError: The repository file to create is nil, cannot continue.
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb:123:in class_from_file' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:207:ininstance_eval'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:207:in action_add' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:119:insend'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:119:in run_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource.rb:593:inrun_action'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:49:in run_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:inconverge'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:in each' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:inconverge'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection.rb:94:in execute_each_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in call_iterator_block' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:instep'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in iterate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:ineach_with_index'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection.rb:92:in execute_each_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:80:inconverge'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:378:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:420:indo_run'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:176:in run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:230:inrun_application'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:218:in loop' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:218:inrun_application'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application.rb:70:in run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/chef-solo:25 /opt/vagrant_ruby/bin/chef-solo:19:inload'

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