503: Server Unavailable

theRKF

Well-Known Member
#1
We have a WP plugin for real estate sites that requires cron tasks to be run via WGET.
Often the job will fail with a 503 error.
Code:
$ wget -T 10800 'https://www.example.com/wp-content/plugins/plugin/cron.php'
--2017-04-11 16:00:55--  https://www.example.com/wp-content/plugins/plugin/cron.php
Resolving www.example.com (www.example.com)... xxx.xxx.xxx.xxx
Connecting to www.example.com (www.example.com)|xxx.xxx.xxx.xxx|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2017-04-11 17:00:56 ERROR 503: Service Unavailable.
As you can see the script is cutting off after one hour.
stderr.log shows this:
Code:
2017-04-11 17:00:56.113 [STDERR] Child process with pid: 9453 was killed by signal: 15, core dump: 0
PHP has a long timeout (10800), and high memory limit.

Any suggestions on what I can tweak with LiteSpeed to avoid this?
 

theRKF

Well-Known Member
#7
Hard to say - the script runs for a while so it's hard to determine the timing of when it ends in order to find a log entry.
 

theRKF

Well-Known Member
#12
Thanks, but still no joy.
Code:
--2017-04-14 03:15:23--  (try: 2)  http://www.example.com/wp-content/plugins/plugin/cron.php
Connecting to www.example.com (www.example.com)|xxx.xxx.xxx.xxx|:80... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2017-04-14 04:15:24 ERROR 503: Service Unavailable.
 
#15
A 503 Service Unavailable Error is an HTTP response status code indicating that your web server operates properly, but it can't temporarily handle the request at the moment. This error happen for a wide variety of reasons. Normally, this error can be due to a temporary overloading or maintenance being performed on the server and it is resolved after a period of time or once another thread has been released by web-server application.

How to fix HTTP 503 errors
  • Reload (Refresh) the page
  • Restart Your Devices
  • Scan for Malware
  • Clear Temporary Files
  • Visiting the website later
  • Contact server admin
 
Top