• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Long running php script throw 503 error and show wrong error_log?

Azurel

Silver Pleskian
Server operating system version
AlmaLinux 8.6
Plesk version and microupdate number
46
Can anyone say anything about the following problem?
I have three long running scripts (PHP 8.1) and each need ~1000 seconds to complete. So I have set a time-limit with
set_time_limit(3600);
After each complete, per page-reload (JavaScript call page again) its start a new running. All three scripts make the same, but for other areas... so its start and stop differently. Its running fine... but rare from time to time all three scripts stopping with a error
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
see php error.log; all three stopping in the same second:
[04-Sep-2022 17:03:23] WARNING: [pool example.com] child 1819906 exited on signal 15 (SIGTERM) after 14754.601386 seconds from start
[04-Sep-2022 17:03:23] WARNING: [pool example.com] child 1690056 exited on signal 15 (SIGTERM) after 48792.001156 seconds from start
[04-Sep-2022 17:03:23] WARNING: [pool example.com] child 1945324 exited on signal 15 (SIGTERM) after 2775.364849 seconds from start
None of the scripts ran longer than 30min.

1. Why do all three stop at the same second?
2. Why are there such absurd time values in the log file? 48792 seconds = 13 hours.

Does anyone have a helpful tip?
 
This will not be related to the current script execution but to orphans of a PHP-FPM instance. The number of max instances or children is reached, so PHP-FPM won't accept new ones and instead will recycle the process. This causes a service interruption of ongoing processes. Solution: Try to find the cause why some of your scripts do not terminate properly and fix that issue.
 
Back
Top