-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Taiga database could not be upgraded to Postgresql 14 #54
Comments
As far as I figured out, this function is used only during migration process from one taiga version to another. So if you not planing to update taiga, you could just drop that aggregate before postgresql upgrade.
After that you could try to create the array_agg_multi in the new DB, or fix the function it uses in the new DB.
|
I was creating a new Taiga instance (instead of migrating from an old one) with PostgreSQL 14.2 And the modified part would look like: # issue54: fix 0046_triggers_to_update_tags_colors.py#L45-L55
# Function: aggregates multi dimensional arrays
migrations.RunSQL(
"""
DROP AGGREGATE IF EXISTS array_agg_mult (anyarray);
CREATE AGGREGATE array_agg_mult (anycompatiblearray) (
SFUNC = array_cat
,STYPE = anycompatiblearray
,INITCOND = '{}'
);
"""
), Not sure if it's the correct way or also works for an existing instance, but it seems work to a new one 🤔 |
I just ran into it today for a new clean install on postgresql 14. Maybe this ought to be fixed? |
FYI, Cloudron users are hitting this issue too now that Cloudron uses Postgresql 14 it's no longer possible to install Taiga on Cloudron. |
Another Cloudron user here, and I hit the same issue when I tried to install Taiga. |
Also another Cloudron user here, had the same issue. Have taiga acknowledged the issue? |
We believe this tutorial may help you through the process: https://community.taiga.io/t/migrate-taiga-docker-from-postgresql-12-to-postgresql-14/1266 |
@LouisSung for new instances from scratch (without data migration) we're preparing some little changes in the official image and will be available in the next release. |
@yamila-moreno good to hear this issue is under tracking :D We are not using Cloudron but a standalone docker image from scratch, so not sure if your migration tutorial helps to them Also noticed the discussion thread on the forum: https://community.taiga.io/t/postgresql-14-compatibility/1249 |
the tutorial tries to help with generic migration databases commands, with the example for docker, that should be useful in other environments as well. For your specific case, if you're already running with p14, that's great; maybe you find useful to check the expected changes to the migration: https://github.com/kaleidos-ventures/taiga-back/pull/131/files#diff-a537144d69b23ceb2117faee15125c39173bd5b590773089f5cdce1275001703R15 Cheers! |
Just for completeness, that tweet says:
|
Do a quick review, so the |
@LouisSung you were right; I've fixed spaces in the migration file, thanks! This issue was in the first place about the migration to postgres14, so I'm closing it as the tutorial should be a good solution. |
Just to clarify: one can upgrade existing Taiga installation to use Postgresql 14 but new installations still cannot use Postgresql 14. Is that correct (until a new Taiga release is made)? |
New installations could use postgres14 with a bit of work; to have it working out of the box you may want to wait until the team release a new official image. |
Describe the bug
Taiga database could not be upgraded to PostgreSQL v14
How can we reproduce the behavior
Upgrade an existing Taiga database.
Detailed steps to reproduce the behavior.
When I run the pg_upgrade, it stopped at taiga database:
Seems to related to this problem:
https://www.postgresql.org/message-id/20210520232922.GG3676%40telsasoft.com
Taiga environment
Self hosting Taiga version 6 (2021-May) on Linux
Workaround
I put the Taiga database in another PostgreSQL 13 instance and then it is fine.
The text was updated successfully, but these errors were encountered: