- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: setup-cron.ERROR: Could not locate magento/magento2-base/composer.json file.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.