Vagrant/Berkshelf `initialize': undefined method `opts'

313 views
Skip to first unread message

Jerrod

unread,
Jun 2, 2014, 9:57:58 PM6/2/14
to vagra...@googlegroups.com

/Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/env.rb:16:in `initialize': undefined method `opts' for #<Vagrant::UI::Colored:0x00000104d520f0> (NoMethodError)

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action.rb:57:in `new'

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action.rb:57:in `block in setup'

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action.rb:56:in `tap'

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action.rb:56:in `setup'

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/plugin.rb:15:in `provision'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:45:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:45:in `block (2 levels) in run'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:44:in `tap'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:44:in `block in run'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:43:in `map'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:43:in `run'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/machine.rb:147:in `action'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'


I've tried installing berkshelf '< 2.0'. Can't seem to get anything to work.

Jerrod

unread,
Jun 2, 2014, 10:36:18 PM6/2/14
to vagra...@googlegroups.com
Sorry, this happens when I vagrant up.

Shawn Neal

unread,
Jun 3, 2014, 11:42:49 AM6/3/14
to vagra...@googlegroups.com
This is Berkshelf issue, but...

You need to use Vagrant 1.5 or newer with vagrant-berkshelf 2.0+ or downgrade vagrant-berkshelf to 1.37 or older. Vagrant 1.5 made a breaking change to the UI class which this plugin is using.

Jerrod

unread,
Jun 3, 2014, 7:31:54 PM6/3/14
to vagra...@googlegroups.com

MAC-JC032040:Projects jc032040$ vagrant plugin install vagrant-berkshelf --plugin-version 1.3.7

Installing the 'vagrant-berkshelf --version '1.3.7'' plugin. This can take a few minutes...

/Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:211:in `gather_dependencies': Unable to resolve dependencies: ridley requires buff-extensions (~> 0.3); buff-config requires buff-extensions (~> 0.3); varia_model requires buff-extensions (~> 1.0) (Gem::DependencyError)

from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:333:in `install'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/plugin/action/install_gem.rb:62:in `block in call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/plugin/gem_helper.rb:42:in `block in with_environment'

from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/user_interaction.rb:40:in `use_ui'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/plugin/gem_helper.rb:41:in `with_environment'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/plugin/action/install_gem.rb:52:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/plugin/action/bundler_check.rb:20:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builder.rb:116:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `block in run'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/util/busy.rb:19:in `busy'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `run'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/plugin/command/base.rb:17:in `action'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/plugin/command/install.rb:27:in `execute'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/plugin/command/root.rb:56:in `execute'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/cli.rb:38:in `execute'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/environment.rb:484:in `cli'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/bin/vagrant:127:in `<top (required)>'

from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'

from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'

Jerrod

unread,
Jun 4, 2014, 8:29:24 AM6/4/14
to vagra...@googlegroups.com

And with up to date everything..

/Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/version.rb:191:in `initialize': Malformed version number string virtualbox (ArgumentError)

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/box_collection.rb:273:in `new'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/box_collection.rb:273:in `block (2 levels) in find'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/box_collection.rb:270:in `map'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/box_collection.rb:270:in `block in find'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/box_collection.rb:416:in `block in with_collection_lock'

from /Applications/Vagrant/embedded/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/box_collection.rb:415:in `with_collection_lock'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/box_collection.rb:263:in `find'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/vagrantfile.rb:157:in `block in machine_config'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/vagrantfile.rb:190:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/vagrantfile.rb:190:in `machine_config'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/vagrantfile.rb:45:in `machine'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:497:in `machine'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/plugin/v2/command.rb:168:in `block in with_target_vms'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/plugin/v2/command.rb:192:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/plugin/v2/command.rb:192:in `block in with_target_vms'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/plugin/v2/command.rb:174:in `each'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/plugin/v2/command.rb:174:in `with_target_vms'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/commands/up/command.rb:67:in `block in execute'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:238:in `block (2 levels) in batch'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:236:in `tap'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:236:in `block in batch'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:235:in `synchronize'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:235:in `batch'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/commands/up/command.rb:58:in `execute'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/cli.rb:42:in `execute'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:252:in `cli'

from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.3/bin/vagrant:166:in `<main>'

Shawn Neal

unread,
Jun 4, 2014, 10:46:47 AM6/4/14
to vagra...@googlegroups.com
You Vagrant box didn't upgrade to the new 1.5+ box format. Not sure why, but this issue should help get around it https://github.com/mitchellh/vagrant/issues/3195


--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/kBrNm36HbEg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jerrod

unread,
Jun 4, 2014, 8:21:37 PM6/4/14
to vagra...@googlegroups.com
I think you were right, but there seems to be some other problem now..

MAC-JC032040:Projects jc032040$ echo "1.1" > ~/.vagrant.d/setup_version

MAC-JC032040:Projects jc032040$ vagrant up

Vagrant is upgrading some internal state for the latest version.

Please do not quit Vagrant at this time. While upgrading, Vagrant

will need to copy all your boxes, so it will use a considerable

amount of disk space. After it is done upgrading, the temporary disk

space will be freed.


Press ctrl-c now to exit if you want to remove some boxes or free

up some disk space.


Press any other key to continue.j

Bringing machine 'default' up with 'virtualbox' provider...

/Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/env.rb:18:in `initialize': undefined method `scope' for #<Vagrant::UI::Colored:0x00000100aedf98> (NoMethodError)

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:54:in `new'

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:54:in `block in setup'

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:53:in `tap'

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:53:in `setup'

from /Users/jc032040/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/plugin.rb:15:in `provision'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:42:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:42:in `block (2 levels) in run'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:41:in `tap'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:41:in `block in run'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:40:in `map'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:40:in `run'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in `action_raw'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:in `block in action'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in `lock'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `call'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `action'

from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'

from /Applications/Vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'

from /Applications/Vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'

Jerrod

unread,
Jun 4, 2014, 8:41:34 PM6/4/14
to vagra...@googlegroups.com
Installed vagrant-bekrshelf 2.0.1 Now getting this..

Vagrant failed to initialize at a very early stage:

The plugins failed to load properly. The error message given is

shown below.

uninitialized constant Chef::Provider::Package::Apt

Shawn Neal

unread,
Jun 5, 2014, 7:15:28 PM6/5/14
to vagra...@googlegroups.com
IIRC there's a vagrant-berkshelf issue on GitHub for this error. You may need to blow away your ~/.vagrant.d folder and reinstall. It seems you have some bad state/gems installed.
Reply all
Reply to author
Forward
0 new messages