Closed dmitrii-fediuk closed 9 months ago
Solved by sudo service cron stop
before a compilation:
sudo service cron stop
bin/magento maintenance:enable
rm -rf var/di var/generation generated/*
bin/magento setup:di:compile
bin/magento cache:clean
bin/magento maintenance:disable
sudo service cron start