# Installing Kibana from apt and fails to start

**URL:** <https://discuss.elastic.co/t/installing-kibana-from-apt-and-fails-to-start/124251>\
**Category:** Kibana\
**Created:** [March 16, 2018, 9:53am UTC](https://discuss.elastic.co/t/installing-kibana-from-apt-and-fails-to-start/124251 "2018-03-16T09:53:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sbu/32/27718_2.png) [@sbu](https://discuss.elastic.co/u/sbu)\
**Post date:** [March 16, 2018, 9:53am UTC](https://discuss.elastic.co/t/installing-kibana-from-apt-and-fails-to-start/124251/1 "2018-03-16T09:53:59Z")

</div>

Hi,

We're installing and starting Kibana, using the instructions here :-

[https://www.elastic.co/guide/en/kibana/current/deb.html#deb-repo](https://www.elastic.co/guide/en/kibana/current/deb.html#deb-repo)

However, it refuses to start as the kibana user. I would have expected this just to work.

It's using the systemd startup method, but will not start. I can't see why but I think it's a permissions problem with the kibana user. If I start as root, it runs fine. The kibana user doesn't have a shell even.

Interstingly in the syslog, it just start and stops continuously.

Mar 16 09:44:06 ukselastic0 systemd[1]: Stopped Kibana.  
Mar 16 09:44:06 ukselastic0 systemd[1]: Started Kibana.  
Mar 16 09:44:09 ukselastic0 systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE  
Mar 16 09:44:09 ukselastic0 systemd[1]: kibana.service: Unit entered failed state.  
Mar 16 09:44:09 ukselastic0 systemd[1]: kibana.service: Failed with result 'exit-code'.  
Mar 16 09:44:09 ukselastic0 systemd[1]: kibana.service: Service hold-off time over, scheduling restart.  
Mar 16 09:44:09 ukselastic0 systemd[1]: Stopped Kibana.  
Mar 16 09:44:09 ukselastic0 systemd[1]: Started Kibana.  
Mar 16 09:44:11 ukselastic0 systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE  
Mar 16 09:44:11 ukselastic0 systemd[1]: kibana.service: Unit entered failed state.  
Mar 16 09:44:11 ukselastic0 systemd[1]: kibana.service: Failed with result 'exit-code'.  
Mar 16 09:44:11 ukselastic0 systemd[1]: kibana.service: Service hold-off time over, scheduling restart.  
Mar 16 09:44:11 ukselastic0 systemd[1]: Stopped Kibana.  
Mar 16 09:44:11 ukselastic0 systemd[1]: Started Kibana.  
Mar 16 09:44:14 ukselastic0 systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE  
Mar 16 09:44:14 ukselastic0 systemd[1]: kibana.service: Unit entered failed state.  
Mar 16 09:44:14 ukselastic0 systemd[1]: kibana.service: Failed with result 'exit-code'.  
Mar 16 09:44:14 ukselastic0 systemd[1]: kibana.service: Service hold-off time over, scheduling restart.  
Mar 16 09:44:14 ukselastic0 systemd[1]: Stopped Kibana.

I notice the kibana user doesn't have a shell or a home directory, but even setting these up and trying to start kibana on the command line, just fails silently with a RC=1.

This is the LAST THING I need to get a fully automated Terraform build of Elastic, it's been quite a long slog. 😃

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [March 16, 2018, 5:40pm UTC](https://discuss.elastic.co/t/installing-kibana-from-apt-and-fails-to-start/124251/2 "2018-03-16T17:40:04Z")

</div>

Are you able to start the process successfully when SSH'd in using the kibana user or do you get the same error?

---

<div class="post-metadata">

**Author:** ![sbu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sbu/32/27718_2.png) [@sbu](https://discuss.elastic.co/u/sbu)\
**Post date:** [March 19, 2018, 12:21pm UTC](https://discuss.elastic.co/t/installing-kibana-from-apt-and-fails-to-start/124251/3 "2018-03-19T12:21:31Z")

</div>

Nope. I've added a shell to the kibana user so that I can switch to that user, and then ran kibana by hand using /usr/share/kibana/bin/kibana and it just drops back to the console with no error message. I get a return code of 1, but I can't see anything in any logs to indicate what's gone wrong.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [March 20, 2018, 5:26pm UTC](https://discuss.elastic.co/t/installing-kibana-from-apt-and-fails-to-start/124251/4 "2018-03-20T17:26:25Z")

</div>

@jbudz @tylersmalley Any ideas?

---

<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 17, 2018, 5:26pm UTC](https://discuss.elastic.co/t/installing-kibana-from-apt-and-fails-to-start/124251/5 "2018-04-17T17:26:43Z")

</div>

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