-
Notifications
You must be signed in to change notification settings - Fork 375
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
Annoying alert when starting redis embedded. #45
Comments
First of all, embedded-redis aim was to be able to run integration tests without external dependencies (like redis server running somewhere). Whenever you use embedded Tomcat and/or Solr, you actually use some Java code - you stay within the boundaries of a single process. On the other hand, embedded-redis runs redis executable in a separate process from a shell. I guess that your firewall recognizes it as harmful. Not sure what to think about it. On the one hand, it is outside of the scope of this project, but on the other.. I should look into that.. |
Any more hints on how to reproduce the issue? How do you run it exactly? |
I see :( but bad indeed this allow .. I hope doesnt show up on windows machines :( anyway I answered in the other bug but I am adding the comment here as well : We have a spring boot application and we import the following configuration that starts the embedded redis. @configuration
} |
I am a bit worried that if you start RedisServer from within Tomcat context, it can enforce its java policy.. Will try to reproduce this on Linux (unfortunately I have no MacOS to try ;<). |
well on linux .. at least it looks everything works as expected :( |
I would love to investigate the issue, but it will be hard for me without MacOS. Is there any way to run MacOS on a VM? |
You can run MacOS X on VMware workstation for example :) for sure .. however the license says that in order to run it you have to "have mac" I mean it is illigal to run it on a NON mac machine :D however you can do that of course. VirtualBox maybe also support Mac OS X Guests this days but never tried that.. I have used only vmware workstation to run mac os x guest on windows host machine ( http://www.sysprobs.com/vmware-workstation-8-0-8-0-1-unlocker-to-run-mac-os-x-guest-in-windows-7 ) I am using Yosemite the latest up2date 10.10.3 (but I guess 10.10.0 will work the same) |
similar problem on windows. i think because the redis server executable is run from a varying temp dir (like |
@zyro23 yes exactly this is the issue. The problem is the redis-embedded starts each time from a different folder.. which means.. that ones I grand it permission to start this permission doesnt stay, instead it asks me again and again and again and what @bhowell2 is saying is undoable ( I mean to add it in the firewall application list) Is it possible the redis-server to be started from a non randomly generated name folder each time ? this way the firewall issue will not be an issue. |
Yeah, sorry, I realized a little after that adding it to the list was not viable as it was random every time. Hopefully disabling your firewall is an option for you until it's fixed! Edit: Fixed autocorrect! |
To avoid the windows firewall alert it's possible to only bind to localhost ( |
Hi, will try to make the executable dir to be stable in the next release. |
cleiter's solution works on windows. Many thanks! |
verified on Mac El Capitan that @cleiter 's solution worked. |
@cleiter 's solution also worked for me on Windows. Thank you |
Is there a similar solution for RedisCluster? I don't see a settings() API for RedisCluster |
Doesn't look like it will be fixed for RedisCluster soon... :( |
Signed-off-by: Michael Sprauer <[email protected]>
On my machine, each run of tests would cause a MacOS popup every time an embedded RedisServer is initialized, warning about a process establishing an incoming network connection. By binding to localhost, the OS doesn't get worried. Solution documented in kstyrc/embedded-redis#45 (comment)
On my machine, each run of tests would cause a MacOS popup every time an embedded RedisServer is initialized, warning about a process establishing an incoming network connection. By binding to localhost, the OS doesn't get worried. Solution documented in kstyrc/embedded-redis#45 (comment)
Any plan to release a version that fixes this out of the box? |
Was this ever fixed with RedisCluster? |
When starting redis embedded as part of another applicaiton (spring boot in this case) i am getting each time a very very annoying alert message ( see screenshot for more details ).
And this is happening each time.. I do use solr embedded and elastic search embedded and tomcat and hazelcast but only redis shows this bad confirmation, none of the other asks me do I want to allow incoming connection.. this just looks very bad and basically makes redis unusable since it doesn't look very professional.
The text was updated successfully, but these errors were encountered: