# After update to 2.1.0 admin dashboard have errors and not load

**URL:** https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061
**Category:** Bug
**Created:** [September 12, 2018, 5:31pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061 "2018-09-12T17:31:45Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Alexey\_Vasiliev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexey_vasiliev/32/111024_2.png) [@Alexey\_Vasiliev](https://meta.discourse.org/u/Alexey_Vasiliev)
#### Post date: [September 12, 2018, 5:31pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/1 "2018-09-12T17:31:45Z")

</div>

Hello everyone.

After update discourse to 2.1.0 (stable channel) admin dashboard (`/admin`) stop working

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/3/63577ee39d3cb00b5e77615d0a56f8178df01712.png)

Everything else is working in admin interface, except this page.

Information from logs:

```plaintext
NoMethodError (undefined method `error=' for nil:NilClass) /var/www/discourse/app/models/report.rb:177:in `rescue in find'

/var/www/discourse/app/models/report.rb:177:in `rescue in find'
/var/www/discourse/app/models/report.rb:159:in `find'
/var/www/discourse/app/models/admin_dashboard_next_data.rb:21:in `block in reports'
/var/www/discourse/app/models/admin_dashboard_next_data.rb:21:in `map'
/var/www/discourse/app/models/admin_dashboard_next_data.rb:21:in `reports'
/var/www/discourse/app/models/admin_dashboard_next_general_data.rb:11:in `get_json'
/var/www/discourse/app/models/admin_dashboard_next_data.rb:17:in `as_json'
/var/www/discourse/app/models/admin_dashboard_next_data.rb:9:in `fetch_stats'
/var/www/discourse/app/models/concerns/stats_cacheable.rb:26:in `refresh_stats'
/var/www/discourse/app/models/concerns/stats_cacheable.rb:21:in `fetch_cached_stats'
/var/www/discourse/app/controllers/admin/dashboard_next_controller.rb:17:in `general'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/base.rb:194:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/rendering.rb:30:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:132:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb:41:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/rescue.rb:22:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb:168:in `block in instrument'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb:168:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/base.rb:134:in `process'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionview-5.2.0/lib/action_view/rendering.rb:32:in `process'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-mini-profiler-1.0.0/lib/mini_profiler/profiling_methods.rb:104:in `block in profile_method'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal.rb:191:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal.rb:252:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/mapper.rb:18:in `block in <class:Constraints>'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/mapper.rb:48:in `serve'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/journey/router.rb:35:in `each'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/journey/router.rb:35:in `serve'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/routing/route_set.rb:840:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-protection-2.0.3/lib/rack/protection/frame_options.rb:31:in `call'
/var/www/discourse/lib/middleware/omniauth_bypass_middleware.rb:24:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/tempfile_reaper.rb:15:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/conditional_get.rb:25:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/head.rb:12:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
/var/www/discourse/lib/middleware/anonymous_cache.rb:214:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:232:in `context'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:226:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/cookies.rb:670:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:98:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/logster-1.2.11/lib/logster/middleware/reporter.rb:31:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/rack/logger.rb:38:in `call_app'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/rack/logger.rb:28:in `call'
/var/www/discourse/config/initializers/100-quiet_logger.rb:16:in `call'
/var/www/discourse/config/initializers/100-silence_logger.rb:29:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/method_override.rb:22:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/executor.rb:14:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/sendfile.rb:111:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-mini-profiler-1.0.0/lib/mini_profiler/profiler.rb:285:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/message_bus-2.1.5/lib/message_bus/rack/middleware.rb:63:in `call'
/var/www/discourse/lib/middleware/request_tracker.rb:180:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/engine.rb:524:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/railtie.rb:190:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/railtie.rb:190:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/urlmap.rb:68:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `each'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `call'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:606:in `process_client'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:701:in `worker_loop'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:549:in `spawn_missing_workers'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:142:in `start'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.5.0/bin/unicorn:23:in `load'
/var/www/discourse/vendor/bundle/ruby/2.5.0/bin/unicorn:23:in `<main>'
infobacktraceenv

```

Rebuild of a container doesn’t solve the problem.

Should I do something additional to resolve this problem after migration from 2.0.0? Maybe information in `reports` table in some invalid format?

---

<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: [September 13, 2018, 5:49am UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/3 "2018-09-13T05:49:42Z")

</div>

What plugins do you have please?

---

<div class="post-metadata">

### Author: ![Alexey\_Vasiliev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexey_vasiliev/32/111024_2.png) [@Alexey\_Vasiliev](https://meta.discourse.org/u/Alexey_Vasiliev)
#### Post date: [September 13, 2018, 6:02am UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/4 "2018-09-13T06:02:01Z")

</div>

