I have lots of third party plugins and a Discourse upgrade broke my site

(EW 👌) #1

I just did a rebuild and I lost access to the site - Only my CSS menu showing! Completely white screen.
I did rebuild again, I did restarted my droplet but nothing changed.
Could you please check on the last commit!

(Jeff Atwood) #2

We deploy meta and try automatically on all commits, unless the smoke test “is the screen blank” fails, which is quite rare. So whatever you are seeing is unlikely to be related to last commit.

(EW 👌) #3

It was working just fine. After I read about the Digest email improvement, I wanted to test and for that I did rebuild. So what else could be!

When I logged in after restart I noticed that Processes and Memory usage is not normal. I remember them to be around 0 first start! I don’t know if its mean anything Discourse wise!

System information as of Fri Nov 18 17:23:59 EST 2016

  System load:  0.07               Processes:              124
  Usage of /:   16.6% of 39.25GB   Users logged in:        0
  Memory usage: 70%                IP address for eth0:
  Swap usage:   0%                 IP address for docker0:

(EW 👌) #4

Any idea what could be? Or how to debug?
I became blank as my Discourse screen. I really don’t know what to do.

Help Please!

(cpradio) #5

Are you able to see /logs? And if so, what do you see there?

What do you see in the dev console when you visit your site?

(EW 👌) #6

Thanks for reply. This is the first time happening to me. Blank screen after rebuild. Normally I look at the logs from the /admin but now I have no access to anything on the site.

So I don’t know where to look for logs or dev console.

Sorry. Nothing is working but /logs is, saying:
Discourse::InvalidAccess (Discourse::InvalidAccess)
/var/www/discourse/plugins/docker_manager/app/controllers/docker_manager/application_controller.rb:20:in `ensure_admin’

(Jeff Atwood) #7

Usually this is due to incompatible plugins. Disable all your plugins.

(cpradio) #8

If you are truly seeing a blank screen you should be able to visit your site and press F12.

The error you are showing right there simply means you are trying to visit /admin/upgrade or /admin/docker and are not logged in.

(EW 👌) #9

I wasn’t able to visit my Discourse home page. I’d tried many times.

Now, I did disabled the plugins and I’m rebuilding now. Let’s see

(EW 👌) #10

I did disabled all the plugins including the #official and after rebuild the site is working now. But the strange thing that I’d never changed anything in my setup before that rebuild which made my screen blank.

Most probably one of the last commits made problem for one or more plugins. Early today I’d another rebuild just to refresh my system without any problem. So should be latest commit changed something. Sure, all what I’m saying is logic analyse and you know better.

So what to do Now? Do I need to reinstall my plugins one bye one with rebuild in between to be able to understand the problem? (by this way it would take all night)

(Jeff Atwood) #11

Dunno, but @sam is working on a “safe mode” right now that makes this “broken third party plugin, but which one” scenario easier to test, and should be available next week.

(EW 👌) #12

That’s would be life saver really. Thank you all :+1::gift_heart:

(cpradio) #13

If you list your plugins here, could probably give you an insight as to which ones the culprit may lie with.

(EW 👌) #14

I did new rebuild excluding the following plugins to narrow the list and so far its working fine.

  #- git clone https://github.com/iunctis/discourse-formatting-toolbar.git
  #- git clone https://github.com/Mittineague/discourse-kinder-guardian.git
  #- git clone https://github.com/PoloGT/abbreviation-discourse-plugin.git
  #- git clone https://github.com/angusmcleod/discourse-ratings.git
  #- git clone https://github.com/mrloop/garmin_connect_onebox.git
  #- git clone https://github.com/angusmcleod/discourse-quick-messages.git
  #- git clone https://github.com/adrapereira/discourse-presence.git
  #- git clone https://github.com/discourse/browser_history.git
  #- git clone https://github.com/scossar/discourse-blog-post.git
  #- git clone https://github.com/davidtaylorhq/discourse-whos-online.git
  #- git clone https://github.com/gdpelican/retort.git

(Jeff Atwood) #15

You’re gonna have a bad time with that many third-party plugins. On every upgrade.

(Nicholas Tolstoshev) #16

I had the same thing happen today and I narrowed it down to this plugin:

git clone GitHub - angusmcleod/discourse-ratings

(Simon Cossar) #17

I’m not sure if it’s related, but I tested the blog-post plugin after seeing this. It didn’t crash my site, but I’m getting a depreciation notice:

discourse/views/topic-status` was moved to `discourse/raw-views/topic-status

The result of this is that the blog icon doesn’t show up in the topic list. Changing the import statement in the code fixes the problem, but I"m not sure how to make that backwards compatible.