Grafana SSO - Azure AD error

Hi,
Anyone has seen below error , how to fix this?
When I click on sign it with microsoft , first time i get this error (attached) and 2nd time I am able to login.
We have LB and two host associated with this?
LB - Alpine Partners
My grafana ini file on one host , same on other except root url has qe-1

#################################### Server ##############################
[server]
# Protocol (http, https, h2, socket)
protocol = https
# Minimum TLS version allowed. By default, this value is empty. Accepted values are: TLS1.2, TLS1.3. If nothing is set TLS1.2 would be taken
min_tls_version = ""
# The ip address to bind to, empty will bind to all interfaces
http_addr =
# The http port to use
http_port = 3000
# The public facing domain name used to access grafana from a browser
domain = localhost
# Redirect to correct domain if host header does not match domain
# Prevents DNS rebinding attacks
enforce_domain = false
# The full public facing url
root_url = https://zbx01-grafana-poc-qe-0.az.statup.com/
# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
#serve_from_sub_path = false
serve_from_sub_path = true

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?

  • How are you trying to achieve it?

  • What happened?

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

That doesn’t look like full public facing url

Also why serve_from_sub_path = true when you don’t have subpath in root_url?

Of course all Grafana instances must share the same backend database (MySQL or Postgres). This ensures user sessions, preferences, and authentication state are consistent across all nodes.

It is also not clear from your description if you have that.

Hi, I was testing it and made it true, now I have it false but same error.