dataplaneapi icon indicating copy to clipboard operation
dataplaneapi copied to clipboard

BUG: no error message displayed at start up

Open bedis opened this issue 10 months ago • 1 comments

I'm trying to start manually the DPAPI and I get no error message telling me what's I'm doing wrong. Version 3.0.4 Here is my command line:

sudo dataplaneapi --port 5555 -b /opt/haproxy/sbin/haproxy -c /home/baptiste/haproxy/cfg/test.cfg  -d 5 -r "service haproxy reload" -s "service haproxy restart"  -t /tmp/haproxy -f /etc/dataplaneapi/dataplaneapi.yml --log-to=stdout --log-level=debug

Having an error message leading me to understand wht's I'm doing wrong would be helpful :)

bedis avatar Jan 22 '25 12:01 bedis

Hey from what I could tell, it looks like the issue is if port or api_address is empty in the dataplaneapi.yaml file. I found that specifying in the command line what the host is, didn't work and that it still tried to use the dataplaneapi.advertised.api_address which would result in nil or empty string.

jaitaiwan avatar Jan 26 '25 12:01 jaitaiwan