Tags are Duplicated while editing

AI-generated summary

The discussion revolves around a bug where tags are duplicated when editing a post, even when adding a new tag alongside an existing one. Rahul_Goswami reports the issue, suspecting a bug. pfaffman suggests possible database corruption and references a guide on fixing corrupt indexes. Rahul_Goswami notes that backups are regular and problem-free. pfaffman asks if backups have been restored and if the tag table index has been rebuilt. blake advises checking for duplicate tags, which may appear multiple times on the /tags page, and mentions manually deleting duplicates via the Rails console. Rahul_Goswami confirms duplicate tags were present and manually removed.

Hi,

When we are adding one already present tag and one completely new tag while editing a post, tags are duplicated and new tags are not added.

A possible bug, Please look into it.

You might have a database corruption. Have a look at Can’t restore due to corrupt indexes (with some clues on how to deal with corrupt indexes)

1 like

Not sure about Database corruption as i have a scheduled backup every 7 days and the backups are created with issues.

Have you tried to restore one of those backups?

Can you rebuild the tag table index?

If you search for “duplicatetag” and “‰duplicatetag%” do you get the same things?

5 likes

@Rahul_Goswami Have you had a chance to check for duplicate tags?

If there are duplicate they also might appear multiple times on the /tags page of your site.

I’ve seen this duplicate tags issue before on a self hosted site that did have a corrupted db and I had to go in and manually delete (via rails console) the duplicated tags and retag the topics.

Yes there was a duplicate tag issue. I also had manually deleted them.

3 likes