# Discourse Upgrade fails every time

**URL:** https://meta.discourse.org/t/discourse-upgrade-fails-every-time/50295
**Category:** Support
**Created:** [9월 18, 2016, 3:24오후 UTC](https://meta.discourse.org/t/discourse-upgrade-fails-every-time/50295 "2016-09-18T15:24:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Yassine\_Yousfi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yassine_yousfi/32/195913_2.png) [@Yassine\_Yousfi](https://meta.discourse.org/u/Yassine_Yousfi)
#### Post date: [9월 18, 2016, 3:24오후 UTC](https://meta.discourse.org/t/discourse-upgrade-fails-every-time/50295/1 "2016-09-18T15:24:25Z")

</div>

Hi,

My upgrade fails everytime, here is a screenshot:

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

when left for sometime, the “upgrade” page and decedent pages are all not working and return “ERROR 500”.

i had to restart discourse to get the pages working again (fixing the error 500), but still the upgrade fails at the same position.

any help appreciated.

---

<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: [9월 18, 2016, 5:19오후 UTC](https://meta.discourse.org/t/discourse-upgrade-fails-every-time/50295/2 "2016-09-18T17:19:10Z")

</div>

Most likely out of memory. Make sure you have a 2gb swapfile. Upgrading is very memory intensive.

---

<div class="post-metadata">

### Author: ![Yassine\_Yousfi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yassine_yousfi/32/195913_2.png) [@Yassine\_Yousfi](https://meta.discourse.org/u/Yassine_Yousfi)
#### Post date: [9월 18, 2016, 5:36오후 UTC](https://meta.discourse.org/t/discourse-upgrade-fails-every-time/50295/3 "2016-09-18T17:36:55Z")

</div>

i checked i have 2GB memory on x86\_64 machine.

---

<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: [9월 18, 2016, 5:37오후 UTC](https://meta.discourse.org/t/discourse-upgrade-fails-every-time/50295/4 "2016-09-18T17:37:32Z")

</div>

Swapfile not memory. You need a 2gb swapfile unless you have 4gb of RAM.

---

<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: [9월 18, 2016, 8:08오후 UTC](https://meta.discourse.org/t/discourse-upgrade-fails-every-time/50295/5 "2016-09-18T20:08:22Z")

</div>

It’s more helpful to paste logs as text rather than pictures of them, especially when the text that holds the key is off the screen that you pasted.

See [this post](https://meta.discourse.org/t/create-a-swapfile-for-your-linux-server/13880) about configuring swap.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:45오후 UTC](https://meta.discourse.org/t/discourse-upgrade-fails-every-time/50295/6 "2024-06-08T12:45:21Z")

</div>

이 주제는 2819일 후 자동으로 닫혔습니다. 새로운 답글은 더 이상 허용되지 않습니다.
