Comments (14)
Is there any way around this problem? I would love to use this but can't get it to work.
from vagrant-notify.
+1
from vagrant-notify.
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!
from vagrant-notify.
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
from vagrant-notify.
I'd be happy to help get this going but am not sure how to help. Any suggestions?
from vagrant-notify.
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!
from vagrant-notify.
@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
from vagrant-notify.
@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.
from vagrant-notify.
Thanks for reporting!
from vagrant-notify.
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?
from vagrant-notify.
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.
from vagrant-notify.
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.
from vagrant-notify.
@nrwiersma Your solution work for me like a charm, using debian 8 as host + laravel/homestead as guest. Thank You!
from vagrant-notify.
Closing. This is no longer an issue with the new daemon based notification server.
from vagrant-notify.
Related Issues (20)
- Error File Not Found HOT 2
- add more details to the built-in notifications HOT 6
- Notification when provisioning fails HOT 2
- Call for Maintainers HOT 2
- Does not work with hashcorp/precise64 HOT 2
- vagrant notify stops homestead from working HOT 3
- notify-send cannot use custom notifier HOT 1
- Doesn't listen on all addresses? HOT 4
- Port Collision HOT 1
- Add support for VMWare Workstation provider HOT 1
- Add support for Hyper-V HOT 1
- 0.5.4
- Doesn't work when guest missing ruby HOT 2
- "sh: notify-send: command not found" in homestead on MacOS X HOT 8
- Unable to start notification server using HOT 1
- vagrant-notify-0.5.6/lib/vagrant-notify/config.rb:31: warning: constant ::Fixnum is deprecated HOT 3
- Some *nix like boxes has restrictions for modifying system files and vagrant-notify fails in such scenarios HOT 3
- Wrong icon url
- Add support for libvirt provider HOT 2
- Project status? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-notify.