# Problems with "Deploying Elasticsearch with Chef Solo" tutorial

**URL:** <https://discuss.elastic.co/t/problems-with-deploying-elasticsearch-with-chef-solo-tutorial/12155>\
**Category:** Elasticsearch\
**Created:** [May 28, 2013, 5:20pm UTC](https://discuss.elastic.co/t/problems-with-deploying-elasticsearch-with-chef-solo-tutorial/12155 "2013-05-28T17:20:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Bryant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_bryant/32/2309_2.png) [@Daniel\_Bryant](https://discuss.elastic.co/u/Daniel_Bryant)\
**Post date:** [May 28, 2013, 5:20pm UTC](https://discuss.elastic.co/t/problems-with-deploying-elasticsearch-with-chef-solo-tutorial/12155/1 "2013-05-28T17:20:30Z")

</div>

Hi all,

I'm experimenting with the ElasticSearch tutorial "Deploying Elasticsearch  
with Chef Solo" and am getting the following error when attempting the  
section entitled "The Full Installation"

When running the following command:

time ssh -t $SSH\_OPTIONS $HOST "sudo chef-solo --node-name  
elasticsearch-test-1 -j /tmp/node.json"

I get...

[2013-05-28T16:41:29+00:00] ERROR: Running exception handlers  
[2013-05-28T16:41:29+00:00] ERROR: Exception handlers complete  
[2013-05-28T16:41:30+00:00] FATAL: Stacktrace dumped to /var/chef-solo/chef-  
stacktrace.out  
[2013-05-28T16:41:30+00:00] FATAL: Gem::LoadError: ruby\_block[Create EBS  
volume on /dev/sda2 (size: 25GB)] (elasticsearch::ebs line 16) had an error:  
Gem::LoadError: Unable to activate net-scp-1.1.1, because net-ssh-2.2.2conflicts  
with net-ssh (\>= 2.6.5)  
Connection to [ec2-54-214-79-108.us-west-2.compute.amazonaws.com](http://ec2-54-214-79-108.us-west-2.compute.amazonaws.com) closed.

I'm wondering if it is a Chef issue with the net-shh dependency in the  
ElasticSearch cookbook. I've found a very similar issue in a discussion on  
the Vagrant GitHub repo [https://github.com/mitchellh/vagrant/issues/1355](https://github.com/mitchellh/vagrant/issues/1355)

Can anyone confirm this problem with the tutorial, and (even more  
appreciated) offer a suggested fix?

Best wishes,

Daniel

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ram\_Viswanadha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_viswanadha/32/1888_2.png) [@Ram\_Viswanadha](https://discuss.elastic.co/u/Ram_Viswanadha)\
**Post date:** [August 21, 2013, 7:10pm UTC](https://discuss.elastic.co/t/problems-with-deploying-elasticsearch-with-chef-solo-tutorial/12155/2 "2013-08-21T19:10:45Z")

</div>

I am having the same issue with the recipe. After creating the EBS volume  
SSH server dies.

On Tuesday, May 28, 2013 10:20:30 AM UTC-7, Daniel Bryant wrote:

> Hi all,
> 
> I'm experimenting with the Elasticsearch tutorial "Deploying Elasticsearch  
> with Chef Solo" and am getting the following error when attempting the  
> section entitled "The Full Installation"
> 
> When running the following command:
> 
> time ssh -t $SSH\_OPTIONS $HOST "sudo chef-solo --node-name  
> elasticsearch-test-1 -j /tmp/node.json"
> 
> I get...
> 
> [2013-05-28T16:41:29+00:00] ERROR: Running exception handlers  
> [2013-05-28T16:41:29+00:00] ERROR: Exception handlers complete  
> [2013-05-28T16:41:30+00:00] FATAL: Stacktrace dumped to /var/chef-solo/  
> chef-stacktrace.out  
> [2013-05-28T16:41:30+00:00] FATAL: Gem::LoadError: ruby\_block[Create EBS  
> volume on /dev/sda2 (size: 25GB)] (elasticsearch::ebs line 16) had an  
> error: Gem::LoadError: Unable to activate net-scp-1.1.1, because net-ssh-  
> 2.2.2 conflicts with net-ssh (\>= 2.6.5)  
> Connection to [ec2-54-214-79-108.us-west-2.compute.amazonaws.com](http://ec2-54-214-79-108.us-west-2.compute.amazonaws.com) closed.
> 
> I'm wondering if it is a Chef issue with the net-shh dependency in the  
> Elasticsearch cookbook. I've found a very similar issue in a discussion on  
> the Vagrant GitHub repo [net-ssh version mismatch · Issue #1355 · hashicorp/vagrant · GitHub](https://github.com/mitchellh/vagrant/issues/1355)
> 
> Can anyone confirm this problem with the tutorial, and (even more  
> appreciated) offer a suggested fix?
> 
> Best wishes,
> 
> Daniel

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![karmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karmi/32/44951_2.png) [@karmi](https://discuss.elastic.co/u/karmi)\
**Post date:** [August 22, 2013, 8:39am UTC](https://discuss.elastic.co/t/problems-with-deploying-elasticsearch-with-chef-solo-tutorial/12155/3 "2013-08-22T08:39:16Z")

</div>

Hi,

there's been a problem with an older Chef version (10.x) and buggy Ark  
cookbook version installed during bootstrap.

I've updated the supporting gist repository for the  
tutorial: [https://gist.github.com/karmi/2050769/revisions](https://gist.github.com/karmi/2050769/revisions), verified it on  
EC2, everything incl. EBS creation should be running.

Also notice that since publishing the tutorial, I've added lots of  
instructions directly to the cookbook repository README  
file: [GitHub - sous-chefs/elasticsearch: Development repository for the elasticsearch cookbook](https://github.com/elasticsearch/cookbook-elasticsearch/#chef-solo),  
which is being continuously updated, while the tutorial may lag behind.

Sorry for the inconvienience! Please ping me via mailing list or Github  
issues at the cookbook repository if you bump into problems,

Karel

On Tuesday, May 28, 2013 7:20:30 PM UTC+2, Daniel Bryant wrote:

> Hi all,
> 
> I'm experimenting with the Elasticsearch tutorial "Deploying Elasticsearch  
> with Chef Solo" and am getting the following error when attempting the  
> section entitled "The Full Installation"
> 
> When running the following command:
> 
> time ssh -t $SSH\_OPTIONS $HOST "sudo chef-solo --node-name  
> elasticsearch-test-1 -j /tmp/node.json"
> 
> I get...
> 
> [2013-05-28T16:41:29+00:00] ERROR: Running exception handlers  
> [2013-05-28T16:41:29+00:00] ERROR: Exception handlers complete  
> [2013-05-28T16:41:30+00:00] FATAL: Stacktrace dumped to /var/chef-solo/  
> chef-stacktrace.out  
> [2013-05-28T16:41:30+00:00] FATAL: Gem::LoadError: ruby\_block[Create EBS  
> volume on /dev/sda2 (size: 25GB)] (elasticsearch::ebs line 16) had an  
> error: Gem::LoadError: Unable to activate net-scp-1.1.1, because net-ssh-  
> 2.2.2 conflicts with net-ssh (\>= 2.6.5)  
> Connection to [ec2-54-214-79-108.us-west-2.compute.amazonaws.com](http://ec2-54-214-79-108.us-west-2.compute.amazonaws.com) closed.
> 
> I'm wondering if it is a Chef issue with the net-shh dependency in the  
> Elasticsearch cookbook. I've found a very similar issue in a discussion on  
> the Vagrant GitHub repo [net-ssh version mismatch · Issue #1355 · hashicorp/vagrant · GitHub](https://github.com/mitchellh/vagrant/issues/1355)
> 
> Can anyone confirm this problem with the tutorial, and (even more  
> appreciated) offer a suggested fix?
> 
> Best wishes,
> 
> Daniel

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:20am UTC](https://discuss.elastic.co/t/problems-with-deploying-elasticsearch-with-chef-solo-tutorial/12155/4 "2017-07-06T02:20:14Z")

</div>


