• 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 Cannot run media regenerate

southernsons

New Pleskian
Server operating system version
AWS T3.xlarge
Plesk version and microupdate number
18.0.48
Hello folks,

I am trying to run sudo plesk ext wp-toolkit --wp-cli -instance-id 2 -- media regenerate --only-missing on my AWS instance but every time I run the command it asks me Do you really want to regenerate all images? [y/n] but jumps directly back into the command line without giving me the chance to select Yes/No.

When I run sudo plesk ext wp-toolkit --wp-cli -instance-id 2 -- media regenerate --only-missing --yes it just freezes and after 1 minute returns this:

[2023-01-24 15:42:07.945] 4056766:63cfe02fe6328 ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'www_p28qdml3t' 'exec' '/var/www/vhosts/websitechanged/httpdocs' 'timeout' '60' '/opt/plesk/php/7.4/bin/php' '-d' 'safe_mode=off' '-d' 'display_errors=on' '-d' 'opcache.enable_cli=off' '-d' 'open_basedir=' '-d' 'error_reporting=341' '-d' 'max_execution_time=60' '-c' '/var/www/vhosts/system/websitechanged/etc/php.ini' '/opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wpt-wp-cli.php' '--path=/var/www/vhosts/websitechanged/httpdocs' '--no-color' 'media' 'regenerate' '--only-missing' '--yes'] with exit code [124]

I then came across this article here and increased the values with the same outcome, just that it takes longer to return the same error.

I ran several antivirus scans and they all came back negative.
 
Hello
Can you came across this article one more time and set the panel.ini values from this article and wait a little bit more after that?

I see the
Code:
'timeout' '60' 'max_execution_time=60'
in your error report.
It depends on this parameters from panel.ini.
I have done small tests and I think that this cli command looks on the wpCliTimeoutRegular param.
But it will be better if you will change all parameters according to this article.
 
15k images sounds like a big amount.
Maybe it demands more time to this operation. What maximum time had you configured?
Can you increase it to 1200 seconds (20 minutes) for example and provide new error output if it will happen?
 
Hi @Anatolii Zaporozhets ,

I was not able to get back earlier. Herewith the latest updates


Code:
sudo plesk ext wp-toolkit --wp-cli -instance-id 2 -- media regenerate --yes


[2023-02-04 07:03:02.499] 594226:63dde70679c77 ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'www_p28qdml3t' 'exec' '/var/www/vhosts/website/httpdocs' 'timeout' '600' '/opt/plesk/php/7.4/bin/php' '-d' 'safe_mode=off' '-d' 'display_errors=on' '-d' 'opcache.enable_cli=off' '-d' 'open_basedir=' '-d' 'error_reporting=341' '-d' 'max_execution_time=600' '-c' '/var/www/vhosts/system/website/etc/php.ini' '/opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wpt-wp-cli.php' '--path=/var/www/vhosts/website/httpdocs' '--no-color' 'media' 'regenerate' '--yes'] with exit code [255]


PHP Fatal error:  Maximum execution time of 500 seconds exceeded in /var/www/vhosts/website/httpdocs/wp-includes/class-wp-image-editor-gd.php on line 208


Fatal error: Maximum execution time of 500 seconds exceeded in /var/www/vhosts/website/httpdocs/wp-includes/class-wp-image-editor-gd.php on line 208


Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.


Found 17535 images to regenerate.

It then regenerates about 700 images and then stops with

Code:
exit status 3
 
Back
Top