Introduction
Magneto performs a readiness check before installing or updating extensions. If this check fails, it will not allow you to proceed. There are two common reasons for a readiness check failure&mdashincorrectly configured cron tasks and low PHP-FPM memory limits. The PHP-FPM memory limit needs to be set very high, or Magento becomes unstable and will not display error messages.
One-step Repair Script
This script will address both issues. Save the following script on your server as "magento_patch.sh".
#!/bin/bash
# Move the crontab to the right place
mv -f /var/spool/cron/nginx /var/spool/cron/crontabs/nginx
# Fix PHP memory limit
sed -i -e 's/php_admin_value\[memory_limit\] = 756M/php_admin_value\[memory_limit\] = 2G/'
/etc/php/7.0/fpm/pool.d/www.conf
# Restart PHP-FPM
systemctl restart php7.0-fpm.service
Run the script.
chmod +x magento_patch.sh; ./magento_patch.sh
After the script completes, wait a minute for the cron script to run and then initiate a new readiness check.
Other Issues
There are several other, less common reasons for a readiness check failure. Please refer to the official documentation, which has the latest information.
Rcs One-Click
There is another simple solution to this problem! Deploy a Rcs One-Click Magneto app and launch your server in minutes. We update our One-Click apps regularly to make sure your deployments are trouble-free.