shsarava

Results 5 comments of shsarava

Thank you for the quick response. I tried to use the same failed config with haproxy binary and it ran successfully. I tried to run the dataplaneapi with trace logging...

**Processes I see running** root 7702 1 0 Jun21 ? 00:00:00 sudo ./dataplaneapi --port 5555 -b /usr/sbin/haproxy -c /etc/haproxy/haproxy.cfg -d 5 -r systemctl restart haproxy -s systemctl restart haproxy -u...

I am actually using systemd to run haproxy and the service config file is below ec2-user@ip-10-0-0-214 ~]$ cat /etc/systemd/system/haproxy.service [Unit] Description=HAProxy Load Balancer After=network.target [Service] Environment=LD_LIBRARY_PATH=/usr/local/openssl-1.1.1c/lib/ Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "EXTRAOPTS=-S /run/haproxy-master.sock"...

**Made the change** root 10495 10275 0 14:57 pts/2 00:00:00 sudo ./dataplaneapi --port 5555 -b /usr/local/sbin/haproxy -c /etc/haproxy/haproxy.cfg -d 5 -r systemctl restart haproxy -s systemctl restart haproxy -u dataplaneapi...

I used 2.0.0 and it worked. 2.0.3 seems to have a bug .. even the logging doesn't work.. HAProxy Data Plane API v2.0.0 448d36e Build from: [email protected]:haproxytech/dataplaneapi.git Build date: 2020-04-27T15:28:42Z