After latest admin/upgrade my Admin dashboard won't load

AI-generated summary

The user jerdog is experiencing issues with their Admin dashboard after a recent admin/upgrade to Discourse version v2.2.0.beta3. The dashboard fails to load, displaying a spinning animation, and returns an error. Despite multiple rebuilds, the issue persists.

jerdog investigated further, finding that the /admin/dashboard/general.json endpoint is returning a JSON object with a null value for disk_space, which codinghorror jokingly pointed out as the problem. However, jerdog clarified that disk space is not an issue.

jerdog discovered several errors in the browser console, including issues with loading resources, a “Cannot set user agent for iframe” error, and an “Uncaught TypeError” in an Ember jQuery file. They also found a thread on meta.discourse.org that suggested a bad upgrade or incompatible plugin, but jerdog reported no plugins were added or changed.

zogstrip suggested trying safe mode, but jerdog reported the same issue. dax pointed out that the errors could be related to unofficial plugins or a known issue with the Who’s Online plugin. jerdog confirmed that they only have official plugins, except for Who’s Online, and that the issue is likely the same as one reported on meta.discourse.org.

Installed v2.2.0.beta3 +73

After I performed a recent admin/upgrade my Admin dashboard won’t load, just sits there spinning and then loads this:

The rest of the site works just fine.

In addition, that specific link it mentions which it seems loads the data for the graphs

/admin/dashboard/general.json

takes awhile and then gives this:

{"updated_at":"2018-10-19T18:38:11.106Z","last_backup_taken_at":"2018-10-19T18:14:25.000Z","disk_space":null}

Well, there’s your problem.. you have null disk space :wink:

I have plenty of space, nothing via df -h is out of space. Also everything works as it should except for the Admin graphs. I’ve done a few /admin/upgrade since with no problems. Backups continue to happen with no issues.

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G     0  2.0G   0% /dev
tmpfs           395M   46M  350M  12% /run
/dev/xvda1       99G   17G   78G  18% /
tmpfs           2.0G  1.1M  2.0G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/xvdf        50G   20G   27G  43% /var/lib/docker
/dev/xvdg        50G  8.9G   38G  20% /var/docker/shared/standalone/backups/default
cgmfs           100K     0  100K   0% /run/cgmanager/fs
tmpfs           395M     0  395M   0% /run/user/1000
none             50G   20G   27G  43% /var/lib/docker/aufs/mnt/ef1a013ecf1a173d19b2459a065f61eb1d24e597ef94afcefc87761b8dcceff1

I also just did a rebuild and it’s still doing this…

Ok so no one has any ideas here? =) My dashboard is effectively dead and I have rebuilt multiple times with no errors.

Looking into my browser console:

content.js:150 Error: Cannot set user agent for iframe with location different to this page

and

error in _ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:9861

Uncaught TypeError: e.indexOf is not a function
    at we.fn.init.we.fn.load (_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:9861)
    at window.jsonFeed (b9a6ce49-e39b-4ac1-b776-b740bd27ba7b.js:6)
    at geolocation.onetrust.com/cookieconsentpub/v1/geo/countries/EU?callback=jQuery33109029024044289335_1540209825048&_=1540209825049:1

a number of Failed to load resource: net::ERR_BLOCKED_BY_CLIENT for google analytics, twitter, facebook, etc.

and a number of errors for /whos-online

MESSAGE BUS FAIL: callback /whos-online caused exception s.user.get is not a function

then these:

admin/dashboard/general.json?_=1540209825052:1 Failed to load resource: the server responded with a status of 502 (Bad Gateway)

general.json:1 Failed to load resource: the server responded with a status of 502 (Bad Gateway)

I see this thread:

https://meta.discourse.org/t/latest-update-breaks-admin-dashboard/30987

which suggests a bad upgrade or incompatible plugin… no plugins added / changed between the last time things worked and the /admin/upgrade - so potential bad upgrade? I didn’t receive any errors either when rebuilding or the upgrade, so unsure what to do at this point?

Does your site work in safe mode? If it does, then try to find the plugin(s) that’s causing your issues.

Generally these errors only indicate that you are using some tool that blocks trackers

This is unrelated, is an error of which @david is aware of and that will fix as soon as he has time to do it (it appears from the previous version of Discourse).

Each update may inadvertently break third-party plugins already installed. Do you have unofficial plugins installed? Try to uninstall them and do the rebuild only with the official ones.

Much more likely it could be that you have the same problem that happened here:

Same issue in safe mode with everything disabled.

All official, with the exception of Who's Online

And yes, looks to be the same…