# Migration 0037\_postgresql\_15\_to\_17 fails

**URL:** <https://forum.yunohost.org/t/migration-0037-postgresql-15-to-17-fails/42958>\
**Category:** Support\
**Tags:** postgresql, migration, yunohost, english\
**Created:** [September 7, 2026, 7:44pm UTC](https://forum.yunohost.org/t/migration-0037-postgresql-15-to-17-fails/42958 "2026-09-07T19:44:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![moses69](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@moses69](https://forum.yunohost.org/u/moses69)\
**Post date:** [September 7, 2026, 7:44pm UTC](https://forum.yunohost.org/t/migration-0037-postgresql-15-to-17-fails/42958/1 "2026-09-07T19:44:37Z")

</div>

### I have searched the forum for similar issues

on

### This category is for general issues(=something is broken) regarding YunoHost, _NOT_ apps.

on

### This form is written in English but feel free to write in French if you’re more comfortable!

on

### What type of hardware are you using

VPS bought online

### What YunoHost version are you running

Yunohost 13.0.7.1

### How are you able to access your server

SSH

### Are you in a special context or did you perform specific tweaking on your YunoHost instance ?

Did some “psql -d hedgedoc -U postgres” on different app databases (as adviced). Also “psql -d postgres -U postgres” on Postgresql itself sometime ago. I think it was after the trixie migration.

### Describe your issue

Migration 0037\_postgresql\_15\_to\_17 fails with error message:

### Share relevant logs or error messages

Migration 0037\_postgresql\_15\_to\_17 did not complete, aborting.  
Error: ‘MyMigration’ object has no attribute ‘previous\_version’

Log:  
[https://paste.yunohost.org/raw/utatepugug](https://paste.yunohost.org/raw/utatepugug)

---

<div class="post-metadata">

**Author:** ![punky](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@punky](https://forum.yunohost.org/u/punky)\
**Post date:** [September 14, 2026, 3:14pm UTC](https://forum.yunohost.org/t/migration-0037-postgresql-15-to-17-fails/42958/2 "2026-09-14T15:14:15Z")

</div>

Same issue on my yunohost installation which is version 13.0.7.1, the migration script called ` 0037_postgresql_15_to_17` does not execute because of python errors.

Now I did the installation of yunohost on my VPS a few months ago from a testing version that was 13.0.4; from what I can see in the log called `journalctl`, looks like my yunohost installation has always been running a version 17 of postgresql.

I know that the migration called `36. Upgrade the system to Debian Trixie and YunoHost 13` had to be skipped since my system was already on trixie, could it be that the postgrersql one is also part of the migrations that help to migrate a system to trixie ? If so, we may also be able to safely skip it

---

<div class="post-metadata">

**Author:** ![moses69](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@moses69](https://forum.yunohost.org/u/moses69)\
**Post date:** [September 16, 2026, 11:00am UTC](https://forum.yunohost.org/t/migration-0037-postgresql-15-to-17-fails/42958/3 "2026-09-16T11:00:27Z")

</div>

I guess my problem is probably that I’m already on version 17 and have all the database migration already done by hand on postgres level, so that there is nothing to do for the migration tool. The only thing is now to get rid of the migration reminder.

---

<div class="post-metadata">

**Author:** ![punky](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@punky](https://forum.yunohost.org/u/punky)\
**Post date:** [September 17, 2026, 4:56pm UTC](https://forum.yunohost.org/t/migration-0037-postgresql-15-to-17-fails/42958/4 "2026-09-17T16:56:19Z")

</div>

Well at least this one is easy, you can skip a migration in the Tools / Migrations section of the yunohost admin interface; there is a “Skip” button on the line of the migration, I just did that on this postgresql migration.

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [October 17, 2026, 4:56pm UTC](https://forum.yunohost.org/t/migration-0037-postgresql-15-to-17-fails/42958/5 "2026-10-17T16:56:19Z")

</div>

Closed on October 17, 2026, 4:56pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
