-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
Failure when adding elasticsearch service #204
Comments
It would be helpful to know what cookbook version are you using and what version of elasticsearch are you installing. |
Well, it didn't get to downloading ES itself (however I'm trying to install 0.20.5), the cookbook version is 0.3.8 |
Should be ES 1.0 or higher unless I am misunderstanding things. Also for a first dry-run install no need to have monit and such enabled? I don't think the cookbook will work with anything less than elastic search version 0.90.x (where I am not even sure about x). |
It is not possible to install an earlier version ? monit is part of our infrastructure and cannot be excluded unfortunately, but anyway it shouldn't generate such an error even with an old version of ES (as I don't get to the point where it is downloaded, the init script is generated from a template as I can see), and monit shouldn't also be the root caus of the issue ? |
I don't know for sure, but I think the cookbook is oriented around 1.x and higher. I have installed 0.90.x before with it and it worked before. Monit should be fine, normal stuff, I just don't think the install scripts in the cookbook are going to work right with this version of the cookbook against old version of ES like that. |
are you trying to install via .gz or via RPM? |
Above was for linux related deployments as well, it should be easy to make a quick cookbook if you need to install ES to other platforms like FreeBSD, Solaris, or Linux/Solaris slices on IBM/Fujitzu z-systems, etc. Everything you need can unbundle into /opt or wherever you want it, only thing the cookbook really does is help with the /etc/rc.d script configurations. Plus cookbook also has monit and other configs that maybe you might or might not want or could be wreaking havoc with conflicts against your existing monit. Most ES deployments are fairly custom to the user's environment and I think they provided this cookbook as sort of a 'get started on a linux box quick' rather than for real world environments. |
@ajardan Hmm, never saw this error pop up. In either case, 0.20 is an ancient Elasticsearch version, you shouldn't really use it for anything serious. (Moreover, the cookbook does indeed assume 1.0 or recent versions) @michaeldeman Thanks for helping here! |
Thank you for your help guys ! I still don't know how all this (I mean old ES, etc) would lead to such an error, it looks more like an issue in the init script, but that's not important anymore. |
@michaeldeman Not really, the cookbook is used in many real world environments :) |
@ajardan So, how did you resolve it in the end? |
I didn't. I will write a custom cookbook as I don't need all the features from this one. |
@ajardan Fair! Just please don't use Elasticsearch 0.20, the recent versions have been significantly improved. |
I believe the issue is related to the fact the init script is for RedHat based distros, and I was trying to deploy a Debian machine. It is probably a good idea to add a debian init script which should help people in the future :) |
Actually, the init script has separate paths for Debain and Redhat based distros: https://github.com/elasticsearch/cookbook-elasticsearch/blob/master/templates/default/elasticsearch.init.erb#L43 |
Yeah, but this part should also be different for Debian:
I would say something like
|
Anyone available to review this ? I could still use this if it works with the patch :) @karmi ? |
@ajardan I'll try to verify it on Centos and Ubuntu in Vagrant soon, thanks for the patch! |
The text was updated successfully, but these errors were encountered: