# Service wrapper failing with "eval: 1: /opt/elasticsearch/bin/service/exec/elasticsearch-linux-x86-64: not found"

**URL:** <https://discuss.elastic.co/t/service-wrapper-failing-with-eval-1-opt-elasticsearch-bin-service-exec-elasticsearch-linux-x86-64-not-found/5641>\
**Category:** Elasticsearch\
**Created:** [October 19, 2011, 10:13am UTC](https://discuss.elastic.co/t/service-wrapper-failing-with-eval-1-opt-elasticsearch-bin-service-exec-elasticsearch-linux-x86-64-not-found/5641 "2011-10-19T10:13:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug\_livesey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doug_livesey/32/2114_2.png) [@doug\_livesey](https://discuss.elastic.co/u/doug_livesey)\
**Post date:** [October 19, 2011, 10:13am UTC](https://discuss.elastic.co/t/service-wrapper-failing-with-eval-1-opt-elasticsearch-bin-service-exec-elasticsearch-linux-x86-64-not-found/5641/1 "2011-10-19T10:13:24Z")

</div>

Hi -- I've followed the instructions for installing elasticsearch on linux,  
but when I try to run the elasticsearch service wrapper, I get this error:  
"eval: 1: /opt/elasticsearch/bin/service/exec/elasticsearch-linux-x86-64:  
not found"

The file /opt/elasticsearch/bin/service/exec/elasticsearch-linux-x86-64 is  
definitely there, and is executable.  
Can anyone offer any advice on how I might fix this?  
I'm running Ubuntu (Hardy), and it's only 32 bit, which might be related to  
the issue?  
Cheers,  
Doug.

---

<div class="post-metadata">

**Author:** ![doug\_livesey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doug_livesey/32/2114_2.png) [@doug\_livesey](https://discuss.elastic.co/u/doug_livesey)\
**Post date:** [October 21, 2011, 8:52am UTC](https://discuss.elastic.co/t/service-wrapper-failing-with-eval-1-opt-elasticsearch-bin-service-exec-elasticsearch-linux-x86-64-not-found/5641/2 "2011-10-21T08:52:50Z")

</div>

Hi -- I'm investigating this, but I'm not really a bash shell  
scripter, so any suggestions & advice would be very gratefully  
received.  
Or any pointers to anywhere else I could go to ask the question?  
Thanks,  
Doug.

On Oct 19, 11:13 am, doug livesey [biot...@gmail.com](mailto:biot...@gmail.com) wrote:

> Hi -- I've followed the instructions for installing elasticsearch on linux,  
> but when I try to run the elasticsearch service wrapper, I get this error:  
> "eval: 1: /opt/elasticsearch/bin/service/exec/elasticsearch-linux-x86-64:  
> not found"
> 
> The file /opt/elasticsearch/bin/service/exec/elasticsearch-linux-x86-64 is  
> definitely there, and is executable.  
> Can anyone offer any advice on how I might fix this?  
> I'm running Ubuntu (Hardy), and it's only 32 bit, which might be related to  
> the issue?  
> Cheers,  
> Doug.

---

<div class="post-metadata">

**Author:** ![doug\_livesey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doug_livesey/32/2114_2.png) [@doug\_livesey](https://discuss.elastic.co/u/doug_livesey)\
**Post date:** [October 21, 2011, 9:14am UTC](https://discuss.elastic.co/t/service-wrapper-failing-with-eval-1-opt-elasticsearch-bin-service-exec-elasticsearch-linux-x86-64-not-found/5641/3 "2011-10-21T09:14:15Z")

</div>

Okay, so hacking around (after installing the service), I've added the  
following line (at line 483) to the service script to force the correct  
behaviour:  
WRAPPER\_CMD="/opt/elasticsearch/bin/service/exec/elasticsearch-linux-x86-32"

I also made the corresponding file  
(/opt/elasticsearch/bin/service/exec/elasticsearch-linux-x86-32) executable.

This is, obviously, a horrible hack, but it works, and that's the main  
thing. 😉  
Cheers,  
Doug.

On 21 October 2011 09:52, biot023 [biot023@gmail.com](mailto:biot023@gmail.com) wrote:

> Hi -- I'm investigating this, but I'm not really a bash shell  
> scripter, so any suggestions & advice would be very gratefully  
> received.  
> Or any pointers to anywhere else I could go to ask the question?  
> Thanks,  
> Doug.
> 
> On Oct 19, 11:13 am, doug livesey [biot...@gmail.com](mailto:biot...@gmail.com) wrote:
> 
> > Hi -- I've followed the instructions for installing elasticsearch on  
> > linux,  
> > but when I try to run the elasticsearch service wrapper, I get this  
> > error:  
> > "eval: 1:  
> > /opt/elasticsearch/bin/service/exec/elasticsearch-linux-x86-64:  
> > not found"
> > 
> > The file /opt/elasticsearch/bin/service/exec/elasticsearch-linux-x86-64  
> > is  
> > definitely there, and is executable.  
> > Can anyone offer any advice on how I might fix this?  
> > I'm running Ubuntu (Hardy), and it's only 32 bit, which might be related  
> > to  
> > the issue?  
> > Cheers,  
> > Doug.

---

<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, 3:51am UTC](https://discuss.elastic.co/t/service-wrapper-failing-with-eval-1-opt-elasticsearch-bin-service-exec-elasticsearch-linux-x86-64-not-found/5641/4 "2017-07-06T03:51:15Z")

</div>


