I have developed a module that has worked well previously on Magento 2. I now find the following error when I enable the module with composer:

Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory. 
The following modules are outdated:
Creare_Example schema: current version - none, required version - 2.0.0
Creare_Example data: current version - none, required version - 2.0.0

I have ran the database upgrade command as requested, but I then get this error:

enter image description here

The extension has a simple data install script which I imagine has already ran, but now I can't get any further. Has anybody else encountered this problem?

I'm running Magento 2 on the following Vagrant Box: https://github.com/rgranadino/mage2_vagrant

  • Try to kill the mysql and start it.
    – MagePsycho
    Commented Nov 30, 2015 at 18:11
  • I sometime have this messages when try to run command from host machine and not form VM...
    – KAndy
    Commented Nov 30, 2015 at 18:23
  • Does your module.xml include setup_version? devdocs.magento.com/guides/v2.0/extension-dev-guide/… Commented Dec 1, 2015 at 13:58
  • I have restarted the server and have checked that my module does have a setup version.
    – Adam Moss
    Commented Dec 2, 2015 at 11:36

1 Answer 1


You need to execute that command into the vagrant box via SSH:

$ vagrant ssh
$ cd [magento-path]
$ bin/magento setup:upgrade

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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