-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to run haproxy on CentOS7 - corrupted haproxy.cfg and haproxy.service #28
Comments
Well, there are several problems with the RPM package:
I include a proper working basic haproxy.cfg as demonstration configuration, based on the used one here:
|
It's not the TLS things themselves that should be commented out, it's their placement that is wrong. Move the On RHEL9 you typically also need to |
Hi,
I tried to run HAProxy on CentOS7 with the default configuration (build, install, run). I think the problem is global for all OS. What I see.
haproxy.cfg
file is corrupted (fatal error),haproxy.service
is corrupted, and something is wrong with-W
and-S
. In general cannot start HAProxy after build and install.Details:
haproxy.cfg
file:ca-base
,crt-base
,ssl-default-bind-ciphers
- needs to be in global sectionhaproxy
does not existstats socket /run/haproxy/haproxy.sock mode 600 level admin
systemctl start haproxy
showsSteps to reproduce:
After I ran
systemctl start haproxy
got the error:As you can see below, the default configuration file
haproxy.cfg
was corrupted.I fixed fatal errors and warnings. I tried to start HAProxy again and got an error
The full command (ExecStartPre) to run HAProxy is
/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -c -S /run/haproxy-master.sock
(to debug removed-q
)And return got a fatal error
I can play with
-W
parameter to solve the problem, but this is not a point. I cannot run haproxy service because configuration file and haproxy.service is corrupted.The text was updated successfully, but these errors were encountered: