Hello,

I have an issue with haproxy 2.2.26 that I do not have in 2.2.25, it
seams to be related to the ring object I use in my configuration for logs.

I do not think it is due to my build
(https://github.com/zenetys/rpm-haproxy/commits/haproxy22z) because we
did not change it in that branch.

I get "unable to find required use_backend: ''" errors.

[root@zelk-prod-01 haproxy]# haproxy -f /etc/haproxy/haproxy-extract.cfg -c
[NOTICE] 004/130824 (2015177) : haproxy version is 2.2.26-97059ba
[NOTICE] 004/130824 (2015177) : path to executable is /usr/sbin/haproxy
[ALERT] 004/130824 (2015177) : Proxy 'ft_rsyslog_514': unable to find
required use_backend: ''.
[ALERT] 004/130824 (2015177) : Fatal errors found in configuration.

Here is an extract of the configuration. If I remove the "ring rg_self"
bloc and the "log ring@rg_self local5" line in default section, the
error does not happen.

Did you get any similar report? I did not find anything interesting on
the mailing list nor on github issues, but looking at the changelog it
looks like there has been changes related to ring buffers?

global
    chroot /var/lib/haproxy
    pidfile /run/haproxy.pid
    user haproxy
    group haproxy
    daemon

    ssl-default-bind-ciphers PROFILE=SYSTEM
    ssl-default-server-ciphers PROFILE=SYSTEM
    tune.ssl.default-dh-param 4096

    maxconn 4000
    hard-stop-after 120s

    stats socket /var/lib/haproxy/stats mode 600 level admin expose-fd
listeners
    stats timeout 30s

    #lua-load /etc/haproxy/dynft.lua

defaults
    log ring@rg_self local5
    option dontlognull
    option redispatch
    retries 3
    timeout http-request 10s
    timeout queue 1m
    timeout connect 10s
    timeout client 5m
    timeout server 1m
    timeout http-keep-alive 10s
    timeout check 10s
    backlog 8192
    maxconn 3000

ring rg_self
    format rfc3164
    maxlen 2048
    size 65536
    server rg_self_srv 127.0.0.1:514

frontend ft_rsyslog_514
    bind zelk-prod-log:514 tcp-ut 7s
    mode tcp
    option tcplog
    use_backend bk_rsyslog_514

backend bk_rsyslog_514
    mode tcp
    balance leastconn
    default-server check inter 3000 rise 2 fall 1
    server bk_rsyslog_514_srv_01 zelk-prod-01:514
    server bk_rsyslog_514_srv_02 zelk-prod-02:514 backup

Julien

Reply via email to