[aegir] Permissions on site's files dir after provision-verify

Brian Wood bwood at berkeley.edu
Tue Sep 21 09:24:13 EST 2010


  Thanks Mig!

Your pointer to the relevant code really helped me understand what was 
going on.  I think I've resolved the problem.  Info here 
http://drupal.org/node/908524#comment-3472038 for any one who is interested.

Brian Wood
Applications Programmer
UC Berkeley: http://ist.berkeley.edu




On 9/17/2010 2:47 AM, Miguel Jacq wrote:
> On Fri, Sep 17, 2010 at 1:30 PM, Brian Wood <bwood at berkeley.edu 
> <mailto:bwood at berkeley.edu>> wrote:
>
>      I migrated a site onto one of my new aegir (head) managed
>     platforms.  When I first visited it, saw
>
>     "Unable to create CTools CSS cache directory. Check the
>     permissions on your files directory."
>
>     and a bunch of css wasn't loading.  So I did
>
>     'chgrp -R apache site/ex.com/files/ <http://ex.com/files/>' and
>     visited admin/build/themes and all was good.
>
>     Then I re-verified the site and all of the problems reappeared.  I
>     can re-correct the site with these non recursive chgrps
>
>      1121  chgrp apache files/ctools/css
>      1122  chgrp apache files/css
>      1131  chgrp apache files/ctools
>
>     I think these other directories might need help:
>
>     [app_aegir at dev-100-cms hrweb]$ find files/ -type d |xargs ls -ld
>     |grep -v apache
>     drwxrwx---  2 app_aegir app_aegir 20480 Sep 16 19:57 files/attachments
>     drwxrwx---  3 app_aegir app_aegir  4096 Jul 19 23:23 files/imagecache
>     drwxrwx---  2 app_aegir app_aegir  4096 Jul 19 23:23
>     files/imagecache/150x150_sc
>     drwxrwx---  3 app_aegir app_aegir  4096 Jul 19 23:23
>     files/imagefield_thumbs
>     drwxrwx---  2 app_aegir app_aegir  4096 Jul 19 23:23
>     files/imagefield_thumbs/images
>     drwxrwx---  3 app_aegir app_aegir  4096 Sep  9 14:51 files/resize
>     drwxrwx---  3 app_aegir app_aegir  4096 Jul 19 23:23
>     files/resize/resize
>     drwxrwx---  2 app_aegir app_aegir  4096 Jul 19 23:23
>     files/resize/resize/resize
>     drwxrwx---  3 app_aegir app_aegir  4096 Jul 19 23:23 files/sites
>     drwxrwx---  2 app_aegir app_aegir  4096 Jul 19 23:23
>     files/sites/hrweb-dev.berkeley.edu <http://hrweb-dev.berkeley.edu>
>
>     Is the problem me or is it provision-verify?
>
>
> It could be that your 'web_group' value isn't correct in your server 
> alias. provision-verify creates and sets permissions appropriately, 
> for example:
>
>     $mkdir["sites/$url/files"]          = 02770;
>     $chown["sites/$url/files"]          = 
> d('@server_master')->script_user;
>     $chgrp["sites/$url/files"]          = d('@server_master')->web_group;
>
> What is 'web_group' set to in your server alias in 
> /var/aegir/.drush/server_master.alias.drushrc.php?
>
> We seem to not recursively change permissions for these folders 
> either, so that might be what it is:
>
>   // These paths should not have recursive operations performed on them.
>   $not_recursive = array(
>     "sites/$url",
>     "sites/$url/files",
>     "sites/$url/files/tmp",
>     "sites/$url/files/images",
>     "sites/$url/files/pictures",
>     "sites/$url/private",
>     "sites/$url/private/files",
>     "sites/$url/private/temp"
>   );
>
> Cheers
>
> Mig
>
>
> _______________________________________________
> aegir mailing list
> aegir at lists.aegirproject.org
> http://lists.aegirproject.org/cgi-bin/mailman/listinfo/aegir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aegirproject.org/pipermail/aegir/attachments/20100920/bdec902d/attachment.htm>


More information about the aegir mailing list