# Logstash can't start afer upgrading VM

**URL:** <https://discuss.elastic.co/t/logstash-cant-start-afer-upgrading-vm/98679>\
**Category:** Logstash\
**Created:** [August 29, 2017, 12:12pm UTC](https://discuss.elastic.co/t/logstash-cant-start-afer-upgrading-vm/98679 "2017-08-29T12:12:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yami](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@yami](https://discuss.elastic.co/u/yami)\
**Post date:** [August 29, 2017, 12:12pm UTC](https://discuss.elastic.co/t/logstash-cant-start-afer-upgrading-vm/98679/1 "2017-08-29T12:12:42Z")

</div>

Before it worked fine, then VM was added a more processors and this occurs

[root@localhost logstash]# bin/logstash -f centralLogstash.conf --quiet --path.data usr/share/logstash/tmp  
Invalid file name for use with -Xloggc: Filename can only contain the characters [A-Z][a-z][0-9]-\_.%[p|t] but it has been ${LS\_GC\_LOG\_FILE}  
Note %p or %t can only be used once  
Error: Could not create the Java Virtual Machine.  
Error: A fatal exception has occurred. Program will exit.  
[root@localhost logstash]#

What can be the reason ?

[root@localhost config]# ls  
jvm.options log4j2.properties logstash.yml startup.options  
[root@localhost config]# pwd  
/usr/share/logstash/config  
[root@localhost config]# vi jvm.options

(...)  
**# log GC status to a file with time stamps**  
**# ensure the directory exists**  
**#-Xloggc:${LS\_GC\_LOG\_FILE}**

Logstash 5.2.2

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [September 4, 2017, 11:05am UTC](https://discuss.elastic.co/t/logstash-cant-start-afer-upgrading-vm/98679/2 "2017-09-04T11:05:22Z")

</div>

> [@yami](#):
>
> #-Xloggc:${LS\_GC\_LOG\_FILE}

The `#` indicated that it is commented out.

Are you running LS as a package? I am wondering if LS is picking up a different config dir than the one you have shown here.

---

<div class="post-metadata">

**Author:** ![yami](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@yami](https://discuss.elastic.co/u/yami)\
**Post date:** [September 4, 2017, 12:12pm UTC](https://discuss.elastic.co/t/logstash-cant-start-afer-upgrading-vm/98679/3 "2017-09-04T12:12:18Z")

</div>

> [@guyboertje](#):
>
> I am wondering if LS is picking up a different config dir than the one you have shown here.

Yeah, probbably it was taking config from etc/logstash

I installed it as RPM - still dont know why it takes another config file.

thanks - now it works.

---

<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:** [October 2, 2017, 12:12pm UTC](https://discuss.elastic.co/t/logstash-cant-start-afer-upgrading-vm/98679/4 "2017-10-02T12:12:29Z")

</div>

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