Magento2: Can't upgrade from 2.0.2 to 2.0.4 by the back-end "Web Setup Wizard"

Created on 1 Apr 2016  路  10Comments  路  Source: magento/magento2

Steps to reproduce

  1. composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2 (I installed version 2.0.2)
  2. php bin/magento setup:install --base-url=http://load-balancer-domain/ --db-host=mysqldbhost --db-name=dbname --db-user=dbuser --db-password=dbpassword --admin-firstname=Magento --admin-lastname=User --admin-email=admin@email --admin-user=admin --admin-password=adminpassword --language=en_US --currency=USD --timezone=America/Los_Angeles --use-rewrites=1
  3. php bin/magento setup:config:set --http-cache-hosts=127.0.0.1:6082 (I installed varnish and it's backend port is 6082)
  4. php bin/magento setup:upgrade ==> pass without error
  5. php bin/magento setup:static-content:deploy en_US ==> pass without error
  6. php bin/magento setup:di:compile ==> pass without error
  7. php bin/magento indexer:reindex ==> pass without error
  8. php bin/magento cache:flush ==> pass without error
  9. php bin/magento cache:clean ==> pass without error
  10. varnish listen on port 80 and nginx listen on port 8000
  11. I installed on AWS and enable the Load balancer and it will redirect http(80) and https(443) to http(80)
  12. I visit the http://load-balancer-domain/admin_url/ and all functions works correctly except the "Web Setup Wizard".
  13. I check http://load-balancer-domain/ and all front-end works correctly.
  14. Today, I got the upgrade message and try to upgrade my magento 2.0.2 to 2.0.4 but I can't use the "Web Setup Wizard"
  15. I tested all functions and links of front-end and back-end and all works correctly except the "Web Setup Wizard"
    Expected result
    --
  16. I had read the page http://devdocs.magento.com/guides/v2.0/comp-mgr/upgrader/upgrade-start.html

    Actual result

2016-04-01 19_14_32

Ps. I tried to add " port_in_redirect off;" in nginx but it doesn't work.
Ps. I tried discussion of http://serverfault.com/questions/351212/nginx-redirects-to-port-8080-when-accessing-url-without-slash but failed.
Ps. I am not sure the problem is caused by nginx+vanrish or magento2 php code?
Ps. Is there a way to upgrade by command line? I can't see any guideline about this.

needs update

Most helpful comment

@woei66 do you have the recommended cron scripts set?

TO upgrade by command line:

  1. composer require magento/product-community-edition 2.0.4 --no-update
  2. composer update
  3. Clean cache, and di and generation folders.
  4. bin/magento setup:upgrade

All 10 comments

@woei66 do you have the recommended cron scripts set?

TO upgrade by command line:

  1. composer require magento/product-community-edition 2.0.4 --no-update
  2. composer update
  3. Clean cache, and di and generation folders.
  4. bin/magento setup:upgrade

Hi @woei66 Working on documentation now. It'll be available soon; I'll let you know. Meanwhile, Maddy's steps should work.

@mazhalai
it works. thank you.
I write down my steps for users who has the same issue:

composer require magento/product-community-edition 2.0.4 --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

EDIT: Apologies if this is out of place/off topic... I'm inexperienced with GitHub and this was the closest thing I could find...

Trying to upgrade from 2.0.2 to 2.0.4, auth keys in place, cron set up, but my System Upgrade screen just hangs with the Checking for a new version spinner going... so I thought I'd try the CLI listed here.

When I take the above steps I get:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package magento/product-community-edition could not be found in any version, there may be a typo in the package name.

Potential causes:

.... I'm running composer from /update/vendor/composer/composer/bin/

like:

php composer

@blizam have you set you repository to point to repo.magento.com? Also, have you saved the private and public keys?

/public_html/update/composer.json

has this:

"repositories": [
    {
        "type": "composer",
        "url": "https://repo.magento.com/"
    }
],

And yes, in my backend admin, System > Web Setup Wizard > System Configuration -- I've got my public and private keys to my magento.com account saved

What about in Magento's root composer.json file? not the one in update folder. Also, have you set cronjobs to post to a log as recommended. Any errors in these logs?

there is magic in the air... I think my issue is with my cron settings... after manually running the cron commands I'm now able to proceed in the Web Setup Wizard

and yes, the root composer.json has the correct repo URL

Closing since @woei66 and @blizam 's issues have been resolved. Please feel free to open a new one if issues arise.

Was this page helpful?
0 / 5 - 0 ratings