# Kibana Service Not Stopping

**URL:** <https://discuss.elastic.co/t/kibana-service-not-stopping/144904>\
**Category:** Kibana\
**Created:** [August 17, 2018, 12:55pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904 "2018-08-17T12:55:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [August 17, 2018, 12:55pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/1 "2018-08-17T12:55:35Z")

</div>

I am having an odd issue when I type sercive kibana stop in my CentOS7 environment it says kibana stopped by when I run ps -ax | grep kibana it still shows up. If I try to kill the PID it starts a new pid. If I try to restart kibana, it says another instance of kibana is already running on 5601. Any suggestions?

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [August 17, 2018, 1:47pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/2 "2018-08-17T13:47:36Z")

</div>

Hey @adwaitjoshi,

Can you please provide a little bit more info:

- What is Kibana version you use?
- What is the content of your systemd service file?
- How do you run Kibana exactly?
- Can you paste the full output of `ps -ax | grep kibana`?

Also please try to run Kibana with `logging.vervose: true` and see if you notice anything suspicious in the output.

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [August 20, 2018, 11:41am UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/3 "2018-08-20T11:41:08Z")

</div>

I am using the latest 6.3

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/3/3307d33ea3be8bdfcb9b1b0ed171b54262bc5b32.png)

service kibana start/stop/restart

![image](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4c91ee6116708fbc27bd3eacfcc36c37b58c39df.png)

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![TheSmartMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thesmartmonkey/32/33965_2.png) [@TheSmartMonkey](https://discuss.elastic.co/u/TheSmartMonkey)\
**Post date:** [August 20, 2018, 1:34pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/4 "2018-08-20T13:34:08Z")

</div>

when you do `cat /var/run/kibana.pid` is you pid the same that the one who is running ? I think I had quite the same issue then yours [my issue](https://discuss.elastic.co/t/when-restarting-my-machine-kibana-pid-file-is-removed-automatically/143686)

---

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [August 20, 2018, 2:02pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/5 "2018-08-20T14:02:32Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a8f52480f4083ee29c0a9ba3b1281d833fac2fe1.png)

---

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [August 20, 2018, 2:09pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/6 "2018-08-20T14:09:38Z")

</div>

Looks like the kibana.pid is the issue. How did you resolve it? Just uncomment the line in kibana.yml?

---

<div class="post-metadata">

**Author:** ![TheSmartMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thesmartmonkey/32/33965_2.png) [@TheSmartMonkey](https://discuss.elastic.co/u/TheSmartMonkey)\
**Post date:** [August 20, 2018, 2:14pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/7 "2018-08-20T14:14:45Z")

</div>

Try to change the pid with vi or nano and put the same pid then your running Kibana and go to yourip:5601  
and show me wath are in you Kibana logs `cat /var/log/kibana/kibana.stderr`

---

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [August 20, 2018, 2:17pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/8 "2018-08-20T14:17:42Z")

</div>

So if I delete the file manually and start kibana it starts with no errors. The pid line in .yml is commented out. And for whatever reason now the pid of the process and pid file match! May be it got solved? I dont know

---

<div class="post-metadata">

**Author:** ![TheSmartMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thesmartmonkey/32/33965_2.png) [@TheSmartMonkey](https://discuss.elastic.co/u/TheSmartMonkey)\
**Post date:** [August 20, 2018, 2:18pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/9 "2018-08-20T14:18:48Z")

</div>

And when you restart Kibana it works fine ?

---

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [August 20, 2018, 4:33pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/10 "2018-08-20T16:33:13Z")

</div>

Now yes!

---

<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:** [September 17, 2018, 4:38pm UTC](https://discuss.elastic.co/t/kibana-service-not-stopping/144904/11 "2018-09-17T16:38:51Z")

</div>

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