Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Grafana - Invalid Basic Auth Header: Invalid basic auth header

avatar
Expert Contributor

Everytime I try to access Grafana and/or browse through it, I see below error in "grafana.log":

2017/02/10 15:14:14 [middleware.go:145 initContextWithBasicAuth()] [E] Invalid Basic Auth Header: Invalid basic auth header
2017/02/10 15:14:14 [I] Completed 10.128.211.106 admin "GET /api/datasources/proxy/1/ws/v1/timeline/metrics HTTP/1.1" 401 Unauthorized 39 bytes in 43us

If I make "auth.basc=false" I'm getting below error:

Connecting (POST) to myserver.com:3000/api/datasources
Http response: 403 Forbidden
Http data: {"message":"Permission denied"}
Ambari Metrics Grafana data source creation failed.

It's a new install on HDP stack: 2.4.3.0 with Kerberos and SPNEGO is enabled

I had such issue with HDP 2.3.4 but the suggested workaround is not working with 2.4.3.0:

https://community.hortonworks.com/questions/59160/grafana-initcontextwithbasicauth-e-invalid-basic-a...

3 REPLIES 3

avatar
Expert Contributor

@Aravindan Vijayan,

please help...

avatar
Super Guru

@P D

It is probably related to https://issues.apache.org/jira/browse/AMBARI-14384.

Good link: https://github.com/grafana/grafana/issues to monitor community issues with Grafana.

The only Grafana Community tickets that are close to yours:

https://github.com/GridProtectionAlliance/osisoftpi-grafana/issues/2

https://github.com/grafana/grafana/issues/7550

Later was closed prematurely. If you could document your issue a little bit more, you could also post the question on grafana community.

avatar
Expert Contributor

Yes it seems to be related. I'll keep eyes on it. Actually, I've just opened a case with Hortonworks too.