0

After upgrading to magento 2.4.6-p3 in system.log and cron.log it is generating same error daily i.e -

main.ERROR: There are no commands defined in the "setup:cron" namespace.
Did you mean one of these?
    setup
    setup:config
    setup:db
    setup:db-data
    setup:db-declaration
    setup:db-schema
    setup:di
    setup:performance
    setup:static-content
    setup:store-config

Can anyone suggest any solution or the cause for the error in system.log and cron.log file

1
  • Can you try to remove cron first & then install it again? Because the setup:cron might be defined in the installed CRON. bin/magento cron:remove bin/magento cron:install Commented Feb 1 at 5:11

2 Answers 2

0

In Magento 2.4.6-p3 there is no command with "setup:cron". check if any of your modules using this command.

1
  • Yes. I have found one file crontab.xml with this code - <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Magento/Cron/etc/crontab.xsd"> <group id="default"/> </config> Is it causing the issue Commented Jan 31 at 13:52
0

You can check the installed CRON because setup:cron was used in the CRON installation earlier.

So to verify the installed CRON, please use following command:

crontab -l

If the cron:setup exists for the installed CRON, please reinstall the CRON using the following commands:

bin/magento cron:remove 
bin/magento cron:install
1
  • Tried same but still the issue persists Commented Feb 2 at 13:37

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.