Safe reloads not working

we use this command to restart our HAProxy when the config file changes:
/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $(cat /run/haproxy.pid)
recently we’ve been seeing some weird issues, and noticed that the main process is not going away.

If I kill the main process manually and start a new process, everything seems to work fine, it’s just the safe reloads that are not working.

$ haproxy -v
HA-Proxy version 2.0.26-051d585 2021/12/03 - https://haproxy.org/
$ rpm -qa |grep haproxy
haproxy20-2.0.26-1.el7.ius.x86_64
$ rpm -q haproxy20
haproxy20-2.0.26-1.el7.ius.x86_64
cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
$ haproxy -c -f /etc/haproxy/haproxy.cfg
Configuration file is valid

  • update
    – downgrading to 2.0.24 appears to fix the problem
    – upgrading to 2.2.20 appears to fix the problem but safe reloads are taking multiple minutes instead of 10s of seconds