# Logstash Issue

**URL:** <https://discuss.elastic.co/t/logstash-issue/322960>\
**Category:** Logstash\
**Created:** [January 11, 2023, 5:07pm UTC](https://discuss.elastic.co/t/logstash-issue/322960 "2023-01-11T17:07:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amulya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amulya/32/106634_2.png) [@amulya](https://discuss.elastic.co/u/amulya)\
**Post date:** [January 11, 2023, 5:07pm UTC](https://discuss.elastic.co/t/logstash-issue/322960/1 "2023-01-11T17:07:12Z")

</div>

Starting Logstash for the first time in linux machine

```auto
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.

```

Should I create any temp directory or copy any specific jar in the directory?

---

<div class="post-metadata">

**Author:** ![sai\_saran1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sai_saran1/32/116661_2.png) [@sai\_saran1](https://discuss.elastic.co/u/sai_saran1)\
**Post date:** [January 11, 2023, 5:14pm UTC](https://discuss.elastic.co/t/logstash-issue/322960/2 "2023-01-11T17:14:45Z")

</div>

You don't have to manually create or place any jar file. Logstash will automatically create all those necessary things.  
Check if the user(where logstash is hosted) has permission to access temp folder, if yes you can check the space in the temp storage, that might be causing the issue.

---

<div class="post-metadata">

**Author:** ![amulya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amulya/32/106634_2.png) [@amulya](https://discuss.elastic.co/u/amulya)\
**Post date:** [January 11, 2023, 6:00pm UTC](https://discuss.elastic.co/t/logstash-issue/322960/3 "2023-01-11T18:00:53Z")

</div>

Yes, I have changed Logstash to different user which has root access and it started without any error. 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:** [February 8, 2023, 6:01pm UTC](https://discuss.elastic.co/t/logstash-issue/322960/4 "2023-02-08T18:01:07Z")

</div>

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