Add Tags 500 Error

Hi,

I just add Tags, 500 Error.

logs:

ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_tags_on_name" DETAIL: Key (name)=(TAGTEST) already exists. ) /var/www/discourse/vendor/bu

Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_tags_on_name" DETAIL: Key (name)=(TAGTEST) already exists.

Discourse 2.4.0.beta4

1 Like

and old tags 404 Error.

1 Like

Per the error it is a duplicate tag of some kind?

1 Like

TAGTESTx4

Some existing tags can’t be added.

1 Like

I think I found this,

I am trying to re-import the database.

CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
ERROR:  could not create unique index "index_tags_on_lower_name"
DETAIL:  Key (lower(name::text))=(棰ㄣ亴寮枫亸鍚广亜銇︺亜銈 is duplicated.
ERROR:  could not create unique index "index_tags_on_name"
DETAIL:  Key (name)=(棰ㄣ亴寮枫亸鍚广亜銇︺亜銈 is duplicated.
CREATE INDEX
CREATE INDEX
CREATE INDEX

How can I fix this.

1 Like

Fix: I have reindex PostgreSQL index_tags_on_lower_name andindex_tags_on_name

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.