How to kill completely the kibana process?


(Yaswanth ) #1

I tried this ps -ef | grep kibana and find the process but even though i killed by using kill -9 <pid>but still it is running in different pid's.

admin@kibana:/var/log$ ps -ef | grep kibana
root     41202     1  0 04:52 ?        00:00:06 /opt/kibana/bin/../node/bin/node /opt/kibana/bin/../src/cli
root     50196     1  0 05:26 ?        00:00:00 /bin/sh -e -c /opt/kibana/bin/kibana /bin/sh
root     50197 50196 61 05:26 ?        00:00:00 /opt/kibana/bin/../node/bin/node /opt/kibana/bin/../src/cli
admin  50206 46555  0 05:26 pts/7    00:00:00 grep --color=auto kibana
admin@kibana:/var/log$ ps -ef | grep 5806
admin  50292 46555  0 05:26 pts/7    00:00:00 grep --color=auto 5806

When i see in logs it is showing error like this

{"type":"log","@timestamp":"2017-04-21T05:20:47Z","tags":["fatal"],"pid":48717,"level":"fatal","message":"listen EADDRINUSE 0.0.0.0:5806","error":{"message":"listen EADDRINUSE 0.0.0.0:5806","name":"Error","stack":"Error: listen EADDRINUSE 0.0.0.0:5806\n at Object.exports._errnoException (util.js:873:11)\n at exports._exceptionWithHostPort (util.js:896:20)\n at Server._listen2 (net.js:1250:14)\n at listen (net.js:1286:10)\n at net.js:1395:9\n at nextTickCallbackWith3Args (node.js:453:9)\n at process._tickDomainCallback (node.js:400:17)","code":"EADDRINUSE"}}

Thanks


(Brandon Kobel) #2

Hey @Yaswanth, how did you install Kibana? If you installed it using a deb/rpm, and you're running it via sysvinit/systemd/upstart, it will automatically restart the process when you stop it.


(Yaswanth ) #3

Thanks @Brandon_Kobel

It was installed through debian but i dont know via on which it is running on [quote="Brandon_Kobel, post:2, topic:83063"]
it will automatically restart the process when you stop it
[/quote]

Then how can i restart kibana, suppose if i updated anything in kibana.yml file like passwords etc.


(Brandon Kobel) #4

@Yaswanth if you type service kibana status do you see that it's running? If it is running, you can stop it using service kibana stop. Likewise, you can restart it by doing service kibana restart.


(Yaswanth ) #5

Thanks

When i tried service kibana stop it is showing that process is running in some pid number . And when i tried service kibana restart it is showing the process is already running.

May be this stop and restart will work internally , means if i do [quote="Brandon_Kobel, post:4, topic:83063"]
service kibana stop
[/quote]

if stops and automatically starts.

And if i do [quote="Brandon_Kobel, post:4, topic:83063"]
service kibana restart
[/quote]

it restarts internally and shows it is already running

Whether my interpretation is correct?

Because in ES i am able to see the status that the process is stopped and started but here i cant able to see that .

Thanks


(Brandon Kobel) #6

@Yaswanth, would you mind posting the output that you get when running service kibana status and then service kibana stop?


(system) #7

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