# Errno::ENOMEM: Cannot allocate memory

**URL:** <https://meta.discourse.org/t/errno-cannot-allocate-memory/43736>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [May 5, 2016, 2:32pm UTC](https://meta.discourse.org/t/errno-cannot-allocate-memory/43736 "2016-05-05T14:32:01Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![avorio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/avorio/32/120939_2.png) [@avorio](https://meta.discourse.org/u/avorio)\
**Post date:** [May 5, 2016, 10:32pm UTC](https://meta.discourse.org/t/errno-cannot-allocate-memory/43736/6 "2016-05-05T22:32:43Z")

</div>

I got exactly the same error. Here’s the output:

```
Compressing: docker-manager-app-c32d676193f61b3085ec0e77f8d9fca361291a549828d82d1e33c356786f8ca0.js
gzip /var/www/discourse/public/assets/docker-manager-app-c32d676193f61b3085ec0e77f8d9fca361291a549828d82d1e33c356786f8ca0.js
Bundling assets
Compressing Javascript and Generating Source Maps
rake aborted!
Errno::ENOMEM: Cannot allocate memory - gzip -f -c -7 /var/www/discourse/public/assets/docker-manager-app-c32d676193f61b3085ec0e77f8d9fca361291a549828d82d1e33c356786f8ca0.js > /var/www/discourse/public/assets/docker-manager-app-c32d676193f61b3085ec0e77f8d9fca361291a549828d82d1e33c356786f8ca0.js.gz
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``'
/var/www/discourse/lib/tasks/assets.rake:108:in `gzip'
/var/www/discourse/lib/tasks/assets.rake:149:in `block (2 levels) in '
/var/www/discourse/lib/tasks/assets.rake:130:in `each'
/var/www/discourse/lib/tasks/assets.rake:130:in `block in '
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

```

And here’s `free -m`:

```
root@xyz:~# free -m
             total used free shared buffers cached
Mem: 2000 1586 414 36 63 276
-/+ buffers/cache: 1246 754
Swap: 0 0 0
root@xyz:~#

```

However, now `admin/upgrade` says that `docker_manager` is up to date:

`docker_manager (9b59950)`

---

_[View the full topic](https://meta.discourse.org/t/errno-cannot-allocate-memory/43736)._
