Thanks for the link! After editing ~/.composer/auth.json to have the appropriate credentials, I was able to get the first three steps to work:
composer require magento/product-community-edition 2.0.4 --no-update
composer update
rm -rf var/di var/generation
But then I started encountering PHP errors:
magento2@yivo:/srv/www/magento2$ php bin/magento cache:clean [ErrorException] is_file() expects parameter 1 to be a valid path, string given
magento2@yivo:/srv/www/magento2$ php bin/magento cache:flush [ErrorException] is_file() expects parameter 1 to be a valid path, string given
magento2@yivo:/srv/www/magento2$ php bin/magento setup:di:compile [ErrorException] is_file() expects parameter 1 to be a valid path, string given
This runs successfully:
php bin/magento indexer:reindex
The front and backends appear to be working at this point, and indicate ver 2.0.4. I wanted to try to fix the cache since those commands failed, I go into System > Cache Management > Flush Magento Cache:
There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 787476585956
Edit: I deleted the 2.0.2 install and installed 2.0.4 using the .tar.bz2 file option. At some point it would be nice to successfully be able to upgrade the product reliably, otherwise one can never launch a store...
...Donovan
Also, can't upgrade version from 2.0.2 to 2.0.4. After I run in terminal
composer update
I get this error
Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for magento/magento2ce 2.0.2 -> satisfiable by magento/magento2ce[2.0.2]. - magento/product-community-edition 2.0.4 requires magento/framework 100.0.6 -> satisfiable by magento/framework[100.0.6]. - don't install magento/framework 100.0.6|remove magento/magento2ce 2.0.2 - Installation request for magento/product-community-edition 2.0.4 -> satisfiable by magento/product-community-edition[2.0.4].
Unfortunately I didn't get this kind of message, so I can't help you.
Hi,
You should try these steps in this following tutorial:
http://bsscommerce.com/blog/how-to-upgrade-magento-2-0-2-to-magento-2-0-4-version/
I think it will make your upgrade successful !
@DonovanI know this is old, but someone else like myself might get here, if you are having this error what i did to fix it was actually manually delete the contents of var/cache/ var/page_cache/ and var/session/
For me this solved it temporarily but when an order has been placed the cache won't clean again.
In a different sense, I think moving from Magento 1.x to 2.x is a process, not an upgrade.
The database schema changes so much that the process is referred to as Migration. The data has to be exported, translated to the new database tables/columns or discarded as applicable.
So if you feel you need some extra help to transfer data, we can offer you a website to get in touch and see what we can do for you: https://goo.gl/LuKtY3