cancel
Showing results for 
Search instead for 
Did you mean: 

Error update.log setup-cron.ERROR: An error occurred while executing job "setup:maintenance:disable

Error update.log setup-cron.ERROR: An error occurred while executing job "setup:maintenance:disable

Hello,
I have a problem with Magento 2.3.5-p1 but I have this problem in previous versions as well.
In the file update.log I keep seeing this error:

update-cron.INFO: There was an error in previous Update attempt.

  Going back to the cause I find:

setup-cron.ERROR: An error occurred while executing job "setup:maintenance:disable []": Could not complete setup:maintenance:disable [] successfully: Magento maintenance mode was not disabled. It can be disabled from the Magento Backend. [] []

I found a similar case but the solution does not solve the problem:
 https://community.magento.com/t5/Magento-2-x-Version-Upgrades/Upgrade-from-2-1-6-to-2-1-8/td-p/74048

After deleting the file .update_error.flag, the problem returns
Do you have any solution? Thanks
Emi

PS:
Could the problem be due to incorrect syntax? setup:maintenance:disable instead of maintenance:disable. Is it possible to change this statement?