I’m trying to start haproxy on an Ubuntu 18.04 server. Getting the following at start:
root@myserver:~# service haproxy start
Job for haproxy.service failed because the control process exited with error code.
See "systemctl status haproxy.service" and "journalctl -xe" for details.
root@myserver:~# systemctl status haproxy.service
● haproxy.service - HAProxy Load Balancer
Loaded: loaded (/lib/systemd/system/haproxy.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-12-15 11:46:52 CET; 18s ago
Docs: man:haproxy(1)
file:/usr/share/doc/haproxy/configuration.txt.gz
Process: 2484 ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS (code=exited, status=1/FAILURE)
Dec 15 11:46:52 myserver.org systemd[1]: haproxy.service: Failed with result 'exit-code'.
Dec 15 11:46:52 myserver.org systemd[1]: Failed to start HAProxy Load Balancer.
Dec 15 11:46:52 myserver.org systemd[1]: haproxy.service: Service hold-off time over, scheduling restart.
Dec 15 11:46:52 myserver.org systemd[1]: haproxy.service: Scheduled restart job, restart counter is at 5.
Dec 15 11:46:52 myserver.org systemd[1]: Stopped HAProxy Load Balancer.
Dec 15 11:46:52 myserver.org systemd[1]: haproxy.service: Start request repeated too quickly.
Dec 15 11:46:52 myserver.org systemd[1]: haproxy.service: Failed with result 'exit-code'.
Dec 15 11:46:52 myserver.org systemd[1]: Failed to start HAProxy Load Balancer.
root@myserver:~# haproxy -v
HA-Proxy version 1.8.30-1ppa1~bionic 2021/04/12
Copyright 2000-2021 Willy Tarreau <willy@haproxy.org>