# 502 Bad Gateway, all'improvviso

**URL:** <https://meta.discourse.org/t/502-bad-gateway-suddenly/55956>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [18 Gennaio 2017, 9:42am UTC](https://meta.discourse.org/t/502-bad-gateway-suddenly/55956 "2017-01-18T09:42:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Vereos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vereos/32/66524_2.png) [@Vereos](https://meta.discourse.org/u/Vereos)\
**Post date:** [18 Gennaio 2017, 9:42am UTC](https://meta.discourse.org/t/502-bad-gateway-suddenly/55956/1 "2017-01-18T09:42:24Z")

</div>

Hello there.

Yesterday my Discourse forum was working fine: it’s more than one year that runs successfully on a Digital Ocean machine and I never had problems.

Before going to sleep yesterday, I checked my forum and all was fine. I wake up this morning and I get a 502 Bad Gateway error. I didn’t attempt to upgrade, and not even some kind of operation on the VM.

I mean… how is this even possible? I am clueless.

I tried to do a `./launcher restart app` but it didn’t help, so I ran a `./launcher rebuild app` and I get this:

> root@Forum:/var/discourse# ./launcher rebuild app  
> Ensuring launcher is up to date  
> Fetching origin  
> remote: Counting objects: 154, done.  
> remote: Total 154 (delta 67), reused 67 (delta 67), pack-reused 86  
> Receiving objects: 100% (154/154), 19.20 KiB | 0 bytes/s, done.  
> Resolving deltas: 100% (109/109), completed with 23 local objects.  
> From [GitHub - discourse/discourse\_docker: A Docker image for Discourse · GitHub](https://github.com/discourse/discourse_docker)  
> 12fa363..1f5042f master → origin/master

- [new branch] configurable-pg-sleep → origin/configurable-pg-sleep
- [new branch] launcher-env-vars → origin/launcher-env-vars
- [new branch] pg\_ctl → origin/pg\_ctl
- [new branch] user-args-for-last → origin/user-args-for-last  
Updating Launcher  
Updating 12fa363..1f5042f  
Fast-forward  
image/base/Dockerfile | 19 ++++++++±—  
image/base/VERSION | 2 ±  
image/base/install-imagemagick | 2 ±  
image/base/install-nginx | 2 ++  
image/build.rb | 2 ±  
image/discourse/Dockerfile | 4 ±-  
image/discourse\_bench/Dockerfile | 4 ±-  
image/discourse\_dev/Dockerfile | 12 +++++±-  
image/discourse\_dev/ensure-database | 2 ++  
image/discourse\_dev/postgres\_dev.template.yml | 41 +++++++++++++++++++++++++++  
image/discourse\_fast\_switch/Dockerfile | 4 ±-  
image/discourse\_test/Dockerfile | 4 ±-  
launcher | 8 ++±–  
templates/web.letsencrypt.ssl.template.yml | 5 +±-  
templates/web.template.yml | 2 ±  
15 files changed, 87 insertions(+), 26 deletions(-)  
create mode 100644 image/discourse\_dev/postgres\_dev.template.yml

> WARNING: We are about to start downloading the Discourse base image  
> This process may take anywhere between a few minutes to an hour, depending on your network speed

> Please be patient

> Unable to find image ‘discourse/discourse:1.3.10’ locally  
> 1.3.10: Pulling from discourse/discourse  
> ba66ef388b03: Pulling fs layer  
> 82f56b9b0da9: Pulling fs layer  
> 82f56b9b0da9: Verifying Checksum  
> 82f56b9b0da9: Download complete  
> ba66ef388b03: Verifying Checksum  
> ba66ef388b03: Download complete  
> Pulling repository [docker.io/discourse/discourse](http://docker.io/discourse/discourse)  
> Tag 1.3.10 not found in repository [docker.io/discourse/discourse](http://docker.io/discourse/discourse)  
> Your Docker installation is not working correctly

> See: [Troubleshoot docker installation issues](https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18)

It looks like this error is Docker-related but I wouldn’t know how to solve it. Any help?

---

_[View the full topic](https://meta.discourse.org/t/502-bad-gateway-suddenly/55956)._
