-
Notifications
You must be signed in to change notification settings - Fork 2
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
Provisioner not found #21
Comments
That's a bug I've hit too :-( It seems the Vagrant cookbook sometimes installs plugins wrong somehow, so that it's convinced they're installed and Vagrant isn't (you can try "vagrant plugin list" and you won't see them.) The easiest way to handle this is probably to uninstall Vagrant (including that pkgutil command) and reinstall. The second-easiest is to install the plugin that's missing -- probably "vagrant plugin install vagrant-host-shell --plugin-version 0.0.4". The list of plugins that need to be installed, taken from the cookbook: node.default['vagrant']['plugins'] = [ |
(I've figured out how to detect the bug, but it's going to take me longer to fix it. And my company just went out of business, so I've been derelict on pushing my changes. It'll happen pretty soon.) |
No problem! I'll continue reporting what I find. Thanks so much Noah! |
I have a feeling this is a problem with my system. After installing the missing vagrant plugins, I did
So I opened my VirtualBox GUI to see what's going on. Found my VM there and hit the start button and it raised this error:
|
It might be worth configuring with GUI enabled:
|
Yes, "cd madscience" is correct. I should probably make that clearer. Have you tried "vagrant plugin list" to make sure everything shows up? Though it sounds like you're not having that same problem again. Yeah, haven't seen that new error before :-/ Not sure what's up with that. |
Hey, Jim. After some investigation, looks like Vagrant plugins aren't installed under Vagrant. Oy. So "reinstall Vagrant" isn't useful advice here. Instead, do me a favor and do this: rm ~/.vagrant.d/plugins.json This will remove all install Vagrant plugins -- running "madscience setup" or "madscience construct" should reinstall them. I'm still figuring out why this happens, but madscience version 0.0.28+ should at least come to a screeching halt if it does happen, including listing a plugin that isn't installed and how to install it. |
Oh God. Since Vagrant installs plugins in the user's home directory, I'm getting a completely unrelated set with sudo/rvmsudo than I get when I'm not doing that. So I need to install the plugins in both root and non-root directories, or install again after dropping root privileges, or... Don't know. I definitely need to think through this now. The easiest answer would be to install this in the user's home dir (not root's, generally) and then forbid running "vagrant up" (etc) via sudo. I have a suspicion that that won't end well. Will figure it out. |
Also: how did this ever work? |
Is there any way to specify your own plugin path for part of it? |
Huh. And the periodic failures are more mysterious when I take into account that my detection code is in Chef, and it successfully detects the problem. That means we're definitely seeing the occasional failures even within the sudo environment, completely ignoring the post-sudo environment. This looks like some kind of error where plugins.json doesn't agree with the installed gem, or something along those lines. |
@Cinderhaze, there's a way to install into other user's Vagrant dir in the latest version of the Vagrant cookbook. I need to port my changes on top of it (current plugin version detection is broken) and then use it. So yeah, there's absolutely a way to do that. It's just running the plugin command as that user. |
Okay. It works (ish) because it's more complicated than that, and when running with sudo you're often still using your own home directory, not root's. Sometimes. Ish. But installing the plugins with Vagrant can absolutely be made to do it in a user dir, which I'm doing locally. And I believe that will fix the root/not-root problem, though not necessarily all the others. Pushed as madscience-0.0.29.gem. |
I kept getting the error |
Weird. Well, I can certainly upgrade madscience_gem to the latest VirtualBox without a problem. Have you tried turning the gui option on to see it's obvious what the problem is? This is one I haven't seen myself :-( |
Still working on getting this working and got to this point:
The text was updated successfully, but these errors were encountered: