cancel
Showing results for 
Search instead for 
Did you mean: 

Magento Path trying to write recurssively

SOLVED

Magento Path trying to write recurssively

When I use commands like 

 

bin/magento module:enable

 

Magento tries to write to the wrong path within itself

 

/var/www/magento2/app/etc/var/www/magento2/app/etc/

 

as if it did not know where the base directory was

 

For example

[Magento\Framework\Exception\FileSystemException]
The path ".:///var/www/magento2/app/etc/var/www/magento2/app/etc/" is not writable

 

There must be a way to edit this? I have tried 

 

bin/magento module:enable --magento-init-params "MAGE_MODE=developer&MAGE_DIRS[base][path]=/var/www/magento2" <module name>

 

but get the same error 

 

 

3 REPLIES

Re: Magento Path trying to write recurssively

Looks like a bug, I have noticed it too.

I recommend to report it in the issue tracker: https://github.com/magento/magento2/issues

Re: Magento Path trying to write recurssively

Ok I have fixed this issue. 

 

This was a permissions error the command needed to be run on sudo

 

Unfortunately, the error message was a bit cryptic in this regard so it had me stumped for a while    

 

 

Re: Magento Path trying to write recurssively

I have the same problem, but it is on content->configuration. If it is a file permission problem, what file should I check?