3

Could someone explain me a step by step to upgrade using ssh?

I have update seup wizard in admin panel but I got these errors!

enter image description here

Post is related to a rapidly changing event.

  • I am having a problem upgrading from 2.1.2 to 2.1.3 as well but my problem is different: Notice: Undefined index: attribute_id in magento2/vendor/magento/module-catalog/Setup/UpgradeData.php on line 375 any ideas? – Semaj Nekeerv Dec 15 '16 at 19:12
  • please check thsi que's ans magento.stackexchange.com/questions/151108/… @Semaj Nekeerv – Sneha Panchal Dec 20 '16 at 12:25
11

Updating/Upgrading to Magento 2.1.3 (via composer)

composer require magento/product-community-edition 2.1.3 --no-update
composer update
rm -rf var/di var/generation
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex

After upgrade, check your Magento version with the following command:

php bin/magento --version

Complete Working, I have just upgrade now.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • Keep in mind that if you use Magento Vault then you also need to change module version in composer manualy to 100.2.*, read more: devdocs.magento.com/guides/v2.1/release-notes/… An extra magento setup:static-content:deploy after installation is also worth to perform at the end of update process – Luke Jan 27 '17 at 10:05
1

Connect your Magento 2 store using SSH and the go to its root directory.

First, run this command:

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

Now update the composer

composer update

Now run the following command:

rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/*

Now clean the cache:

php bin/magento cache:clean

Now flush the cache:

php bin/magento cache:flush

Now upgrade the setup:

php bin/magento setup:upgrade

Now compile the setup

php bin/magento setup:di:compile

Lastly, reindex the indexer:

php bin/magento indexer:reindex

protected by Community Dec 19 '16 at 5:50

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.