# Failed to start HAProxy Load Balancer - openshift

**URL:** <https://discourse.haproxy.org/t/failed-to-start-haproxy-load-balancer-openshift/6193>\
**Category:** Help!\
**Created:** [January 28, 2021, 4:55am UTC](https://discourse.haproxy.org/t/failed-to-start-haproxy-load-balancer-openshift/6193 "2021-01-28T04:55:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mouradb](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/mouradb/32/1366_2.png) [@mouradb](https://discourse.haproxy.org/u/mouradb)\
**Post date:** [January 28, 2021, 4:55am UTC](https://discourse.haproxy.org/t/failed-to-start-haproxy-load-balancer-openshift/6193/1 "2021-01-28T04:55:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [January 28, 2021, 8:22am UTC](https://discourse.haproxy.org/t/failed-to-start-haproxy-load-balancer-openshift/6193/2 "2021-01-28T08:22:10Z")

</div>

> [@mouradb](#):
>
> Starting frontend machine-config-server: cannot bind socket [0.0.0.0:22623]

Your kernel does not allow haproxy to bind to port 22623. You may want to check if you have other processes listening on this port.
