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

Issues with Vagrant 1.6 #17

Closed
fgrehm opened this issue May 11, 2014 · 14 comments
Closed

Issues with Vagrant 1.6 #17

fgrehm opened this issue May 11, 2014 · 14 comments
Labels

Comments

@fgrehm
Copy link
Owner

fgrehm commented May 11, 2014

hashicorp/vagrant#3725

@daniel-de-wit
Copy link

Is there any way around this problem? I would love to use this but can't get it to work.

@vjm
Copy link

vjm commented Sep 19, 2014

+1

@fgrehm
Copy link
Owner Author

fgrehm commented Sep 19, 2014

the plugin works, but it will mess things up only when provisioning fails. I'm willing to extract the http notification server out to a separate project but I haven't had a chance to do that yet, I'll report back when that happens!

@fgrehm
Copy link
Owner Author

fgrehm commented Oct 3, 2014

I've done some progress on this recently, doesn't work as a vagrant plugin yet but at some point it will :-) https://github.com/fgrehm/notify-send-http

@vjm
Copy link

vjm commented Oct 3, 2014

I'd be happy to help get this going but am not sure how to help. Any suggestions?

@fgrehm
Copy link
Owner Author

fgrehm commented Oct 3, 2014

I'll soon provide precompiled binaries for the project, manual testing of the client / server will be much wanted before I dive into getting the plugin to use them :-) I'll report back once I'm able to get them out!

@fgrehm
Copy link
Owner Author

fgrehm commented Oct 11, 2014

@vjm https://github.com/fgrehm/notify-send-http has a vagrant installer and docs now. any feedback would be greatly appreciated since that is likely to become the foundation of vagrant-notify 1.0

@Driklyn
Copy link

Driklyn commented Jan 15, 2015

@fgrehm Just to let you know, we're now successfully using notify-send-http in our Vagrant / CentOS guest / Mac host local dev environment.

vagrant-notify worked initially, but only if you installed the plugin after vagrant up (with Chef) finished executing. If the plugin was installed already and you tried to run vagrant up, it would either error out with "The SSH connection was unexpectedly closed by the remote end" or break the shared folders between Vagrant and your OS.

And if you tried doing a vagrant destroy then vagrant up for a fresh instance (with the plugin already installed), the vagrant up command would never successfully execute because the plugin would fail after trying to SSH into the VM after only one attempt and stop vagrant up from executing further... However, on the first attempt, the VM is always still booting up and not yet ready to go. It typically takes about 3 attempts for SSH access to work for me personally.

I did manage to use vagrant-notify for a few days just fine, but then all these issues started appearing and prompted me to switch to notify-send-http instead -- which I'd say is even nicer since it doesn't require you to install it as a Vagrant plugin (which, btw, didn't work in Vagrant 1.6.3 -- had to upgrade to the latest: 1.7.2).

Anyways... thanks for all your hard work! Much appreciated.

@fgrehm
Copy link
Owner Author

fgrehm commented Jan 16, 2015

Thanks for reporting!

@nrwiersma
Copy link

As a pre warning I don't really know ruby and I have never made a vagrant plugin.

That being said I was having this issue and dug into it a little and found that if you change plugin.rb line 16 to hook VagrantPlugins::ProviderVirtualBox::Action::WaitForCommunicator rather than VagrantPlugins::ProviderVirtualBox::Action::Boot it seems to stop the issue of first boot failing and it still seems to send notifications.

Maybe that helps?

@hardyoyo
Copy link

hardyoyo commented Mar 4, 2015

How very odd. I was successfully using the vagrant-notify plugin with Vagrant 1.6.5 on Linux Mint 17 (pretty much just Ubuntu Trusty 64), but after I upgraded to Vagrant 1.7.2, I ran into many issues with shared folders, and I also noticed that vagrant-notify was no longer working 100%... it still worked for provisioning notifications, however, when running notify-send from the guest, no messages were sent. I have now successfully tested notify-send-http, and that seems to work fine. Now I have to figure out how to configure my Vagrant-managed VM to actually set up the notify-send-http client. I have uninstalled the vagrant-notify plugin, and will alert my fellow developers that it may cause issues with Vagrant 1.7.2 and shared/synced folders. I would love for this functionality to again be wrapped up in a simple Vagrant plugin, it was really nice getting notifications that maven was done compiling on my VM.

@hardyoyo
Copy link

hardyoyo commented Mar 8, 2015

This plugin is soo much more useful for me as far as getting actual work done goes, I think I can live without Vagrant 1.7.x, I am going to downgrade back to 1.6.5, and re-install this plugin.

@lightvision
Copy link

@nrwiersma Your solution work for me like a charm, using debian 8 as host + laravel/homestead as guest. Thank You!

@alpha01
Copy link
Collaborator

alpha01 commented Oct 8, 2016

Closing. This is no longer an issue with the new daemon based notification server.

@alpha01 alpha01 closed this as completed Oct 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants