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

vagrant-omnibus prevents most vagrant commands working while rubygems.org is having issues #113

Open
jmartelletti opened this issue Feb 9, 2015 · 1 comment

Comments

@jmartelletti
Copy link

It appears that rubygems.org is currently having an issue which causes the attached exception and prevents most vagrant commands from completing successfully. The workaround is to disable your "config.omnibus.chef_version" setting temporarily.

$ vagrant reload                                                                                                    
/Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/source.rb:140:in `rescue in load_specs': Invalid spec cache file in /Users/james/.gem/specs/rubygems.org%443/latest_specs.4.8 (Gem::Exception)
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/source.rb:132:in `load_specs'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/spec_fetcher.rb:230:in `tuples_for'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/spec_fetcher.rb:199:in `block in available_specs'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/source_list.rb:55:in `each'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/source_list.rb:55:in `each_source'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/spec_fetcher.rb:195:in `available_specs'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/spec_fetcher.rb:81:in `search_for_dependency'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/spec_fetcher.rb:139:in `spec_for_dependency'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:156:in `find_gems_with_sources'
    from /Users/james/.vagrant.d/gems/gems/vagrant-omnibus-1.4.1/lib/vagrant-omnibus/config.rb:86:in `retrieve_latest_chef_version'
    from /Users/james/.vagrant.d/gems/gems/vagrant-omnibus-1.4.1/lib/vagrant-omnibus/config.rb:44:in `finalize!'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/root.rb:50:in `block in finalize!'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/root.rb:49:in `each'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/root.rb:49:in `finalize!'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/loader.rb:21:in `finalize'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:158:in `load'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/vagrantfile.rb:28:in `initialize'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:614:in `new'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:614:in `vagrantfile'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:399:in `host'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:198:in `block in action_runner'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:33:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:386:in `hook'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:596:in `unload'
    from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant:177:in `ensure in <main>'
    from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant:177:in `<main>'
@najamelan
Copy link

I was looking into this plugin because it can cache the chef install with vagrant-cachier. However if you have no internet connectivity, it makes all vagrant commands hang. It seems that currently this is not a solution to be able to use vagrant/chef offline...

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

No branches or pull requests

2 participants