# Nginx 502 bad gateway, and kibana restarting

**URL:** <https://discuss.elastic.co/t/nginx-502-bad-gateway-and-kibana-restarting/344858>\
**Category:** Kibana\
**Created:** [October 12, 2023, 2:17am UTC](https://discuss.elastic.co/t/nginx-502-bad-gateway-and-kibana-restarting/344858 "2023-10-12T02:17:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 12, 2023, 2:45am UTC](https://discuss.elastic.co/t/nginx-502-bad-gateway-and-kibana-restarting/344858/2 "2023-10-12T02:45:27Z")

</div>

Closed Duplicate of

> [@Nginx "502 Bad gateway"](https://discuss.elastic.co/t/nginx-502-bad-gateway/344855):
>
> My stack is not working and when I login I receive this message nginx "502 Bad gateway". I have checked the kibana service and I found it continously restarting. tailing logs for kibana I found " di@dar-elk-7:~$ tail /var/log/kibana/kibana.log tail: cannot open '/var/log/kibana/kibana.log' for reading: Permission denied di@dar-elk-7:~$ sudo tail /var/log/kibana/kibana.log {"type":"log","@timestamp":"2023-10-12T03:54:22+02:00","tags":["info","savedobjects-service"],"pid":43929,"message":"[.…

---

_[View the full topic](https://discuss.elastic.co/t/nginx-502-bad-gateway-and-kibana-restarting/344858)._
