こんにちは、
タグを追加したところ、500 エラーが発生しました。
ログ:
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
例外アプリミドルウェアでの例外処理に失敗しました: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_tags_on_name" DETAIL: Key (name)=(TAGTEST) already exists.
Discourse 2.4.0.beta4
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