Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:php:503-errors [2019/02/27 16:29]
Jackson Zhang [Plesk 503 error]
litespeed_wiki:php:503-errors [2020/02/03 16:43]
Lisa Clarke [LSWS "chroot" never set "Yes"] Copyediting
Line 344: Line 344:
   - Comment out the ''​extension_dir''​ line to let PHP pick a default.   - Comment out the ''​extension_dir''​ line to let PHP pick a default.
  
 +==== ''​Too many open files''​ error may cause 503 error ====
 +If you found there are a lot of ''​Too many open files!''​ errors, which cause 503 errors. ​
 +
 +<​code>​
 +  grep "Too many open files" error_log
 +
 +2019-08-01 21:​58:​03.511076 [INFO] [319934] [157.33.150.151:​49873-1#​APVH_pcrm.lidopiegade.lv:​lsapi] connection to [uds://​tmp/​lshttpd/​APVH_lidopiegade_Suea-php56.sock] on request #0, confirmed, 0, associated process: 0, running: 0, error: Too many open files!
 +2019-08-01 21:​58:​03.511078 [INFO] [319934] [uds://​tmp/​lshttpd/​APVH_lidopiegade_Suea-php56.sock] Connection error: Too many open files, adjust maximum connections to 4!
 +2019-08-01 21:​58:​03.511085 [NOTICE] [319934] [APVH_lidopiegade_Sulsphp56:​]:​ Failed to open pid file [/​tmp/​lshttpd/​APVH_lidopiegade_Suea-php56.sock.pid]:​ Too many open files
 +2019-08-01 21:​58:​03.511087 [ERROR] [319934] [APVH_lidopiegade_Sulsphp56:​]:​ Failed to lock pid file for [/​tmp/​lshttpd/​APVH_lidopiegade_Suea-php56.sock]:​ Too many open files
 +2019-08-01 21:​58:​03.809177 [ERROR] [319934] [HTAccess] Failed to open [/​home/​zazzybab/​public_html/​girls/​shannon-stewart/​.htaccess]:​ Too many open files
 +2019-08-01 21:​58:​03.810914 [ERROR] [319934] [46.51.216.186:​63901] /​home/​zazzybab/​public_html/​girls/​shannon-stewart/​shannon-stewart-playboy-33645.jpg:​ open() failed, 24:Too many open files
 +2019-08-01 21:​58:​05.072915 [NOTICE] [319934] [APVH_lidopiegade_Sulsphp56:​]:​ Failed to open pid file [/​tmp/​lshttpd/​APVH_lidopiegade_Suea-php56.sock.pid]:​ Too many open files
 +2019-08-01 21:​58:​05.072918 [ERROR] [319934] [APVH_lidopiegade_Sulsphp56:​]:​ Failed to lock pid file for [/​tmp/​lshttpd/​APVH_lidopiegade_Suea-php56.sock]:​ Too many open files
 +2019-08-01 21:​58:​05.072932 [NOTICE] [319934] [APVH_birkenfelds_Sulsphp56:​]:​ Failed to open pid file [/​tmp/​lshttpd/​APVH_birkenfelds_Suea-php56.sock.pid]:​ Too many open files
 +2019-08-01 21:​58:​05.072934 [ERROR] [319934] [APVH_birkenfelds_Sulsphp56:​]:​ Failed to lock pid file for [/​tmp/​lshttpd/​APVH_birkenfelds_Suea-php56.sock]:​ Too many open files
 +2019-08-01 21:​58:​05.072949 [NOTICE] [319934] [APVH_vairaksaules_Sulsphp56:​]:​ Failed to open pid file [/​tmp/​lshttpd/​APVH_vairaksaules_Suea-php56.sock.pid]:​ Too many open files
 +2019-08-01 21:​58:​05.072951 [ERROR] [319934] [APVH_vairaksaules_Sulsphp56:​]:​ Failed to lock pid file for [/​tmp/​lshttpd/​APVH_vairaksaules_Suea-php56.sock]:​ Too many open files
 +
 +</​code>​
 +
 +You may want to check the current ulimit:
 +  ulimit -n
 +  32768
 +you may consider to increase to a much higher value like:
 +  ulimit -n 3276800
 +  ​
 +Check [[litespeed_wiki:​config:​increasing-os-file-descriptor-limit|this wiki]] for details.
 ==== Magento 503 error ==== ==== Magento 503 error ====
 After (re)installation of LiteMage Cache extension in Magento Connect manager or enable other modules in Magento 2, Magento site may be placed in maintenancence mode and couldn'​t be accessed and may give 503 errors. ​ Please refer [[litespeed_wiki:​cache:​litemage:​troubleshooting:​connect-cache-session-cleaning-error|this]] for details. After (re)installation of LiteMage Cache extension in Magento Connect manager or enable other modules in Magento 2, Magento site may be placed in maintenancence mode and couldn'​t be accessed and may give 503 errors. ​ Please refer [[litespeed_wiki:​cache:​litemage:​troubleshooting:​connect-cache-session-cleaning-error|this]] for details.
Line 378: Line 406:
  
 ==== Plesk 503 error ==== ==== Plesk 503 error ====
-Some version ​of Plesk PHP, such as php71 and PHP56'​s ​buggy apcu module may cause 503 error on LSWS. Generally, only one object cache or value cache should be enabled, instead of two or more. It may cause conflicts between modules. ​ Disabling ​apcu module should fix the problem. ​+Some versions ​of Plesk PHP, such as php71 and php56, have a buggy APCu module ​that may cause 503 error on LSWS. Generally, only one object cache or value cache should be enabled. Enabling ​two or more may cause conflicts between modules. ​ Disabling ​the APCu module should fix the problem. ​
  
-Plesk Admin -> Tools and configuration ​-> PHP configuration ​-> 7.1.x FastCGI application ​-> Unselect ​"apcu" ​and " To ACCEPT"+Navigate to **Plesk Admin > Tools and configuration > PHP configuration > 7.1.x FastCGI application**. Unselect ​''​apcu'' ​and press the **TO ACCEPT** button.
 {{ :​litespeed_wiki:​php:​plesk-503-disable-apcu.png?​800 |}} {{ :​litespeed_wiki:​php:​plesk-503-disable-apcu.png?​800 |}}
 +
 +==== CPanel WebDisk 503 Errors ====
 +You might see some errors like the following:
 +  2019-03-12 12:​14:​00.324041 [INFO] [51.68.79.11:​54920:​proxy] connection to [127.0.0.1:​2077] on request #1, confirmed, 0, associated process: 0, running: 0, error: Connection refused!
 +  2019-03-12 12:​14:​00.324165 [INFO] [51.68.79.11:​54920:​proxy] connection to [127.0.0.1:​2077] on request #1, confirmed, 0, associated process: 0, running: 0, error: Connection refused!
 +  2019-03-12 12:​14:​00.324194 [NOTICE] [51.68.79.11:​54920:​proxy] Max retries has been reached, 503!
 +  2019-03-12 12:​14:​00.324206 [INFO] [http://​127.0.0.1:​2077] request force stop: too many 503 errors
 +
 +Check ''/​etc/​apache2/​conf/​httpd.conf'':​
 +   ​ProxyPass "/​___proxy_subdomain_webdisk"​ "​http://​127.0.0.1:​2077"​ max=1 retry=0
 +
 +The errors are coming from cPanel WebDisk service. If this service generates too many 503 errors, you might consider disabling it. To disable cPanel WebDisk, you can log into WHM and disable **cPanel DAV Daemon** in the **Service Manager**.
 +
 +==== chroot is Enabled in LSWS =====
 +It is not recommended to use ''​chroot''​ at all. If enabled, it may lead to a 503 error. To fix the problem, in the LiteSpeed Web Server WebAdmin Console, navigate to **Server > General** and set **Enable chroot** to ''​No''​.
 +
 ===== Advanced Troubleshooting Guide ===== ===== Advanced Troubleshooting Guide =====
  
  • Admin
  • Last modified: 2020/02/11 14:26
  • by Jackson Zhang