OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: mliebherr on June 23, 2021, 04:01:26 pm

Title: No Logs for 503 HA-Proxy errors
Post by: mliebherr on June 23, 2021, 04:01:26 pm
Hello,

i use HA-Proxy and it returns a 503 Page.
I enabled " Detailed Logging " in the Public Services.

All i can see are those start logs:

2021-06-23T15:55:08   haproxy[12619]   Proxy load_balancing_portal_foo_net_Port_443 started.   
2021-06-23T15:55:08   haproxy[12619]   Proxy portal.foo.net_ht-access_8443 started.

Why wont it log my requests/errors?

I also disabled the Service which gave me a timeout, so i guess i actually access/use/hit the HAProxy Service.

Cheers,
Michael
Title: Re: No Logs for 503 HA-Proxy errors
Post by: fabian on June 23, 2021, 06:40:11 pm
503 means that it cannot reach the upstream or there is no upstream.

Try to access the server using curl on the OPNsense shell and if that works, your LB config is wrong, otherwise you should check your network / upstream host.
Title: Re: No Logs for 503 HA-Proxy errors
Post by: mliebherr on June 24, 2021, 09:24:35 am
thanks fabian.

verify error:num=10:certificate has expired
notAfter=Jun 10 04:43:13 2021 GMT


But why wont it log it in the ha logs?
Title: Re: No Logs for 503 HA-Proxy errors
Post by: Fright on June 24, 2021, 10:51:34 am
@mliebherr
hi. of course, lines with an SC flag should have appeared in the logs. can you try to cleari the log and reapply the settings?
and what level is set in "HAProxy: Settings: Logging"?
not sure if the notice level (if 'notice' is set) adds these lines. 'info' level should work