magento setup:upgrade error "deployment configuration is absent"
When I try to upgrade Magento 2
php bin/magento setup:upgradeI get
Can't run this operation: deployment configuration is absent. Run 'magento setup:config:set --help' for options. setup:upgrade
How to fix it? Updating using the web updater gives the following errors:
I asked my hosting provider to fix them and they did install the right php version 5.6 and all extensions recommended by magento and created a cron job but I still see the error.
UPDATE: (from comments)
env.phpwasn't there, when I run
magento setup:config:setI get this error:
$ bin/magento setup:config:set
SQLSTATE[HY000]  No such file or directory
Parameter validation failed
Check to see if `
/app/etc/env.php` is present. That is the deployment configuration. If it's absent, run the `magento setup:config:set` command again to create it.
@SteveJohnson env.php wasn't there, when I run `magento setup:config:set` i get this error http://pastebin.com/BDzxYGGU
I ran into the same issue today. It appeared that the
app/etc/env.phpwas missing. This means that Magento was not yet installed. During Magento installation it will create this file, so:
- make sure
app/etc/is writable for the magento user/webuser
bin/magento setup:install ...params...
In my case, some script that I made was not copying my
env.phpfile into the
It is also possible that the file is there, but it is not readable for the Magento user/webuser.
- make sure