Skip to content

dataplaneapi can't read/access haproxy-master.sock #50

@hellracer

Description

@hellracer

I'm trying to call this endpoint but the response from the API is this
http://192.168.144.225:5555/v2/services/haproxy/stats/native


[
  {
    "error": "dial unix unix@/run/haproxy-master.sock: connect: no such file or directory",
    "runtimeAPI": "unix@/run/haproxy-master.sock@1",
    "stats": null
  }
]
evidently the socket file exist in the filesystem
root@LB01:~# ls -al /run/haproxy-master.sock 
srwxr-xr-x 1 root root 0 Nov  9 16:24 /run/haproxy-master.sock
root@LB01:~# 

haproxy snippet config
program api
    command dataplaneapi --host 192.168.144.225 --port 5555 --haproxy-bin /usr/sbin/haproxy --config-file /etc/haproxy/haproxy.cfg --reload-cmd "systemctl reload haproxy" --reload-delay 5 --userlist controller

userlist controller
    user superadmin password $5$IjsO5NsBcuMA1$qOv1sUuaEVGqbqTjSxmVbc//CxRKCfiyPr/Z.2wwu4/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions