Magento upgrade takes too long and never completes

后端 未结 5 2002
长发绾君心
长发绾君心 2020-11-27 06:58

I am upgrading magento from 1.4.0.1 to 1.7.0.2. Initially there were some errors; after fixing those, now the upgrade is running for 5 hours and never completes. No error is

5条回答
  •  时光说笑
    2020-11-27 07:12

    I think that the most comprehensive description of the Magento 1.4 to 1.7.x upgrading is this way, offered by turnkey website:

    Before proceeding with this part of Magento upgrade, it is important to see to what version Magento upgrade scripts will upgrade your store. Enter this command to check this:

    1
    ./mage list-upgrades
    

    If you will see this result:

    Updates for community:
    Mage_All_Latest: 1.4.2.1 => 1.7.0.2
    Lib_Js_Mage: 1.4.2.0 => 1.7.0.2
    Lib_Varien: 1.4.2.0 => 1.7.0.2
    

    It means that your Magento will be upgraded to version 1.7.0.2. If it is not what you need you can change upgrade channel to “beta” and upgrade your Magento to RC (beta) version.

    1 – Enter this command to change the upgrade channel to stable (remember, “stable” channel will upgrade your Magento to latest 1.7.x stable version):

    1
    ./mage config-set preferred_state stable
    

    After this the “./mage list-upgrades” command will show you this result:

    Updates for community:

      Mage_All_Latest: 1.4.2.1 => 1.7.0.2.
        Lib_Js_Mage: 1.4.2.0 => 1.7.0.2.
        Lib_Varien: 1.4.2.0 => 1.7.0.2.
        Lib_Phpseclib: 1.4.2.0 => 1.7.0.2.
        Mage_Core_Adminhtml: 1.4.2.0 => 1.7.0.2.
        Mage_Core_Modules: 1.4.2.0 => 1.7.0.2.
    

    2 – After channel selection you can upgrade your Magento to Magento 1.7.0.2) using this command:

    1
    ./mage upgrade-all --force
    

    If “./mage upgrade-all –force” will not work, you can try to execute this command:

    1
    ./mage install connect20.magentocommerce.com/community Mage_All_Latest --force
    

    You will see upgraded packages on your screen:

    …
    
        Package upgraded: community/Mage_Locale_en_US 1.7.0.2
        Package upgraded: community/Lib_Mage 1.7.0.2
        Package upgraded: community/Lib_ZF 1.11.1.0
        Package upgraded: community/Lib_Js_Prototype 1.7.0.2.
        Package upgraded: community/Lib_ZF_Locale 1.11.1.0
    

    Now the upgrade is complete and you can execute database upgrade visiting your Magento store in your browser, this process will take several minutes, so be patient. If everything was upgraded correctly, you will see upgraded store in your browser. Before database upgrade it is recommended to increase time and memory limits of your PHP engine.

    If it is not possible to increase it, you can try to execute database upgrade via SSH, e.g.:

    1
    
        php -f ./index.php
    

    When database upgrade will be finished, you can check version of your store in the footer of Magento administration panel.

提交回复
热议问题