The OP didn’t provide many details, but I am able to reproduce this too using 1.7-dev and the config files shown below. Git bisect shows the break at the commit mentioned.
$> cat haproxy.cfg haproxy2.cfg global defaults timeout client 5s timeout server 5s timeout connect 5s mode http listen www bind :8000 listen www2 bind :8001 $> cat git-bisect-run.sh #!/bin/bash -e make clean make TARGET=generic USE_OPENSSL=1 ADDLIB=-lcrypto SSL_INC=/usr/local/opt/openssl/include SSL_LIB=/usr/local/opt/openssl/lib USE_ZLIB=1 USE_PCRE=1 -j4 ./haproxy -c -f ./haproxy.cfg -f ./haproxy2.cfg || exit 1 ./haproxy -vv > On May 24, 2016, at May 24, 4:50 AM, Ben Cabot <b...@loadbalancer.org> wrote: > > Hi all, > I think we have found an issue when using multiple configuration > files. The config parser tries to register the listen section twice > causing the error below. > > [root@lbmaster haproxy]# /usr/local/sbin/haproxy -f > /etc/haproxy/haproxy.cfg -f /etc/haproxy/haproxy_manual.cfg > [ALERT] 144/113841 (10937) : register section 'listen': already registered. > [ALERT] 144/113841 (10937) : Could not open configuration file > /etc/haproxy/haproxy_manual.cfg : Success > > > It looks to be introduced in 5e4261b0 but I'm unsure how to fix it. > Please can someone take a look. > > Thanks, > > Ben >