# 紧急：网站重建后无法访问

**URL:** https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529
**Category:** Support
**Created:** [2019 年4 月 5 日 10:03 UTC](https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529 "2019-04-05T10:03:16Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### 作者： ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### 发布日期： [2019 年4 月 5 日 10:03 UTC](https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529/1 "2019-04-05T10:03:16Z")

</div>

Hi,

I urgently need some help - I did an upgrade from /admin/upgrade today, but the process never finished. I then restarted Discourse and tried a ./launcher rebuild app from the command line, but I keep getting the following error:

```2019-04-05
	SET first_unread_at = u.created_at
	FROM users u
	WHERE u.id = us.user_id
	
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Index name 'index_topics_on_updated_at_public' on table 'topics' already exists

```

The problem remains after disabling all plugins. ~~Our site is down right now~~ , I’d appreciate some help to diagnose and fix this. Thanks!

**Update** : I found that I could restart Discourse with `./launcher start app`, but I’m not entirely sure of the current state of my instance.

**Update** : After starting the app, I went into psql and deleted the index that was mentioned in the error. After a rebuild, the exact same error came up again.

---

<div class="post-metadata">

### 作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### 发布日期： [2019 年4 月 5 日 10:54 UTC](https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529/2 "2019-04-05T10:54:52Z")

</div>

This should fix it, but you will need to wait till tests passed

[https://github.com/discourse/discourse/commit/8f4527c1f1861e5038bf6104fc86e6c8308c03c4](https://github.com/discourse/discourse/commit/8f4527c1f1861e5038bf6104fc86e6c8308c03c4)

if you nuked the index though it should surely pass, but maybe you did not nuke it properly… I don’t know.

---

<div class="post-metadata">

### 作者： ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### 发布日期： [2019 年4 月 5 日 10:56 UTC](https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529/3 "2019-04-05T10:56:50Z")

</div>

👍thanks Sam!

> maybe you did not nuke it properly

That’s very possible, Postgres is still new to me 🙂

> wait till tests passed

How will I know when that is?

---

<div class="post-metadata">

### 作者： ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### 发布日期： [2019 年4 月 5 日 10:57 UTC](https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529/4 "2019-04-05T10:57:26Z")

</div>

> [@bartv](#):
>
> How will I know when that is?

When the commit appears in this list:

[https://github.com/discourse/discourse/commits/tests-passed](https://github.com/discourse/discourse/commits/tests-passed)

---

<div class="post-metadata">

### 作者： ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### 发布日期： [2019 年4 月 5 日 11:08 UTC](https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529/5 "2019-04-05T11:08:05Z")

</div>

It’s in tests-passed

---

<div class="post-metadata">

### 作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### 发布日期： [2019 年4 月 5 日 11:11 UTC](https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529/6 "2019-04-05T11:11:56Z")

</div>

Thanks to @pmusaraj our faster build times are paying off 🥰

---

<div class="post-metadata">

### 作者： ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### 发布日期： [2019 年4 月 5 日 11:12 UTC](https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529/7 "2019-04-05T11:12:35Z")

</div>

My rebuild just passed the part where it creates the index. Thanks, gentlemen!

---

<div class="post-metadata">

### 作者： ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### 发布日期： [2019 年4 月 5 日 11:15 UTC](https://meta.discourse.org/t/urgent-site-down-after-rebuild/113529/8 "2019-04-05T11:15:03Z")

</div>


