SOCKERR after Upgrade from 1.8 to 2+

Hello,

In one of my test boxes I upgraded to from 1.8 to 2+. After upgrade I get a socket error. I have 3 posgres db being managed by patroni. If I downgrade everything goes back to the norm. Below is my haproxy.cfg

#---------------------------------------------------------------------

Global settings

#---------------------------------------------------------------------
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
# turn on stats unix socket
stats socket /var/lib/haproxy/stats

#---------------------------------------------------------------------

common defaults that all the ‘listen’ and ‘backend’ sections will

use if not designated in their block

#---------------------------------------------------------------------
defaults
mode tcp
log global
timeout http-request 10s
timeout connect 10s
timeout client 30m
timeout server 30m
timeout check 10s
maxconn 100

listen postgres
bind *:5000
mode tcp
option httpchk
http-check expect status 200
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
server ah-1193063-001 30.167.223.9:5432 check port 8008
server ah-1193066-001 30.83.236.152:5432 check port 8008
server ah-1193068-001 30.83.222.28:5432 check port 8008

listen stats
bind *:8088
mode http
stats enable
stats uri /
stats refresh 5s
stats auth stats:statspass

Also, I am using Redhat 8 and Patroni 2.1.4 framework