Warning: include(/srv/magento/generated/metadata/global.php): failed to open stream: No such file or directory in /srv/magento/vendor/magento/framework/App/ObjectManager/ConfigLoader/Compiled.php on line 31

Warning: include(): Failed opening '/srv/magento/generated/metadata/global.php' for inclusion (include_path='/srv/magento/generated/code:/srv/magento/generated/code:/srv/magento/vendor/magento/zendframework1/library:.:/usr/local/lib/php') in /srv/magento/vendor/magento/framework/App/ObjectManager/ConfigLoader/Compiled.php on line 31

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\ObjectManager\ObjectManager::configure() must be of the type array, bool given, called in /srv/magento/vendor/magento/framework/App/ObjectManager/Environment/Compiled.php on line 108 and defined in /srv/magento/vendor/magento/framework/ObjectManager/ObjectManager.php:82 Stack trace: #0 /srv/magento/vendor/magento/framework/App/ObjectManager/Environment/Compiled.php(108): Magento\Framework\ObjectManager\ObjectManager->configure(false) #1 /srv/magento/vendor/magento/framework/App/ObjectManagerFactory.php(191): Magento\Framework\App\ObjectManager\Environment\Compiled->configureObjectManager(Object(Magento\Framework\Interception\ObjectManager\Config\Compiled), Array) #2 /srv/magento/vendor/magento/framework/App/Bootstrap.php(212): Magento\Framework\App\ObjectManagerFactory->create(Array) #3 /srv/magento/vendor/magento/framework/App/Bootstrap.php(127): Magento\Framework\App\Bootstrap->__construct(Object(Magento\Framework\App\ObjectManagerFactory), '/srv/ma in /srv/magento/vendor/magento/framework/ObjectManager/ObjectManager.php on line 82