# Recovering from failed/partially applied upgrade

**URL:** <https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924>\
**Category:** Self-hosting\
**Created:** [March 24, 2022, 9:25pm UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924 "2022-03-24T21:25:17Z")\
**Posts on this page:** 10\
**Page:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [April 3, 2022, 1:26pm UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/42 "2022-04-03T13:26:22Z")

</div>

The question is whether now that you’ve gotten there you can now upgrade to latest…

---

<div class="post-metadata">

**Author:** ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)\
**Post date:** [April 3, 2022, 1:26pm UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/43 "2022-04-03T13:26:59Z")

</div>

Great! But wait​😅, you’re only halfway through, now you have to edit the app.yml again to version: tests-passed (and/or comment the line)

---

<div class="post-metadata">

**Author:** ![Nick\_Tomlinson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_tomlinson/32/282728_2.png) [@Nick\_Tomlinson](https://meta.discourse.org/u/Nick_Tomlinson)\
**Post date:** [April 3, 2022, 4:20pm UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/44 "2022-04-03T16:20:53Z")

</div>

Ok, I’ll sit back down again 🤣

So add this back to where it was

```plaintext
#version: tests-passed

```

---

<div class="post-metadata">

**Author:** ![Nick\_Tomlinson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_tomlinson/32/282728_2.png) [@Nick\_Tomlinson](https://meta.discourse.org/u/Nick_Tomlinson)\
**Post date:** [April 3, 2022, 4:28pm UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/45 "2022-04-03T16:28:17Z")

</div>

> [@Benjamin\_D](#):
>
> ```plaintext
> ## Which Git revision should this container use? (default: tests-passed)
> #version: tests-passed
> 
> ```

```plaintext
## Which Git revision should this container use? (default: tests-passed)
#version: tests-passed

```

Does that look correct to you? Then save?

---

<div class="post-metadata">

**Author:** ![Nick\_Tomlinson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_tomlinson/32/282728_2.png) [@Nick\_Tomlinson](https://meta.discourse.org/u/Nick_Tomlinson)\
**Post date:** [April 3, 2022, 4:34pm UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/46 "2022-04-03T16:34:13Z")

</div>

So done that and rebuilt.

Still saying up to date.

Maybe ive put the # in the wrong place, will try again

---

<div class="post-metadata">

**Author:** ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)\
**Post date:** [April 3, 2022, 5:31pm UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/47 "2022-04-03T17:31:00Z")

</div>

I think you should have  
Version: 2.9.0.beta3  
([6555f0c11b](https://github.com/discourse/discourse/commits/6555f0c11bb04fb4a52b62d6cf62f4df82761cd6))

And if so

![We Did It Win GIF by HBO Max](https://global.discourse-cdn.com/meta/original/3X/d/b/db112792bd3f2cf5b68b3fe38cc6f564f2ddea21.webp)

---

<div class="post-metadata">

**Author:** ![Nick\_Tomlinson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_tomlinson/32/282728_2.png) [@Nick\_Tomlinson](https://meta.discourse.org/u/Nick_Tomlinson)\
**Post date:** [April 3, 2022, 5:44pm UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/48 "2022-04-03T17:44:22Z")

</div>

### 2.9.0.beta3

([6555f0c11b](https://github.com/discourse/discourse/commits/6555f0c11bb04fb4a52b62d6cf62f4df82761cd6))

![Funny Thank You GIF by MOODMAN](https://global.discourse-cdn.com/meta/original/3X/1/5/15c09c31d6327e0ac99f6e969d89cabc6916374a.webp)

(please do PM me where i can send you some 🍻 money)

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [April 3, 2022, 5:49pm UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/49 "2022-04-03T17:49:26Z")

</div>

Nice work, @Benjamin_D! You rock. That’s great problem solving and great tutelage! You saved the day on this one. 👏 🎉

---

<div class="post-metadata">

**Author:** ![luxaritas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/luxaritas/32/254171_2.png) [@luxaritas](https://meta.discourse.org/u/luxaritas)\
**Post date:** [April 28, 2022, 2:05am UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/50 "2022-04-28T02:05:19Z")

</div>

Hopefully this should be properly resolved in the next release? [DuplicateColumn and multisite:migrate failed - #7 by martin](https://meta.discourse.org/t/duplicatecolumn-and-multisite-migrate-failed/224480/7)

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [August 12, 2022, 11:58am UTC](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924/51 "2022-08-12T11:58:59Z")

</div>

Well, it appears not to be on the site I’m working on now. 😿

I added some comments at [FIX: Check if bookmarkable column exists before adding by martin-brennan · Pull Request #16497 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/16497)  
though I think it’s some other migration that’s to blame. It seems that it’s trying to populate the fields twice, but I’m not entirely clear.

[Previous page](https://meta.discourse.org/t/recovering-from-failed-partially-applied-upgrade/221924.md?page=2)
