cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade from 2.1.6 to 2.1.8

SOLVED

Upgrade from 2.1.6 to 2.1.8

Hello.

Im trying to upgrade Magento from version 2.1.6 to version 2.1.8.

Im doing it from the admin page. After a while it stops and nothing happens, i waited and when i was sure that it was stuck i kicked at cron with this commands:

php bin/magento setup:cron:run

php bin/magento cron:run

Then it started again but shortly after it stop with the following message:

[2017-08-29 09:44:37] setup-cron.INFO: Job "setup:upgrade {"command":"setup:upgrade"}" has been successfully completed [] []
[2017-08-29 09:44:37] setup-cron.INFO: Job "setup:static:regenerate []" has started [] []
[2017-08-29 09:44:37] setup-cron.INFO: Cleaning generated files... [] []
[2017-08-29 09:44:37] setup-cron.INFO: Clearing cache... [] []
[2017-08-29 09:44:37] setup-cron.INFO: Cleaning static view files [] []
[2017-08-29 09:44:37] setup-cron.INFO: Job "setup:static:regenerate []" has been successfully completed [] []
[2017-08-29 09:44:37] setup-cron.INFO: Job "setup:maintenance:disable []" has started [] []
[2017-08-29 09:44:37] setup-cron.ERROR: An error occurred while executing job "setup:maintenance:disable []": Could not complete setup:maintenance:disable [] successfully: Magento maintenance mode was not disabled. It can be disabled from the Magento Backend. [] []

So i discovered that bin/magento was not executable. Changed that and ran bin/magento setup:maintenance:disable.

Since the log file says that it has been succesfully upgraded i thought that everything was fine. But i can not get it running.

Now im out of ideas, any kind person who can point me in the right direction?

 

//Martin

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Upgrade from 2.1.6 to 2.1.8

I have just recently upgrade for same using above way.
Just edit comppser.json from root to set latest version of magento version.

Just run composer update command.

After complete,
Run setup:upgrade, deploy command and clear cache.

If issue solved, click kudo/accept as solutions.
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

View solution in original post

9 REPLIES 9

Re: Upgrade from 2.1.6 to 2.1.8

Hi @martin_bonta,

 

If you execute:

 

bin/magento --version

You'll get your current version. Also, can you execute this one:

 

bin/magento maintenance:status

You should see something like:

 

Status: maintenance mode is not active
List of exempt IP-addresses: none

Re: Upgrade from 2.1.6 to 2.1.8

Hello @Damian Culotta

bin/magento --version
Magento CLI version 2.1.6

 

bin/magento maintenance:status
Status: maintenance mode is not active

 

No supprice since i did a rollback and fixed so it works again.

I have tried twice to upgrade to 2.1.8 but the same thing happend both times.

 

//Martin

Re: Upgrade from 2.1.6 to 2.1.8

What if you run the upgrade to 2.1.7 and then to 2.1.8?


Using this:

 

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

And then

 

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

Re: Upgrade from 2.1.6 to 2.1.8

You can simply upgrade your version using below way,

 

Go to composer.json file at root,

Replace old version with new version number
"version": "2.1.6"
with
"version": "2.1.8"

 

Replace old version with new version number
"magento/product-community-edition": "2.1.6"
with
"magento/product-community-edition": "2.1.8"

 

Run command from root,

composer update

 

if issue solved,Click Kudos/Accept as solutions.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Upgrade from 2.1.6 to 2.1.8

Hello @Damian Culotta

Im still not able to upgrade, this is what i have done.

First i ran:

bin/magento maintenance:enable
composer require magento/product-community-edition 2.1.7 --no-update composer update
bin/magento maintenance:disable

So far everything works good, i check some things:

bin/magento --version
Magento CLI version 2.1.7
bin/magento maintenance:status
Status: maintenance mode is not active

 But when i try to enter my website it just says: "There has been an error processing your request"

 

//Martin

Re: Upgrade from 2.1.6 to 2.1.8

Hello @Rakesh Jesadiya

I have not tried your solution but i think it will be the same result.

Do i need to run bin/magento setup:install or something after the "Compser update" command?

//Martin

Re: Upgrade from 2.1.6 to 2.1.8

I have just recently upgrade for same using above way.
Just edit comppser.json from root to set latest version of magento version.

Just run composer update command.

After complete,
Run setup:upgrade, deploy command and clear cache.

If issue solved, click kudo/accept as solutions.
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Upgrade from 2.1.6 to 2.1.8

Thank you @Rakesh Jesadiya

I have now upgraded to version 2.1.7, maybe i should have gone for 2.1.8 right away.
Anyway, i will upgrade to 2.1.8 now so it will be repetition for me.

 

//Martin

Re: Upgrade from 2.1.6 to 2.1.8

@martin_bonta,

 

If you're getting this message "There has been an error processing your request" it means you're getting a report.

Take a look into /path/to/magento/var/report because is possible you'll find some files with the details of the problem.