# /usr/share/logstash/bin/system-install: line 88: #: command not found

**URL:** <https://discuss.elastic.co/t/usr-share-logstash-bin-system-install-line-88-command-not-found/214242>\
**Category:** Logstash\
**Created:** [January 8, 2020, 2:01pm UTC](https://discuss.elastic.co/t/usr-share-logstash-bin-system-install-line-88-command-not-found/214242 "2020-01-08T14:01:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leprovokateur](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@leprovokateur](https://discuss.elastic.co/u/leprovokateur)\
**Post date:** [January 8, 2020, 2:01pm UTC](https://discuss.elastic.co/t/usr-share-logstash-bin-system-install-line-88-command-not-found/214242/1 "2020-01-08T14:01:30Z")

</div>

Hi,

On upgrading from 7.5.0 to 7.5.1 I receive the error:

Using provided startup.options file: /etc/logstash/startup.options  
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
OpenJDK 64-Bit Server VM warning: INFO: os::commit\_memory(0x000000075f330000, 2697789440, 0) failed; error='Not enough space' (errno=12)  
/usr/share/logstash/bin/system-install: line 88: #: command not found.  
Unable to install system startup script for Logstash.

The command in question is ruby\_exec, which doesn't exist on my CentOS 7 machine.

How do I solve this?

Robert

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [January 8, 2020, 2:48pm UTC](https://discuss.elastic.co/t/usr-share-logstash-bin-system-install-line-88-command-not-found/214242/2 "2020-01-08T14:48:05Z")

</div>

> [@leprovokateur](#):
>
> The command in question is ruby\_exec, which doesn't exist on my CentOS 7 machine.

ruby\_exec is a function defined in /usr/share/logstash/bin/logstash.lib.sh

If you are doing the upgrade on a server where logstash uses more than half of the memory (a world I live in) you will need to stop logstash before doing the upgrade.

---

<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:** [February 5, 2020, 2:48pm UTC](https://discuss.elastic.co/t/usr-share-logstash-bin-system-install-line-88-command-not-found/214242/3 "2020-02-05T14:48:08Z")

</div>

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