SOLVED - Login details not displayed 21.0.3 on Microsoft Edge (Windows)

I’m not sure how to fully describe this, or if it’s a bug, so this might be a little but of a ramble!

My Nextcloud instance runs in a FreeBSD (12.3) jail on TrueNAS (12.0-U2) and was/is working perfectly on 20.0.8. It’s running on NGINX 1.18.0_25 with PHP 7.4.13.

At the weekend I upgraded to 21.0.0 (who doesn’t want more speed!) which on first impressions seemed to have worked fine. Certainly, on my own devices everything was working.

When I tried to access on my work device (running Windows 10 and Edge as a browser) the login screen was missing the fields to login, although the screen itself was displayed.

I checked everything again on my devices (mainly Apple) and it was fine, and even Microsoft Edge on the Mac worked. One of the biggest benefits for me is accessing files from work though, so I rolled back to the 20.0.8 update and voila, it’s working again on my work machine.

Not sure where to even start trying to diagnose, but it suggests to me there’s a problem somewhere? I did take the console errors from Edge as below, which might help?

    GET https://nextcloud.domain.com/core/js/dist/main.js?v=aa23ac9d-5 net::ERR_ABORTED 403 (Forbidden)
fileinfo.js:150 Uncaught ReferenceError: OC is not defined
    at Object.<anonymous> (fileinfo.js:150)
    at Object.702 (files_fileinfo.js?v=aa23ac9d-5:1)
    at r (bootstrap:19)
    at bootstrap:83
    at files_fileinfo.js?v=aa23ac9d-5:1
(anonymous) @ fileinfo.js:150
702 @ files_fileinfo.js?v=aa23ac9d-5:1
r @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ files_fileinfo.js?v=aa23ac9d-5:1
login:21 GET https://nextcloud.domain.com/core/js/dist/files_client.js?v=aa23ac9d-5 net::ERR_ABORTED 403 (Forbidden)
merged-template-prepend.js?v=aa23ac9d-5:26 Uncaught ReferenceError: OC is not defined
    at merged-template-prepend.js?v=aa23ac9d-5:26
(anonymous) @ merged-template-prepend.js?v=aa23ac9d-5:26
en_GB.js?v=aa23ac9d-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=aa23ac9d-5:1
(anonymous) @ en_GB.js?v=aa23ac9d-5:1
en_GB.js?v=aa23ac9d-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=aa23ac9d-5:1
(anonymous) @ en_GB.js?v=aa23ac9d-5:1
index.js:24 Uncaught ReferenceError: OC is not defined
    at Object.344 (index.js:24)
    at r (bootstrap:19)
    at bootstrap:83
    at main.js?v=aa23ac9d-5:1
344 @ index.js:24
r @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ main.js?v=aa23ac9d-5:1
viewer.js:22 Uncaught ReferenceError: OC is not defined
    at Module.<anonymous> (viewer.js:22)
    at o (bootstrap:63)
    at bootstrap:195
    at bootstrap:195
(anonymous) @ viewer.js:22
o @ bootstrap:63
(anonymous) @ bootstrap:195
(anonymous) @ bootstrap:195
en_GB.js?v=aa23ac9d-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=aa23ac9d-5:1
(anonymous) @ en_GB.js?v=aa23ac9d-5:1
script.js?v=aa23ac9d-5:492 Uncaught ReferenceError: jQuery is not defined
    at script.js?v=aa23ac9d-5:492
(anonymous) @ script.js?v=aa23ac9d-5:492
files.js?v=aa23ac9d-5:122 Uncaught ReferenceError: jQuery is not defined
    at files.js?v=aa23ac9d-5:122
(anonymous) @ files.js?v=aa23ac9d-5:122
en_GB.js?v=aa23ac9d-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=aa23ac9d-5:1
(anonymous) @ en_GB.js?v=aa23ac9d-5:1
theming.js?v=aa23ac9d-5:1 Uncaught ReferenceError: OCA is not defined
    at theming.js?v=aa23ac9d-5:1
