By ellisgeek
I just spun up a ELK server using the one click installer. When I open Kibana it tells me it’s unable to connect to elastic search. When I ssh into the box and attempt to start elasticsearch (sudo service elasticsearch start) it falls into a loop printing “fail” over and over.
Output:
* Starting Elasticsearch Server
...fail!
...fail!
...fail!
...fail!
...fail!
...fail!
...fail!
...fail!
...fail!
...fail!```
I am completely new to ELK and just wanted to give it a spin. I guess for now I'll just manually set it up on a Ubuntu Droplet.
Full Disclosure it is a 512MB Droplet.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The ELK stack can be quite memory intensive. We recommend using at least a 2 GB droplet, though some have success with 1 GB ones.
I just ran into a similar problem using a 1GB Droplet. I noticed that the Digital Ocean ELK image does not have swap enabled by default, so I used the guide linked below and rebooted the droplet. It’s working for now, but I’m not sure if this is enough to keep it happy in the long term. I had to use the fast method in the guide to create the swapfile as ELK was using up too much memory for the first method to work.
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
I upgraded to Java 8 and it solved this issue for me - I was using the java cookbook as my situation was a Chef implementation. Note that the java cookbook has the option to set the java version you want - it also required that I configure it to use oracle java flavor. That’s all I did and the start/fail problem was gone.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.