Project

General

Profile

Actions

Bug #11491

open

haproxy-devel v0.62_2 - startup error 'httpchk'

Added by A S 7 months ago. Updated 3 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
haproxy
Target version:
-
Start date:
02/21/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

Seeing this error message upon startup (under 2.5.0):

haproxy: startup error output!: [WARNING] 051/015053 (57019) : parsing [/var/etc/haproxy/haproxy.cfg:100]: 'option httpchk' : hiding headers or body at the end of the version string is deprecated. Please, consider to use 'http-check send' directive instead.

Actions #1

Updated by DRago_Angel [InV@DER] 7 months ago

Because now correct syntax is another:
https://cbonte.github.io/haproxy-dconv/2.2/configuration.html#4.2-http-check%20connect

Now one backend can have more then one healtcheck and their types can be different and syntax now:

# check HTTP and HTTPs services on a server.
# first open port 80 thanks to server line port directive, then
# tcp-check opens port 443, ciphered and run a request on it:
option httpchk

http-check connect
http-check send meth GET uri / ver HTTP/1.1 hdr host haproxy.1wt.eu
http-check expect status 200-399
http-check connect port 443 ssl sni haproxy.1wt.eu
http-check send meth GET uri / ver HTTP/1.1 hdr host haproxy.1wt.eu
http-check expect status 200-399

server www 10.0.0.1 check port 80

I wrote in my ticket https://redmine.pfsense.org/issues/10739 that HAproxy 2.2 has changes in heatchecks that need to be aligned with pfSense plugin.

Actions #2

Updated by DRago_Angel [InV@DER] 6 months ago

More over now HAproxy 2.0 support alpn h2 on backend and from 2.2 it supported on http-check. Also default server param would be cool to not copy paste all customization between 2-5 webservers

Actions #3

Updated by Viktor Gurov 4 months ago

  • Tracker changed from Todo to Bug
Actions #4

Updated by Jim Pingle 4 months ago

  • Status changed from New to Pull Request Review
Actions #5

Updated by Renato Botelho 3 months ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Viktor Gurov

PR has been merged. Thanks!

Actions

Also available in: Atom PDF