# Ultimate ERRNOMEM while upgrading

**URL:** https://meta.discourse.org/t/ultimate-errnomem-while-upgrading/44685
**Category:** Support
**Created:** [May 23, 2016, 4:41pm UTC](https://meta.discourse.org/t/ultimate-errnomem-while-upgrading/44685 "2016-05-23T16:41:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vulkanino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vulkanino/32/119654_2.png) [@vulkanino](https://meta.discourse.org/u/vulkanino)
#### Post date: [May 23, 2016, 4:41pm UTC](https://meta.discourse.org/t/ultimate-errnomem-while-upgrading/44685/1 "2016-05-23T16:41:48Z")

</div>

Gents,

I am to a point that I can’t upgrade Discourse anymore. With the previous updates it gave me ENOMEM sometimes, but retrying (couple of times) the upgrade went ok, with increasing effort. Today I’m trying to upgrade but the ENOMEM is fired each time.

I have the 2GB swap thing, but a poorish 1GB of RAM.

`Errno::ENOMEM: Cannot allocate memory - gzip ...`

Funny thing is that the version displayed looks similar to the latest:

 ![](https://global.discourse-cdn.com/meta/original/3X/f/1/f166d1a9e5be62789f7c39a997fe81a7695c9760.png)

❓

---

<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: [May 23, 2016, 10:40pm UTC](https://meta.discourse.org/t/ultimate-errnomem-while-upgrading/44685/2 "2016-05-23T22:40:07Z")

</div>

Are you upgrading from the command line? Maybe try that if you haven’t.

If you are already upgrading from command line:

```
./launcher stop app

```

reboot, then try the upgrade procedure with the app stopped:

```
cd /var/discourse
git pull
./launcher rebuild app

```

---

<div class="post-metadata">

### Author: ![vulkanino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vulkanino/32/119654_2.png) [@vulkanino](https://meta.discourse.org/u/vulkanino)
#### Post date: [May 24, 2016, 9:31am UTC](https://meta.discourse.org/t/ultimate-errnomem-while-upgrading/44685/3 "2016-05-24T09:31:19Z")

</div>

It gave me some errors but then upgraded fine.

---

<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: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/ultimate-errnomem-while-upgrading/44685/4 "2024-06-08T12:45:34Z")

</div>

This topic was automatically closed after 2937 days. New replies are no longer allowed.
