# Chef-solo monit and elasticsearch version issues

**URL:** <https://discuss.elastic.co/t/chef-solo-monit-and-elasticsearch-version-issues/16542>\
**Category:** Elasticsearch\
**Created:** [March 22, 2014, 12:08pm UTC](https://discuss.elastic.co/t/chef-solo-monit-and-elasticsearch-version-issues/16542 "2014-03-22T12:08:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Backes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_backes/32/1707_2.png) [@Jan\_Backes](https://discuss.elastic.co/u/Jan_Backes)\
**Post date:** [March 22, 2014, 12:08pm UTC](https://discuss.elastic.co/t/chef-solo-monit-and-elasticsearch-version-issues/16542/1 "2014-03-22T12:08:10Z")

</div>

Hi,

I am currently trying to install elasticsearch on amazon (amazon ami) using  
the chef-solo tutorial (  
[http://www.elasticsearch.org/tutorials/deploying-elasticsearch-with-chef-solo/](http://www.elasticsearch.org/tutorials/deploying-elasticsearch-with-chef-solo/)).  
I followed this tutorial couple months ago and was successfully running an  
ES cluster since then.

While doing a "test-run" I realised that the monit version is rather old  
and that it is not inline any longer with the updated cookbook resulting in  
an error (e.g.  
[https://github.com/elasticsearch/cookbook-elasticsearch/issues/184](https://github.com/elasticsearch/cookbook-elasticsearch/issues/184)). I  
changed this by pulling the newest version from  
[https://github.com/apsoto/monit](https://github.com/apsoto/monit) and it installs just fine.

Now I am just wondering why I am getting a "green" for the cluster health  
check:

Remote Host 'elasticsearch\_cluster\_health'  
status online with all services  
monitoring status monitored  
port response time 0.008s to  
0.0.0.0:9200/\_cluster/health[HTTP via TCP]  
data collected Sat Mar 22 11:39:32 2014

Should the cluster health check fail since it is only one node?

I also tried to update the version to 1.0.1. For that I spun up another  
instance using the same settings - but changing the version number in

> <https://github.com/elastic/cookbook-elasticsearch/blob/master/attributes/default.rb>

  
1.0.1. I saw that there are many issues/pull request regarding the  
upgrade - so I was thinking that a fresh install would avoid all this.

The bootstrap script and everything runs fine - but the es service will not  
start. Trying to start es manually show the error:

{1.0.1}: Initialization Failed ...

- ElasticsearchIllegalStateException[Failed to obtain node lock, is the  
following location writable?:  
[/usr/local/elasticsearch-1.0.1/data/elasticsearch]]  
IOException[failed to obtain lock on  
/usr/local/elasticsearch-1.0.1/data/elasticsearch/nodes/49]  
IOException[Cannot create directory:  
/usr/local/elasticsearch-1.0.1/data/elasticsearch/nodes/49]

Now I am wondering how to adjust the cookbook to set the paths right and  
avoid the lock error. Or is there another preferred way of upgrading?

I also tried this using ubuntu server (using the updated setup instruction  
etc from the elasticsearch-cookbook github page) and ran into the same  
issues. Maybe somebody has similar issues/experiences.

Thanks a lot for your help,  
Jan

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKzGBByCxf0ny9MYQOqMCV%3DT5RofSz6ziwwKLd5CsC4AWcDbTQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKzGBByCxf0ny9MYQOqMCV%3DT5RofSz6ziwwKLd5CsC4AWcDbTQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:41am UTC](https://discuss.elastic.co/t/chef-solo-monit-and-elasticsearch-version-issues/16542/2 "2017-07-06T01:41:23Z")

</div>


