# Logstash fails with error on logstash-core-plugin-api.gemspec

**URL:** <https://discuss.elastic.co/t/logstash-fails-with-error-on-logstash-core-plugin-api-gemspec/226054>\
**Category:** Logstash\
**Created:** [April 1, 2020, 1:13pm UTC](https://discuss.elastic.co/t/logstash-fails-with-error-on-logstash-core-plugin-api-gemspec/226054 "2020-04-01T13:13:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fionamacd1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fionamacd1/32/65486_2.png) [@fionamacd1](https://discuss.elastic.co/u/fionamacd1)\
**Post date:** [April 1, 2020, 1:13pm UTC](https://discuss.elastic.co/t/logstash-fails-with-error-on-logstash-core-plugin-api-gemspec/226054/1 "2020-04-01T13:13:19Z")

</div>

Hi,  
I updated our logstash to use OpenJDK11 and it was working fine for a few days. Then logs files grew too big and disk space got eaten. I removed the extra log files, turned down the log level and still getting this error:

```auto
Apr 01 12:49:51 ip-161-161-0-196 logstash[17272]: [ERROR] 2020-04-01 12:49:51.578 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (GemspecError)
Apr 01 12:49:51 ip-161-161-0-196 logstash[17272]: [!] There was an error while loading `logstash-core-plugin-api.gemspec`: load error: psych -- java.lang.RuntimeException: BUG: we can not copy embedded jar to temp directory
Apr 01 12:49:51 ip-161-161-0-196 logstash[17272]: Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.
Apr 01 12:49:51 ip-161-161-0-196 systemd[1]: logstash.service: Main process exited, code=exited, status=1/FAILURE

```

I did an apt install jruby and then tried to get gemspec, but it is looking for it in Java8 which I uninstalled already:

```auto
ubuntu:~$ jruby -S gem install logstash-core-plugin-api.gemspec
/usr/bin/jruby: line 418: /usr/lib/jvm/java-8-oracle/bin/java: No such file or directory

```

I tried multiple reboot all to no avail - got any thoughts?  
logstash 6.8.7  
Platform Ubuntu 18.04.4 LTS  
Java OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing)

---

<div class="post-metadata">

**Author:** ![fionamacd1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fionamacd1/32/65486_2.png) [@fionamacd1](https://discuss.elastic.co/u/fionamacd1)\
**Post date:** [April 1, 2020, 8:58pm UTC](https://discuss.elastic.co/t/logstash-fails-with-error-on-logstash-core-plugin-api-gemspec/226054/2 "2020-04-01T20:58:37Z")

</div>

Finally got it working by uninstalling ruby and logstash, and then reinstalling logstash package again.  
Don't know what caused it to break in the first place, so I will just have to monitor and make sure it remains stable for a few weeks.

---

<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:** [April 29, 2020, 8:59pm UTC](https://discuss.elastic.co/t/logstash-fails-with-error-on-logstash-core-plugin-api-gemspec/226054/3 "2020-04-29T20:59:12Z")

</div>

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