Skip to content

Commit 299bf65

Browse files
committed
Fix Grafana UI freezing caused by auth token rotation loop
Root cause identified from browser Network tab: - 1040 requests in 12 seconds - Endless /api/user/auth-tokens/rotate calls every 7-8ms - Runaway polling loop blocking browser main thread Solution: Disable automatic auth token rotation - GF_AUTH_TOKEN_ROTATION_INTERVAL_MINUTES=0 This stops Grafana from continuously polling the auth token rotation endpoint, which was causing the browser to freeze.
1 parent b9e13cc commit 299bf65

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docker-compose.logging.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,14 @@ services:
4242
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:-admin}
4343
- GF_USERS_ALLOW_SIGN_UP=false
4444
- GF_INSTALL_PLUGINS=
45+
# Fix auth token rotation loop causing UI freeze
46+
- GF_AUTH_TOKEN_ROTATION_INTERVAL_MINUTES=0
47+
- GF_AUTH_DISABLE_LOGIN_FORM=false
48+
- GF_AUTH_DISABLE_SIGNOUT_MENU=false
4549
# Performance tuning
4650
- GF_LOG_LEVEL=warn
4751
- GF_DATAPROXY_TIMEOUT=30
4852
- GF_DATAPROXY_MAX_IDLE_CONNECTIONS=100
49-
# Query optimization
50-
- GF_EXPLORE_ENABLED=true
51-
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=
52-
# Memory and rendering
53-
- GF_RENDERING_SERVER_URL=
54-
- GF_RENDERING_CALLBACK_URL=
5553
volumes:
5654
- grafana-data:/var/lib/grafana
5755
- ./grafana-datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml

0 commit comments

Comments
 (0)