Hi
I’ve installed HAProxy and dataplane API in Ubuntu and works well, however, when I install the same in RHEL I’m having an issue. After commiting a transaction with the API I see the following errors in the /var/log/dataplaneapi.log file:
time=“2025-07-09T22:03:50Z” level=info msg=“54.86.50.139 - - [09/Jul/2025:22:03:50 +0000] "PUT /v3/services/haproxy/transactions/641edc85-31ea-4fde-aeac-682a3bf4fd2c HTTP/1.1" 202 78 "-" "PostmanRuntime/7.44.1"”
time=“2025-07-09T22:03:53Z” level=info msg=“Reload failed, reverting the last working config…” reload_id=2025-07-09-0
time=“2025-07-09T22:03:53Z” level=warning msg=“Reload failed: executing sudo -n systemctl reload haproxy failed: exit status 1” reload_id=2025-07-09-0
After that I’m unable to start haproxy:
[ec2-user@ip-172-31-94-119 haproxy]$ sudo systemctl start haproxy
Job for haproxy.service failed because the control process exited with error code.
See “systemctl status haproxy.service” and “journalctl -xeu haproxy.service” for details.
From the command journalctl -u haproxy:
Jul 09 22:06:16 ip-172-31-94-119.ec2.internal systemd[1]: Starting haproxy.service - HAProxy Load Balancer…
Jul 09 22:06:16 ip-172-31-94-119.ec2.internal systemd[1]: haproxy.service: Control process exited, code=exited, status=1/FAILURE
Jul 09 22:06:16 ip-172-31-94-119.ec2.internal systemd[1]: haproxy.service: Failed with result ‘exit-code’.
Jul 09 22:06:16 ip-172-31-94-119.ec2.internal systemd[1]: Failed to start haproxy.service - HAProxy Load Balancer
Even though I see errors in dataplane logs I can see some lines are added to the /etc/haproxy/haproxy.cfg file:
_md5hash=f58127bfff933b10f997e0f2a5831a35
_version=2
Dataplaneapi managed File
changing file directly can cause a conflict if dataplaneapi is running
---------------------------------------------------------------------
It looks like the dataplane API is able to write additional lines to the file but there’s some issue with the reload process. I noticed that if I delete the haproxy.cfg file and create it again the haproxy service can start again. Something is happening when using the dataplane API.