Hi. What is happening is what is described by the other posters above.
Specifically, on Ububtu (in my case 16), the elasticsearch init script (ie typing 'systemctl start elasticsearch' from a shell) does not start elasticsearch. It returns '[OK]', but elasticsearch does not start. It gives no error message and leaves no logs. It is therefore very difficult to debug, know where to start, or give any useful feedback.
As others have posted, running this command from a shell will successfully launch elasticsearch for me:
We test installing, starting, stopping, upgrading Elasticsearch, and various other packaging-related functionality in our packaging tests on several distributions, including Ubuntu 16.04. The only way that we will be able to make progress on the troubles being reported here is for someone to provide a clear reproduction of the issue. If you have such a reproduction, please post it here, or open an issue at https://github.com/elastic/elasticsearch.
However, in this case, there is no support for systemctl that I can see. Thanks for your help with this. My colleagues are also finding the same thing, so my suspicion is that installing via sudo apt-get install elasticsearch is unsupported?
[quote="Jamie_McLaughlin, post:27, topic:48730"] From a fresh install of Ubuntu 16.04:
sudo apt-get install elasticsearch [/quote]
Are you leaving steps out here, or you are indeed installing *not* from the Elasticsearch provided repository? We do not support the images provided by Ubuntu, and it does not surprise me that they are broken. Instead, you need to use our repositories:
I can confirm this all now works! :D I similarly had to adjust the starting heap size down from 2G and that might be something to add to your docs, given that some people will be trying out elasticsearch on a test VM with less than 2G. But otherwise this all worked fine and the problem was that the Ubuntu packaged version has a bugged init script. Use the official elasticsearch repositiries instead. As you said, these are the instructions to follow:
[quote="Jamie_McLaughlin, post:31, topic:48730"] I similarly had to adjust the starting heap size down from 2G and that might be something to add to your docs, given that some people will be trying out elasticsearch on a test VM with less than 2G. [/quote]
We lowered the default starting in 6.0.0 for this reason.
NEW: Monitor These Apps!
Apache Lucene, Apache Solr and all other Apache Software Foundation project and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext