# Haproxy redis communication problem

**URL:** <https://discourse.haproxy.org/t/haproxy-redis-communication-problem/796>\
**Category:** Help!\
**Created:** [November 10, 2016, 4:59am UTC](https://discourse.haproxy.org/t/haproxy-redis-communication-problem/796 "2016-11-10T04:59:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g1001p](https://avatars.discourse-cdn.com/v4/letter/g/d9b06d/32.png) [@g1001p](https://discourse.haproxy.org/u/g1001p)\
**Post date:** [November 10, 2016, 4:59am UTC](https://discourse.haproxy.org/t/haproxy-redis-communication-problem/796/1 "2016-11-10T04:59:32Z")

</div>

Hi Dear forume  
I am checking Redis high availability solution via configuration of master and slave Redis Kubernetes pods and sentinel on top of it. For failover of external client connections, I installed haproxy pod. I encountered with some issue while started testing the configuration:

Redis is closing forwarding connections from HAPROXY - client reporting error

Error: Server closed the connection.

BTW: if Redis is configured with an empty password, the connection is passing OK.

I appreciate any idea and advice.  
My HA proxy cfg file has the following entries:

global  
daemon  
maxconn 500

defaults  
mode http  
timeout connect 5000ms  
timeout client 50000ms  
timeout server 50000ms

frontend rotatingproxies  
bind \*:3000  
default\_backend rotateproxy  
option http\_proxy  
option http-use-proxy-header

backend rotateproxy  
option http\_proxy  
server proxyserver user:pass@domain.com:9999  
server proxyserver user:pass@domain.com:9999  
balance roundrobin
