With BOA-2.0.6 onwards I am getting following warnings on every site verify (with aegir UI)
Could not change permissions of /data/disk/o1/static/custom-platform-name/sites/all to 751 (chmod to 751 failed on /data/disk/o1/static/custom-platform-name/sites/all)
Could not change permissions of /data/disk/o1/static/custom-platform-name/sites to 751 (chmod to 751 failed on /data/disk/o1/static/custom-platform-name/sites)
When I change the permissions of the above directories (sites and sites/all) to 751 the site-verify is successful with no warnings.
However when I subsequently try to migrate the same site to an updated version of the previous platform the migrate task fails with error "the provision script has no permission to write to the sites directory in the old platform" (due to 751 permission above)
When I revert the permissions of sites and sites/all directories in the old platform to 755 the migration is successful but with identical warnings as above. This time the above warnings are shown in the Migrate task.
The site verify warnings appear even when creating a new site on new platform.
Are these warnings meant to be ignored as paying heed to/correcting them results in failed site migration because provision script has no write access to sites and sites/all of old platform.
Comments
Comment #1
aanjaneyam CreditAttribution: aanjaneyam commentedThe warning is also present in the verify task of migrated site in the new platform. Also migrate task contains the warning twice - once for old-platform/sites{/all} and once for new-platform/sites{/all}.
Comment #2
omega8cc CreditAttribution: omega8cc commentedThis is normal when you don't follow the how-to related to permissions:
http://omega8.cc/how-to-add-custom-platform-properly-140
http://omega8.cc/are-there-any-specific-good-habits-to-learn-116
You should make
sites
,sites/all
andsites/all/*
dirs **group writable**.These warnings were always there, just the tasks were not marked with warning yellow icon before, which is a new feature in the Aegir 2.x
Comment #3
aanjaneyam CreditAttribution: aanjaneyam commentedThis is a bit strange. If aegir expects the sites directory to be group writable (chmoded to 775) then why does it warn about the same. Aegir should not mark things needed for it work properly as warnings. It is a bit misleading.
Comment #4
omega8cc CreditAttribution: omega8cc commentedNo, the problem is with custom platforms you are creating as a non-system user. You have to make them group writable, as explained in the docs, because BOA uses account/access separation (o1/o1.ftp) which is not an Aegir default.
Comment #5
omega8cc CreditAttribution: omega8cc commentedSo, I was wrong, sorry.
Using group writable permissions doesn't help for
sites
andsites/all
in custom platforms created with lshell/ftps user, because only the owner can set restrictive permissions like 751, hence the warning (this is not an error and it doesn't break anything). These warnings were always there, just invisible, because previously Aegir didn't mark any task with that yellow icon if there were any warnings in the task log, but now it does.We should include fixing ownership and permissions also for
sites
andsites/all
directories in custom platforms to avoid that not harmful warning.Comment #6
omega8cc CreditAttribution: omega8cc commentedComment #7
omega8cc CreditAttribution: omega8cc commentedFix committed in HEAD: http://drupalcode.org/project/octopus.git/commit/72b21c0
Thanks!
Comment #8
omega8cc CreditAttribution: omega8cc commentedThis has been applied also as a hot-fix to BOA-2.0.8
Comment #9
aanjaneyam CreditAttribution: aanjaneyam commentedI just upgraded to install the hotfix. However I still see the warnings on running verify. In fact I just cloned a site (of course in the same platform) and all the related tasks(clone, verify and import) showed the sites and sites/all warnings. I am trying to understand what was the fix supposed to do.
Comment #10
omega8cc CreditAttribution: omega8cc commentedThe fix works *after* the first run (from cron or manually) of the script
/var/xdrago/usage.sh
Comment #11
aanjaneyam CreditAttribution: aanjaneyam commentedThanks. It works after running /var/xdrago/usage.sh.
Comment #13
timlie CreditAttribution: timlie commentedI experience the same problem for a custom platform that is placed in the static directory (I actually imported a site).
I followed these instructions:
http://omega8.cc/import-your-sites-to-aegir-in-8-easy-steps-109
I use BOA 2.0.9
I also get the warnings about "sites/all to 751".
I can not locate the script in /var/xdrago/usage.sh
Thanks!
Comment #14
ar-jan CreditAttribution: ar-jan commentedIIRC, this was renamed to /var/xdrago/daily.sh.
Comment #15
omega8cc CreditAttribution: omega8cc commentedI will post here our canned response, for reference:
These tasks didn't fail. The warnings you see are not errors, and are safe to ignore. If you have followed our docs and you have made both the platform root directory ~/static/platform and its subdirectory ~/static/platform/sites group writable, it is OK.
These not harmful warnings were always logged in custom platforms, just unnoticed, because previously Aegir didn't mark any task with that yellow icon if there were any warnings in the task log, but now it does, as explained in this thread: http://drupal.org/node/1929372
These directories are expected to be owned by Aegir system user and not your FTP/SSH user nor restricted only for the web server user, hence the warning, but the system will fix the ownership and permissions there every morning.
We plan to undo this Aegir feature in the next BOA release, since it causes too much confusion with zero benefit.