Problem in Upgrade: Duplicate Key Value Violates Unique Constraint
Arta_S is experiencing an issue with upgrading their Discourse instance, resulting in a “duplicate key value violates unique constraint” error. The error log shows multiple instances of the issue with the “index_tags_on_lower_name” constraint.
pfaffman suggests renaming some of the tags as a solution, providing a step-by-step guide to rename the tags using the old container.
Arta_S asks for clarification on the instructions, sharing the output of the tags=Tag.where("name like '%ووکامرس%'") command, which returns four tags with similar names.
I just used the upgrade tool to upgrade my discourse instance. Oddly, the forum is now down. When I tried to rebuild using the command line, I am getting this error:
duplicate key value violates unique constraint "index_tags_on_lower_name"
This error is repeated multiple times in the log so I recon its something about it.