Issue with vagrant-berkshelf plugin and upgrading chefdk

As I mentioned in previous posts I have been using vagrant to develop and test chef cookbooks. A couple of days ago I have upgraded chefdk from version 0.8.0 to 0.9.0 which also upgrades berkshelf from version 3.3.0 to 4.0.1 . So when I tried to launch a vagrant box as usual with executing

$ vagrant up

I got the following error

The Berkshelf version at "/usr/bin/berks" is invalid.
Vagrant Berkshelf requires ~> 3.2, but the current version is 4.0.1.

Please download and install the latest version of the ChefDK from:

and follow the installation instructions. Do not forget to add the ChefDK to
your PATH.

My current version of vagrant is 1.6.3 and the plugins installed are

 $ vagrant plugin list
vagrant-berkshelf (4.0.2)
vagrant-login (1.0.1, system)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.3, system)

In order to resolve the issue I had to update vagrant-berkshelf plugin to the latest available on 2015-10-20.

 $ vagrant plugin update vagrant-berkshelf
Updating plugins: vagrant-berkshelf. This may take a few minutes...
Updated 'vagrant-berkshelf' to version '4.1.0'!
Updated 'vagrant-share' to version '1.1.4'!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s