Upgrade from 4.x
The same information from upgrading from 3.x apply, except that there are conflicting database migrations (the Aleph 4 version introduced database migrations that OpenAleph 5 doesn't contain as it was forked off of the 3.x series.)
To fix this, the alembic_version table value needs to manually set to the migration version c52a1f469ac7, which is the last migration version Aleph and OpenAleph have in common:
Then, follow the upgrade from 3.x steps.
Please reach out to us in our community discourse or via hi@dataresearchcenter.org to get specific guidance on how to upgrade from the 4.x versions to the current OpenAleph version if you run into trouble.