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

Erro instalação Windows 10 - Ubuntu WSL #62

Closed
CajuCLC opened this issue Jul 25, 2018 · 1 comment
Closed

Erro instalação Windows 10 - Ubuntu WSL #62

CajuCLC opened this issue Jul 25, 2018 · 1 comment

Comments

@CajuCLC
Copy link

CajuCLC commented Jul 25, 2018

Oi Rafael, estou com um probleminha.
Tentei rodar a instalação seguindo o seu tutorial, mas no Ubuntu WSL no Windows 10 não está terminando a instalação.
Logo depois de rodar o install-magento2 ele passa vários minutos instalando várias coisas, mas depois de um tempo este erro aparece:

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
'/var/www/env.sample.php' -> './app/etc/env.php'
/usr/local/bin/install-magento2: line 27: n98: command not found
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
cp: cannot stat '/var/www/.composer/auth.json': No such file or directory
npm ERR! Linux 4.9.87-linuxkit-aufs
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i"
npm ERR! node v6.14.3
npm ERR! npm v3.10.10
npm ERR! path /var/www/.npm/time-grunt
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir '/var/www/.npm/time-grunt'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, mkdir '/var/www/.npm/time-grunt'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/var/www/.npm/time-grunt',
npm ERR! parent: 'magento2' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/npm-debug.log
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

Sabe o que pode ser? Algo que eu imagino é que como estou rodando o comando do WSL e o docker dentro do Ubuntu conecta ao Docker que roda no Windows, o Ubuntu talvez não esteja tendo permissão de escrita. Já tive problema parecido com o MySQL, mas já resolvi localmente.

Obrigado.

@CajuCLC
Copy link
Author

CajuCLC commented Dec 18, 2018

Irei fechar o issue pq eu movi meu docker para o Ubuntu para rodar em um sistema mais amigavel para containers.
Mas acredito que o problema era permissao de pasta sim e existe este tutorial que eu nao testei: https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly

@CajuCLC CajuCLC closed this as completed Dec 18, 2018
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

1 participant