ERR_TOO_MANY_REDIRECTS with Redis as Session Store

I’m getting a ERR_TOO_MANY_REDIRECTS error when accessing grafana via DNS. Grafana is running on docker swarm which is behind HAProxy. The HAProxy instance load balances among the swarm nodes. The root_url is set to http://dns:3000/. I am using Redis as the session store via twemproxy. I verified that cookies were being created. However, accessing the login page works fine but when logging in, I get the error. I switched the session store to MySQL and I did not get the error anymore. I’d like to use redis but seems like I am forced to use MySQL.

This is my redis config :

–env ‘GF_SESSION_PROVIDER_CONFIG=addr=ip:port,pool_size=100,prefix=grafana,password=pass’

Any information would be appreciated. Thanks!

Really hard to say. Could it be something to do with the connection getting closed? See:

I would concur on the redis bug. Had the same issue and switched to ‘memory’ and it started working…