I appreciate your help here. new to the forum and haproxy.
I’m getting a Failed to start HAProxy Load Balancer when restarting the haprocy services.
this is my config
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
#---------------------------------------------------------------------
main frontend which proxys to the backends
#---------------------------------------------------------------------
frontend openshift-api-server
bind *:6443
default_backend openshift-api-server
mode tcp
option tcplog
backend openshift-api-server
balance source
mode tcp
server bootstrap 10.199.8.72:6443 check
server cp-1 10.199.8.73:6443 check
server cp-2 10.199.8.74:6443 check
server cp-3 10.199.8.75:6443 check
frontend machine-config-server
bind *:22623
default_backend machine-config-server
mode tcp
option tcplog
backend machine-config-server
balance source
mode tcp
server bootstrap 10.199.8.72:22623 check
server cp-1 10.199.8.73:22623 check
server cp-2 10.199.8.74:22623 check
server cp-3 10.199.8.75:22623 check
frontend ingress-http
bind *:80
default_backend ingress-http
mode tcp
option tcplog
backend ingress-http
balance source
mode tcp
server node1 10.199.8.76:80 check
server node2 10.199.8.77:80 check
server node3 10.199.8.78:80 check
frontend ingress-https
bind *:443
default_backend ingress-https
mode tcp
option tcplog
backend ingress-https
balance source
mode tcp
server node1 10.199.8.76:443 check
server node2 10.199.8.77:443 check
server node3 10.199.8.78:443 check
when resarting the service, I have this
[root@dhcp-10-199-8-140 haproxy]# systemctl status haproxy.service
● haproxy.service - HAProxy Load Balancer
Loaded: loaded (/usr/lib/systemd/system/haproxy.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-01-27 23:43:36 EST; 3min 42s ago
Process: 35032 ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $OPTIONS (code=exited, status=1/FAILURE)
Process: 35031 ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 35032 (code=exited, status=1/FAILURE)
Jan 27 23:43:36 dhcp-10-199-8-140 haproxy[35032]: [WARNING] 026/234336 (35032) : config : ‘option forwardfor’ ignored for frontend ‘machine-config-server’ as it requires HTTP m>
Jan 27 23:43:36 dhcp-10-199-8-140 haproxy[35032]: [WARNING] 026/234336 (35032) : config : ‘option forwardfor’ ignored for backend ‘machine-config-server’ as it requires HTTP mo>
Jan 27 23:43:36 dhcp-10-199-8-140 haproxy[35032]: [WARNING] 026/234336 (35032) : config : ‘option forwardfor’ ignored for frontend ‘ingress-http’ as it requires HTTP mode.
Jan 27 23:43:36 dhcp-10-199-8-140 haproxy[35032]: [WARNING] 026/234336 (35032) : config : ‘option forwardfor’ ignored for backend ‘ingress-http’ as it requires HTTP mode.
Jan 27 23:43:36 dhcp-10-199-8-140 haproxy[35032]: [WARNING] 026/234336 (35032) : config : ‘option forwardfor’ ignored for frontend ‘ingress-https’ as it requires HTTP mode.
Jan 27 23:43:36 dhcp-10-199-8-140 haproxy[35032]: [WARNING] 026/234336 (35032) : config : ‘option forwardfor’ ignored for backend ‘ingress-https’ as it requires HTTP mode.
Jan 27 23:43:36 dhcp-10-199-8-140 haproxy[35032]: [ALERT] 026/234336 (35032) : Starting frontend machine-config-server: cannot bind socket [0.0.0.0:22623]
Jan 27 23:43:36 dhcp-10-199-8-140 systemd[1]: haproxy.service: Main process exited, code=exited, status=1/FAILURE
Jan 27 23:43:36 dhcp-10-199-8-140 systemd[1]: haproxy.service: Failed with result ‘exit-code’.
Jan 27 23:43:36 dhcp-10-199-8-140 systemd[1]: Failed to start HAProxy Load Balancer.
any thoughts
Appreciate your support