Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana doesn't work without an Internet connection #1627

Open
flands opened this issue Jun 23, 2024 · 3 comments
Open

Grafana doesn't work without an Internet connection #1627

flands opened this issue Jun 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@flands
Copy link
Contributor

flands commented Jun 23, 2024

Bug Report

Which version of the demo you are using? 1.10.0

Symptom

If you attempt to start the demo application without an Internet connection (containers already pulled down), then Grafana is not access and restarts every minute

What is the expected behavior?

If you have the demo environment containers locally, then the demo environment should work without an Internet connection.

What is the actual behavior?

The demo environment requires an Internet connection for Grafana to work even if container are already pulled down.

Reproduce

Pull version 1.10.0 and run make start-minimal with an Internet connection. Once running, run make stop. Disable your Internet. Run make start-minmal. Once running, attempt to access Grafana.

Additional Context

If you look at the logs for Grafana without an Internet connection you will see: Error: ✗ Get "https://grafana.com/api/plugins/grafana-opensearch-datasource/versions": dial tcp: lookup grafana.com on 127.0.0.11:53: no such host

I see several potential issues. The root cause appears to be because src/grafana/provisioning/datasources/opensearch.yaml has access: proxy set. If you remove this, the issue is resolved. I can make this change if everyone is aligned.

Beyond this, it appears src/grafana/grafana.ini has check_for_updates = true and check_for_plugin_updates = true. I'm not sure whether this will result in Grafana being unavailable, but also seems unnecessary for the demo environments. I can make this change if everyone is aligned.

@flands flands added the bug Something isn't working label Jun 23, 2024
@julianocosta89
Copy link
Member

I'm good with the suggestions.
I actually faced the same during my flight this week 😅
I wanted to run the demo to test the feature flags issue you reported and I saw that Grafana wasn't starting.

@flands
Copy link
Contributor Author

flands commented Jun 26, 2024

OK, I will get a PR up!

flands added a commit to flands/opentelemetry-demo that referenced this issue Jun 26, 2024
flands added a commit to flands/opentelemetry-demo that referenced this issue Jun 26, 2024
@flands
Copy link
Contributor Author

flands commented Jun 30, 2024

Turns out this is a bit more complicated - see #1633 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants