• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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