Hi,
We've been using Litespeed for many years without any problems but a couple of days started getting some 500 errors come up that we can't reproduce.
Using LS 6.0.8 but also happened in 6.0.5.
Debug log:
This server is processing around 1k/requests per second and it's a very tiny % that are affected but is causing our monitor alarms to go off and then the same thing is happening on each of our 3 different web servers so doesn't appear to be machine specific (CentOS 7.9.2009)
It appears to be a problem with the Request Body but how can we debug further?
Many thanks for any guidance.
Kind Regards,
Ian
We've been using Litespeed for many years without any problems but a couple of days started getting some 500 errors come up that we can't reproduce.
Using LS 6.0.8 but also happened in 6.0.5.
Debug log:
Code:
2021-09-11 16:01:23.738460 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2] use Porxy IP header: cf-connecting-ip: XXX.XXX.XXX.XXX
2021-09-11 16:01:23.738488 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2] update REMOTE_ADDR based on cf-connecting-ip header to XXX.XXX.XXX.XXX, access: 1, local: 0
2021-09-11 16:01:23.738492 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX] increase connection count to 1.
2021-09-11 16:01:23.738496 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] [RECAPITCHA] Disabled at server level, skip recaptcha.
2021-09-11 16:01:23.738499 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] matchedVhost(): HSPS_NEW_REQ -> HSPS_HKPT_HTTP_BEGIN
2021-09-11 16:01:23.738502 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] runEventHkpt(): HSPS_HKPT_HTTP_BEGIN -> HSPS_HKPT_RCVD_REQ_HEADER
2021-09-11 16:01:23.738505 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] runEventHkpt(): HSPS_HKPT_RCVD_REQ_HEADER -> HSPS_TRY_FINISH_REQ_BODY
2021-09-11 16:01:23.738518 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] Read Request Body!
2021-09-11 16:01:23.738530 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] processNewReqBody(): HSPS_TRY_FINISH_REQ_BODY -> HSPS_PROCESS_NEW_URI
2021-09-11 16:01:23.738533 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] smProcessReq(): HSPS_PROCESS_NEW_URI -> HSPS_HTTP_ERROR
2021-09-11 16:01:23.738536 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] HttpSession::sendHttpError(),code=500 Internal Server Error
2021-09-11 16:01:23.738546 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] sendRespHeaders()
2021-09-11 16:01:23.738550 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] HIO_FLAG_ALTSVC_SENT: 0, user-agent-type: 2, vhost QUIC: 1
2021-09-11 16:01:23.738554 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] vhostmap->altsvc: 0x173e2f8, len: 0
2021-09-11 16:01:23.738585 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] writeRespBody() sent: 712
2021-09-11 16:01:23.738601 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] endResponse( 2 )
2021-09-11 16:01:23.738605 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] endResponseInternal()
2021-09-11 16:01:23.738607 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] mark COMPLETE.
2021-09-11 16:01:23.738610 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] HttpSession::nextRequest()!
2021-09-11 16:01:23.738613 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] [MODSEC] skipped LOG_PHASE: SubReq: 0, engine off: 0, runtime: (nil), need phase: 0
2021-09-11 16:01:23.738616 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] Non-KeepAlive, CLOSING!
2021-09-11 16:01:23.738618 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] HttpSession::closeSession(0).
2021-09-11 16:01:23.738621 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] Log access, vhost: 0x1785300, cancelled: 0.
2021-09-11 16:01:23.738623 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] Log access to 0x1782bc0->[/usr/local/lsws/logs/access.log].
2021-09-11 16:01:23.738629 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] Log buffer size: 105.
2021-09-11 16:01:23.738636 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] HttpSession::releaseResources() discard=1!
2021-09-11 16:01:23.738638 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX] reduce connection count to 0.
2021-09-11 16:01:23.738679 [DEBUG] [29960] [T0] [XXX.XXX.XXX.XXX:13498#ServerV2>XXX.XXX.XXX.XXX] HttpSession::recycle(), state: HSPS_HTTP_ERROR
It appears to be a problem with the Request Body but how can we debug further?
Many thanks for any guidance.
Kind Regards,
Ian