Recently updated to v10.2.3 (1e84fede543acc892d2a2515187e545eb047f237) and currently having trouble with the browser reloading the page at fixed intervals. Intervals are sometimes almost exactly 1 hour, sometimes 20 minutes. I have not changed any configurations, only updated the image used in my Docker container.
The error looks as follows:
Everything works fine.
Suddenly, 2 notifications pop up: “NetworkError when attempting to fetch resource.” and “Unauthorized.”
1 second later, barely enough time to read the notifications, the browser reloads the page.
The dashboard loads normally, no login needed.
This will repeat at fixed intervals; I have observed 1 hour and 20-minute intervals.
What I tried:
Cleaned browser cache, cookies, and data.
Checked login_maximum_inactive_lifetime_duration
and login_maximum_lifetime_duration
, which are not set, so default values are active, which are something like 30 days.
The error occurs in Firefox; I’m not sure if other browsers are impacted as well, as I do not use Chromium-based browsers.
Since the error is persistent, I reverted to version 10.1.6, and the issue seems to be gone. Not really a solution though.
Hi @globus243 ,
Welcome to the community support forums !!
We are excited that you joined our OSS community. Please read about some of the FAQs in the community
Please review the submission template and include more details:
What is your datasource?
What visualization panel you are using e.g. time-series, bar chart, histogram etc?
What happened (share some screenshots or even better a small screencast)?
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?
akin4
May 27, 2024, 5:35pm
4
I’m experiencing this issue too, ever since upgrading to 10.4 and now 11.0
Pretty standard install and usage I’d think. Anything I should look into?
We had a similar issue; a logout seems to fix it. You can hit the URL directly https://grafana../logout
mrdsam
June 18, 2024, 1:22pm
6
In our case the firefox plugin “µBlock Origin ” was the culprit.
Disabling the plugin for the grafana website solved the problem. Still unclear what exactly caused it.
FWIW, I’m facing the very same problem with 11.4.0 on firefox.
Also without any browser extension installed and on a freshly created browser profile
on multiple clients.
I am also experiencing the same issue. The problem was caused by the Firefox extension “µBlock Origin,” and disabling the plugin for the Grafana site resolved it.
if you are still encountering any kind of problem please feel free to get in touch with me
axeluhl
February 4, 2025, 5:06pm
10
Same problem on Firefox 134.0 (64-bit) on Ubuntu, Grafana v11.5.1 (c6c701cf5b) running as Docker container on Debian, also in private tabs with no active extensions or plug-ins. The issue occurred first when I had to re-start the server running the docker host that runs the grafana docker container after the AC adapter had failed and needed to be replaced.
I’ll try one more thing and recover the grafana config from a backup to see if anything happened to the contents of the mounted /var/lib/grafana folder during the outage…
axeluhl
February 4, 2025, 5:45pm
11
I think what fixed it here was correcting the system time on the docker host running the grafana docker container. Due to the AC adapter outage, system time was ~20min behind, despite having chronyd running. But the stepping of chronyd is slow, so launching chronyc, then issuing the command “makestep” adjusted the system time immediately. No problems ever since
Edit: Never mind, stopped having this issue after putting Grafana behind an ingress.
I’m also seeing this with Safari.
CHART APP VERSION
grafana-8.10.1 11.5.2
I blocked the page from reloading and the endpoints are returning:
{
"extra": null,
"message": "Unauthorized",
"messageId": "session.token.rotate",
"statusCode": 401,
"traceID": ""
}
If I open a new grafana tab, then the existing tab starts working again.
Seems to happen every 10 minutes. Using default admin user.
Logs
logger=permissions.sync t=2025-02-22T20:28:40.352094729Z level=error msg="Failed to fetch permissions from db" error="context canceled" id=1
logger=authn.service t=2025-02-22T20:28:40.352124429Z level=warn msg="Failed to run post auth hook" client=auth.client.session id=1 error="[permissions.sync.forbidden] "
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:28:40.35218728Z level=info msg="Request Completed" method=GET path=/api/datasources/proxy/uid/P4169E866C3094E38/api/v1/query_range status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=2 duration=2.494399ms size=40 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/datasources/proxy/uid/:uid/* status_source=server error="[permissions.sync.forbidden] "
logger=id-service t=2025-02-22T20:28:40.378751473Z level=debug msg="Sign new id token" id=user:1
logger=accesscontrol t=2025-02-22T20:28:40.393949663Z level=debug msg="Evaluating permissions" id=user:1 orgID=1 permissions="action:annotations:read scopes:"
logger=accesscontrol t=2025-02-22T20:28:40.394055974Z level=debug msg="Evaluating permissions" id=user:1 orgID=1 permissions="action:annotations:read scopes:"
logger=id-service t=2025-02-22T20:28:40.399971224Z level=debug msg="Cached token found" id=user:1
logger=accesscontrol t=2025-02-22T20:28:40.400096465Z level=debug msg="Evaluating permissions" id=user:1 orgID=1 permissions="action:annotations:read scopes:"
logger=ngalert.scheduler t=2025-02-22T20:28:50.00101911Z level=debug msg="Alert rules fetched" rulesCount=0 foldersCount=0 updatedRules=0
logger=ngalert.scheduler t=2025-02-22T20:29:00.001483477Z level=debug msg="Alert rules fetched" rulesCount=0 foldersCount=0 updatedRules=0
logger=ngalert.scheduler t=2025-02-22T20:29:10.001213333Z level=debug msg="Alert rules fetched" rulesCount=0 foldersCount=0 updatedRules=0
logger=authn.service t=2025-02-22T20:29:10.346382551Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.346474502Z level=info msg="Request Completed" method=GET path=/api/datasources/proxy/uid/P4169E866C3094E38/api/v1/query_range status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=884.35µs size=105 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/datasources/proxy/uid/:uid/* status_source=server errorReason=Unauthorized errorMessageID=session.token.rotate error="token needs to be rotated"
logger=authn.service t=2025-02-22T20:29:10.350527282Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.350589163Z level=info msg="Request Completed" method=GET path=/api/datasources/proxy/uid/P4169E866C3094E38/api/v1/query_range status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=437.665µs size=105 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/datasources/proxy/uid/:uid/* status_source=server errorReason=Unauthorized errorMessageID=session.token.rotate error="token needs to be rotated"
logger=authn.service t=2025-02-22T20:29:10.351260231Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.351309222Z level=info msg="Request Completed" method=GET path=/api/datasources/proxy/uid/P4169E866C3094E38/api/v1/query_range status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=450.515µs size=105 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/datasources/proxy/uid/:uid/* status_source=server errorReason=Unauthorized errorMessageID=session.token.rotate error="token needs to be rotated"
logger=authn.service t=2025-02-22T20:29:10.351307432Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.351398943Z level=info msg="Request Completed" method=GET path=/api/annotations status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=587.237µs size=105 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/annotations status_source=server errorReason=Unauthorized errorMessageID=session.token.rotate error="token needs to be rotated"
logger=authn.service t=2025-02-22T20:29:10.352711418Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=authn.service t=2025-02-22T20:29:10.352772029Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.352779419Z level=info msg="Request Completed" method=GET path=/api/annotations status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=404.985µs size=105 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/annotations status_source=server errorReason=Unauthorized errorMessageID=session.token.rotate error="token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.352822339Z level=info msg="Request Completed" method=GET path=/api/datasources/proxy/uid/P4169E866C3094E38/api/v1/query_range status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=378.094µs size=105 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/datasources/proxy/uid/:uid/* status_source=server errorReason=Unauthorized errorMessageID=session.token.rotate error="token needs to be rotated"
logger=authn.service t=2025-02-22T20:29:10.354770243Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.354910085Z level=info msg="Request Completed" method=GET path=/api/annotations status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=680.158µs size=105 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/annotations status_source=server errorReason=Unauthorized errorMessageID=session.token.rotate error="token needs to be rotated"
logger=authn.service t=2025-02-22T20:29:10.358864523Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.358959714Z level=info msg="Request Completed" method=GET path=/api/datasources/proxy/uid/P4169E866C3094E38/api/v1/query_range status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=8 duration=8.033607ms size=105 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/datasources/proxy/uid/:uid/* status_source=server errorReason=Unauthorized errorMessageID=session.token.rotate error="token needs to be rotated"
logger=authn.service t=2025-02-22T20:29:10.359031366Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.359095956Z level=info msg="Request Completed" method=GET path=/api/login/ping status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=540.977µs size=26 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/login/ping status_source=server
logger=authn.service t=2025-02-22T20:29:10.359220008Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.359278799Z level=info msg="Request Completed" method=GET path=/api/login/ping status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=575.057µs size=26 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/login/ping status_source=server
logger=authn.service t=2025-02-22T20:29:10.36107266Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.361178651Z level=info msg="Request Completed" method=GET path=/api/login/ping status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=446.266µs size=26 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/login/ping status_source=server
logger=authn.service t=2025-02-22T20:29:10.362767981Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.362837281Z level=info msg="Request Completed" method=GET path=/api/login/ping status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=467.125µs size=26 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/login/ping status_source=server
logger=authn.service t=2025-02-22T20:29:10.363227816Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.363287677Z level=info msg="Request Completed" method=GET path=/api/login/ping status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=852.78µs size=26 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/login/ping status_source=server
logger=authn.service t=2025-02-22T20:29:10.36520245Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.365280031Z level=info msg="Request Completed" method=GET path=/api/login/ping status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=657.889µs size=26 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/login/ping status_source=server
logger=authn.service t=2025-02-22T20:29:10.366701998Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=authn.service t=2025-02-22T20:29:10.366731208Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.366768729Z level=info msg="Request Completed" method=GET path=/api/login/ping status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=8 duration=8.066817ms size=26 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/login/ping status_source=server
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.366800419Z level=info msg="Request Completed" method=GET path=/api/login/ping status=401 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=8 duration=8.082508ms size=26 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/api/login/ping status_source=server
logger=authn.service t=2025-02-22T20:29:10.381280575Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.381353546Z level=info msg="Request Completed" method=GET path=/d/k8s_system_apisrv/kubernetes-system-api-server status=302 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=0 duration=462.825µs size=267 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/d/:uid/:slug status_source=server
logger=authn.service t=2025-02-22T20:29:10.398835518Z level=debug msg="Failed to authenticate request" client=auth.client.session error="[session.token.rotate] token needs to be rotated"
logger=auth t=2025-02-22T20:29:10.399203852Z level=debug msg="Rotating token" tokenID=4 userID=1 createdAt=1740255534 rotatedAt=1740255534
logger=context userId=0 orgId=0 uname= t=2025-02-22T20:29:10.413220733Z level=info msg="Request Completed" method=GET path=/user/auth-tokens/rotate status=302 remote_addr=[fdaa::d8d2:7de5:cb31:4060] time_ms=14 duration=14.728419ms size=221 referer="http://[fd01:10:100:1b10:4::c919]:3000/d/k8s_system_apisrv/kubernetes-system-api-server?from=now-1h&orgId=1&refresh=30s&timezone=browser&to=now&var-cluster=&var-datasource=P4169E866C3094E38&var-resolution=30s" handler=/user/auth-tokens/rotate status_source=server
logger=auth t=2025-02-22T20:29:10.439075316Z level=debug msg="Seen token" tokenID=4 userID=1 clientIP=fdaa::d8d2:7de5:cb31:4060 userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15" authToken=3daf3ff9417806d910de76c543b6f38ab57efc4e7001150d66d676d5f8d1bbbc
logger=id-service t=2025-02-22T20:29:10.440546414Z level=debug msg="Cached token found" id=user:1