I’m upgrading the haproxy version to HAProxy version 2.4.22-f8e3218 using RHEL-9 servers. I’m facing to major errors while running the haproxy service
Starting frontend GLOBAL: error when trying to preserve previous UNIX socket (Permission denied) [/var/lib/haproxy/stats]
[/usr/sbin/haproxy.main()] Some protocols failed to start their listeners! Exiting.
I checked a few previous blogs and posts that mentioned that we should create the /var/lib/haproxy/stats file which I did but I’m not able to find the issue.
The global congif file is
global
chroot /var/lib/haproxy
cpu-map 1 0
cpu-map 2 1
cpu-map 3 2
cpu-map 4 3
daemon
group haproxy
log 127.0.0.1 local2
maxconn 4000
nbthread 4
pidfile /var/run/haproxy.pid
# Removed the ssl-default-cipher part and bind option part
stats socket /var/lib/haproxy/stats mode 600 level admin
user haproxy
Please help me find the root cause.
5 posts - 3 participants