# Update to latest version error

**URL:** https://meta.discourse.org/t/update-to-latest-version-error/218877
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [February 20, 2022, 1:44pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877 "2022-02-20T13:44:10Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![daming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daming/32/246799_2.png) [@daming](https://meta.discourse.org/u/daming)
#### Post date: [February 20, 2022, 1:44pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/1 "2022-02-20T13:44:10Z")

</div>

When I upgrade the version of discourse from 2.8.0 to 2.9.0 it always shows this error.  
OS is centos 8.0，1C2G  
Can someone help me？

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

[error.txt](https://meta.discourse.org/uploads/short-url/88X0XCGpQUIHPOtCgOsbTN5MF8u.txt) (3.3 KB)

---

<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: [February 20, 2022, 2:02pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/2 "2022-02-20T14:02:41Z")

</div>

How did you install?

The error is above what you showed.

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [February 20, 2022, 2:05pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/3 "2022-02-20T14:05:10Z")

</div>

My Centos is a bit rusty, but try and run the update

- `sudo dnf makecache`
- `sudo dnf update`
- `sudo dnf upgrade`

---

<div class="post-metadata">

### Author: ![daming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daming/32/246799_2.png) [@daming](https://meta.discourse.org/u/daming)
#### Post date: [February 20, 2022, 2:39pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/4 "2022-02-20T14:39:40Z")

</div>

OK  
I updated the post

---

<div class="post-metadata">

### Author: ![daming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daming/32/246799_2.png) [@daming](https://meta.discourse.org/u/daming)
#### Post date: [February 20, 2022, 2:43pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/5 "2022-02-20T14:43:44Z")

</div>

OK, thanks. I will try.

---

<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: [February 20, 2022, 2:56pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/6 "2022-02-20T14:56:29Z")

</div>

I think error code 137 is out of memory?

There was a recent topic with a similar issue that might help:

> [@Failed to upgrade discourse instance to Feb 15 2022](https://meta.discourse.org/t/failed-to-upgrade-discourse-instance-to-feb-15-2022/218204):
>
> Upgrading from [Commits · discourse/discourse · GitHub](https://github.com/discourse/discourse/commits/55007fbf5597e8d6c52464b93f519794bd9fb516) to the latest has caused the site to go down, here is notable segments of the logs: I, [2022-02-15T05:27:48.995821 #1] INFO -- : Replacing (?-mix:^host.\*all.\*all.\*127.\*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg\_hba.conf I, [2022-02-15T05:27:48.997476 #1] INFO -- : Replacing (?-mix:^host.\*all.\*all.\*::1\/128.\*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg\_hba.conf I, [2022-02-15T05:27:48.998553 #1] INFO --…

---

<div class="post-metadata">

### Author: ![daming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daming/32/246799_2.png) [@daming](https://meta.discourse.org/u/daming)
#### Post date: [February 20, 2022, 3:14pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/8 "2022-02-20T15:14:36Z")

</div>

Fine, maybe you are right  
Few month later I will update my sever

---

<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: [February 20, 2022, 3:28pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/9 "2022-02-20T15:28:00Z")

</div>

If you read through that topic, there were a couple of workarounds you could try beforehand?

---

<div class="post-metadata">

### Author: ![daming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daming/32/246799_2.png) [@daming](https://meta.discourse.org/u/daming)
#### Post date: [February 20, 2022, 4:28pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/11 "2022-02-20T16:28:26Z")

</div>

Yeah, sure! Thank you

---

<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: [February 20, 2022, 4:54pm UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/12 "2022-02-20T16:54:44Z")

</div>

Are you up and running again? 🤞

---

<div class="post-metadata">

### Author: ![daming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daming/32/246799_2.png) [@daming](https://meta.discourse.org/u/daming)
#### Post date: [February 21, 2022, 1:40am UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/13 "2022-02-21T01:40:16Z")

</div>

No, I will try again after upgrading the server configuration in two to three months.

---

<div class="post-metadata">

### Author: ![balupton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/balupton/32/255461_2.png) [@balupton](https://meta.discourse.org/u/balupton)
#### Post date: [February 21, 2022, 3:48am UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/14 "2022-02-21T03:48:44Z")

</div>

If your server doesn’t have swap, which you can check on your server by running the `free` command, then you could add swap rather than upgrading your server:

> [@Failed to upgrade discourse instance to Feb 15 2022](https://meta.discourse.org/t/failed-to-upgrade-discourse-instance-to-feb-15-2022/218204/13):
>
> You need to add some swap. Looks like you have plenty of disk, so you could add 2G or even 3G for safety. The discourse standard setup should, I think, have already set up the swap for you. Perhaps see [Create a swapfile for your Linux server](https://meta.discourse.org/t/create-a-swapfile-for-your-linux-server/13880)

---

<div class="post-metadata">

### Author: ![daming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daming/32/246799_2.png) [@daming](https://meta.discourse.org/u/daming)
#### Post date: [February 21, 2022, 5:51am UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/15 "2022-02-21T05:51:15Z")

</div>

Thanks, I will try In the weekend.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 23, 2022, 5:51am UTC](https://meta.discourse.org/t/update-to-latest-version-error/218877/16 "2022-03-23T05:51:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
