# 502 Bad Gateway - failed to update

**URL:** https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585
**Category:** Self-hosting
**Created:** [27 Gennaio 2016, 5:32pm UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585 "2016-01-27T17:32:24Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![M\_c\_Tau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m_c_tau/32/134836_2.png) [@M\_c\_Tau](https://meta.discourse.org/u/M_c_Tau)
#### Post date: [27 Gennaio 2016, 5:32pm UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/1 "2016-01-27T17:32:24Z")

</div>

Hi guys!  
I got failed during upgrading process from the admin. And then I tried to rebuild again, but I face constant problem:

> Layer already being pulled by another client. Waiting.

 ![](https://global.discourse-cdn.com/meta/original/3X/0/5/0534c4beb0e9d929334ce47146f365c57e3c2047.png)

Someone please help me ☹

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27 Gennaio 2016, 5:35pm UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/2 "2016-01-27T17:35:23Z")

</div>

Not sure, try rebooting. Or waiting a while.

---

<div class="post-metadata">

### Author: ![M\_c\_Tau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m_c_tau/32/134836_2.png) [@M\_c\_Tau](https://meta.discourse.org/u/M_c_Tau)
#### Post date: [27 Gennaio 2016, 5:37pm UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/3 "2016-01-27T17:37:25Z")

</div>

Rebooting does not help. I leave it for 12 hours and then get no difference ☹

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [27 Gennaio 2016, 8:20pm UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/4 "2016-01-27T20:20:40Z")

</div>

Try uninstalling docker and reinstalling latest

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27 Gennaio 2016, 8:21pm UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/5 "2016-01-27T20:21:41Z")

</div>

Good idea try `docker --version` and `docker --info` as well.

---

<div class="post-metadata">

### Author: ![M\_c\_Tau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m_c_tau/32/134836_2.png) [@M\_c\_Tau](https://meta.discourse.org/u/M_c_Tau)
#### Post date: [28 Gennaio 2016, 5:17am UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/6 "2016-01-28T05:17:26Z")

</div>

@sam, @codinghorror  
The system automatically generate the app.ml.save, and the app.yml becomes empty totally.

 ![](https://global.discourse-cdn.com/meta/original/3X/5/0/505877a1f8c365576209a855ff029f0eef76c5a4.png)

I deleted the app.yml, then transfer an original app.yml. And then it becomes empty with the size of 0.  
I try nano containers/app.yml to modify it. After adding the content, it can not be saved by the error of “No space left on device”

 ![](https://global.discourse-cdn.com/meta/original/3X/3/b/3b007324fcea51ad21aaffbec1813294e1a4fc1e.png)

Please help me guys @@

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [28 Gennaio 2016, 5:24am UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/7 "2016-01-28T05:24:18Z")

</div>

The error in nano says “No space left on device”. Have you checked that you haven’t run out of disk space?

---

<div class="post-metadata">

### Author: ![M\_c\_Tau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m_c_tau/32/134836_2.png) [@M\_c\_Tau](https://meta.discourse.org/u/M_c_Tau)
#### Post date: [28 Gennaio 2016, 5:41am UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/8 "2016-01-28T05:41:33Z")

</div>

Of course! I still have more than 10Gb of available disk ☹

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [28 Gennaio 2016, 5:43am UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/9 "2016-01-28T05:43:28Z")

</div>

Well, that’s all I’ve got. I would recommend that you run `docker -- version` and `docker --info` for @codinghorror though, the results can be very helpful for them to see what is going on.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [28 Gennaio 2016, 7:15am UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/10 "2016-01-28T07:15:30Z")

</div>

What does the `df -h` command return?

---

<div class="post-metadata">

### Author: ![M\_c\_Tau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m_c_tau/32/134836_2.png) [@M\_c\_Tau](https://meta.discourse.org/u/M_c_Tau)
#### Post date: [28 Gennaio 2016, 11:50am UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/11 "2016-01-28T11:50:49Z")

</div>

@codinghorror, @sam, @jomaxro  
I just want to let you guys know that the problems were solved by resizing my server for larger ram and disk.  
Thank you so much for kind helps 🙂

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [28 Gennaio 2016, 4:52pm UTC](https://meta.discourse.org/t/502-bad-gateway-failed-to-update/38585/12 "2016-01-28T16:52:06Z")

</div>


