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.
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.