I first had this issue with aegir 0.4 alpha5 and the suggestion on IRC was to test against alpha6... so here it goes! (thank God for vmware snapshots which meant I didn't have to setup server from scratch!).
So I'm running a bare debian lenny with a clean install of aegir 0.4 alpha 6. I created a Drupal 6 platform and then a new site and all is well.
However when it comes to Open Atrium I get:
aegir@dev:~/platforms$ /var/aegir/drush/drush.php -d --root='/var/aegir/platforms/atrium-1-0-beta5' provision-install 'oa.dev.com'
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.08 sec, 5.08 MB] [bootstrap]
Loading drushrc "/var/aegir/platforms/atrium-1-0-beta5/drushrc.php" into "drupal" scope. [0.08 sec, 5.08 MB] [bootstrap]
Initialized Drupal 6.15 root directory at /var/aegir/platforms/atrium-1-0-beta5 [0.09 sec, 7.06 MB] [notice]
Found command: provision-install (commandfile=provision) [0.1 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: drush_make [0.1 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: drush_make_d_o [0.1 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: provision [0.1 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: provision_apache [0.1 sec, 7.17 MB] [bootstrap]
Undefined index: base_url provision_apache.drush.inc:50 [0.1 sec, 7.17 MB] [notice]
Initializing drush commandfile: provision_drupal [0.1 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: provision_mysql [0.1 sec, 7.17 MB] [bootstrap]
Undefined index: db_url provision_mysql.drush.inc:16 [0.1 sec, 7.17 MB] [notice]
Including /var/aegir/.drush/provision/web_server/install.provision.inc [0.1 sec, 7.17 MB] [bootstrap]
Including /var/aegir/.drush/provision/platform/install.provision.inc [0.11 sec, 7.17 MB] [bootstrap]
Including /var/aegir/.drush/provision/db_server/install.provision.inc [0.11 sec, 7.19 MB] [bootstrap]
PROVISION_SITE_INSTALLED [0.11 sec, 7.22 MB] [error]
An error occurred at function : drush_provision_drupal_provision_install_validate [0.11 sec, 7.22 MB] [error]
Command dispatch complete [0.11 sec, 7.22 MB] [notice]
Peak memory usage was 8.01 MB [0.11 sec, 7.22 MB] [memory]
Can I get this right, is aegir meant to work with any Drupal Profile out of the box?
I get exactly the same with Open Publish too. Oh and as a last test a site created with the Acquia 1.2.22 platform create without any issues.
Is this odd? Thanks
Comments
Comment #1
Anonymous (not verified) commentedIt works with OpenPublish and Openatrium.
PROVISION_SITE_INSTALLED simply means it found a site of the same name already existing in the directory. Nothing to do with the type of distro.
Choose a different site name or delete the existing site
Comment #2
mibstar commentedOdd as I had not created the site beforehand. In fact I renamed the folder to /var/aegir/platforms/atrium-1-0-beta5/sites/oa.dev.com.bak and still got the same error from the hostmaster webgui... Here is the error for OpenPublish
However once I deleted the new site it created and re-run it from the shell it worked for Open Atrium. Got other errors fro OpenPublish but will need to work through it...
Thanks
Comment #3
mibstar commented...wait! I had not checked the site out and I had in fact ended up with a Drupal site instead! So I disabled the site, deleted it and started from scratch.
Double checked that the site did not exist, create the site and got the usual error. I then deleted the site from the sites folder and ran:
$ /var/aegir/drush/drush.php -d --root='/var/aegir/platforms/atrium-1-0-beta5' provision-install 'oa.dev.com'
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.08 sec, 5.08 MB] [bootstrap]
Loading drushrc "/var/aegir/platforms/atrium-1-0-beta5/drushrc.php" into "drupal" scope. [0.08 sec, 5.08 MB] [bootstrap]
Initialized Drupal 6.15 root directory at /var/aegir/platforms/atrium-1-0-beta5 [0.1 sec, 7.06 MB] [notice]
Found command: provision-install (commandfile=provision) [0.11 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: drush_make [0.11 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: drush_make_d_o [0.11 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: provision [0.11 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: provision_apache [0.11 sec, 7.17 MB] [bootstrap]
Undefined index: base_url provision_apache.drush.inc:50 [0.11 sec, 7.17 MB] [notice]
Initializing drush commandfile: provision_drupal [0.11 sec, 7.17 MB] [bootstrap]
Initializing drush commandfile: provision_mysql [0.11 sec, 7.17 MB] [bootstrap]
Undefined index: db_url provision_mysql.drush.inc:16 [0.11 sec, 7.17 MB] [notice]
Including /var/aegir/.drush/provision/web_server/install.provision.inc [0.11 sec, 7.17 MB] [bootstrap]
Including /var/aegir/.drush/provision/platform/install.provision.inc [0.11 sec, 7.17 MB] [bootstrap]
Including /var/aegir/.drush/provision/db_server/install.provision.inc [0.11 sec, 7.19 MB] [bootstrap]
Created
sites/oa.dev.com[0.12 sec, 7.22 MB] [message]Changed permissions of
sites/oa.dev.comto 0755 [0.12 sec, 7.22 MB] [message]Created
sites/oa.dev.com/themes[0.12 sec, 7.22 MB] [message]Changed permissions of
sites/oa.dev.com/themesto 2775 [0.12 sec, 7.22 MB] [message]Created
sites/oa.dev.com/modules[0.12 sec, 7.23 MB] [message]Changed permissions of
sites/oa.dev.com/modulesto 2775 [0.12 sec, 7.23 MB] [message]Created
sites/oa.dev.com/libraries[0.12 sec, 7.23 MB] [message]Changed permissions of
sites/oa.dev.com/librariesto 2775 [0.12 sec, 7.23 MB] [message]Created
sites/oa.dev.com/private[0.12 sec, 7.23 MB] [message]Changed permissions of
sites/oa.dev.com/privateto 0755 [0.12 sec, 7.23 MB] [message]Created
sites/oa.dev.com/private/files[0.12 sec, 7.23 MB] [message]Changed permissions of
sites/oa.dev.com/private/filesto 2770 [0.12 sec, 7.23 MB] [message]Created
sites/oa.dev.com/private/temp[0.12 sec, 7.23 MB] [message]Changed permissions of
sites/oa.dev.com/private/tempto 2770 [0.12 sec, 7.23 MB] [message]Created
sites/oa.dev.com/files[0.12 sec, 7.24 MB] [message]Changed permissions of
sites/oa.dev.com/filesto 2770 [0.12 sec, 7.24 MB] [message]Created
sites/oa.dev.com/files/tmp[0.12 sec, 7.24 MB] [message]Changed permissions of
sites/oa.dev.com/files/tmpto 2770 [0.12 sec, 7.24 MB] [message]Created
sites/oa.dev.com/files/images[0.12 sec, 7.24 MB] [message]Changed permissions of
sites/oa.dev.com/files/imagesto 2770 [0.12 sec, 7.24 MB] [message]Created
sites/oa.dev.com/files/pictures[0.12 sec, 7.24 MB] [message]Changed permissions of
sites/oa.dev.com/files/picturesto 2770 [0.12 sec, 7.24 MB] [message]Changed ownership of
sites/oa.dev.com/files[0.12 sec, 7.24 MB] [message]Changed ownership of
sites/oa.dev.com/private[0.12 sec, 7.25 MB] [message]Changed group ownership of
sites/oa.dev.com/files[0.12 sec, 7.25 MB] [message]Changed group ownership of
sites/oa.dev.com/private/files[0.12 sec, 7.25 MB] [message]Changed group ownership of
sites/oa.dev.com/private/temp[0.12 sec, 7.25 MB] [message]Granting privileges to oamythrudevcom_0@localhost on oamythrudevcom_0 [0.13 sec, 7.27 MB] [notice]
Created oamythrudevcom_0 database [0.13 sec, 7.27 MB] [success]
Generate settings.php file [0.13 sec, 7.28 MB] [notice]
Changed permissions of settings.php to 0440 [0.13 sec, 7.29 MB] [message]
Change group ownership of settings.php to www-data [0.13 sec, 7.29 MB] [message]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.13 sec, 7.29 MB] [bootstrap]
Initialized Drupal site oa.dev.com at sites/oa.dev.com [0.13 sec, 7.29 MB] [notice]
Including version specific file : /var/aegir/.drush/provision/platform/drupal/install_6.inc [0.13 sec, 7.29 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.13 sec, 7.62 MB] [bootstrap]
Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) bootstrap.inc:636 [0.14 sec, 8.8 MB] [warning]
Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) bootstrap.inc:637 [0.14 sec, 8.81 MB] [warning]
Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) bootstrap.inc:638 [0.14 sec, 8.81 MB] [warning]
Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) bootstrap.inc:639 [0.14 sec, 8.82 MB] [warning]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.18 sec, 12.4 MB] [bootstrap]
Successfully connected to the Drupal database. [0.18 sec, 12.4 MB] [bootstrap]
Installing Drupal schema [0.18 sec, 12.59 MB] [install]
Loading default install profile [0.18 sec, 12.62 MB] [install]
Installing translation : en [0.18 sec, 12.62 MB] [install]
Undefined variable: missing_requirement install_6.inc:225 [0.21 sec, 12.93 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.43 sec, 12.98 MB] [bootstrap]
Installed Block module. [0.47 sec, 15.02 MB] [notice]
Installed Filter module. [0.47 sec, 15.04 MB] [notice]
Installed Node module. [0.48 sec, 15.81 MB] [notice]
Installed User module. [0.49 sec, 16.6 MB] [notice]
Installed Color module. [0.5 sec, 16.87 MB] [notice]
Installed Comment module. [0.51 sec, 17.47 MB] [notice]
Installed Help module. [0.52 sec, 17.51 MB] [notice]
Installed Menu module. [0.77 sec, 18.87 MB] [notice]
Installed Taxonomy module. [0.78 sec, 19.27 MB] [notice]
Installed Database logging module. [0.8 sec, 19.31 MB] [notice]
Initial locale import [0.8 sec, 19.31 MB] [notice]
Running profile specific task : profile [1.01 sec, 19.48 MB] [notice]
WD actions: Action 'Unpublish comment' added. [1.47 sec, 19.74 MB] [notice]
WD actions: Action 'Publish post' added. [1.47 sec, 19.74 MB] [notice]
WD actions: Action 'Unpublish post' added. [1.47 sec, 19.75 MB] [notice]
WD actions: Action 'Make post sticky' added. [1.47 sec, 19.75 MB] [notice]
WD actions: Action 'Make post unsticky' added. [1.47 sec, 19.75 MB] [notice]
WD actions: Action 'Promote post to front page' added. [1.47 sec, 19.75 MB] [notice]
WD actions: Action 'Remove post from front page' added. [1.47 sec, 19.75 MB] [notice]
WD actions: Action 'Save post' added. [1.47 sec, 19.75 MB] [notice]
WD actions: Action 'Block current user' added. [1.47 sec, 19.75 MB] [notice]
WD actions: Action 'Ban IP address of current user' added. [1.47 sec, 19.76 MB] [notice]
Sent welcome mail to webmaster@localhost [1.54 sec, 19.77 MB] [message]
Login url: http://oa.dev.com:/user/reset/1/1268055223/78b774a2ab4f3bd68d46376409efce22 [1.54 sec, 19.77 MB] [message]
Generating apache host configuration file oa.dev.com_80. [1.56 sec, 19.54 MB] [notice]
Executing: sudo /usr/sbin/apache2ctl graceful [1.56 sec, 19.54 MB] [notice]
sudo: unable to resolve host dev
apache2: apr_sockaddr_info_get() failed for dev
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Mar 08 13:33:43 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
Apache has been restarted [1.73 sec, 19.54 MB] [notice]
Secured settings.php with safe permissions [1.73 sec, 19.55 MB] [message]
Including version specific file : /var/aegir/.drush/provision/platform/drupal/clear_6.inc [1.73 sec, 19.56 MB] [notice]
Cleared all caches [1.73 sec, 19.56 MB] [notice]
Rebuild node type cache [1.74 sec, 19.57 MB] [notice]
Rebuild module cache [1.76 sec, 19.58 MB] [notice]
Rebuild theme cache [1.77 sec, 19.58 MB] [notice]
Rebuild node access cache [1.77 sec, 19.59 MB] [notice]
Rebuild menu cache [2.04 sec, 19.57 MB] [notice]
Including non-version specific file : /var/aegir/.drush/provision/platform/drupal/packages.inc [2.04 sec, 19.57 MB] [notice]
Found install profile openatrium [2.05 sec, 19.77 MB] [notice]
Found install profile default [2.05 sec, 19.75 MB] [notice]
Found 33 modules [2.05 sec, 19.97 MB] [notice]
Found 6 themes [2.06 sec, 20.02 MB] [notice]
Content permissions have been rebuilt. [2.06 sec, 20.01 MB] [status]
Drushrc file (sites/oa.dev.com/drushrc.php) was written successfully [2.06 sec, 19.98 MB] [notice]
Changed permissions of drushrc.php to 0600 [2.06 sec, 19.98 MB] [message]
Command dispatch complete [2.06 sec, 19.97 MB] [notice]
Timer Cum (sec) Count Avg (msec)
page 1.93 1 1930.32
Peak memory usage was 21.73 MB [2.06 sec, 19.97 MB] [memory]
aegir@dev:~$
But I still end up with a Drupal site... Is there something going wrong here?
Comment #4
Anonymous (not verified) commentedWell you are not passing the install profile as an argument in the backend, so it falls back to using the 'default' install profile as you can see in the logs. Why don't you try and create the site via the frontend, choosing the profile in the site node form and see what result you get. With a different site name than the one you used from the CLI of course (to avoid the PROVISION_SITE_INSTALLED error)
Or pass --profile as an argument in your CLI tests of course.
Comment #5
aleksey.tk commentedSubscribing. Basically i have the same issue. Creating new sites with default platform works great, but if i want to use other platform (Open Atrium for example) everything fails.
Output of task while trying to create a site with drupal-6.15 (profile drupal_developer):
http://drupalbin.com/13911
Output of task while trying to create a site with openatrium platform (profile openatrium, obviously):
http://drupalbin.com/13912
Verification tasks finished fine for both platforms.
Sorry for not providing you more info about the issues. Maybe if you will point me out to the logs you need i will put them here asap.
Comment #6
Anonymous (not verified) commentedThe drupal_developer seems to have a clear php exception related to one of its dependencies. Perhaps it is an interactive installer that can't be automated.
Re: the openatrium profile: I am going on a hunch here and suspect your php-cli's memory_limit is set too low, perhpas to 32MB. Raise it to 64MB or 128MB and see if it then runs.
Comment #7
aleksey.tk commentedYou were right about memory_limit. Changing it to 128M solve the issue with openatrium. I think you should note it somewhere in documentation (or it is just me who didn't see it? :) )
Thanks!
Comment #8
Anonymous (not verified) commentedJust my old war wounds coming through :) I could actually tell the issue based on the fact that Drush *didn't* give a good reason. Scary!
We actually have a ticket open about how Drush/PHP doesn't throw the appropriate error when it OOM's. #739830: OOM failures go undetected in some circumstances so it might be worth watching that to see what happens (at least for the sake of throwing back a handy error)
We do also have an item in our FAQ that matches your issue specifically (OpenAtrium).
I can't help you on the drupal_developer profile one unfortunately, but I'll try and reproduce when I get a chance. It may simply be that the profile is by design too interactive for a CLI installation (there have been such others).
Comment #9
Ryan Palmer commentedI had the same issue installing Open Atrium, and increasing PHP cli memory limit from 32Mb to 128Mb fixed the issue for me. Thanks!
Comment #10
adrian commentedMultiple confirmed cases of increasing the memory limit being the solution to this, and it's been documented. http://groups.drupal.org/node/24854#atrium