# PostgreSQL migration failure

**URL:** <https://forum.yunohost.org/t/postgresql-migration-failure/32510>\
**Category:** Support\
**Tags:** english\
**Created:** [December 14, 2024, 6:29am UTC](https://forum.yunohost.org/t/postgresql-migration-failure/32510 "2024-12-14T06:29:17Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![luke1](https://forum.yunohost.org/user_avatar/forum.yunohost.org/luke1/32/11270_2.png) [@luke1](https://forum.yunohost.org/u/luke1)\
**Post date:** [January 14, 2025, 2:16pm UTC](https://forum.yunohost.org/t/postgresql-migration-failure/32510/22 "2025-01-14T14:16:41Z")

</div>

(fixing formatting)  
But to clarify, I do not have immich installed, it does appear to be an issue just with the state of postgresql migration. Very unhelpful that the underlying 15 pg\_upgradecluster error log doesn’t appear to get written.

Another post [Migration Failed - Migrate databases from PostgreSQL 13 to 15](https://forum.yunohost.org/t/migration-failed-migrate-databases-from-postgresql-13-to-15/31776) suggested this was due to disk space - not my issue.

Looking at `dpkg -l | grep postgres`, I see that `postgresql-13-postgis-3` was installed - perhaps for an app I no longer am using? Idk - and I manually installed by `sudo apt install postgresql-15-postgis-3`, guessing that is the blocking library missing that `pg_upgradecluster` was complaining about.

Subsequently running `sudo yunohost tools migrations run` was able to complete, and pg-dependent apps are running again. `pg_lsclusters` confirms they are upgraded to 15.

---

_[View the full topic](https://forum.yunohost.org/t/postgresql-migration-failure/32510)._
