acquia / blt

Acquia's toolset for automating Drupal 8 and 9 development, testing, and deployment.
https://docs.acquia.com/blt/
GNU General Public License v2.0
442 stars 394 forks source link

Drupal install fails with error when using VM #1283

Closed arknoll closed 7 years ago

arknoll commented 7 years ago

My system information:

When I run this command:

blt local:setup

I get the following output:

blt > drupal:install:
     [echo] Installing Drupal...
The config source directory does not exist.                                                                                                                                   [error]
[phingcall] /Users/alex.knoll/sites/canary/./vendor/acquia/blt/phing/tasks/drupal.xml:15:10: /Users/alex.knoll/sites/canary/./vendor/acquia/blt/phing/tasks/drupal.xml:31:44: Drush exited with code 1

BUILD FAILED/Users/alex.knoll/sites/canary/./vendor/acquia/blt/phing/tasks/local-sync.xml:12:30: Execution of the target buildfile failed. Aborting.
; 36.9379 seconds

And I expected this to happen: The site to install.

Debug info: I went into phing/tasks/drupal.xml and I printed out the value of ${cm.core.dirs.${cm.core.key}.path} before the drupal install ran the value is set to

/Users/alex.knoll/sites/canary/config/default

If I hard code the install command like this, it works: (notice config-dir is the dir relative to the VM)

            <drush command="site-install">
                  <option name="site-name">"${project.human_name}"</option>
                  <option name="site-mail">"${drupal.account.mail}"</option>
                  <option name="account-name">"${drupal.account.name}"</option>
                  <option name="account-pass">"${drupal.account.password}"</option>
                  <option name="account-mail">"${drupal.account.mail}"</option>
                  <option name="locale">"${drupal.locale}"</option>
                  <option name="config-dir">/var/www/canary/config/default</option>
                  <param>"${project.profile.name}"</param>
                  <param>"install_configure_form.update_status_module='array(FALSE,FALSE)'"</param>
              </drush>
arknoll commented 7 years ago

Note:

This is how I had my custom override task site install set:

       <echo>Installing Drupal...</echo>
         <drush command="site-install">
             <option name="site-name">"${project.human_name}"</option>
             <option name="site-mail">"${drupal.account.mail}"</option>
             <option name="account-name">"${drupal.account.name}"</option>
             <option name="account-pass">"${drupal.account.password}"</option>
             <option name="account-mail">"${drupal.account.mail}"</option>
             <!-- Addition: Add config-dir option so Drush overwrites config. -->
             <option name="config-dir">../config/default</option>
             <param>"${project.profile.name}"</param>
             <param>"install_configure_form.update_status_module='array(FALSE,FALSE)'"</param>
         </drush>