This error is usually due to Grafana not being able to find its frontend files (which I hope the main error describes). This can be due to proxy settings - changing the root_url setting for example changes the paths for the JavaScript files that Grafana loads on start up.
Reverse Proxy docs: https://grafana.com/docs/grafana/latest/installation/behind_proxy/#running-grafana-behind-a-reverse-proxy