# "Start upgrading"-knop na succesvolle upgrade

**URL:** https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805
**Category:** Bug
**Created:** [2 september 2020 om 15:04 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805 "2020-09-02T15:04:37Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [2 september 2020 om 15:04 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/1 "2020-09-02T15:04:37Z")

</div>

Since some weeks, the “Start Upgrading” button is shown, right _after_ the upgrade did finish.

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/2/829298e54a847878214617845f155e1092f78139.png)

In my opinion this is a bug, since before this change, there was no button to start the upgrade again.

I suggest to make the button disappear after an upgrade or at least disable it.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2 september 2020 om 19:16 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/2 "2020-09-02T19:16:58Z")

</div>

I can’t repro the above:

 ![Screen Shot 2020-09-02 at 12.16.12 PM](https://global.discourse-cdn.com/meta/original/3X/5/e/5e82e6bfd1435b280d88964f303e878db32d696a.png)

Site is on tests-passed.

---

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [14 september 2020 om 05:57 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/3 "2020-09-14T05:57:48Z")

</div>

I’ve upgraded yesterday to get the most recent version.

Then, today I’ve again did an upgrade and still see this screen:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/8/08a47fbbd7727012069a08c2ad0b0e5b4899a962.png)

Could it be possible my ad blocker plays into this?

When looking a the browser console after upgrading, I saw two entries:

> /message-bus/fc3f44b30aea4975be751a4cc8736f76/poll:1 Failed to load resource: net::ERR\_HTTP2\_PROTOCOL\_ERROR  
> docker/upgrade:1 Failed to load resource: the server responded with a status of 504 ()

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [19 oktober 2020 om 12:38 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/4 "2020-10-19T12:38:48Z")

</div>

I see the same. Indeed, whatever the ‘Start Upgrading’ button turns into when the upgrade starts - I think it used to change into some kind of Cancel button - I notice it pretty quickly went back to ‘Start Upgrading’ while the upgrade was still in progress, and remained there even after the upgrade was successfully completed. I’m running Chrome Version 86.0.4240.80 (Official Build) (x86\_64) on a Mac.

I saw this on a previous upgrade. The present upgrade is to 2.6.0.beta4 from 2.6.0.beta3. I think the immediately previous upgrade required an app rebuild.

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/8/18c826cdc9a065f2e0843d1d754ce66e6b0e507e.png)

Edit: on my other forum, I just saw the same, and took some screenshots. The button flipped back while the log was still showing one of the many Waiting for Unicorn to reload messages at the beginning. (I speculate that the flip is based on time having elapsed, not to do with the progress of the upgrade. Edit: 60 seconds from button press to reversion. Whereas the progress bar first moved at about 90 seconds.) See below:

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/0/105a609174fe45e18cbd34a08f55a165fbf33a59.png)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/0/1/01ed2f46f5b1ac354b7b5c511107868beed5cc72.png)

---

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [21 oktober 2020 om 15:21 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/5 "2020-10-21T15:21:28Z")

</div>

Still not fixed for me, too.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [21 oktober 2020 om 16:13 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/6 "2020-10-21T16:13:06Z")

</div>

I encountered this weird thing a few days ago. It confused me a bit.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21 oktober 2020 om 19:22 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/7 "2020-10-21T19:22:34Z")

</div>

Rebooting the machine (perhaps just the Docker container) or restarting redis will fix it, I think. We don’t have clear repro steps for this but I have seen it as well, so it definitely happens.

It’s _mostly_ cosmetic so not a high priority. If we had clear consistent repro steps..

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [21 oktober 2020 om 19:55 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/8 "2020-10-21T19:55:49Z")

</div>

I upgraded seven instances last week to the latest beta (on-tests passed) and all exhibited the problem.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [22 oktober 2020 om 01:36 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/9 "2020-10-22T01:36:57Z")

</div>

Well that may be a regression then cc @eviltrout

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [22 oktober 2020 om 15:55 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/10 "2020-10-22T15:55:06Z")

</div>

I was able to reproduce this. The client code hasn’t changed in a meaningful way. It looks like the problem is that a call to `/admin/docker/upgrade` is now throwing a 504 gateway timeout.

Our error handler then tells it to mark its state as “not upgrading”, which means when the message bus notification for complete comes through that it’s not marked as finished.

It seems to me the root cause here is the 504 timeout that we didn’t see before. I suspect some kind of proxy/rails change here. Maybe something in our docker image? @sam are you aware of anything or can maybe assign to dev ops?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23 oktober 2020 om 01:45 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/11 "2020-10-23T01:45:29Z")

</div>

I can see some odd things happening on the client that are leading to a bit of a surprise:

1. Why are we making any HTTP requests to the server during upgrade? We appear to be making a request to `/admin/docker/upgrade` mid way through upgrade which is confusing to me. We should simply be waiting on the message bus. I ran this in firefox so I have limited debugging.

2. Messagebus is not long polling, it is only short polling leading to rate limits

3. “Go to next upgrade” is a bit confusing, we should just say done when you are done upgrading a piece instead of quickly switching you to the other piece.

@Osama can you spend some time debugging / refining / upgrading ember and so on? I think the majority here appears to be client work.

Note to people on this topic, we will get this sorted but it will probably take 2-4 weeks. Since this has been going on for a month now I think we can wait a bit.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [23 oktober 2020 om 08:01 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/13 "2020-10-23T08:01:20Z")

</div>

> [@sam](#):
>
> Go to next upgrade

I’ve never seen that - is it part of ‘Upgrade All’?

> [@sam](#):
>
> it will probably take 2-4 weeks

That’s fine for me, of course. I thought I saw someone say that they’d accidentally clicked Start Upgrading when it reappeared - hopefully that’s harmless. I’ve never used ‘Reset Upgrade’ but presumably it’s a safety feature in case the upgrade gets stuck.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [27 oktober 2020 om 03:46 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/14 "2020-10-27T03:46:18Z")

</div>

I remember reporting the same issue probably more than a month ago so it has been here for a while.

> [@Start Upgrading button becomes active during docker-manager upgrades](https://meta.discourse.org/t/start-upgrading-button-becomes-active-during-docker-manager-upgrades/161102):
>
> Additionally, I noticed that the Start Upgrade button erratically becomes active during the upgrade in docker manager.

---

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [29 oktober 2020 om 15:08 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/17 "2020-10-29T15:08:01Z")

</div>

I’ve merged a fix for this bug:

[https://github.com/discourse/docker\_manager/commit/8c1b3bb864387bded8556df6387654ca31622799](https://github.com/discourse/docker_manager/commit/8c1b3bb864387bded8556df6387654ca31622799)

Once you upgrade docker\_manager, this bug should be fixed for future upgrades.

---

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [2 november 2020 om 15:00 UTC](https://meta.discourse.org/t/start-upgrading-button-after-successfully-upgraded/162805/19 "2020-11-02T15:00:11Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
