Hi, I sometimes get this error, and I’m not sure if it’s a bug or if it’s been fixed. At my work, we have haproxy 2.6 running on Docker and a lua script to monitor server health. If the server goes down, an alert is sent. The problem is this:
[ALERT] (60) : httpclient: SSL was disabled (wrong verify/ca-file)!
[ALERT] (60) : httpclient: Failed to initialize appctx httpclient_start:560.
Lua task: [state-id 0] runtime error: /usr/local/etc/haproxy/srv-monitor.lua:2: couldn’t start the httpclient from [C]: in method ‘get’, /usr/local/etc/haproxy/srv-monitor.lua:2: in upvalue ‘send_request’, /usr/local/etc/haproxy/srv-monitor.lua:25: in function line 15.
This is my function:
local function send_request(url)
local res, err = core.httpclient():get(
{
url=url,
headers = { [“Content-Type”] = “text/html” }
}
)
if res.status ~= 200 then
local errorMsg = err or “Unkhown error”
core.Alert("Error sending alert: " .. errorMsg)
else
core.Alert(“Alert sent successfully”)
end
end
I have searched the issues and nothing, so far, I have searched in known bugs and I am not sure if this bug is the same one I am facing, so I am asking here to confirm if my bug is the same as the bug on the known bugs page https://git.haproxy.org/?p=haproxy-2.6.git;a=commitdiff;h=b1351c1
I need to know if is the same because i cant just change the image to another one, this is on production environment, so i need to change this with extremely cautious