Page MenuHomePhabricator

Grafana has failed to load its application files
Closed, DeclinedPublic

Description

Trying to open https://grafana.wikimedia.org results in the following error message:

If you're seeing this Grafana has failed to load its application files


1. This could be caused by your reverse proxy settings.

2. If you host grafana under subpath make sure your grafana.ini root_url setting includes subpath

3. If you have a local dev build make sure you build frontend using: yarn start, yarn start:hot, or yarn build

4. Sometimes restarting grafana-server can help

The JavaScript console includes the following uncaught exception:

app.4dfc71bc8d372c0fbd33.js:2
Uncaught 
  Exception
    columnNumber: 0
    data: null
    filename: "https://grafana.wikimedia.org/public/build/app.4dfc71bc8d372c0fbd33.js"
    lineNumber: 2
    message: ""
    name: "NS_ERROR_FILE_CORRUPTED"
    result: 2152857611
    stack: "
      value@https://grafana.wikimedia.org/public/build/app.4dfc71bc8d372c0fbd33.js:2:1066231 
      value@https://grafana.wikimedia.org/public/build/app.4dfc71bc8d372c0fbd33.js:2:1065722
      tEy8@https://grafana.wikimedia.org/public/build/app.4dfc71bc8d372c0fbd33.js:2:2559002
      i@https://grafana.wikimedia.org/public/build/runtime.4dfc71bc8d372c0fbd33.js:1:561
      KyLG@https://grafana.wikimedia.org/public/build/app.4dfc71bc8d372c0fbd33.js:2:872129
      i@https://grafana.wikimedia.org/public/build/runtime.4dfc71bc8d372c0fbd33.js:1:561
      J4KJ@https://grafana.wikimedia.org/public/build/app.4dfc71bc8d372c0fbd33.js:2:818824
      i@https://grafana.wikimedia.org/public/build/runtime.4dfc71bc8d372c0fbd33.js:1:561
      Vw/f@https://grafana.wikimedia.org/public/build/app.4dfc71bc8d372c0fbd33.js:2:1210398
      i@https://grafana.wikimedia.org/public/build/runtime.4dfc71bc8d372c0fbd33.js:1:561
      zl43@https://grafana.wikimedia.org/public/build/app.4dfc71bc8d372c0fbd33.js:2:2671765
      i@https://grafana.wikimedia.org/public/build/runtime.4dfc71bc8d372c0fbd33.js:1:561
      r@https://grafana.wikimedia.org/public/build/runtime.4dfc71bc8d372c0fbd33.js:1:430
      t@https://grafana.wikimedia.org/public/build/runtime.4dfc71bc8d372c0fbd33.js:1:293
      @https://grafana.wikimedia.org/public/build/vendors~app.4dfc71bc8d372c0fbd33.js:2:47
      "
  <prototype>: ExceptionPrototype { toString: toString(), name: Getter, message: Getter,  }
  value store.ts:50
  value store.ts:21
  tEy8 reducers.ts:53
  Webpack 12
        i
        KyLG
        i
        J4KJ
        i
        f
        i
        zl43
        i
        r
        t
        <anonymous>

This is in Firefox 80.0.1 (64-bit) on Linux. All the network resources loaded by grafana.wikimedia.org load 200 OK. Client-side caching is disabled. The same error occurs on every load.

GET https://grafana.wikimedia.org/
HTTP/2 200 OK
date: Sun, 06 Sep 2020 20:24:56 GMT
server: Apache
cache-control: no-cache
content-type: text/html; charset=UTF-8
expires: -1
pragma: no-cache
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
vary: Accept-Encoding
content-encoding: gzip
age: 0
x-cache: cp2031 miss, cp2027 pass
x-cache-status: pass
server-timing: cache;desc="pass"
strict-transport-security: max-age=106384710; includeSubDomains; preload
x-client-ip: ***
accept-ranges: bytes
X-Firefox-Spdy: h2
GET https://grafana.wikimedia.org/public/build/app.4dfc71bc8d372c0fbd33.js
HTTP/2 200 OK
date: Sun, 06 Sep 2020 20:24:56 GMT
server: Apache
accept-ranges: bytes
cache-control: public, max-age=31536000
content-type: application/javascript
last-modified: Thu, 06 Aug 2020 12:41:03 GMT
vary: Accept-Encoding
content-encoding: gzip
age: 0
x-cache: cp2031 miss, cp2027 pass
x-cache-status: pass
server-timing: cache;desc="pass"
strict-transport-security: max-age=106384710; includeSubDomains; preload
x-client-ip: ***
X-Firefox-Spdy: h2

The response headers for the above request are representative of all of the JS requests.
Others in #wikimedia-tech reported that Grafana works fine for them.

Event Timeline

I was in #wikimedia-tech when @AntiCompositeNumber reported this issue. I had no issues on https://grafana.wikimedia.org/, so I'm not sure what might be going on.

Huh. I restarted Firefox, and now it works. I'd already done that once though...

lmata subscribed.

Closing for now, please reopen if this happens again. Thank you!