Hi Christophe,

On Thu, Jun 15, 2017 at 02:19:50PM +0200, Christophe Burki wrote:
> Hi,
> 
> I try to test the "seamless reload" patch (see
> https://www.mail-archive.com/[email protected]/msg25632.html)  using
> the new -x option without success. I always get the following error when
> attempting to start a new haproxy using the "-x" option.
> 
> [WARNING] 165/120241 (1125) : Failed to get the number of sockets to be
> transferred !
> [ALERT] 165/120241 (1125) : Failed to get the sockets from the old process!
> 
> I do not understand what I'm doing wrong. I have first started haproxy
> with the following command:
> 
> haproxy -f /usr/local/etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
> 
> Next, I try to use the "-x" option like this:
> 
> haproxy -f /usr/local/etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -x
> /var/run/haproxy.sock
> 
> 
> Here is my configuration file
> 
> global
>     daemon
>     nbproc 1
>     user root
>     group root
>     stats socket /var/run/haproxy.sock

Since 1.8-dev2 you have to explicitly add "expose-fd listeners" at the
end of your stats socket statement for the stats socket to pass the FD,
as by default they're not exposed anymore. It should be enough to fix
the problem.

Regards,
Willy

Reply via email to