Skip to content

[Bug]: Upgrade from 2.2 to 2.3 fails while applying database migrations #4432

Description

@DIzFer

Bug Summary

Upgrade from 2.2 to 2.3 fails while applying database migrations

Description

Upgrade from 2.2 to 2.3 fails while applying database migrations

Steps to Reproduce

Just running the new binary pointed to the database of the previous version. Both via package manager (alpine) and binaries downloaded from github.

Expected Behavior

Migrations should complete successfully and miniflux should start

Actual Behavior

Specifically, from 2.2.19 to 2.3.0, the message in the log section is logged:
On subsequent attempts (after it fails once first), current_version is 126 instead.

Version

2.3

Browser

No response

Relevant Logs or Error Output

time=2026-07-02T13:43:41.493+02:00 level=INFO msg="Running database migrations" current_version=125 latest_version=129
[Migration v127] pq: insert or update on table "entry_tombstones" violates foreign key constraint "entry_tombstones_feed_id_fkey" (23503)

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't been reported before.

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions