Hi!
I have 2 Orgs in Grafana (localhost).
First one is handmade. Everything is working well.
Then I’ve created the second Org by API, made API-key and for this Org made a Datasource - all by API.
Datasource - settings are the same as in the first handmade Org.
Auth for the datasource: basic
–
Have an error “response is undefined”.
I can’t catch the qwery at my back - query don’t achieve my basic path: http://localhost/GrafanaService/ as it does in handmade Org.
In the log file I have such message:
t=2019-11-15T09:39:54+0300 lvl=eror msg=“Basic auth failed” logger=context error=“User not found”
t=2019-11-15T09:39:54+0300 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/api/datasources/proxy/26/ status=401 remote_addr=127.0.0.1 time_ms=0 size=31 referer=http://localhost:8080/datasources/edit/26/
–
handmade datasource for this Org is not working too - the same error.
–
When making another one datasource, for exaple, Graphite with my path http://localhost/GrafanaService/ - it works. And I can catch the wuery at my back. Logs are:
t=2019-11-15T09:58:42+0300 lvl=info msg=“Request Completed” logger=context userId=1 orgId=14 uname=admin method=POST path=/api/datasources/proxy/28/render status=502 remote_addr=127.0.0.1 time_ms=367 size=0 referer=http://localhost:8080/datasources/edit/28/
==
The logs differ with userId and orgId. Whern having error my userId is 0.
How can I reach the clue and fix the error?
Rgrds, Sergey