(anonymous) @ theming.js?v=aa23ac9d-5:1
login:33 GET https://nextcloud.domain.com/core/js/dist/login.js?v=aa23ac9d-5 net::ERR_ABORTED 403 (Forbidden)
login:1 Error while trying to use the following icon from the Manifest: https://nextcloud.domain.com/index.php/apps/theming/icon?v=5 (Download error or resource isn't a valid image)

I’ll hold off on 21 for a little while longer.

I didn’t find a lot of recent references, a few old ones. Could be something with the cache for the js/css files. Normally that should be renewed on the server especially after an upgrade. Could be on the server or perhaps on the client, did you try on a different browser?

Thanks for the reply. I can’t try another browser on my work laptop, but 21.0.0 worked fine on my own devices using Chrome, Safari and Edge on macOS. I’m back running 20.0.8 and will give 21 another go in a few months.

Perhaps just something cached in the Edge browser?

In case there is a bug, you have to be lucky that someone else finds the same bug, reports it and it gets fixed. But for productive environments, it’s not a bad idea to be more conservative with upgrades and not to install the very first release.

I’m still seeing this on 21.0.1. Anyone else having this issue on Microsoft Edge? Not seeing this behaviour on Safari or Chrome, but I don’t have any browser choice on my work laptop.

These are some of the errors in the Edge developer console:

    GET https://nextcloud.domain.co.uk/core/js/dist/main.js?v=c1917792-5 net::ERR_ABORTED 403 (Forbidden)
fileinfo.js:150 Uncaught ReferenceError: OC is not defined
    at Object.<anonymous> (fileinfo.js:150)
    at Object.705 (files_fileinfo.js?v=c1917792-5:1)
    at r (bootstrap:19)
    at bootstrap:83
    at files_fileinfo.js?v=c1917792-5:1
(anonymous) @ fileinfo.js:150
705 @ files_fileinfo.js?v=c1917792-5:1
r @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ files_fileinfo.js?v=c1917792-5:1
login:23 GET https://nextcloud.domain.co.uk/core/js/dist/files_client.js?v=c1917792-5 net::ERR_ABORTED 403 (Forbidden)
merged-template-prepend.js?v=c1917792-5:26 Uncaught ReferenceError: OC is not defined
    at merged-template-prepend.js?v=c1917792-5:26
(anonymous) @ merged-template-prepend.js?v=c1917792-5:26
en_GB.js?v=c1917792-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=c1917792-5:1
(anonymous) @ en_GB.js?v=c1917792-5:1
en_GB.js?v=c1917792-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=c1917792-5:1
(anonymous) @ en_GB.js?v=c1917792-5:1
main.js?v=c1917792-5:249 Uncaught ReferenceError: OCA is not defined
    at main.js?v=c1917792-5:249
(anonymous) @ main.js?v=c1917792-5:249
en_GB.js?v=c1917792-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=c1917792-5:1
(anonymous) @ en_GB.js?v=c1917792-5:1
index.js:24 Uncaught ReferenceError: OC is not defined
    at Object.344 (index.js:24)
    at r (bootstrap:19)
    at bootstrap:83
    at main.js?v=c1917792-5:1

That’s weird, since Edge is Chromium based :thinking:

It looks like something is blocking JavaScript - Please can you check, if there are any restrictions in place on that work machine? It might also be worth to clear the cache/cookies in Edge as mentioned by @tflidd

Sometimes browsers like to stay with old stuff, rather than updating if necessary

It wasn’t a browser caching issue, as I cleared that and the problem persisted. I’ve rolled things back again as I need it to be working on this device at the minute.

There’s clearly a change between 20.0.8 and 21.0.1 that Edge on Windows doesn’t like though, as it’s working fine back on 20.0.8.

