Background
I have clean drupal installation
I have files/config folder with permission in it

Issue

There is error message if I try to start tracking using drush. If I start tracking with ui, the error does not occur

drush command

drush csta view.frontpage

error message

file_put_contents(config://view.frontpage.inc): failed to open stream: "ConfigurationStreamWrapper::stream_open" call failed StoragePhp.php:105 [warning]
file_put_contents(config://tracked.inc): failed to open stream: "ConfigurationStreamWrapper::stream_open" call failed Configuration.php:634 [warning]
The configurations changes for for the following items are now being tracked. [ok]
view.frontpage

Comments

dagmar’s picture

Status: Active » Postponed (maintainer needs more info)

@neoxavier Thats is basically saying that drush doesn't have permissions to write in the config directory.

Did you tried with?

chmod -R 777 files
lucascaro’s picture

also, sudo -u apache or sudo -u www-data should work.

neoxavier’s picture

Hello,

oh yeah, my bad.. I assign the wrong group to the folder.

Thanks

neoxavier’s picture

Status: Postponed (maintainer needs more info) » Fixed

it fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Chi’s picture

Component: User interface » Code
Status: Closed (fixed) » Active

I believe it isn't fixed. We should be able to use drush without root access. As stated in documentation all of our files should be 'read only' for the Apache process, and owned with write permissions by a separate user. Drupal core modules set 664 permissions on files and 775 on directories. But the module doesn't.