# Logstash having issues with bad interpreter: No such file or directory

**URL:** <https://discuss.elastic.co/t/logstash-having-issues-with-bad-interpreter-no-such-file-or-directory/98534>\
**Category:** Logstash\
**Created:** [August 28, 2017, 9:54am UTC](https://discuss.elastic.co/t/logstash-having-issues-with-bad-interpreter-no-such-file-or-directory/98534 "2017-08-28T09:54:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghunandan\_Sk](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@Raghunandan\_Sk](https://discuss.elastic.co/u/Raghunandan_Sk)\
**Post date:** [August 28, 2017, 9:54am UTC](https://discuss.elastic.co/t/logstash-having-issues-with-bad-interpreter-no-such-file-or-directory/98534/1 "2017-08-28T09:54:34Z")

</div>

Hey guys ,

I had logstash running fine till 2 days ago but due to disk issue I had to reboot the server after that logstash was not working fine. I add new disk to this machine (its AWS EC2 machine )

I removed logstash and installed new but when I run the below command I keep getting the error

```auto
[root@ip-x.x.x.x logstash]# bin/logstash -e 'input { stdin { } } output { stdout {} }'
/usr/share/logstash/bin/logstash.lib.sh: /usr/share/logstash/vendor/jruby/bin/jruby: /usr/bin/env: bad interpreter: No such file or directory
/usr/share/logstash/bin/logstash.lib.sh: line 195: /usr/share/logstash/vendor/jruby/bin/jruby: Success
[root@ip-x.x.x.x logstash]# 

```

If i try starting the service I get the below error

```auto
[root@ip-x-x-x- logstash]# initctl start logstash
initctl: Unknown job: logstash

```

Any suggestion how to fix this will help a lot . Thanks

---

<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:** [September 25, 2017, 9:54am UTC](https://discuss.elastic.co/t/logstash-having-issues-with-bad-interpreter-no-such-file-or-directory/98534/2 "2017-09-25T09:54:38Z")

</div>

Closed on September 25, 2017, 9:54am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
