PiBa-NL / pfsense-haproxy-package-doc

54 stars 15 forks source link

Upgrade to 0.63_1 caused 502 Bad gateway #22

Open lerilar opened 1 year ago

lerilar commented 1 year ago

Netgate 6100 on 23.05.1-RELEASE WAN frontend serving multiple backends, worked perfectly before the upgrade. The haproxy logs are giving me this: PBS_ipvANY/pbs 0/0/3/5/8 200 953 - - ---- 16/7/1/1/0 0/0 "POST //api2/json/access/ticket HTTP/1.1" - initial PBS_ipvANY/pbs 0/0/0/-1/2 502 360 - - PH-- 16/7/1/1/0 0/0 "GET //api2/json/reader?backup-id=105&backup-time=1691789400&backup-type=vm&debug=true&store=internalnvme HTTP/1.1"

Before the upgrade it looked like this:

PBS_ipvANY/pbs 0/0/2/6/8 200 958 - - ---- 17/6/0/0/0 0/0 "POST //api2/json/access/ticket HTTP/1.1" PBS_ipvANY/pbs 0/0/0/1/90898 101 2041921071 - - ---- 25/10/0/0/0 0/0 "GET //api2/json/reader?backup-id=105&backup-time=1691357412&backup-type=vm&debug=true&store=internalnvme HTTP/1.1"

The backend is reporting the following: TASK ERROR: connection error: connection closed before reading preface

Have restarted HA proxy and have enabled the close all connections upon restart.

I am able to reach the backend, but for some reason the GET fails with 502 (this is a SYNC job that has been running for months without issues). I am not able to determine if it is the backend that shuts this down or haproxy.

Backend is very simple, uses port 8007 with no SSL checks - this has not been changed.

Hope you can help.

thijsk commented 12 months ago

I have the same issues, with the same products (Proxmox Backup Server & HAProxy 2.7.8 on PFSense)