Only docker\_manager.

 ![Screenshot_20180913-090109](https://global.discourse-cdn.com/meta/original/3X/8/3/835c7ab89cdd4f2b5550fd28d37348bf8792e1a4.png)

---

<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: [September 13, 2018, 12:15pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/5 "2018-09-13T12:15:36Z")

</div>

I have three fixes for this, not all directly related to your error, will merge them tomorrow when my coworker can have a look at it:

[https://github.com/discourse/discourse/pull/6396](https://github.com/discourse/discourse/pull/6396)  
[https://github.com/discourse/discourse/pull/6392](https://github.com/discourse/discourse/pull/6392)  
[https://github.com/discourse/discourse/pull/6391](https://github.com/discourse/discourse/pull/6391)

---

<div class="post-metadata">

### Author: ![Alexey\_Vasiliev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexey_vasiliev/32/111024_2.png) [@Alexey\_Vasiliev](https://meta.discourse.org/u/Alexey_Vasiliev)
#### Post date: [September 13, 2018, 2:03pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/6 "2018-09-13T14:03:57Z")

</div>

Thanks @j.jaffeux . Will this fixes publish in some stable patch release (like “2.1.1” version)?

---

<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: [September 13, 2018, 2:27pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/7 "2018-09-13T14:27:59Z")

</div>

This will be on master and at the very least in next version. Not sure about backporting yet, it seems like a very specific issue due to your installation, couldn’t reproduce it, and we have 0 other reports.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 13, 2018, 2:58pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/8 "2018-09-13T14:58:29Z")

</div>

FYI I am seeing this too right now. The last two updates this week led to this error on the admin dashboard. I updated via the UI. Last time when I updated and saw this, I did a rebuild from the command line and the errors went away.

Not a pressing issue for today because it is only the dashboard landing page that throws the error. I can bypass it to go directly to other admin pages without 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: [September 13, 2018, 2:59pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/9 "2018-09-13T14:59:23Z")

</div>

Ok interesting, I guess maybe we need to backport this. Thanks for the workaround.

---

<div class="post-metadata">

### Author: ![Alexey\_Vasiliev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexey_vasiliev/32/111024_2.png) [@Alexey\_Vasiliev](https://meta.discourse.org/u/Alexey_Vasiliev)
#### Post date: [September 13, 2018, 3:34pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/10 "2018-09-13T15:34:11Z")

</div>

Yep, I forgot to mention. Rebuild of container help, but only for 1-x hours. After this problem back with the same error in logs. I can provide discourse backup, maybe this can help? (Of course only for debuging, not as public fixture in tests)

---

<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: [September 13, 2018, 4:57pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/12 "2018-09-13T16:57:12Z")

</div>

I have pushed it to beta branch and tests-passed, can any of you try and see if it fixes your issue please?

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 13, 2018, 5:27pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/13 "2018-09-13T17:27:52Z")

</div>

I just upgraded via the UI and am not seeing any errors. :rocket:

---

<div class="post-metadata">

### Author: ![Alexey\_Vasiliev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexey_vasiliev/32/111024_2.png) [@Alexey\_Vasiliev](https://meta.discourse.org/u/Alexey_Vasiliev)
#### Post date: [September 13, 2018, 5:42pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/14 "2018-09-13T17:42:34Z")

</div>

I can update only stable. After update added 2 commits and dashboard loaded. Will notify about results after several hours

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/3/c3dae5654920a701904955ce3abb9e42ebf4834b.png)

---

<div class="post-metadata">

### Author: ![Alexey\_Vasiliev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexey_vasiliev/32/111024_2.png) [@Alexey\_Vasiliev](https://meta.discourse.org/u/Alexey_Vasiliev)
#### Post date: [September 13, 2018, 8:23pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/15 "2018-09-13T20:23:47Z")

</div>

Update: after one hour admin back to broken state, so that mean 2 new commits did not help. So I think big thanks @j.jaffeux for fixes - will wait for them in stable.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 13, 2018, 8:56pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/16 "2018-09-13T20:56:43Z")

</div>

mine is still working without error. I’m at

### [v2.2.0.beta1 +53](https://github.com/discourse/discourse/compare/30619c244ce30efe83af2788f5023974d140ebd6...tests-passed)

---

<div class="post-metadata">

### Author: ![Alexey\_Vasiliev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexey_vasiliev/32/111024_2.png) [@Alexey\_Vasiliev](https://meta.discourse.org/u/Alexey_Vasiliev)
#### Post date: [September 15, 2018, 3:20pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/17 "2018-09-15T15:20:04Z")

</div>

Stable version 2.1.1 looks like contain needed fixes. Now everything working - tested one day - no errors. Big thanks!

---

<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: [September 15, 2018, 4:44pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/18 "2018-09-15T16:44:20Z")

</div>

Thanks for the update and sorry about that!

---

<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: [September 15, 2018, 4:44pm UTC](https://meta.discourse.org/t/after-update-to-2-1-0-admin-dashboard-have-errors-and-not-load/97061/19 "2018-09-15T16:44:25Z")

</div>


