# Logstash Error due to libyaml

**URL:** <https://discuss.elastic.co/t/logstash-error-due-to-libyaml/177685>\
**Category:** Logstash\
**Created:** [April 20, 2019, 6:33am UTC](https://discuss.elastic.co/t/logstash-error-due-to-libyaml/177685 "2019-04-20T06:33:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johndowe](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@johndowe](https://discuss.elastic.co/u/johndowe)\
**Post date:** [April 20, 2019, 6:33am UTC](https://discuss.elastic.co/t/logstash-error-due-to-libyaml/177685/1 "2019-04-20T06:33:20Z")

</div>

I have setup logstash together with Filebeat on Raspberry Pi and found another stumbling block:  
Apr 19 13:49:32 raspberrypi logstash[22454]: org/jruby/RubyKernel.java:984: warning: It seems your ruby installation is missing psych (for YAML output).  
Apr 19 13:49:32 raspberrypi logstash[22454]: To eliminate this warning, please install libyaml and reinstall your ruby.  
Apr 19 13:49:32 raspberrypi logstash[22454]: [ERROR] 2019-04-19 13:49:32.960 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (GemspecError)  
Apr 19 13:49:32 raspberrypi logstash[22454]: [!] 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 19 13:49:32 raspberrypi logstash[22454]: Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.  
Apr 19 13:49:33 raspberrypi systemd[1]: logstash.service: main process exited, code=exited, status=1/FAILURE  
Apr 19 13:49:33 raspberrypi systemd[1]: Unit logstash.service entered failed state.  
Apr 19 13:49:33 raspberrypi systemd[1]: logstash.service holdoff time over, scheduling restart.  
Apr 19 13:49:33 raspberrypi systemd[1]: Stopping logstash...  
Apr 19 13:49:33 raspberrypi systemd[1]: Starting logstash...  
Apr 19 13:49:33 raspberrypi systemd[1]: Started logstash.

I have tried reinstalling ruby and also libyaml but to no avail. Found that it could be related to /tmp but permissions should be fine. Any further thoughts?

---

<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:** [May 18, 2019, 6:33am UTC](https://discuss.elastic.co/t/logstash-error-due-to-libyaml/177685/2 "2019-05-18T06:33:24Z")

</div>

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