cancel
Showing results for 
Search instead for 
Did you mean: 

Readiness failed before upgrade from 2.2.2 -> 2.2.6

Readiness failed before upgrade from 2.2.2 -> 2.2.6

Hi

 

magento 2.2.2

PHP 7.1

Live store for example mydomain.com

Test environment is beta.mydomain.com

 

Earlier today I tryed to update my magento store (test environment) from 2.2.2 to 2.2.6. Readiness passed but I was stuck in the update pending a ages... So I cancelled the update before it had started... So I googled a while and learned that it is the corn job that do the cronjob....

 

That made me think I needed to update the cronjob commands as the cronjobs are targeting live store - So I changed the cronjob

 

Second time I tryed the readiness check it complained about non-writing folders

 

Third time I ran it failed totally, meaning all tests failed

 

Is there a trick to fix this? some kind of log I need to clean or somehting before I try readiness again?

7 REPLIES 7

Re: Readiness failed before upgrade from 2.2.2 -> 2.2.6

Hi @Loginname

 

i understand , as you are facing issues on upgrading magento version from the backend of the system using system wizard , instead of that have you tried to upgrade magento 2 version using command line ? 

 

You can use below commands to upgrade your magento 2 version :

 

 

composer require magento/product-community-edition 2.2.6 --no-update
composer update

rm -rf <Magento install dir>/var/cache/
rm -rf <Magento install dir>/var/page_cache/
rm -rf <Magento install dir>/var/generation/
rm -rf <Magento install dir>/generated php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush

 

It will helps you to upgrade your magento 2 version

 

hope it helps

 

if issue solved,Click Kudos & Accept as Solution

Re: Readiness failed before upgrade from 2.2.2 -> 2.2.6

Can you explain a bit about what this is:

composer require magento/product-community-edition 2.2.6 --no-update
composer update

I know it is data required by the composer, but where do I download and place the magento update file (I mean the compressed file containing the updates)? Or those composer this automatically? (composer has it defined)...

 

Where do I get this composer file, I'm checking here

(but there are many links (not easy to see what to I should chose, but looking at magento 2. open source update)

 

Audun

Re: Readiness failed before upgrade from 2.2.2 -> 2.2.6

Hi @Loginname

 

Well, you need to run this commands from your SSH (command line) tool

 

as your magento 2 is installed and working , so composer is already installed in your server/system - so you don't need to modify/add anything into composer file 

 

you just need to open your SSH command line terminal and go to the root directory of magento 2 - and then run the commands which i have given above

 

once all commands run successfully - your magento 2 version gets updated !

 

Hope it helps 

if issue solved,Click Kudos & Accept as Solution

Re: Readiness failed before upgrade from 2.2.2 -> 2.2.6

I get this error when running the php bin/magento setup:di:compile command

 

TemplateMonster\Megamenu\Plugin\Block\Topmenu
Incompatible argument type: Required type: \Magento\Catalog\Model\ResourceModel\Category\StateDependentCollectionFactory. Actual type: \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory; File:
/home/audun/beta.mydomain.com/app/code/TemplateMonster/Megamenu/Plugin/Block/Topmenu.php

Total Errors Count: 1
  [Magento\Framework\Validator\Exception]
  Error during compilation


setup:di:compile

Re: Readiness failed before upgrade from 2.2.2 -> 2.2.6

Just checked with TemplateMonster, they say I get the error because template not compatible 2.2.6

 

ok, so now I will read a bit aobut how to apply secuirty patches as that should be possible

Re: Readiness failed before upgrade from 2.2.2 -> 2.2.6

Well if your template is not supporting magento 2.2.6 version ..

then right now , you can't upgrade the magento version , or else you need to ask your template provider , to release new version of template for magento 2.2.6

otherwise you can upgrade your magento version from the above given command

regarding security patches , yes its already released so you can applied for the same ..

Hope it helps
if issue solved,Click Kudos & Accept as Solution

Re: Readiness failed before upgrade from 2.2.2 -> 2.2.6

Hi,

 

I have ran into this error on my site. Were you ever able to find a fix for this or will I need to contact the plugin developer and get them to update the plugin.

 

Thanks,

 

Adrian