This is still an issue on Edge 91.0.864.59 and with Nextcloud 21.0.3.

I tried again to upgrade from 20.0.11 last night but while everything appears to be fine on Google Chrome (running on my home macOS devices) it doesn’t work on Windows Edge and simply displays a login screen without anyone way to enter the credentials.

I don’t know if this is something to do with this error I was seeing, but I can’t see any reference to this in the documentation

Same errors in the developer console:

Failed to load resource: the server responded with a status of 403 (Forbidden)
fileinfo.js:150 Uncaught ReferenceError: OC is not defined
    at Object.<anonymous> (fileinfo.js:150)
    at Object.707 (files_fileinfo.js?v=6c51e95b-5:1)
    at r (bootstrap:19)
    at bootstrap:83
    at files_fileinfo.js?v=6c51e95b-5:1
files_client.js:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
merged-template-prepend.js?v=6c51e95b-5:26 Uncaught ReferenceError: OC is not defined
    at merged-template-prepend.js?v=6c51e95b-5:26
en_GB.js?v=6c51e95b-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=6c51e95b-5:1
en_GB.js?v=6c51e95b-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=6c51e95b-5:1
index.js:24 Uncaught ReferenceError: OC is not defined
    at Object.344 (index.js:24)
    at r (bootstrap:19)
    at bootstrap:83
    at main.js?v=6c51e95b-5:1
en_GB.js?v=6c51e95b-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=6c51e95b-5:1
apporder.js?v=6c51e95b-5:1 Uncaught ReferenceError: $ is not defined
    at apporder.js?v=6c51e95b-5:1
viewer.js:22 Uncaught ReferenceError: OC is not defined
    at Module.<anonymous> (viewer.js:22)
    at o (bootstrap:63)
    at bootstrap:195
    at bootstrap:195
en_GB.js?v=6c51e95b-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=6c51e95b-5:1
script.js?v=6c51e95b-5:492 Uncaught ReferenceError: jQuery is not defined
    at script.js?v=6c51e95b-5:492
files.js?v=6c51e95b-5:122 Uncaught ReferenceError: jQuery is not defined
    at files.js?v=6c51e95b-5:122
en_GB.js?v=6c51e95b-5:1 Uncaught ReferenceError: OC is not defined
    at en_GB.js?v=6c51e95b-5:1
theming.js?v=6c51e95b-5:1 Uncaught ReferenceError: OCA is not defined
    at theming.js?v=6c51e95b-5:1
login.js:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
login:1 Error while trying to use the following icon from the Manifest: https://nextcloud.domain.com/index.php/apps/theming/icon?v=5 (Download error or resource isn't a valid image)

22 is out now and would really like to try and move off 20, although I can’t unless I can get it working on Edge

I just checked myself, I have a setup with NC 21.0.3 and I can login with Edge version 91.0.864.70 (Official build) (64-bit)
and this one works as well: https://try.nextcloud.com/

Perhaps an app? Anything “exotic” installed?

I’ve got a few things installed from the App Store, but I didn’t think anything was ‘exotic’ :slight_smile:

