# Admin dashboard won't load after upgrade to v2.1.0.beta3 +20

**URL:** https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311
**Category:** Self-hosting
**Created:** [27.Июль.2018 18:17:44 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311 "2018-07-27T18:17:44Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![clay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clay/32/102156_2.png) [@clay](https://meta.discourse.org/u/clay)
#### Post date: [27.Июль.2018 18:17:44 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/1 "2018-07-27T18:17:44Z")

</div>

I rebuilt Discourse to [v2.1.0.beta3 +20](https://github.com/discourse/discourse/compare/c74dd2fa0848ac527c4715edb7f50114e00681de...tests-passed) following notification this morning that there was a critical update. There were no errors during the rebuilding. However, the Admin dashboard now returns a 502 after trying to load unsuccessfully for a few minutes.

 ![51%20PM](https://global.discourse-cdn.com/meta/original/3X/9/d/9dcf9ef92e5a4c06204c56323efb4a9605cb95cc.png)

When I SSH into the server and `curl https://forum.quartertothree.com/admin/dashboard/general.json`, the page seems to be returned. However, when trying to hit it externally, the following is in the Nginx log:

`2018/07/27 18:01:50 [error] 309#309: *50963 upstream prematurely closed connection while reading response header from upstream, client: 173.245.52.174, server: _, request: "GET /admin/dashboard/general.json?_=1532713667907 HTTP/1.1", upstream: "http://127.0.0.1:3000/admin/dashboard/general.json?_=1532713667907", host: "forum.quartertothree.com", referrer: "https://forum.quartertothree.com/admin"`

Looking in `/var/discourse/shared/standalone/log/rails/unicorn.stderr.log` the following appears:

`E, [2018-07-27T18:07:20.883373 #323] ERROR -- : worker=3 PID:12195 timeout (31s > 30s), killing I, [2018-07-27T18:07:26.991147 #12648] INFO -- : worker=3 ready`

We’ve tried turning off Cloudflare and/or various components of it, including the firewall. Regardless, the admin dashboard won’t load. Everything else about the forum is working as expected. Everything was working as expected prior to rebuilding.

Every other part of the Admin section works as expected… it’s only the dashboard portion that won’t load.

Any ideas?

---

<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.Июль.2018 18:31:11 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/2 "2018-07-27T18:31:11Z")

</div>

First step to try will be to purge cache from cloudflare

Second, Go to `/admin/upgrade` and upgrade to latest

if none of those solve this for you, third will be to rebuild the container

---

<div class="post-metadata">

### Author: ![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)
#### Post date: [27.Июль.2018 18:36:43 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/4 "2018-07-27T18:36:43Z")

</div>

I will dig more if upgrade doesn’t solve it. Let me know.

---

<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.Июль.2018 18:38:00 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/5 "2018-07-27T18:38:00Z")

</div>

I’m on +21 and dashboard is loading fine as of now! as there is cloudflare involved, I’m almost certain that it is something to do with caching at their end but I can be wrong too.

---

<div class="post-metadata">

### Author: ![clay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clay/32/102156_2.png) [@clay](https://meta.discourse.org/u/clay)
#### Post date: [27.Июль.2018 18:38:29 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/6 "2018-07-27T18:38:29Z")

</div>

> [@j.jaffeux](#):
>
> I will dig more if upgrade doesn’t solve it. Let me know.

Thanks, I’ll take a look. I have a sense it is Cloudflare, too, but our fiddling with it so far hasn’t been successful.

---

<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.Июль.2018 18:39:56 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/7 "2018-07-27T18:39:56Z")

</div>

Easiest way to know if it’s cloudflare is to disable their optimizations by going to DNS and disabling it (turning orange cloud grey by clicking it) and then a force refresh byCTRL+F5

---

<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: [28.Июль.2018 02:06:08 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/8 "2018-07-28T02:06:08Z")

</div>

You really REALLY do not want all traffic going through CloudFlare to a Discourse instance. We’ve had dozens of issues with CloudFlare “accidentally” breaking Discourse over the last couple of years. Search here if you don’t believe me.

---

<div class="post-metadata">

### Author: ![clay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clay/32/102156_2.png) [@clay](https://meta.discourse.org/u/clay)
#### Post date: [28.Июль.2018 02:06:57 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/9 "2018-07-28T02:06:57Z")

</div>

Ok, thanks. I’ll do some searching to try to figure out the best way to set it up. It should be fine just serving up images and cat gifs, etc. though, right?

I appreciate the support.

---

<div class="post-metadata">

### Author: ![clay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clay/32/102156_2.png) [@clay](https://meta.discourse.org/u/clay)
#### Post date: [28.Июль.2018 02:31:46 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/10 "2018-07-28T02:31:46Z")

</div>

> [@itsbhanusharma](#):
>
> First step to try will be to purge cache from cloudflare
> 
> Second, Go to `/admin/upgrade` and upgrade to latest
> 
> if none of those solve this for you, third will be to rebuild the container

Ok, I did all of those things and none of them addressed the issue. We tried completely disabling Cloudflare and it still won’t work. It’s ONLY the bottom part of the Admin Dashboard page.

Now on [v2.1.0.beta3 +30](https://github.com/discourse/discourse/compare/7a1a1eb4c0eb32922899b9b8732c1c8f77e8663c...tests-passed). Any further suggestions? I’m happy to give anything a shot.

---

<div class="post-metadata">

### Author: ![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)
#### Post date: [29.Июль.2018 00:44:28 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/11 "2018-07-29T00:44:28Z")

</div>

Can you post me a screen of what you see and the exact url you are on please ? Also do you see any error in the browser console?

---

<div class="post-metadata">

### Author: ![Wingtip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wingtip/32/102039_2.png) [@Wingtip](https://meta.discourse.org/u/Wingtip)
#### Post date: [29.Июль.2018 01:15:03 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/12 "2018-07-29T01:15:03Z")

</div>

The URL is “/admin”. Attachments below.

Admin dashboard trying to load. It sits here spinning for around 30s.

 ![qt3_admin_loading](https://global.discourse-cdn.com/meta/original/3X/9/7/974def0cc34fd4c7bf3798a54abb538c9ed605c0.png)

---

<div class="post-metadata">

### Author: ![Wingtip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wingtip/32/102039_2.png) [@Wingtip](https://meta.discourse.org/u/Wingtip)
#### Post date: [29.Июль.2018 01:15:35 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/13 "2018-07-29T01:15:35Z")

</div>

(Forum only allows me to post one image per post as I’m new.)

Admin dashboard after timing out:

 ![qt3_admin_failed](https://global.discourse-cdn.com/meta/original/3X/5/4/54631cda12659076b428ae55f6b345692af9cc79.png)

---

<div class="post-metadata">

### Author: ![Wingtip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wingtip/32/102039_2.png) [@Wingtip](https://meta.discourse.org/u/Wingtip)
#### Post date: [29.Июль.2018 01:16:39 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/14 "2018-07-29T01:16:39Z")

</div>

Error console. Link in the error goes to “/admin/dashboard/general.json?\_=1532826528550” if that matters.

 ![qt3_admin_console](https://global.discourse-cdn.com/meta/original/3X/6/7/6758162a8aaa004ab53ba92bde04f2e7e9dd72f4.png)

Also just noticed I had uBlock origin enabled in these shots, the behavior is absolutely identical with it disabled.

Just to emphasize, Cloudflare is completely disabled for the entire domain.

---

<div class="post-metadata">

### Author: ![clay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clay/32/102156_2.png) [@clay](https://meta.discourse.org/u/clay)
#### Post date: [29.Июль.2018 01:27:36 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/15 "2018-07-29T01:27:36Z")

</div>

I would add that I was mistaken in saying that using curl from the VM works on the URL. It does not.

---

<div class="post-metadata">

### Author: ![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)
#### Post date: [29.Июль.2018 01:30:03 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/16 "2018-07-29T01:30:03Z")

</div>

does clicking on moderation tab works?

---

<div class="post-metadata">

### Author: ![Wingtip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wingtip/32/102039_2.png) [@Wingtip](https://meta.discourse.org/u/Wingtip)
#### Post date: [29.Июль.2018 01:33:21 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/17 "2018-07-29T01:33:21Z")

</div>

Yep, works fine. Loads very quickly and no errors.

---

<div class="post-metadata">

### Author: ![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)
#### Post date: [29.Июль.2018 01:35:29 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/18 "2018-07-29T01:35:29Z")

</div>

Ok nice.

Does any one of these doesn’t load?

```plaintext
admin/reports/signups
admin/reports/topics
admin/reports/posts
admin/reports/dau_by_mau
admin/reports/daily_engaged_users
admin/reports/new_contributors
admin/reports/top_referred_topics
admin/reports/trending_search

```

---

<div class="post-metadata">

### Author: ![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)
#### Post date: [29.Июль.2018 01:37:00 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/19 "2018-07-29T01:37:00Z")

</div>

Also note, I’m trying to help you debug this here, but next week I will push a commit to make it way easier to know what the error is, instead of this “exception” window.

---

<div class="post-metadata">

### Author: ![Wingtip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wingtip/32/102039_2.png) [@Wingtip](https://meta.discourse.org/u/Wingtip)
#### Post date: [29.Июль.2018 01:38:25 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/20 "2018-07-29T01:38:25Z")

</div>

Every one of those URLs loads swiftly with no errors.

And good to hear! This isn’t mission-critical as the entire site works except that dashboard, but it is a bit annoying. Really appreciate your help on a saturday night!

---

<div class="post-metadata">

### Author: ![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)
#### Post date: [29.Июль.2018 01:40:23 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311/21 "2018-07-29T01:40:23Z")

</div>

Ok let’s way tuesday then, thanks for the debugging

[Следующая страница](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311.md?page=2)
