# Forum upgrade crashing at Upgrade \`docker\_manager\`

**URL:** https://meta.discourse.org/t/forum-upgrade-crashing-at-upgrade-docker-manager/47909
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [7월 28, 2016, 7:03오전 UTC](https://meta.discourse.org/t/forum-upgrade-crashing-at-upgrade-docker-manager/47909 "2016-07-28T07:03:32Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![modius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/modius/32/108600_2.png) [@modius](https://meta.discourse.org/u/modius)
#### Post date: [8월 5, 2016, 6:41오전 UTC](https://meta.discourse.org/t/forum-upgrade-crashing-at-upgrade-docker-manager/47909/5 "2016-08-05T06:41:09Z")

</div>

> [@codinghorror](#):
>
> Make absolutely sure you have 2GB of swap space set up.

Just thought I’d update on my fix. Turns out you were right to check if there was a swap file in place – there was not.

> [@Create a swapfile for your Linux server](https://meta.discourse.org/t/create-a-swapfile-for-your-linux-server/13880):
>
> bulb For servers with \<= 4GB of RAM, running ./discourse-setup will prompt for and automatically create a 2GB swapfile. Most cloud virtual machine providers do not set up swapfiles as part of their server provisioning. In particular, upgrading Discourse produces a lot of memory pressure. With a swap file, rather than randomly terminating processes with an out of memory error, things will slow down instead. Having a swap file is a cheap insurance policy that protects you from many other lo…

**We use to have a swap file but…**

This is how i got to this point, and it might be useful for others:

- was upgrading discourse when postgres upgrade failed
- rather than troubleshoot directly, thought we would simply spin up a new droplet, fresh install and restore from back-up
- used the DigitalOcean instant install for Discourse (this was my MISTAKE)

Looks like the standard Digital Ocean jumpstart thing for Discourse does not set up a **swapfile**. Probably should have just run through a standard installation from a vanilla Ubuntu install.

---

_[View the full topic](https://meta.discourse.org/t/forum-upgrade-crashing-at-upgrade-docker-manager/47909)._
