file_put_contents(/home/grayside/workspace/sandbox.drupal/.project):
failed to open stream: Permission denied in
drubuntu_eclipse_add_project() (line 333 of
/home/grayside/workspace/drubuntu/drubuntu.drush.inc).

Comments

stkrzysiak’s picture

Experienced the same issue today, investigating now.

stkrzysiak’s picture

So I have just begun to use Drubuntu, and this could be an error on my part, but I've noticed if I create a new site, lets say testsite, drubuntu creates directories for testsite and default.testsite. The former has 755 permissions and the latter has 555. I receive the error about the latter directory, and I receive it twice.

WD php: Warning:                                                     [warning]
file_put_contents(/home/stk/workspace/default.stktest5/.project):
failed to open stream: Permission denied in
drubuntu_eclipse_add_project() (line 333 of
/home/stk/workspace/drubuntu/drubuntu.drush.inc).
http://default.stktest5.localhost installed and project created      [success]
successfully.
file_put_contents(/home/stk/workspace/default.stktest5/.project):    [warning]
failed to open stream: Permission denied in
drubuntu_eclipse_add_project() (line 333 of
/home/stk/workspace/drubuntu/drubuntu.drush.inc).

The warning is normal, from my understanding, since php will just create the file if it doesn't exist. This is not the issue in the case of the default.testsite dir, which gives no write permissions to anyone.

When I open eclipse, I see my projects created. So I guess the question is what does the default.testsite directory do exactly? All I see in it is a files dir and settings.php, so I presume this is the actual sites/default directory?

Also, this may help, but in conjunction with this I see #1013766: Eclipse Error on Site Add which may be linked somehow?

Grayside’s picture

Drubuntu uses basic Drupal multisiting. So that directory is the equivalent of the sites/default directory, but not necessarily the same thing. Default is what you get when you don't explicitly name the site (sandbox.drupal is the sandbox site in the drupal platform).