TITLE:
Out of memory php error on Let's Encrypt keep-secured.php crontab job
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:CentOS 7.6
Plesk Onyx 17.8, latest MUs
PROBLEM DESCRIPTION:Plesk Onyx 17.8, latest MUs
/usr/local/psa/admin/bin/php -dauto_prepend_file=sdk.php '/usr/local/psa/admin/plib/modules/letsencrypt/scripts/keep-secured.php'
not running because of "out of memory" php error on a machine with only 800 domains.
STEPS TO REPRODUCE:not running because of "out of memory" php error on a machine with only 800 domains.
Nothing special, simply run
/usr/local/psa/admin/bin/php -dauto_prepend_file=sdk.php '/usr/local/psa/admin/plib/modules/letsencrypt/scripts/keep-secured.php'
either manually or from cronjobs.
However, not reproducible on other machines with practically identical setup. Some of our systems service more domains, e.g. 1000. Until now, the issue does not occur on them.
ACTUAL RESULT:/usr/local/psa/admin/bin/php -dauto_prepend_file=sdk.php '/usr/local/psa/admin/plib/modules/letsencrypt/scripts/keep-secured.php'
either manually or from cronjobs.
However, not reproducible on other machines with practically identical setup. Some of our systems service more domains, e.g. 1000. Until now, the issue does not occur on them.
Out of memory
EXPECTED RESULT:Running script
ANY ADDITIONAL INFORMATION:Can be solved by changing the default /usr/local/psa/admin/conf/php.ini RAM value to a higher value. We also realized that the script runtime on the machine in question was 960 seconds after the problem was fixed. With the default value of max script execution time of only 600 seconds in the same php.ini this would not have been possible to successfully execute either.
My suggestion is to consider higher default RAM and max execution time entries in the panel .php ini file to avoid issues with the keep-secured.php script.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:My suggestion is to consider higher default RAM and max execution time entries in the panel .php ini file to avoid issues with the keep-secured.php script.
Confirm bug