-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimizer Preview Seems to Be incompatible with Magento Cloud Pro #909
Comments
Just to be sure it is not related to #908, did you manage to finish compile ? |
Yep without the target rule module search compiles, indexes, and displays results correctly. This is specifically for the preview feature in the optimzer |
OK |
Fix #909 - Fix optimizer provider compile.
This bug should be solved by PR #910 and it will be part of the upcoming 2.5.10 maintenance release. |
Preconditions
Magento Version : 2.2.4
ElasticSuite Version : 2.5.9
Environment : Prod
Third party modules :
Steps to reproduce
What seems to be happening is that the optimizer preview is trying to generate a factory on the fly and is failing because magento cloud will not let it write to the generated folder. The magento cloud pro environment symlinks the generated folder and is the not writable after the build process (Only for pro environments). So for now it looks like this feature is not compatible with MCE pro. MCE integration environments work (because its a single node system and has permission to write to the generated folder after deployment).
Expected result
Actual result
Here is the full stack trace:
Stack trace
RuntimeException: Noticed exception 'RuntimeException' with message 'Can't create directory /app/7alebf6ygqtlm/generated/code/Smile/ElasticsuiteCatalogOptimizer/Model/Optimizer/Collection/Provider/. in [Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer\Collection\Provider\ExcludeFactory]' in /app/7alebf6ygqtlm/vendor/magento/framework/Code/Generator.php:115
in Magento\Framework\Code\Generator::generateClass called at /app/7alebf6ygqtlm/vendor/magento/framework/Code/Generator/Autoloader.php (35)
in Magento\Framework\Code\Generator\Autoloader::load called at ? (?)
in spl_autoload_call called at ? (?)
in ReflectionClass::__construct called at /app/7alebf6ygqtlm/vendor/magento/framework/Code/Reader/ClassReader.php (19)
in Magento\Framework\Code\Reader\ClassReader::getConstructor called at /app/7alebf6ygqtlm/vendor/magento/framework/ObjectManager/Definition/Runtime.php (44)
in Magento\Framework\ObjectManager\Definition\Runtime::getParameters called at /app/7alebf6ygqtlm/vendor/magento/framework/ObjectManager/Factory/Compiled.php (100)
in Magento\Framework\ObjectManager\Factory\Compiled::create called at /app/7alebf6ygqtlm/vendor/magento/framework/ObjectManager/Factory/Compiled.php (150)
in Magento\Framework\ObjectManager\Factory\Compiled::get called at /app/7alebf6ygqtlm/vendor/magento/framework/ObjectManager/Factory/Compiled.php (125)
in Magento\Framework\ObjectManager\Factory\Compiled::parseArray called at /app/7alebf6ygqtlm/vendor/magento/framework/ObjectManager/Factory/Compiled.php (86)
in Magento\Framework\ObjectManager\Factory\Compiled::create called at /app/7alebf6ygqtlm/vendor/magento/framework/ObjectManager/Factory/Compiled.php (150)
in Magento\Framework\ObjectManager\Factory\Compiled::get called at /app/7alebf6ygqtlm/vendor/magento/framework/ObjectManager/Factory/Compiled.php (79)
in Magento\Framework\ObjectManager\Factory\Compiled::create called at /app/7alebf6ygqtlm/vendor/magento/framework/ObjectManager/ObjectManager.php (56)
in Magento\Framework\ObjectManager\ObjectManager::create called at /app/7alebf6ygqtlm/generated/code/Smile/ElasticsuiteCatalogOptimizer/Model/Optimizer/PreviewFactory.php (43)
in Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer\PreviewFactory::create called at /app/7alebf6ygqtlm/vendor/smile/elasticsuite/src/module-elasticsuite-catalog-optimizer/Controller/Adminhtml/Optimizer/Preview.php (129)
in Smile\ElasticsuiteCatalogOptimizer\Controller\Adminhtml\Optimizer\Preview::getPreviewObject called at /app/7alebf6ygqtlm/vendor/smile/elasticsuite/src/module-elasticsuite-catalog-optimizer/Controller/Adminhtml/Optimizer/Preview.php (93)
in Smile\ElasticsuiteCatalogOptimizer\Controller\Adminhtml\Optimizer\Preview::execute called at /app/7alebf6ygqtlm/vendor/magento/framework/App/Action/Action.php (107)
in Magento\Framework\App\Action\Action::dispatch called at /app/7alebf6ygqtlm/vendor/magento/module-backend/App/AbstractAction.php (229)
in Magento\Backend\App\AbstractAction::dispatch called at /app/7alebf6ygqtlm/vendor/magento/framework/Interception/Interceptor.php (58)
in Smile\ElasticsuiteCatalogOptimizer\Controller\Adminhtml\Optimizer\Preview\Interceptor::___callParent called at /app/7alebf6ygqtlm/vendor/magento/framework/Interception/Interceptor.php (138)
in Smile\ElasticsuiteCatalogOptimizer\Controller\Adminhtml\Optimizer\Preview\Interceptor::Magento\Framework\Interception{closure} called at /app/7alebf6ygqtlm/vendor/magento/module-backend/App/Action/Plugin/Authentication.php (143)
in Magento\Backend\App\Action\Plugin\Authentication::aroundDispatch called at /app/7alebf6ygqtlm/vendor/magento/framework/Interception/Interceptor.php (135)
in Smile\ElasticsuiteCatalogOptimizer\Controller\Adminhtml\Optimizer\Preview\Interceptor::Magento\Framework\Interception{closure} called at /app/7alebf6ygqtlm/vendor/magento/framework/Interception/Interceptor.php (153)
in Smile\ElasticsuiteCatalogOptimizer\Controller\Adminhtml\Optimizer\Preview\Interceptor::___callPlugins called at /app/7alebf6ygqtlm/generated/code/Smile/ElasticsuiteCatalogOptimizer/Controller/Adminhtml/Optimizer/Preview/Interceptor.php (26)
in Smile\ElasticsuiteCatalogOptimizer\Controller\Adminhtml\Optimizer\Preview\Interceptor::dispatch called at /app/7alebf6ygqtlm/vendor/magento/framework/App/FrontController.php (55)
in Magento\Framework\App\FrontController::dispatch called at /app/7alebf6ygqtlm/vendor/magento/framework/Interception/Interceptor.php (58)
in Magento\Framework\App\FrontController\Interceptor::___callParent called at /app/7alebf6ygqtlm/vendor/magento/framework/Interception/Interceptor.php (138)
in Magento\Framework\App\FrontController\Interceptor::Magento\Framework\Interception{closure} called at /app/7alebf6ygqtlm/vendor/magento/framework/Interception/Interceptor.php (153)
in Magento\Framework\App\FrontController\Interceptor::___callPlugins called at /app/7alebf6ygqtlm/generated/code/Magento/Framework/App/FrontController/Interceptor.php (26)
in Magento\Framework\App\FrontController\Interceptor::dispatch called at /app/7alebf6ygqtlm/vendor/magento/framework/App/Http.php (135)
in Magento\Framework\App\Http::launch called at /app/7alebf6ygqtlm/vendor/magento/framework/App/Bootstrap.php (256)
in Magento\Framework\App\Bootstrap::run called at /app/7alebf6ygqtlm/pub/index.php (37)
The text was updated successfully, but these errors were encountered: