• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Forwarded to devs Out of memory php error on Let's Encrypt keep-secured.php crontab job

Bitpalast

Plesk addicted!
Plesk Guru
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:
/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:
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:
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:
Confirm bug
 
Peter, we know this issue: EXTLETSENC-644. Now it is under developer's investigation.

So far, you really need to increase memory and runtime limits.
 
Back
Top