# Pipeline error {:pipeline\_id=\>"main", :exception=\>#\<NoMethodError: undefined method \`close' for nil:NilClass\>

**URL:** <https://discuss.elastic.co/t/pipeline-error-pipeline-id-main-exception-nomethoderror-undefined-method-close-for-nil-nilclass/296706>\
**Category:** Logstash\
**Created:** [February 9, 2022, 10:09am UTC](https://discuss.elastic.co/t/pipeline-error-pipeline-id-main-exception-nomethoderror-undefined-method-close-for-nil-nilclass/296706 "2022-02-09T10:09:21Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![Dark\_Man](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dark_man/32/99119_2.png) [@Dark\_Man](https://discuss.elastic.co/u/Dark_Man)\
**Post date:** [February 21, 2022, 4:48am UTC](https://discuss.elastic.co/t/pipeline-error-pipeline-id-main-exception-nomethoderror-undefined-method-close-for-nil-nilclass/296706/48 "2022-02-21T04:48:10Z")

</div>

@Badger As I understood you correctly, do you mean I need to use the `--path.settings /etc/logstash` at this command: `sudo bin/logstash --path.settings=/etc/logstash`?

---

<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:** [February 21, 2022, 4:30pm UTC](https://discuss.elastic.co/t/pipeline-error-pipeline-id-main-exception-nomethoderror-undefined-method-close-for-nil-nilclass/296706/49 "2022-02-21T16:30:25Z")

</div>

Yes. If you do that then it will use the logstash.yml that you want it to.

---

<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:** [February 22, 2022, 3:08am UTC](https://discuss.elastic.co/t/pipeline-error-pipeline-id-main-exception-nomethoderror-undefined-method-close-for-nil-nilclass/296706/51 "2022-02-22T03:08:42Z")

</div>

Yep, that looks normal. The pipeline is running and if any data arrives then it will process it.

---

<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:** [February 22, 2022, 3:20am UTC](https://discuss.elastic.co/t/pipeline-error-pipeline-id-main-exception-nomethoderror-undefined-method-close-for-nil-nilclass/296706/53 "2022-02-22T03:20:52Z")

</div>

There are many threads in this forum that explain how to address that error message.

---

<div class="post-metadata">

**Author:** ![Dark\_Man](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dark_man/32/99119_2.png) [@Dark\_Man](https://discuss.elastic.co/u/Dark_Man)\
**Post date:** [February 23, 2022, 9:50am UTC](https://discuss.elastic.co/t/pipeline-error-pipeline-id-main-exception-nomethoderror-undefined-method-close-for-nil-nilclass/296706/56 "2022-02-23T09:50:06Z")

</div>

@Badger thank you! I found problem. Now everything is ok, I kill process, and it started.

---

<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:** [March 23, 2022, 9:50am UTC](https://discuss.elastic.co/t/pipeline-error-pipeline-id-main-exception-nomethoderror-undefined-method-close-for-nil-nilclass/296706/57 "2022-03-23T09:50:34Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/pipeline-error-pipeline-id-main-exception-nomethoderror-undefined-method-close-for-nil-nilclass/296706.md?page=2)