|Accessibility|1.6.0|
|Activities for shared file downloads|1.9.0|
|Activity|2.13.4|
|AppOrder|0.13.0|
|Auditing / Logging|1.10.0|
|Bookmarks|4.2.2|
|Brute-force settings|2.2.0|
|Calendar|2.3.1|
|Camera RAW Previews|0.7.11|
|Collaborative tags|1.10.0|
|Comments|1.10.0|
|Contacts|4.0.0|
|Contacts Interaction|1.1.0|
|Dashboard|7.0.0|
|Deck|1.2.8|
|Deleted files|1.10.1|
|Draw.io|1.0.1|
|Federation|1.10.1|
|File access control|1.10.2|
|File sharing|1.12.2|
|First run wizard|2.9.0|
|Full text search|20.0.2|
|Full text search - Files|20.0.4|
|Log Reader|2.5.0|
|Mail|1.10.1|
|Maps|0.1.9|
|Mind Map|0.0.24|
|Monitoring|1.10.0|
|News|16.0.0|
|Nextcloud announcements|1.9.0|
|Notes|4.1.0|
|Notifications|2.8.0|
|ONLYOFFICE|6.4.2|
|Password policy|1.10.1|
|PDF viewer|2.0.1|
|Photos|1.2.3|
|Privacy|1.4.0|
|Quick notes|0.6.7|
|Recommendations|0.8.0|
|Right click|0.17.0|
|Share by mail|1.10.0|
|Support|1.3.0|
|Talk|10.0.9|
|Tasks|0.13.6|
|Text|3.1.0|
|Theming|1.11.0|
|Two-Factor TOTP Provider|5.0.0|
|Update notification|1.10.0|
|Usage survey|1.8.0|
|User status|1.0.1|
|Versions|1.13.0|
|Video player|1.9.0|
|Weather status|1.0.0|

These are a lot of apps. You can probably exclude the ones that I’m using:

  - accessibility: 1.7.0
  - activity: 2.14.3
  - bookmarks: 4.2.2
  - calendar: 2.3.0
  - checksum: 1.1.2
  - cloud_federation_api: 1.4.0
  - comments: 1.11.0
  - contactsinteraction: 1.2.0
  - dashboard: 7.1.0
  - dav: 1.17.1
  - deck: 1.4.2
  - federatedfilesharing: 1.11.0
  - federation: 1.11.0
  - files: 1.16.0
  - files_automatedtagging: 1.11.0
  - files_external: 1.12.0
  - files_pdfviewer: 2.1.0
  - files_rightclick: 1.0.0
  - files_sharing: 1.13.1
  - files_trashbin: 1.11.0
  - files_versions: 1.14.0
  - files_videoplayer: 1.10.0
  - firstrunwizard: 2.10.0
  - gpxmotion: 0.1.0
  - gpxpod: 4.2.8
  - integration_discourse: 1.0.0
  - logreader: 2.6.0
  - lookup_server_connector: 1.9.0
  - news: 16.0.0
  - nextcloud_announcements: 1.10.0
  - notifications: 2.9.0
  - oauth2: 1.9.0
  - password_policy: 1.11.0
  - photos: 1.3.0
  - privacy: 1.5.0
  - provisioning_api: 1.11.0
  - recommendations: 1.0.0
  - serverinfo: 1.11.0
  - settings: 1.3.0
  - sharebymail: 1.11.0
  - systemtags: 1.11.0
  - text: 3.2.0
  - twofactor_backupcodes: 1.10.0
  - twofactor_totp: 6.1.0
  - twofactor_u2f: 6.2.0
  - updatenotification: 1.11.0
  - user_external: 2.0.0
  - user_status: 1.1.1
  - viewer: 1.5.0
  - weather_status: 1.1.0
  - workflowengine: 2.3.0

Thanks for your help. I’m just about to head off for a week on Skye so won’t get time to play with this until I get back, but I will try to disable some apps and see if that helps.

I thought the Nextcloud update would do that automatically though for incompatible apps?

@tflidd thanks again for your help with this. After much more frustration and App elimination I was no further to resolving this. Eventually I stripped everything back and found the problem in my reverse-proxy settings, which I still don’t really understand give it worked in every browser I’d tested other than Edge. It’s working on that now, running 21.0.4 and most of the Apps above, although I did review my usage of them all and deleted a few no longer required.

I’m having the exact same problem with my nginx reverse proxy. Everything works when I connect directly to the nextcloud instance but I’m getting these js error when I go through the proxy. What did you change to make it work again?

I’m using NGINX Proxy Manager and it was simply a case of switching on/off the Cache Assets slider setting for the Nextcloud host. Had the same issue upgrading to 22 (from 21) and this fixed that again.

1 Like