GrepBoard/Manuals
605 manuals ·

HAProxy logs 9

  1. Read HAProxy server status from the stats socket with show stat

    Query the HAProxy stats socket with show stat, read status, check_status and lastchg per server, and see how they change when a server goes DOWN.

    Ubuntu 24.04 · HAProxy 2.8.16 · socat 1.8.0.0 · Python 3.12 (test backends)
  2. Fix HAProxy unable to load SSL private key from PEM file

    HAProxy can't load the private key (3.x says No Private Key found)? Check the key is in the crt file, then its pair, passphrase and PEM lines.

    HAProxy 3.4.7 (Docker) · OpenSSL 3.5.7 · 2026-10
  3. HAProxy JSON logs with log-format %{+json}o and +utf8

    Put %{+json}o in an HAProxy log-format to JSON-encode named items. Seven requests compare it with a hand-built string; non-ASCII text needs +utf8.

    HAProxy 3.2.26 (Docker) · jq 1.7 · 2026-10
  4. Fix HAProxy "cannot bind socket" (Starting frontend / Binding)

    HAProxy "cannot bind socket": a bind address or port failed to open. The reason in parentheses means port in use, missing IP or permission.

    HAProxy 3.4.7 (Docker haproxy:lts) · Ubuntu 24.04 haproxy 2.8.30 · 2026-10
  5. HAProxy 'option httplog' not usable, falling back to tcplog: fix

    HAProxy 'option httplog' not usable with frontend (needs 'mode http'): defaults httplog reached a mode tcp frontend. Add option tcplog there or split defaults.

    HAProxy 3.4.7 (Docker haproxy:lts) · Ubuntu 24.04 haproxy 2.8.30 · 2026-10
  6. HAProxy -c "Warnings were found" but exit 0: use -dW

    haproxy -c prints "Warnings were found" yet exits 0. Add -dW to make warnings fail the check before a reload; -q hides the reason for errors.

    HAProxy 2.8.31 (Docker) · 2026-10
  7. HAProxy Server DOWN: Check "Layer7 wrong status"

    Reproduce the reasons HAProxy logs when it marks a server DOWN, tell them apart, then fix a health endpoint that returns 404 or 301, and tune inter, fall, rise.

    Ubuntu 24.04 · HAProxy 2.8.16 · Python 3.12 (test backend)
  8. HAProxy 503 "No server is available" — find the cause

    Got a 503 "No server is available"? Read NOSRV and the termination state in the log, then use show stat to tell DOWN servers, no match and queue expiry.

    Ubuntu 24.04 · HAProxy 2.8.16 · behavior per the HAProxy 2.8 configuration and management docs
  9. Read a HAProxy log line: termination state and cR-- 408

    Read a HAProxy httplog line field by field, decode termination states like SC--, sH-- and cR--, and handle cR-- 408 <BADREQ> from client timeouts.

    Ubuntu 24.04 · HAProxy 2.8.16 · 2.8.31 (Docker) · explanations follow the HAProxy 2.8 configuration manual