# Kibana fails to create kibana.pid in /var/run

**URL:** <https://discuss.elastic.co/t/kibana-fails-to-create-kibana-pid-in-var-run/267247>\
**Category:** Kibana\
**Created:** [March 15, 2021, 11:12am UTC](https://discuss.elastic.co/t/kibana-fails-to-create-kibana-pid-in-var-run/267247 "2021-03-15T11:12:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![m-b79](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m-b79/32/78264_2.png) [@m-b79](https://discuss.elastic.co/u/m-b79)\
**Post date:** [March 15, 2021, 11:12am UTC](https://discuss.elastic.co/t/kibana-fails-to-create-kibana-pid-in-var-run/267247/1 "2021-03-15T11:12:12Z")

</div>

Hi,

I am a beginner with ELK and since I've updated my Ubuntu 20.04, I have the following problem:  
When I want to start kibana it fails and when I check the logs it says "[Error: ENOENT: no such file or directory, open '/run/kibana/kibana.pid']". So I checked in /var/run if the file was there and it wasn't. I created a kibana directory and restarted kibana.service. Kibana was working but the problem is that I have to create that same directory every time I reboot.

I already tried to solve the problem according to that topic: [When restarting my machine Kibana pid file is removed automatically](https://discuss.elastic.co/t/when-restarting-my-machine-kibana-pid-file-is-removed-automatically/143686), but removing 'pid.file' in kibana.yml didn't change anything.

Thank you.

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [March 22, 2021, 12:58pm UTC](https://discuss.elastic.co/t/kibana-fails-to-create-kibana-pid-in-var-run/267247/2 "2021-03-22T12:58:43Z")

</div>

@m-b79 what is the version of Kibana you are using? How have you installed it?

Cheers

---

<div class="post-metadata">

**Author:** ![m-b79](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m-b79/32/78264_2.png) [@m-b79](https://discuss.elastic.co/u/m-b79)\
**Post date:** [March 24, 2021, 8:26am UTC](https://discuss.elastic.co/t/kibana-fails-to-create-kibana-pid-in-var-run/267247/3 "2021-03-24T08:26:24Z")

</div>

Hi tiago, thanks for answering, here is my current version of kibana :

"version" : {  
"number" : "7.11.2",

I've installed it by following the steps at '[Install Kibana with Debian package | Kibana Guide [7.12] | Elastic](https://www.elastic.co/guide/en/kibana/current/deb.html)'

For now I use a shell script to create the kibana directory in '/var/run' automatically at startup. It works with the following script :

#!/bin/bash

cd /var/run  
sudo mkdir kibana  
sudo chmod 774 kibana

But without this script kibana is unable to create the kibana.pid file at startup.

---

<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:** [April 21, 2021, 8:26am UTC](https://discuss.elastic.co/t/kibana-fails-to-create-kibana-pid-in-var-run/267247/4 "2021-04-21T08:26:54Z")

</div>

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