Other users get "Grafana has failed to load its application files" from browser when trying to access Grafana UI

Hello, I’ve setup Grafana in my work environment successfully, so we can monitor various physical severs and containers. But others are getting an error web page when trying to access the web UI.

I’m currently running Grafana with Prometheus and Prometheus Node Exporter from RHEL 8 workstation with Podman v3.4.2. We are not using a Reverse Proxy.

I’m able to login into Grafana successfully from my workstation, able to import a few dashboards and monitor two of our physical servers. Going good so far.

When I send out the URL for the web UI (using Firefox that came with RHEL 8), other users are getting the following when trying to access it:

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. If not using a reverse proxy make sure to set serve_from_sub_path to true.

  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-serve can help

  5. Check if you are using a non-supported browser. For more information, refer to the list of supported browsers.

This is the command I used to run the Grafana container:

sudo podman run -dit --name grafana --net podman -p 3000:3000 --privileged
-v /etc/grafana/grafana.ini:/etc/grafana/grafana.ini:Z
-v grafana-storage:/var/lib/grafana:Z
docker.io/grafana/grafana:latest

I’ve made the following changes to the /etc/grafana/grafana.ini

domain = FQDN (of the workstation I’m working from daily)

serve_from_sub_path = true

Restarted the container and same result as before.

To test, I’ve downloaded an httpd image (Apache), launched a container from my workstation, and from a remote workstation able to access the Test Page, so I know I can reach web content being served up from my Workstation remotely.

thanks

Any updates on this?! I face the same issue. From my browser it works fine, but when I try to acces it from a browser on a raspberry pi, it throws up the error. I also changed the subpath variable to true. Thanks!

I have no feedback on how to fix this.

Can you give more info on how you set the subpath variable to true?

thanks

I just was able to fix the problem on my side. It was because of outdated browsers. I downloaded the latest versions and now grafana is accessible.

Regards,
Swaytha

1 Like

Spot on my friend.

We upgraded Mozilla Firefox to the latest that Red Hat has to offer, and that fixed the issue.

thanks!!!

This happens with the WebView in Xamarin Forms as well.
Its clearly a Grafana compatibility problem with “older” browsers - older grafana versions work just fine in the WebView.
Is there a way to tell “new” Grafana to use an older library to be more compatible?
Without a fix, Grafana will no longer be visible in apps on XBox and HoloLens

(post deleted by author)

My issue was isolated to my chrome browser only. I updated it and also cleared my cookies and cache and the issue resolved!