# Unable to upgrade to PostgreSQL 15/

**URL:** https://meta.discourse.org/t/unable-to-upgrade-to-postgresql-15/354397
**Category:** Self-hosting
**Created:** [February 25, 2025, 12:04pm UTC](https://meta.discourse.org/t/unable-to-upgrade-to-postgresql-15/354397 "2025-02-25T12:04:33Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [February 25, 2025, 1:50pm UTC](https://meta.discourse.org/t/unable-to-upgrade-to-postgresql-15/354397/4 "2025-02-25T13:50:45Z")

</div>

Thanks. I think you could try just adding 2G or 4G of swap. But the message about out of date Docker, and the running of 18.04LTS, means you’d be in a much better position if you migrate to a new instance with a fresh new OS installation: 24.04 preferably. I run both 24.04 and 22.04 at present.

Migrating to a new fresh instance is probably less effort overall than trying to upgrade in place. It might even be less disruptive. You are very likely to have a bit of downtime whatever you do.

Step 1 is to take a backup (with downloads) and download it for safe keeping. Also take a copy of your app.yml file.

I did a migration yesterday, for similar reasons. Also, I could get a better machine for the same cost by switching to a newer offering from the hosting provider.

I followed the migration recipe and tips here  
[Steps involved to downgrade from 2GB to 1GB on DO? - #3 by merefield](https://meta.discourse.org/t/steps-involved-to-downgrade-from-2gb-to-1gb-on-do/265056/3)

Also for best results read  
[MKJ’s Opinionated Discourse Deployment Configuration](https://meta.discourse.org/t/mkjs-opinionated-discourse-deployment-configuration/193355)

You are a little short of disk space too, especially if you add swap. I usually do  
`du -kx / | sort -n | tail -55`  
or similar to see if there’s anything large that need not be there.

---

_[View the full topic](https://meta.discourse.org/t/unable-to-upgrade-to-postgresql-15/354397)._
