cancel
Showing results for 
Search instead for 
Did you mean: 

setup-cron.ERROR: Could not locate magento/magento2-base/composer.json file.

setup-cron.ERROR: Could not locate magento/magento2-base/composer.json file.

Hey there,

I installed Magento 2.3.3 using GIT.

 

The setup:cron:run results in this error:

[2019-12-12 16:47:01] setup-cron.ERROR: Could not locate magento/magento2-base/composer.json file. [] []

 

How can this be fixed?

3 REPLIES 3

Re: setup-cron.ERROR: Could not locate magento/magento2-base/composer.json file.

Re: setup-cron.ERROR: Could not locate magento/magento2-base/composer.json file.

Hello @MadisonCooper 

Just set up one cron 

 

* * * * * /usr/bin/php /var/www/magento2/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/magento2/var/log/magento.cron.log

The other two are for those who installed Magento from the downloadable package. 

Let me know then

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: setup-cron.ERROR: Could not locate magento/magento2-base/composer.json file.

That "magento/magento2-base/composer.json" file should be located within vendor/, but not sure why is asking for that if you used the GIT version.

 

I recommend installing it again but using composer instead. As long as you install the same version, you won't have any issue and you'll be able to use the same database.

 

After that, follow these instructions to set up crons accordingly:

 

https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cron.html

 

Make sure to set the 3 cronjobs, even if your update/ directory doesn't exist.