I am new to Grafana 5.1.3 and AWS. Does anyone have any experience with the following error? I get it when trying to Save & Test my CloudWatch data source. I am on GovCloud and behind a corporate proxy.
Thanks so much!
t=2018-06-14T18:58:31+0000 lvl=eror msg=“Metric request error” logger=context userId=1 orgId=1 uname=admin error=“Failed to call cloudwatch:ListMetrics, RequestError: send request failed\ncaused by: Post https://monitoring.us-gov-west-1.amazonaws.com/: dial tcp: lookup monitoring.us-gov-west-1.amazonaws.com on 10.250.0.10:53: no such host”
Running 5.2.0-beta1 manually works for me. Is it because of this 5.2.0 fix?
Login: Use proxy server from environment variable if available #9703 , thx @iyeonok
opened 08:22PM - 27 Oct 17 UTC
closed 06:51PM - 28 May 18 UTC
type/bug
area/auth
area/auth/oauth
Please include this information:
- What Grafana version are you using?
4.6.0
… - What datasource are you using?
Graphite
- What OS are you running grafana on?
CentOS 7.4
- What did you do?
Upgraded from 4.5.2 to 4.6.0. No settings were changed.
- What was the expected result?
I should be able to click the login with google button and sign in.
- What happened instead?
I went to sign in with Google auth and get an error: login.OAuthLogin(NewTransportWithCode)
I manage my Grafana install via Puppet and did nothing other than rev the version. So all of my configs are exactly the same.
I have http_proxy, https_proxy, and no_proxy defined in /etc/sysconfig/grafana-server
I verified that the running process has these set in it's environment by looking at:
cat /proc/$(pgrep grafana-server)/environ
Relevant log line:
t=2017-10-27T12:36:22-0700 lvl=eror msg=login.OAuthLogin(NewTransportWithCode) logger=context userId=0 orgId=0 uname= error="Post https://accounts.google.com/o/oauth2/token: dial tcp 216.58.216.141:443: getsockopt: connection refused"
If I revert back to 4.5.2 everything works fine.
It seems that it works if I just run from .tar.gz but does not work from yum install and service grafana-server start. Is there somewhere in a config that I need to put my proxy settings when the service runs???
Problem resolved for me now. I just had to add the following to my /etc/sysconfig/grafana-server
export http_proxy=http://myproxy:80
export https_proxy=http://myproxy:80
export no_proxy=‘host1, host2, host3, etc’
1 Like