Environment
- Product: OpenProject
- Source version: 16.3.2
- Target version (failing): 17.3.0
- Target version (working): 17.2.3
- Deployment: official Docker Compose (openproject-docker-compose)
- Database: PostgreSQL
- Source DB: PostgreSQL 13
- Target DB: PostgreSQL 17 (via dump/restore)
- OS: Linux (Ubuntu)
- CPU: 4 cores
Summary
Upgrading from 16.3.2 → 17.3.0 fails during migrations with:
PG::UndefinedTable: relation "group_details" does not exist
Running the same upgrade path against 17.2.3 completes successfully.
This suggests a regression in 17.3.0 migration ordering or model usage during migration.
Steps to Reproduce
- Start from a working 16.3.2 installation
- Dump database from PostgreSQL 13
- Restore into a fresh PostgreSQL 17 instance
- Use official Docker Compose setup
- Set:
TAG=17.3.0
POSTGRES_VERSION=17
- Run:
docker compose run --rm seeder
Expected Behavior
All migrations complete successfully and application starts.
Actual Behavior
Migration fails at:
20250929070310_add_view_all_principals_permission_to_existing_roles
with error:
PG::UndefinedTable: ERROR: relation "group_details" does not exist
Relevant Logs
ActiveRecord::StatementInvalid: PG::UndefinedTable:
ERROR: relation "group_details" does not exist
(occurs during migration execution)
Additional Observations
- The same database dump:
- ✅ Migrates successfully on 17.2.3
- ❌ Fails on 17.3.0
- Earlier migration list shows add_group_details occurs after the failing migration, suggesting ordering or dependency issue.
- This occurs on a clean PostgreSQL 17 data directory, ruling out stale data.
Workaround
Downgrading to:
allows migration to complete successfully.
Suspected Cause
A migration in 17.3.0 references group_details before the table is created, possibly due to:
- incorrect migration ordering
- model loading referencing new schema prematurely
- missing dependency between migrations
Request
Please confirm:
- whether this is a known issue in 17.3.0
- if a fix is planned (e.g. 17.3.1)
- or recommended upgrade path/workaround
Environment
Summary
Upgrading from 16.3.2 → 17.3.0 fails during migrations with:
Running the same upgrade path against 17.2.3 completes successfully.
This suggests a regression in 17.3.0 migration ordering or model usage during migration.
Steps to Reproduce
Expected Behavior
All migrations complete successfully and application starts.
Actual Behavior
Migration fails at:
with error:
Relevant Logs
(occurs during migration execution)
Additional Observations
Workaround
Downgrading to:
allows migration to complete successfully.
Suspected Cause
A migration in 17.3.0 references group_details before the table is created, possibly due to:
Request
Please confirm: