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

Unable to install or list plugins because of short timeout #5585

Closed
brianburton opened this issue Jul 14, 2016 · 3 comments
Closed

Unable to install or list plugins because of short timeout #5585

brianburton opened this issue Jul 14, 2016 · 3 comments

Comments

@brianburton
Copy link

All attempts to run grafana-cli to list or install plugins fail with the following message:

Error: Get https://grafana.net/api/plugins/repo: dial tcp: i/o timeout

Yet from the same system I can access the endpoint and receive JSON response. It just takes a few seconds. Is this extremely short timeout adjustable in some way? I didn't see anything in /etc/grafana/grafana.ini file or in the --help output of grafana-cli.

curl https://grafana.net/api/plugins/repo/alexanderzobnin-zabbix-app|wc

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1678 100 1678 0 0 283 0 0:00:05 0:00:05 --:--:-- 498

There have been some other issues related to this but they were closed after some unrelated change.

Running grafana grafana-3.0.2 from yum repo on a CentOS 7 docker image.

@torkelo
Copy link
Member

torkelo commented Jul 14, 2016

strange, unable to replicate it here :(

@brianburton
Copy link
Author

Do you get a 5 second response time from the endpoint? If not you won't get the timeout and won't be able to reproduce.

My question is simply can I override that very short timeout? Is that possible?

I wound up hard coding the IP for grafana.net into /etc/hosts. The DNS lookup appeared to be slow. However there are two other tickets where this timeout issue came up so increasing its default will probably help others later.

@brianburton
Copy link
Author

I modified the /etc/resolve.conf file to remove the default, slow DNS server and use a faster one. Now these timeouts are fixed without having to hard code the IPs. Maybe others who encountered this problem had the same root cause as me. If so then we can probably close this. Unless you think the timeout is something you could make adjustable in grafana?

BTW - loving grafana! Great system for creating high quality dashboards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants