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
Next revision Both sides next revision
litespeed_wiki:php:503-errors [2018/07/24 19:11]
Lisa Clarke Proofreading
litespeed_wiki:php:503-errors [2018/08/10 13:41]
Jackson Zhang [Magento 503 error]
Line 321: Line 321:
  
 ==== Magento 503 error ==== ==== Magento 503 error ====
-After (re)installation of LiteMage Cache extension in Magento Connect manager, Magento site 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 348: Line 348:
   strace -tt -T -f -p 791228   strace -tt -T -f -p 791228
  
 +Sometimes, it may not be easy to get the ''​pid''​ since the PHP may run very quickly. In this case, you can try to strace the //parent pid//, but the disadvantage of stracing the parent pid is that you may get too much unrelated information in strace log. That would make it difficult to locate the problem pattern.
  
 +One solution is to use a script to catch the pid.  It depends on which SuEXEC user your PHP will be running and which script will be running ( such as index.php etc).
 +  ​
 +  while true; do if mypid=`ps aux | grep $USERNAME | grep lsphp | grep $SCRIPTNAME | grep -v grep | awk '​{print $2; }' | tail -1`; then strace -tt -T -f -p $mypid; fi ; done
 + 
 +**Note**: ''​$USERNAME''​ should be replaced with a real username; ''​$SCRIPTNAME''​ should be replaced by the name of the script that is running, such as ''​index.php''​ or other scripts.
 ==== Enable Core Dump ==== ==== Enable Core Dump ====
  
  • Admin
  • Last modified: 2020/02/11 14:26
  • by Jackson Zhang