# 升级 V2.1 Beta 2 至 Beta 4 需要两次重建 ./launcher 应用

**URL:** https://meta.discourse.org/t/upgrade-v2-1-beta-2-to-beta-4-require-launcher-rebuild-app-twice/95368
**Category:** Support
**Created:** [2018 年8 月 22 日 01:23 UTC](https://meta.discourse.org/t/upgrade-v2-1-beta-2-to-beta-4-require-launcher-rebuild-app-twice/95368 "2018-08-22T01:23:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### 作者： ![iidbae](https://avatars.discourse-cdn.com/v4/letter/i/a183cd/32.png) [@iidbae](https://meta.discourse.org/u/iidbae)
#### 发布日期： [2018 年8 月 22 日 01:23 UTC](https://meta.discourse.org/t/upgrade-v2-1-beta-2-to-beta-4-require-launcher-rebuild-app-twice/95368/1 "2018-08-22T01:23:10Z")

</div>

Hi, I just upgrade my Discourse from v2.1.0beta2 to v2.1.0beta4 yesterday.

 ![sebelum%20update](https://global.discourse-cdn.com/meta/original/3X/4/f/4f1954c2433a9f1efd03f6112a268b73b7364240.png)

Then I got these message:

 ![upgrade%20image](https://global.discourse-cdn.com/meta/original/3X/d/0/d0a0fadc60a104e664c3854d36ef8e4cee903a96.png)

* * *

You are running an old version of the Discourse image.

Upgrades via the web UI are disabled until you run the latest image.

To do so log in to your server using SSH and run:

cd /var/discourse  
git pull  
./launcher rebuild app

[More info on our support site.](https://meta.discourse.org/t/how-do-i-manually-update-discourse-and-docker-image-to-latest/23325)

* * *

I follow the guideline by running that ssh command, then I can not access my Discourse site. 🥶  
Fortunately, I make a snapshot in Digital Ocean right before that three command.  
Restore my droplet and its live again. 😀

I run the tree commands above again and read this message after finishing the `./launcher rebuild app` process.

* * *

Sync data directory to disk ok  
Creating script to analyze new cluster ok  
Creating script to delete old cluster ok  
Checking for hash indexes ok

**Upgrade Complete**

Optimizer statistics are not transferred by pg\_upgrade so, once you start the new server, consider running:

`./analyze_new_cluster.sh`

Running this script will delete the old cluster’s data files:  
`./delete_old_cluster.sh`

**UPGRADE OF POSTGRES COMPLETE**

Old 9.5 database is stored at /shared/postgres\_data\_old

To complete the upgrade, rebuild again using:

`./launcher rebuild app`

* * *

Then, I tried to running `./launcher rebuild app` again and its works. 😀 🥳

 ![Screenshot_1](https://global.discourse-cdn.com/meta/original/3X/0/d/0db4b834f3e39873b0a71bc352242c4cd507473e.png)

My questions:

1. Am I on the right track?
2. Should I delete the old cluster’s data files by running `./delete_old_cluster.sh` command?

Is there any additional tips instead of upgrading my discourse frequently?

Thank you…

---

<div class="post-metadata">

### 作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### 发布日期： [2018 年8 月 22 日 01:26 UTC](https://meta.discourse.org/t/upgrade-v2-1-beta-2-to-beta-4-require-launcher-rebuild-app-twice/95368/2 "2018-08-22T01:26:12Z")

</div>

You’re fine.

You can run

```
./launcher cleanup 

```

To remove the extra database backup

---

<div class="post-metadata">

### 作者： ![iidbae](https://avatars.discourse-cdn.com/v4/letter/i/a183cd/32.png) [@iidbae](https://meta.discourse.org/u/iidbae)
#### 发布日期： [2018 年8 月 22 日 01:31 UTC](https://meta.discourse.org/t/upgrade-v2-1-beta-2-to-beta-4-require-launcher-rebuild-app-twice/95368/3 "2018-08-22T01:31:48Z")

</div>

Thank you for the quick reply. 🙏

So, I enter my SSH and running?

```plaintext
cd /var/discourse
git pull
./launcher cleanup

```

---

<div class="post-metadata">

### 作者： ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### 发布日期： [2018 年8 月 22 日 01:54 UTC](https://meta.discourse.org/t/upgrade-v2-1-beta-2-to-beta-4-require-launcher-rebuild-app-twice/95368/4 "2018-08-22T01:54:44Z")

</div>

You shouldn’t need to `git pull` just to run cleanup, no. Just the other two statements.

---

<div class="post-metadata">

### 作者： ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### 发布日期： [2018 年9 月 21 日 02:09 UTC](https://meta.discourse.org/t/upgrade-v2-1-beta-2-to-beta-4-require-launcher-rebuild-app-twice/95368/5 "2018-09-21T02:09:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
