Aggiungi tag: errore 500

Ciao,

Ho appena aggiunto dei tag e ho ricevuto un errore 500.

Log:

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

Impossibile gestire l'eccezione nel middleware dell'applicazione di eccezione: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_tags_on_name" DETAIL: Key (name)=(TAGTEST) already exists.

Discourse 2.4.0.beta4

and old tags 404 Error.

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

TAGTESTx4

Some existing tags can’t be added.

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.

Fix: I have reindex PostgreSQL index_tags_on_lower_name andindex_tags_on_name