Skip to content

Magento 2.1 RC1 - Error when running CLI upgrade command #4795

Closed
@toddwolaver

Description

@toddwolaver

Attempting to run setup:upgrade after compiling DI results in an error. I have tried with just 'setup:upgrade' and 'setup:upgrade --keep-generated'.

Steps to reproduce

  1. Install Magento 2.1 RC1 via composer.
  2. Compile DI or enable production mode.
    • 'php bin/magento setup:di:compile' or
    • 'php bin/magento deploy:mode:set production'
  3. Run upgrade command (results in error)
    • 'php bin/magento setup:upgrade' or
    • 'php bin/magento setup:upgrade --keep-generated'

Expected result

  1. For setup:upgrade to run and process necessary upgrades

Actual result

  1. Upgrade does not run and results in error:
php bin/magento setup:upgrade --keep-generated

  [Exception]  
  Warning: file_get_contents(/Users/twolaver/magento/magento-rc1/var/di/setup.ser): failed to open stream: No such file or directory in /Users/twolaver/magento/magento-rc1/vendor/magento/framework/App/ObjectManager/ConfigLoader/Compiled.php on line 28              

Note: contents of var/di are:

  • adminhtml.ser
  • crontab.ser
  • frontend.ser
  • global.ser
  • webapi_rest.ser
  • webapi_soap.ser

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions