# How does one run sql queries if the container doesn't start? (rebuild failed)

**URL:** https://meta.discourse.org/t/how-does-one-run-sql-queries-if-the-container-doesnt-start-rebuild-failed/252126
**Category:** Self-hosting
**Created:** [January 18, 2023, 8:16am UTC](https://meta.discourse.org/t/how-does-one-run-sql-queries-if-the-container-doesnt-start-rebuild-failed/252126 "2023-01-18T08:16:14Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### Post date: [January 18, 2023, 11:31am UTC](https://meta.discourse.org/t/how-does-one-run-sql-queries-if-the-container-doesnt-start-rebuild-failed/252126/3 "2023-01-18T11:31:32Z")

</div>

After booting up, I was able to find all duplicate tags with [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin:

```plaintext
SELECT name, count(*)
    FROM tags 
    GROUP BY name
     HAVING count(*) > 1

```

For some reasons, there were about **ten** duplicate tags. Wonder why and how those appear there _in the first place_…

Managed to wipe those sucker out, removed the version lock from `yml` file, rebuild, things looks fine now.

Thank you!

👍

---

_[View the full topic](https://meta.discourse.org/t/how-does-one-run-sql-queries-if-the-container-doesnt-start-rebuild-failed/252126)._
