Since we upgraded Magento to 2.2.5, after every deployment to production (which includes git pull...
, composer update
& all other relevant Magento CLI commands for production deployment), our indexers stops to work & when we check the cron by running php bin/magento cron:run
we get this error:
PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Lock\LockManagerInterface in /.../vendor/magento/framework/ObjectManager/Factory/AbstractFactory
The only way we found that seems to solve this (temporarily) is to clear the composer cache, remove the vendor
dir, running composer update
again & re-deploying Magento again.
We have to do that every time, after every deployment & it's really annoying.