docker-tools: Haproxy-Keepalived not starting haproxy (multiple errors)
Hi I have a couple of errors using this image and I was wondering if it can be updated to support vrrp_track_process haproxy.
Receiving the following error message Keepalived_vrrp[20]: WARNING - the kernel does not support proc events - track_process will not work
Additionally when I specify my own haproxy.conf as stated in the ReadMe section. The Haproxy does not seem to start. Here’s my docker run command
docker run -it -d --cap-add=NET_ADMIN --name haproxy-keepalived --net=host --privileged --userns=host --restart on-failure -v /home/da/.haproxy-keepalived/haproxy:/usr/local/etc/haproxy.cfg:ro -v /home/da/.haproxy-keepalived/keepalived/keepalived.conf:/etc/keepalived/keepalived.conf:ro instantlinux/haproxy-keepalived:latest
If I map /home/da/.haproxy-keepalived/haproxy:/usr/local/etc/haproxy.d haproxy works just fine but then it throws other errors regarding the stats section.
[NOTICE] (24) : haproxy version is 2.6.0-a1efc04
[ALERT] (24) : config : Parsing [/usr/local/etc/haproxy.d/haproxy.cfg.old:13]: frontend 'stats' has the same name as proxy 'stats' declared at /usr/local/etc/haproxy/haproxy.cfg:18
My haproxy.conf
stats socket /var/run/api.sock user haproxy group haproxy mode 660 level admin expose-fd listeners
stats socket ipv4@*:9999 level admin expose-fd listeners
log stdout format raw local0 notice emerg
defaults
mode http
timeout client 120s
timeout connect 5s
timeout server 10s
timeout http-request 120s
log global
frontend stats
bind *:9000
stats enable
stats uri /stats
stats refresh 10s
stats auth statsadmin:password
frontend eth-mainnet
bind *:18545
mode http
default_backend eth-mainnet
timeout client 120s
timeout http-request 120s
backend eth-mainnet
option httpchk
balance roundrobin
mode http
timeout server 120s
server host1 192.168.1.10:8545 check
server host2 192.168.1.11:8545 check
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (7 by maintainers)
Commits related to this issue
- Issue #85 - version bump haproxy-keepalived to v2.6.4-alpine-2.2.7-r1 — committed to instantlinux/docker-tools by instantlinux 2 years ago
- SYS-581 issue #85 adjust haproxy startup, support pid: host — committed to instantlinux/docker-tools by instantlinux 2 years ago
- SYS-581 issue #85 missed an edit last commit — committed to instantlinux/docker-tools by instantlinux 2 years ago
Keepalived is already current at
2.2.7; I bumped haproxy from2.6.0to2.6.4(version 2.7 is still in development). The author of keepalived had this to say abouttrack_processin Jan 2021:As with the author’s assessment, I cannot reproduce the issue. There is something about the kernel environment you’re running that differs from mine (Ubuntu
20.04, kernel version5.4.0-121, docker-ce19.03.13) that is triggering the track_process warning.