Skip to content
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

Cannot read contents from file #20

Open
CajuCLC opened this issue May 30, 2018 · 7 comments
Open

Cannot read contents from file #20

CajuCLC opened this issue May 30, 2018 · 7 comments

Comments

@CajuCLC
Copy link

CajuCLC commented May 30, 2018

Hi there.
I have tried using this repo with Magento EE 2.2.2, but getting this error:
Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: Cannot read contents from file "/var/www/html/app/etc/di.xml" Warning!file_get_contents(/var/www/html/app/etc/di.xml): failed to open stream: No such file or directory in /var/www/html/vendor/magento/framework/Filesystem/Driver/File.php:149 Stack trace: #0 /var/www/html/vendor/magento/framework/Filesystem/File/Read.php(100): Magento\Framework\Filesystem\Driver\File->fileGetContents('/var/www/html/a...', NULL, NULL) #1 /var/www/html/vendor/magento/framework/Config/FileIterator.php(71): Magento\Framework\Filesystem\File\Read->readAll() #2 /var/www/html/vendor/magento/framework/Config/Reader/Filesystem.php(146): Magento\Framework\Config\FileIterator->current() #3 /var/www/html/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator)) #4 /var/www/html/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Framework\Config\Reader\Filesystem-> in /var/www/html/vendor/magento/framework/App/ObjectManagerFactory.php on line 277

Windows 10 (using Powershell or WSL). Folder has all permissions.
When I log into the container (Apache) all files are with roo:root permission. Is this correct?

@CajuCLC
Copy link
Author

CajuCLC commented May 30, 2018

BTW, I am getting same error using Magento 2.2.4 that I downloaded from Magento.

@Dnyomo
Copy link

Dnyomo commented Aug 8, 2018

@CajuCLC Were you able to find an solution to this problem? I am seeing the same problem with 2.2.5.

@clifinger
Copy link

No news ?

@CajuCLC
Copy link
Author

CajuCLC commented Sep 4, 2018

No update from me, I honestly just decided to build my own Docker. :)

@fballiano
Copy link
Owner

sorry guys I don't have a windows machine to try it, it never happened to me on mac (although I've to say I don't use it that much)

@clifinger
Copy link

clifinger commented Sep 5, 2018

It work for me with docker-sync and WSL. My repo based on Laradock: Magento2onwindows
I followed docker-sync-on-Windows. I start Magento on Windows by WSL ./sync.sh nginx mysql phpmyadmin. I will clean later but it work ! I can even change the user permissions inside the volume. You have this problem because you use CIFS when you share a volume on Docker for Windows and win don't support chmod ! With docker-sync the volume will be available to be acceded on Windows but the storage will be on WSL so full speed like native Linux ... Just don't forget to put a :no-copy to not have double writing.

@fballiano
Copy link
Owner

is this still an issue on windows? i was trying to test it but docker needs windows pro or enterprise which I don't have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants