Hi,

I'm trying set up HAProxy with the UNIX socket and admin access to change the weights and add/remove servers. But when i include the 'level' parameter HAProxy gives me an error on startup. Without the 'level' parameter the 'show info' command works but when i try to to use 'remove server' i get command not found, followed by a list of possible commands which only has 'list info' in it.

The error on startup when i include the 'level' parameter:
[ALERT] 302/195316 (16456) : parsing [/etc/haproxy.cfg:4] : 'stats socket' only supports 'user', 'uid', 'group', 'gid', and 'mode' [ALERT] 302/195316 (16456) : Error(s) found in configuration file : /etc/haproxy.cfg
[ALERT] 302/195316 (16456) : Fatal errors found in configuration.

Here's the commad line i use to start HAProxy: ~/temp/haproxy-1.4.22$ sudo haproxy -f /etc/haproxy.cfg -p haproxyPID.txt


The config I'm using:

global
    daemon
    maxconn 256
    stats socket /tmp/haproxy level admin

defaults
    mode http
    timeout connect 5000ms
    timeout client 50000ms
    timeout server 50000ms

frontend http-in
    bind *:80
    default_backend vmpool1

backend vmpool1
    server s1 {some-ip-address}:80 maxconn 32 check
    server s2 {another-ip-address}:80 maxconn 32 check

listen admin
    bind *:8080
    stats enable


The Server runs an Unbuntu distribution:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS"

Kernel Version: 2.6.32-25-hvmflexiant

I've build HAProxy 1.4.22 from source with 'linux24', 'linux26' and 'default' as TARGET parameter. and i've tried version HAProxy 1.3.26 too same result. Can someone tell me what I'm doing wrong.

mfg Frederik

Reply via email to