# Nginx issue, when i am stop and starting the app getting "502 Bad Gateway"

**URL:** <https://meta.discourse.org/t/nginx-issue-when-i-am-stop-and-starting-the-app-getting-502-bad-gateway/303838>\
**Category:** Self-hosting\
**Created:** [April 15, 2024, 9:13am UTC](https://meta.discourse.org/t/nginx-issue-when-i-am-stop-and-starting-the-app-getting-502-bad-gateway/303838 "2024-04-15T09:13:53Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [April 15, 2024, 8:40pm UTC](https://meta.discourse.org/t/nginx-issue-when-i-am-stop-and-starting-the-app-getting-502-bad-gateway/303838/13 "2024-04-15T20:40:11Z")

</div>

> [@amsaal](#):
>
> yes so after rebuild process is complete after 30 seconds , the site was not working 502 gateway error

You wouldn’t get a 502 if the container wasn’t running. If you had waited a bit more the site would have started working.

> [@amsaal](#):
>
> then i did /launch restart app with launch start app then it works.

It’s not that stopping and starting did anything, it’s just that you waited long when you did the restart.

It is expected that you will have a 502 error for a period of time while the container starts up. You don’t have a problem.

---

_[View the full topic](https://meta.discourse.org/t/nginx-issue-when-i-am-stop-and-starting-the-app-getting-502-bad-gateway/303838)._
