- Used Zammad version: 2.4.0
- Used Zammad installation source: package
- Operating system: Debian 9
- Browser + version: firefox/chromium
I have a haproxy in front of my setup, with this config :
defaults
option dontlognull
option redispatch
option allbackups
option httplog
option contstats
enable keepalive to the client
option http-server-close
disable keepalive completely
#option httpclose
option httplog
option forwardfor header CLIENT_IP
option forwardfor
retries 3
maxconn 1000
timeout connect 4s
timeout client 300s
timeout server 300s
timeout client-fin 30s
timeout tunnel 1h
frontend OutilsMetier
ticket
acl ticket hdr_beg(host) ticket.iris-network.fr
acl ticketws url_beg /ws
use_backend support-websocket if ticket ticketws
use_backend zammad if ticket
acl is_websocket hdr(Upgrade) -i WebSocket
use_backend support-websocket if is_websocket
backend zammad
balance roundrobin
http-request add-header X-CLIENT-IP %[src]
server zammad 172.26.0.20:3000
backend support-websocket
balance roundrobin
http-request add-header X-CLIENT-IP %[src]
server zammad-websocket 172.26.0.20:6042
http-request set-header Connection “Upgrade”
As you notice, I bypass the embedded nginx who seems to ony do reverse proxy
Expected behavior:
- Working setup
Actual behavior:
- I have this popup :
StatusCode: 503
503 Service Unavailable
No server is available to handle this request.2018/04/02 14:29:17 [error] 14251#14251: *129311 connect() failed (111: Connection refused) while connecting to upstream, client: 172.26.0.1, server: ServerName.domain, request: “GET /api/v1/channels_email?=1522671599999 HTTP/1.1", upstream: "http://[::1]:3000/api/v1/channels_email?=1522671599999”, host: “ServerName.domain”, referrer: “ServerName.domain/”
My setup is working fine if I bypass my haproxy to use nginx …
Any idea ?
EDIT : Juste a bug in the restart of haproxy … wasn’t killed, need to killall haproxy, start and was ok.
2 days to find this