503 errors - but only when POSTing to a 3rd party external server

mkaaaay

Well-Known Member
#1
We have an ongoing issue where occasionally on a php7 site, a POST request to a 3rd party (such as paypal) generates a 503 error, even though the transaction appears to be successful.

The added problem here is that once it occurs, ALL 3rd party POST requests on that domain also generate a 503. It's like something gets locked up.

Here is an example output from the error log

Code:
2022-12-14 11:02:51.762702 [INFO] [2687642] [T0] [128.77.88.111:3762:HTTP2-1#APVH_mysite.com:443] connection to [uds://tmp/lshttpd/APVH_mysite_Suea-php70.sock] on request #0, confirmed, 1, associated process: 0, running: 0, error: Connection reset by peer!
2022-12-14 11:02:51.762730 [NOTICE] [2687642] [T0] [128.77.88.111:3762:HTTP2-1#APVH_mysite.com:443] POST request in process stage, fail with 503
2022-12-14 11:02:51.762741 [NOTICE] [2687642] [T0] [128.77.88.111:3762:HTTP2-1#APVH_mysite.com:443] oops! 503 Service Unavailable
2022-12-14 11:02:51.762744 [NOTICE] [2687642] [T0] [128.77.88.111:3762:HTTP2-1#APVH_mysite.com:443] Content len: 944, Request line: 'POST /cust/signup HTTP/1.1'
2022-12-14 11:02:51.762747 [INFO] [2687642] [T0] [128.77.88.111:3762:HTTP2-1#APVH_mysite.com:443] Cookie len: 516, display=grid; _fbp=fb.2.1670975984566.964089129; _cb=Te_VRCAMv0ug7uYO; _cb_svref=null; _chartbeat=.167555686148.16709724535436148.1.BQeU8PDBMBP3CArBV1DG6jzVCo381H.1; __utma=255433562.837027084.1670975985.1670975985.1670975985.1; __utmb=255433562.1.10.1670975985; __utmc=255433562; __utmt=1; __utmz=255433562.1670975985.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _gcl_au=1.1.1324914350.1670975985; cw-_mysite__com__au=mgnrgvmt21t977pqnsfqclpmu60emavs; qqcsrfqqcookie=efda00af108a3491a1783bffbfe55be0
2022-12-14 11:02:51.762750 [NOTICE] [2687642] [T0] [128.77.88.111:3762:HTTP2-1#APVH_mysite.com:443] Redirect: #1, URL: /index.php
2022-12-14 11:02:51.762811 [INFO] [2687642] [T0] [128.77.88.111:3762:HTTP2-1#APVH_mysite.com:443] File not found [/home/mysite/public_html/503.shtml]
Really pulling my hair out on this one.

Thanks in advance.
 

serpent_driver

Well-Known Member
#2
1. Check if the affected domain/IP is blacklisted especially by any CDN.
2. Generate blank 503.shtml, paste code below in this file and place it in the document_root of each domain you use. This prevents error file not found of 503.shtml
3. You already reported a similiar issue 2 years ago?! https://www.litespeedtech.com/suppo...ed-how-to-find-more-info-on-503-errors.18676/

HTML:
<!DOCTYPE html>
<html style="height:100%">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" >
        <title> 503 Service Unavailable</title>
    </head>
    <body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
        <div style="height:auto; min-height:100%; ">
            <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
                <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">503</h1>
                <h2 style="margin-top:20px;font-size: 30px;">Service Unavailable</h2>
                <p>The Server is temporarily busy. Try again later.</p>
            </div>
        </div>
    </body>
</html>
 
Top