cancel
Showing results for 
Search instead for 
Did you mean: 

Install M2 RC using magento-composer-installer

Install M2 RC using magento-composer-installer

Hello, guys.

 

I have installed M2 1.0.0-beta application using magento-composer-installer (composer.json) and M2 Beta application was started successfully. Now I try to install M2 2.0.0-rc by the same way (composer.json) and M2 RC application does not start. I can complete setup process but when I go to admin I have an error in ./var/report:

 

a:4:{i:0;s:447:"Cannot read contents from file "/home/alex/work/github/sample_mage2_module/live/htdocs/home/alex/work/github/sample_mage2_module/live/vendor/magento/module-ui/view/base/ui_component/etc/definition.xml" Warning!file_get_contents(/home/alex/work/github/sample_mage2_module/live/htdocs/home/alex/work/github/sample_mage2_module/live/vendor/magento/module-ui/view/base/ui_component/etc/definition.xml): failed to open stream: No such file or directory";i:1;s:16360:"#0 /home/alex/work/github/sample_mage2_module/live/vendor/magento/framework/Filesystem/Directory/Read.php(207): Magento\Framework\Filesystem\Driver\File->fileGetContents('/home/alex/work...', NULL, NULL)
#1 /home/alex/work/github/sample_mage2_module/live/vendor/magento/framework/View/Element/UiComponent/Config/FileCollector/AggregatedFileCollector.php(81): Magento\Framework\Filesystem\Directory\Read->readFile('/home/alex/work...')
#2 /home/alex/work/github/sample_mage2_module/live/vendor/magento/framework/View/Element/UiComponent/Config/Reader.php(47): Magento\Framework\View\Element\UiComponent\Config\FileCollector\AggregatedFileCollector->collectFiles()
#3 /home/alex/work/github/sample_mage2_module/live/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(101): Magento\Framework\View\Element\UiComponent\Config\Reader->__construct(Object(Magento\Framework\View\Element\UiComponent\Config\FileCollector\AggregatedFileCollector), Object(Magento\Framework\View\Element\UiComponent\Config\Converter), Object(Magento\Framework\View\Element\UiComponent\Config\DomMerger))
...
#67 /home/alex/work/github/sample_mage2_module/live/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#68 [internal function]: Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#69 /home/alex/work/github/sample_mage2_module/live/vendor/magento/framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#70 /home/alex/work/github/sample_mage2_module/live/htdocs/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#71 /home/alex/work/github/sample_mage2_module/live/vendor/magento/framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#72 /home/alex/work/github/sample_mage2_module/live/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#73 /home/alex/work/github/sample_mage2_module/live/htdocs/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#74 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}

 

I see that error is appeared in the \Magento\Framework\Filesystem\Driver\File::getRelativePath method: 

 

public function getRelativePath($basePath, $path = null) {...}

 

  • $basePath = /.../live/htdocs/
  • $path = /.../live/vendor/magento/module-ui/view/base/ui_component/etc/definition.xml

Also I see that there are no Magento sources under ./htdocs/app/code:

 

 I suppose smth is wrong in the deployment process but I don't know what exactly.

 

1 REPLY

Re: Install M2 RC using magento-composer-installer

Magento 2.0.0-rc2 has the same problem Man Sad