You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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."
Note: I'm not using a reverse proxy, but rather I'm accessing the operation via Public IP:port/grafana/, with a collective access address of http://public:8080/grafana/
Symptom
The problem is that Grafana Web, which OpenTelemetry integrates with, opens correctly.
Reproduce
Additional Context
Here's exactly how I deployed it:
Server Configuration 8c16GB 1Mbps
root@OpenTelemetry:~# uname -a
Linux OpenTelemetry 5.4.0-189-generic #209-Ubuntu SMP Fri Jun 7 14:05:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
# install opentelemetry-demo
mkdir -p opentelemetry &&cd opentelemetry
git clone https://github.com/open-telemetry/opentelemetry-demo.git
cd opentelemetry-demo/
docker compose up --force-recreate --remove-orphans --detach
Grafana url access exception occurs after the deployment is completed, the specific error is reported as follows: : if you're seeing this grafana has failed to load its application files
I tried to add : environment to the Grafana configuration inside ,But it still gives the same error as above
/opentelemetry/opentelemetry-demo# vim docker-compose.yml
Environment:
-GF SERVER SERVE FROM SUB PATH=true#。.。
-GF_SERVER_RO0T_URL=%(protocol)s://%(domain)s:%(http_port)s/grafana
It seems that the variables I configured above didn't successfully take effect after a container restart. I decided to write them dead! This successfully solved my problem and the grafana web opens properly!
root@OpenTelemetry:~/opentelemetry/opentelemetry-demo# vim docker-compose.yml
# Grafana
grafana:
image: ${GRAFANA_IMAGE}
container_name: grafana
deploy:
resources:
limits:
memory: 100M
restart: unless-stopped
environment:
- "GF_INSTALL_PLUGINS=grafana-opensearch-datasource"
- "GF_SERVER_SERVE_FROM_SUB_PATH=true"#increase
- "GF_SERVER_ROOT_URL=http://public IP address:8080/grafana/"#increase
volumes:
- ./src/grafana/grafana.ini:/etc/grafana/grafana.ini
- ./src/grafana/provisioning/:/etc/grafana/provisioning/
ports:
- "${GRAFANA_SERVICE_PORT}"
logging: *logging
root@OpenTelemetry:~/opentelemetry/opentelemetry-demo# vim src/grafana/grafana.ini
root_url = http://public IP address:8080/grafana/
serve_from_sub_path = true
docker compose down && docker compose down up -d
The text was updated successfully, but these errors were encountered:
Grafana is exposed through the frontend-proxy service and not directly. Please follow the docs to start the demo, which asks to use make a start instead of docker compose. When doing this you will get a URL to load the Grafana UI.
Bug Report
On my side, I followed the official website documentation address : https://opentelemetry.io/docs/demo/docker-deployment/
When everything is containerized and healthy, the following error occurs when I access the address in the document (http://localhost:8080/grafana/) :
"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."
Note: I'm not using a reverse proxy, but rather I'm accessing the operation via
Public IP:port/grafana/
, with a collective access address ofhttp://public:8080/grafana/
Symptom
The problem is that Grafana Web, which OpenTelemetry integrates with, opens correctly.
Reproduce
Additional Context
Here's exactly how I deployed it:
Grafana url access exception occurs after the deployment is completed, the specific error is reported as follows: :
if you're seeing this grafana has failed to load its application files
I tried to add : environment to the Grafana configuration inside ,But it still gives the same error as above
It seems that the variables I configured above didn't successfully take effect after a container restart. I decided to write them dead! This successfully solved my problem and the grafana web opens properly!
The text was updated successfully, but these errors were encountered: