# Handle upgrade failure properly

**URL:** https://meta.discourse.org/t/handle-upgrade-failure-properly/42283
**Category:** Support
**Created:** [9 april 2016 om 08:37 UTC](https://meta.discourse.org/t/handle-upgrade-failure-properly/42283 "2016-04-09T08:37:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![infertux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infertux/32/121867_2.png) [@infertux](https://meta.discourse.org/u/infertux)
#### Post date: [9 april 2016 om 08:37 UTC](https://meta.discourse.org/t/handle-upgrade-failure-properly/42283/1 "2016-04-09T08:37:43Z")

</div>

Hi there,

I just tried to upgrade Discourse from 1.4.x to 1.5.1 and the upgrade failed at the `rake multisite:migrate` step with this error: `MiniProfilerRails initialized twice. Set 'require: false' for rack-mini-profiler in your Gemfile`

Now when I go to the dashboard, this is what I see:

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

I’m pretty sure I’m still running the 1.4 codebase and yet when I go to the upgrade page, it says I’m up-to-date. It looks like the upgrade process is getting confused when there is an unexpected error happening during the upgrade.

I realise there are two bug reports here but the second one seems more serious to me.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [9 april 2016 om 12:54 UTC](https://meta.discourse.org/t/handle-upgrade-failure-properly/42283/2 "2016-04-09T12:54:02Z")

</div>

Are you running our recommended Docker install ? If so, have you tried the following?

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

```

---

<div class="post-metadata">

### Author: ![infertux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infertux/32/121867_2.png) [@infertux](https://meta.discourse.org/u/infertux)
#### Post date: [9 april 2016 om 13:07 UTC](https://meta.discourse.org/t/handle-upgrade-failure-properly/42283/3 "2016-04-09T13:07:25Z")

</div>

Yes I’m running the Docker install.

I ran `./launcher rebuild app` in the end and it fixed it somehow. It’s weird that I didn’t get the MiniProfilerRails error though… not sure what happened there.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [11 april 2016 om 08:38 UTC](https://meta.discourse.org/t/handle-upgrade-failure-properly/42283/4 "2016-04-11T08:38:43Z")

</div>


