Hi Hugo

Hugo Delval wrote:
> global
>     # [...]
>     chroot /var/lib/haproxy
>
> # [...]
> 
> backend web-backend
>     balance roundrobin
>     option external-check
>     external-check path "/usr/bin:/bin:/tmp"
>     external-check command /bin/true
>     server web1 127.0.0.1:80 check
>     server web2 127.0.0.1:81 check


You are configuring HAProxy to drop into a chroot directly after start.
Thus, any scripts or external tools  (including all its required
libraries and potentially device nodes) it runs have to be inside the
chroot directory. In your case, this is probably not the case.

Thus, you can either get rid of the chroot completely or move all your
dependencies into the chroot. The latter is probably a bit of a hassle
for more complex checks but might be more secure.

Good luck,
Holger

Reply via email to