Skip to content
This repository has been archived by the owner on Dec 26, 2017. It is now read-only.

FATAL: ArgumentError: You must specify at least one cookbook repo path #78

Closed
mconigliaro opened this issue Aug 2, 2013 · 20 comments
Closed

Comments

@mconigliaro
Copy link

This error pops up at the end of the initial provision after you rm -rf ~/.berkshelf (which I have to do quite frequently due to berkshelf/berkshelf#781 ):

FATAL: ArgumentError: You must specify at least one cookbook repo path

A simple workaround for now is to run vagrant reload.

@reset
Copy link
Contributor

reset commented Aug 8, 2013

@mconigliaro I would destroy the contents of ~/.berkshelf and not the directory itself. The effort for automatically re-mounting destroyed/recreated directories would be quite large and also have to happen in Vagrant itself.

We're hard at work at fixing the bug in #781. It will be fixed in Berkshelf 3.0 and is already fixed in the master branch.

@reset reset closed this as completed Aug 8, 2013
@mconigliaro
Copy link
Author

OK, I'll do that from now on instead. Thanks!

@sproutable
Copy link

Is there an eta for 3.0?

@mconigliaro
Copy link
Author

FYI, we're still seeing this issue with Berkshelf 3.1. I Haven't had time to track down what's causing it, but the workaround still seems to be to vagrant reload and vagrant provision until it starts working again.

@mryan43
Copy link

mryan43 commented Sep 4, 2014

I have this error with berkshelf 3.1.5 that came with chef-dk 0.2.1 on vagrant 1.6.4 using vagrant plugin upon initial provisioning... My approach will be to move away from the vagrant plugin and just berks vendor my cookbooks :-(

@axsuul
Copy link

axsuul commented Sep 27, 2014

Also seeing this error, have tried reinstalling vagrant-berkshelf, reloading and provisioning with no success :(

@axsuul
Copy link

axsuul commented Sep 28, 2014

@mconigliaro How many times do you have to vagrant reload and vagrant provision until it starts working?

@mconigliaro
Copy link
Author

@axsuul usually just once.

@axsuul
Copy link

axsuul commented Sep 28, 2014

@mconigliaro Looks like no matter how often I do that, I still get the error :/

@LeKlex
Copy link

LeKlex commented Oct 2, 2014

I am so sorry, complaining about problems on the wrong repo! -.- (Pleas ignore...)

@sethvargo
Copy link
Contributor

Can you post your Vagrantfile please?

@thomas-riccardi
Copy link

I got the error too with chefdk 0.2.2 and vagrant-berkshelf installed yesterday.
I removed ~/.vagrant.d and ~/.berkshelf, and reinstalled everything, it fixed the issue but only temporarily.
It happened again after I modified metadata.rb and/or Berskfile (and maybe other files too, like recipes...). It may be related to that... (a vagrant provision fixed it again.)

@theworkerant
Copy link

Same here, did a vagrant reload --provision and got the same error. This vagrant/chef combo installed on other machines does fine though.

@joestump
Copy link

A vagrant reload followed by a vagrant provision worked for me. 3.1 here.

@memelet
Copy link

memelet commented Oct 30, 2014

Same problem with berks 3.1. The reload -> provision got it unstuck the first time.

@mihasya
Copy link

mihasya commented Oct 30, 2014

May I ask how this is closed? Is it resolved in a later version? Is this plugin deprecated?.. cc @reset

@mconigliaro
Copy link
Author

@mihasya it was supposedly fixed in 3.0, but apparently not. :-(

@sdarwin
Copy link

sdarwin commented Dec 15, 2014

just got the error with berks 3.2.1.
vagrant reload did work.

@thomas-riccardi
Copy link

vagrant reload is a little bit extreme if you just wanted to vagrant provision in the first place.
After more tests it seems that removing ~/.vagrant.d/tmp is enough (bug reproduced 3-4 times, and everytime rm ~/.vagrant.d/tmp fixed the issue).

@Karamcse
Copy link

Fatal error: you must specify '--save', '--no-save' or '--vanilla'

@berkshelf berkshelf locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests