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

Running blt setup fails #2251

Closed kevinquillen closed 6 years ago

kevinquillen commented 6 years ago

My system information:

Output of blt doctor:

+----------------------+----------------------------------------------------------------------------------+
| Property             | Value                                                                            |
+----------------------+----------------------------------------------------------------------------------+
| %paths               |                                                                                  |
|  - %root             | /var/www/mysite/docroot                                                 |
|  - %site             | sites/default                                                                    |
|  - %modules          | modules                                                                          |
|  - %themes           | themes                                                                           |
|  - %config-sync      | /var/www/mysite/config/default                                          |
|  - %files            | sites/default/files                                                              |
|  - %private          | /var/www/mysite/files-private                                           |
|  - %temp             | /tmp                                                                             |
| admin-theme          | seven                                                                            |
| blt-version          | 8.9.10                                                                           |
| bootstrap            | Successful                                                                       |
| config-sync          | /var/www/mysite/config/default                                          |
| db-driver            | mysql                                                                            |
| db-hostname          | localhost                                                                        |
| db-name              | drupal                                                                           |
| db-password          | drupal                                                                           |
| db-port              | 3306                                                                             |
| db-status            | Connected                                                                        |
| db-username          | drupal                                                                           |
| dev-desktop-enabled  | false                                                                            |
| drupal-settings-file | sites/default/settings.php                                                       |
| drupal-version       | 8.4.2                                                                            |
| drupal-vm-enabled    | true                                                                             |
| drush-alias-files    | /var/www/mysite/docroot/../drush/site-aliases/aliases.drushrc.php       |
|                      | /var/www/mysite/docroot/../drush/site-aliases/example.acsf.aliases.drus |
|                      | hrc.php                                                                          |
|                      | /var/www/mysite/docroot/../drush/site-aliases/example.local.aliases.dru |
|                      | shrc.php                                                                         |
| drush-conf           | /var/www/mysite/drush/drushrc.php                                       |
| drush-script         | /var/www/mysite/vendor/drush/drush/drush.php                            |
| drush-temp           | /tmp                                                                             |
| drush-version        | 8.1.15                                                                           |
| files                | sites/default/files                                                              |
| install-profile      | lightning                                                                        |
| local-drushrc        | /var/www/mysite/docroot/sites/default/local.drushrc.php                 |
| local-settings       | /var/www/mysite/docroot/sites/default/settings/local.settings.php       |
| modules              | modules                                                                          |
| php-bin              | /usr/bin/php                                                                     |
| php-conf             | /etc/php/7.1/cli/php.ini                                                         |
| php-mysql            | /var/run/mysqld/mysqld.sock                                                      |
| php-os               | Linux                                                                            |
| private              | /var/www/mysite/files-private                                           |
| root                 | /var/www/mysite/docroot                                                 |
| shell                |                                                                                  |
| site                 | sites/default                                                                    |
| temp                 | /tmp                                                                             |
| theme                | stark                                                                            |
| themes               | themes                                                                           |
| uri                  | http://local.mysite.com                                                 |
| user                 |                                                                                  |
+----------------------+----------------------------------------------------------------------------------+
+--------------------------+-----------------------------------------------------------------+
| Check                    | Outcome                                                         |
+--------------------------+-----------------------------------------------------------------+
| checkDocrootExists       | Found docroot.                                                  |
| checkCoreExists          | Drupal core exists                                              |
| checkSettingsFile        | BLT settings are included in settings file.                     |
| checkLocalSettingsFile   | Found your local settings file.                                 |
| checkLocalDrushFile      | Found your local drush settings file.                           |
| checkUri                 | $options['uri'] is set.                                         |
| checkUriResponse         | Received a response from site http://local.mysite.com. |
| checkFileSystem:%files   | Public files directory is writable.                             |
| checkFileSystem:%private | Private files directory is writable.                            |
| checkFileSystem:%temp    | Temporary files directory is writable.                          |
| checkDbConnection        | Connected to database.                                          |
| checkDrupalBootstrapped  | Bootstrapped Drupal via drush.                                  |
| checkDrupalInstalled     | Drupal is installed.                                            |
| checkCaching:page        | Drupal cache is disabled.                                       |
| checkCaching:css         | CSS preprocessing is disabled.                                  |
| checkCaching:js          | JS preprocessing is disabled.                                   |
| checkComposer:require    | acquia/blt is in composer.json's require object.                |
| checkBehat:exists        | Behat local settings file exists.                               |
| checkBehat:root          | Behat drupal_root is set correctly for Drupal VM.               |
| checkProjectYml:keys     | project.yml has no deprecated keys.                             |
| checkDrupalVm:alias      | drush.aliases.local exists your drush aliases file.             |
| checkDrupalVm            | Drupal VM is configured correctly.                              |
| checkPhpDateTimezone     | PHP setting for date.timezone is correctly set                  |
+--------------------------+-----------------------------------------------------------------+
Connection to 127.0.0.1 closed.

When I run this command:

blt setup

I get the following output:

> setup:drupal:install
Executing command blt 'setup:drupal:install' --define=drush.alias=self inside of Drupal VM...
[warning] The xDebug extension is loaded. This will significantly decrease performance.
> internal:drupal:install
[Acquia\Blt\Robo\Tasks\DrushTask] Running /var/www/mysite/vendor/bin/drush site-install lightning install_configure_form.update_status_module='array(FALSE,FALSE)' install_configure_form.enable_update_status_module=NULL --site-name='Mysite' --site-mail=no-reply@acquia.com --account-name=EtMI7hLh6m --account-mail=no-reply@acquia.com --locale=en --config-dir=../config/default --uri=default --yes --verbose in /var/www/mysite/docroot
Configuration import directory ../config/default does not contain any configuration; will skip import.                                                           [warning]
Executing: mysql --defaults-extra-file=/tmp/drush_LL7BSM --database=drupal --host=localhost --port=3306 --silent  < /tmp/drush_30YgCY > /dev/null
You are about to DROP all tables in your 'drupal' database. Do you want to continue? (y/n): y
Sites directory /var/www/mysite/docroot/sites/default already exists - proceeding.                                                                         [notice]
Executing: mysql --defaults-extra-file=/tmp/drush_j8Qzrp --database=drupal --host=localhost --port=3306 --silent  < /tmp/drush_rjY49A > /dev/null
Executing: mysql --defaults-extra-file=/tmp/drush_NIKc21 --database=drupal --host=localhost --port=3306 --silent  < /tmp/drush_WW6RJd
Starting Drupal installation. This takes a while. Consider using the --notify global option.                                                                     [ok]
Drupal\Core\Config\PreExistingConfigException: Configuration objects (core.entity_form_display.media.image.default, core.entity_view_display.media.image.default,[error]
media.type.image) provided by lightning_media_image already exist in active configuration in
/var/www/mysite/docroot/core/lib/Drupal/Core/Config/PreExistingConfigException.php:65
Stack trace:
#0 /var/www/mysite/docroot/core/lib/Drupal/Core/Config/ConfigInstaller.php(492):
Drupal\Core\Config\PreExistingConfigException::create('lightning_media...', Array)
#1 /var/www/mysite/docroot/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(132):
Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module', 'lightning_media...')
#2 /var/www/mysite/docroot/core/lib/Drupal/Core/Extension/ModuleInstaller.php(145):
Drupal\Core\ProxyClass\Config\ConfigInstaller->checkConfigurationToInstall('module', 'lightning_media...')
#3 /var/www/mysite/docroot/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array,
false)
#4 /var/www/mysite/docroot/core/includes/install.core.inc(1812): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, false)
#5 /var/www/mysite/docroot/core/includes/batch.inc(294): _install_module_batch('lightning_media...', 'Media Image', Array)
#6 /var/www/mysite/docroot/core/includes/form.inc(875): _batch_process()
#7 /var/www/mysite/docroot/core/includes/install.core.inc(633): batch_process(Object(Drupal\Core\Url), Object(Drupal\Core\Url))
#8 /var/www/mysite/docroot/core/includes/install.core.inc(554): install_run_task(Array, Array)
#9 /var/www/mysite/docroot/core/includes/install.core.inc(117): install_run_tasks(Array)
#10 /var/www/mysite/vendor/drush/drush/includes/drush.inc(726): install_drupal(Object(Composer\Autoload\ClassLoader), Array)
#11 /var/www/mysite/vendor/drush/drush/includes/drush.inc(711): drush_call_user_func_array('install_drupal', Array)
#12 /var/www/mysite/vendor/drush/drush/commands/core/drupal/site_install.inc(82): drush_op('install_drupal', Object(Composer\Autoload\ClassLoader),
Array)
#13 /var/www/mysite/vendor/drush/drush/commands/core/site_install.drush.inc(255): drush_core_site_install_version('lightning', Array)
#14 /var/www/mysite/vendor/drush/drush/includes/command.inc(422): drush_core_site_install('lightning', 'install_configu...', 'install_configu...')
#15 /var/www/mysite/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#16 /var/www/mysite/vendor/drush/drush/includes/command.inc(199): drush_command('lightning', 'install_configu...', 'install_configu...')
#17 /var/www/mysite/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#18 /var/www/mysite/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#19 /var/www/mysite/vendor/drush/drush/drush.php(12): drush_main()
#20 {main}
Command dispatch complete                                                                                                                                           [notice]
[Acquia\Blt\Robo\Tasks\DrushTask]  Exit code 1  Time 59.749s
[error]  Failed to install Drupal! 
[error]  Command `internal:drupal:install ` exited with code 1. 
Connection to 127.0.0.1 closed.

And I expected this to happen:

Drupal 8 to install.

I have destroyed the VM and started from scratch many times today and always wind up back in this same spot.

VM config:

# Update the hostname to the local development environment hostname.
vagrant_hostname: local.mysite.com
vagrant_machine_name: mysite

# Set the IP address so it doesn't conflict with other Drupal VM instances.
vagrant_ip: 0.0.0.0

# Use Ubuntu 16.04 LTS to match Acquia Cloud environments.
vagrant_box: geerlingguy/ubuntu1604

# Set drupal_site_name to the project's human-readable name.
drupal_site_name: "Mysite"

# Provide the path to the project root to Vagrant.
vagrant_synced_folders:
  # Set the local_path for the first synced folder to `.`.
  - local_path: .
    # Set the destination to the Acquia Cloud subscription machine name.
    destination: /var/www/mysite
    type: nfs

drupal_build_composer_project: false
# Toggling this to `true` would invoke `composer install` with the
# projects own `composer.json` successfully.
drupal_build_composer: false
drupal_composer_path: false
drupal_composer_install_dir: "/var/www/mysite"
drupal_core_path: "/var/www/mysite/docroot"
ssh_home: /var/www/mysite

drupal_db_user: drupal
drupal_db_password: drupal
drupal_db_name: drupal

# Set this to 'false' if you don't need to install drupal (using the drupal_*
# settings below), but instead copy down a database (e.g. using drush sql-sync).
drupal_install_site: false

# Drupal VM automatically creates a drush alias file in your ~/.drush folder if
# this variable is 'true'.
configure_drush_aliases: false

# This is required for front-end building tools.
nodejs_version: "6.x"
nodejs_npm_global_packages:
  - name: bower
  - name: gulp-cli
  - name: yarn
nodejs_install_npm_user: "{{ drupalvm_user }}"
npm_config_prefix: "/home/{{ drupalvm_user }}/.npm-global"
installed_extras:
  #- adminer
  - drush
  - mailhog
  - memcache
  - nodejs
  #- solr
  #- selenium
  - xdebug

# PHP 5.6 (PHP 7.1 is being tested, see: https://docs.acquia.com/node/25726).
php_version: "7.1"
php_install_recommends: no
php_memory_limit: "256M"
php_display_errors: "On"
php_display_startup_errors: "On"
php_realpath_cache_size: "1024K"
php_sendmail_path: "/opt/mailhog/mhsendmail"
php_opcache_enabled_in_ini: true
php_opcache_memory_consumption: "192"
php_opcache_max_accelerated_files: 4096
php_max_input_vars: "4000"

php_packages_extra:
  - "php{{ php_version }}-bz2"
  - "php{{ php_version }}-imagick"
  - imagemagick

# XDebug configuration.
# Change this value to 1 in order to enable xdebug by default.
php_xdebug_default_enable: 1
php_xdebug_coverage_enable: 0
# Change this value to 1 in order to enable xdebug on the cli.
php_xdebug_cli_enable: 0
php_xdebug_remote_enable: 1
php_xdebug_remote_connect_back: 1
# Use PHPSTORM for PHPStorm, sublime.xdebug for Sublime Text.
php_xdebug_idekey: PHPSTORM
php_xdebug_max_nesting_level: 256
php_xdebug_remote_port: "9000"

post_provision_scripts:
  - "../../../acquia/blt/scripts/drupal-vm/post-provision.sh"

I am not doing anything different than I normally do, but this is my first time using Lightning.

kevinquillen commented 6 years ago

I am installing it myself in the UI now. Got the same error:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /core/install.php?rewrite=ok&profile=lightning&langcode=en&id=1&op=do_nojs&op=do
StatusText: OK
ResponseText: Drupal\Core\Config\PreExistingConfigException: Configuration objects (core.entity_form_display.media.image.default, core.entity_view_display.media.image.default, media.type.image) provided by lightning_media_image already exist in active configuration in Drupal\Core\Config\PreExistingConfigException::create() (line 65 of /var/www/mysite/docroot/core/lib/Drupal/Core/Config/PreExistingConfigException.php).
danepowell commented 6 years ago

This looks like an old bug with Lightning, not BLT. What version of Lightning are you using? Try using the latest release (2.2.3).

I would not recommend installing via the UI if you are using BLT, as it's not as reproducible across environments, and BLT performs other actions (like config imports) during an install.

kevinquillen commented 6 years ago

It looks like the latest release to me. I created the project a few times with composer and keep winding up at that error in the console and in the UI.

On Fri, Nov 3, 2017 at 5:59 PM Dane Powell notifications@github.com wrote:

This looks like an old bug with Lightning, not BLT. What version of Lightning are you using? Try using the latest release (2.2.3).

I would not recommend installing via the UI if you are using BLT, as it's not as reproducible across environments, and BLT performs other actions (like config imports) during an install.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/acquia/blt/issues/2251#issuecomment-341837706, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWGwBmZFj0-SrgOV2VZX2wN2BmnTdaZks5sy4zHgaJpZM4QRlvv .

kevinquillen commented 6 years ago

Will have to check when I’m at a computer

On Fri, Nov 3, 2017 at 6:00 PM Kevin Quillen kevinquillen@gmail.com wrote:

It looks like the latest release to me. I created the project a few times with composer and keep winding up at that error in the console and in the UI.

On Fri, Nov 3, 2017 at 5:59 PM Dane Powell notifications@github.com wrote:

This looks like an old bug with Lightning, not BLT. What version of Lightning are you using? Try using the latest release (2.2.3).

I would not recommend installing via the UI if you are using BLT, as it's not as reproducible across environments, and BLT performs other actions (like config imports) during an install.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/acquia/blt/issues/2251#issuecomment-341837706, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWGwBmZFj0-SrgOV2VZX2wN2BmnTdaZks5sy4zHgaJpZM4QRlvv .

kevinquillen commented 6 years ago

I tried this on a completely new machine (macOS High Sierra this time) and get the same result. Everything is up to date.

composer clear-cache
export COMPOSER_PROCESS_TIMEOUT=2000
composer create-project --no-interaction acquia/blt-project blt-project
cd blt-project
blt vm  # switched to PHP 7.1 in config
blt setup
> internal:drupal:install
[Acquia\Blt\Robo\Tasks\DrushTask] Running /var/www/blt-project/vendor/bin/drush site-install lightning install_configure_form.update_status_module='array(FALSE,FALSE)' install_configure_form.enable_update_status_module=NULL --site-name='BLTed 8' --site-mail=no-reply@acquia.com --account-name=HW7bGS2TEn --account-mail=no-reply@acquia.com --locale=en --config-dir=../config/default --uri=default --yes --verbose in /var/www/blt-project/docroot
Configuration import directory ../config/default does not contain any configuration; will skip import.                                                                [warning]
Executing: mysql --defaults-extra-file=/tmp/drush_0usVtQ --database=drupal --host=localhost --port=3306 --silent  < /tmp/drush_21w4tD > /dev/null
You are about to DROP all tables in your 'drupal' database. Do you want to continue? (y/n): y
Sites directory /var/www/blt-project/docroot/sites/default already exists - proceeding.                                                                                  [notice]
Executing: mysql --defaults-extra-file=/tmp/drush_ETBawg --database=drupal --host=localhost --port=3306 --silent  < /tmp/drush_YU21u3 > /dev/null
Executing: mysql --defaults-extra-file=/tmp/drush_xqJ9zG --database=drupal --host=localhost --port=3306 --silent  < /tmp/drush_j9Z8xt
Starting Drupal installation. This takes a while. Consider using the --notify global option.                                                                          [ok]
Drupal\Core\Config\PreExistingConfigException: Configuration objects (core.entity_form_display.media.image.default, core.entity_view_display.media.image.default,     [error]
media.type.image) provided by lightning_media_image already exist in active configuration in
/var/www/blt-project/docroot/core/lib/Drupal/Core/Config/PreExistingConfigException.php:65
Stack trace:
#0 /var/www/blt-project/docroot/core/lib/Drupal/Core/Config/ConfigInstaller.php(492): Drupal\Core\Config\PreExistingConfigException::create('lightning_media...',
Array)
#1 /var/www/blt-project/docroot/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(132):
Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module', 'lightning_media...')
#2 /var/www/blt-project/docroot/core/lib/Drupal/Core/Extension/ModuleInstaller.php(145):
Drupal\Core\ProxyClass\Config\ConfigInstaller->checkConfigurationToInstall('module', 'lightning_media...')
#3 /var/www/blt-project/docroot/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, false)
#4 /var/www/blt-project/docroot/core/includes/install.core.inc(1812): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, false)
#5 /var/www/blt-project/docroot/core/includes/batch.inc(294): _install_module_batch('lightning_media...', 'Media Image', Array)
#6 /var/www/blt-project/docroot/core/includes/form.inc(875): _batch_process()
#7 /var/www/blt-project/docroot/core/includes/install.core.inc(633): batch_process(Object(Drupal\Core\Url), Object(Drupal\Core\Url))
#8 /var/www/blt-project/docroot/core/includes/install.core.inc(554): install_run_task(Array, Array)
#9 /var/www/blt-project/docroot/core/includes/install.core.inc(117): install_run_tasks(Array)
#10 /var/www/blt-project/vendor/drush/drush/includes/drush.inc(726): install_drupal(Object(Composer\Autoload\ClassLoader), Array)
#11 /var/www/blt-project/vendor/drush/drush/includes/drush.inc(711): drush_call_user_func_array('install_drupal', Array)
#12 /var/www/blt-project/vendor/drush/drush/commands/core/drupal/site_install.inc(82): drush_op('install_drupal', Object(Composer\Autoload\ClassLoader), Array)
#13 /var/www/blt-project/vendor/drush/drush/commands/core/site_install.drush.inc(255): drush_core_site_install_version('lightning', Array)
#14 /var/www/blt-project/vendor/drush/drush/includes/command.inc(422): drush_core_site_install('lightning', 'install_configu...', 'install_configu...')
#15 /var/www/blt-project/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#16 /var/www/blt-project/vendor/drush/drush/includes/command.inc(199): drush_command('lightning', 'install_configu...', 'install_configu...')
#17 /var/www/blt-project/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#18 /var/www/blt-project/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#19 /var/www/blt-project/vendor/drush/drush/drush.php(12): drush_main()
#20 {main}
Command dispatch complete                                                                                                                                                [notice]
[Acquia\Blt\Robo\Tasks\DrushTask]  Exit code 1  Time 01:08
[error]  Failed to install Drupal! 
[error]  Command `internal:drupal:install ` exited with code 1. 
Connection to 127.0.0.1 closed.
➜ blt doctor
Drupal VM was detected. Running blt doctor inside of VM...
Executing command cd /var/www/blt-project/docroot/.. && /var/www/blt-project/docroot/../vendor/bin/drush cc drush && /var/www/blt-project/docroot/../vendor/bin/drush --include=/var/www/blt-project/docroot/../vendor/acquia/blt/drush blt-doctor -r /var/www/blt-project/docroot/../docroot inside of Drupal VM...
'drush' cache was cleared.                                                                                                                                            [success]
+----------------------+----------------------------------------------------------------------------------+
| Property             | Value                                                                            |
+----------------------+----------------------------------------------------------------------------------+
| %paths               |                                                                                  |
|  - %root             | /var/www/blt-project/docroot                                                     |
|  - %site             | sites/default                                                                    |
|  - %modules          | modules                                                                          |
|  - %themes           | themes                                                                           |
|  - %config-sync      | /var/www/blt-project/config/default                                              |
|  - %files            | sites/default/files                                                              |
|  - %private          | /var/www/blt-project/files-private                                               |
|  - %temp             | /tmp                                                                             |
| admin-theme          | seven                                                                            |
| blt-version          | 8.9.10                                                                           |
| bootstrap            | Successful                                                                       |
| config-sync          | /var/www/blt-project/config/default                                              |
| db-driver            | mysql                                                                            |
| db-hostname          | localhost                                                                        |
| db-name              | drupal                                                                           |
| db-password          | drupal                                                                           |
| db-port              | 3306                                                                             |
| db-status            | Connected                                                                        |
| db-username          | drupal                                                                           |
| dev-desktop-enabled  | false                                                                            |
| drupal-settings-file | sites/default/settings.php                                                       |
| drupal-version       | 8.4.2                                                                            |
| drupal-vm-enabled    | true                                                                             |
| drush-alias-files    | /var/www/blt-project/docroot/../drush/site-aliases/example.local.aliases.drushrc |
|                      | .php                                                                             |
|                      | /var/www/blt-project/docroot/../drush/site-aliases/aliases.drushrc.php           |
|                      | /var/www/blt-project/docroot/../drush/site-aliases/example.acsf.aliases.drushrc. |
|                      | php                                                                              |
| drush-conf           | /var/www/blt-project/drush/drushrc.php                                           |
| drush-script         | /var/www/blt-project/vendor/drush/drush/drush.php                                |
| drush-temp           | /tmp                                                                             |
| drush-version        | 8.1.15                                                                           |
| files                | sites/default/files                                                              |
| install-profile      | lightning                                                                        |
| local-drushrc        | /var/www/blt-project/docroot/sites/default/local.drushrc.php                     |
| local-settings       | /var/www/blt-project/docroot/sites/default/settings/local.settings.php           |
| modules              | modules                                                                          |
| php-bin              | /usr/bin/php                                                                     |
| php-conf             | /etc/php/7.1/cli/php.ini                                                         |
| php-mysql            | /var/run/mysqld/mysqld.sock                                                      |
| php-os               | Linux                                                                            |
| private              | /var/www/blt-project/files-private                                               |
| root                 | /var/www/blt-project/docroot                                                     |
| shell                |                                                                                  |
| site                 | sites/default                                                                    |
| temp                 | /tmp                                                                             |
| theme                | stark                                                                            |
| themes               | themes                                                                           |
| uri                  | http://local.blt-project.com                                                     |
| user                 |                                                                                  |
+----------------------+----------------------------------------------------------------------------------+
+--------------------------+-------------------------------------------------------------+
| Check                    | Outcome                                                     |
+--------------------------+-------------------------------------------------------------+
| checkDocrootExists       | Found docroot.                                              |
| checkCoreExists          | Drupal core exists                                          |
| checkSettingsFile        | BLT settings are included in settings file.                 |
| checkLocalSettingsFile   | Found your local settings file.                             |
| checkLocalDrushFile      | Found your local drush settings file.                       |
| checkUri                 | $options['uri'] is set.                                     |
| checkUriResponse         | Received a response from site http://local.blt-project.com. |
| checkFileSystem:%files   | Public files directory is writable.                         |
| checkFileSystem:%private | Private files directory is writable.                        |
| checkFileSystem:%temp    | Temporary files directory is writable.                      |
| checkDbConnection        | Connected to database.                                      |
| checkDrupalBootstrapped  | Bootstrapped Drupal via drush.                              |
| checkDrupalInstalled     | Drupal is installed.                                        |
| checkCaching:page        | Drupal cache is disabled.                                   |
| checkCaching:css         | CSS preprocessing is disabled.                              |
| checkCaching:js          | JS preprocessing is disabled.                               |
| checkComposer:require    | acquia/blt is in composer.json's require object.            |
| checkBehat:exists        | Behat local settings file exists.                           |
| checkBehat:root          | Behat drupal_root is set correctly for Drupal VM.           |
| checkProjectYml:keys     | project.yml has no deprecated keys.                         |
| checkDrupalVm:alias      | drush.aliases.local exists your drush aliases file.         |
| checkDrupalVm            | Drupal VM is configured correctly.                          |
| checkPhpDateTimezone     | PHP setting for date.timezone is correctly set              |
+--------------------------+-------------------------------------------------------------+
Connection to 127.0.0.1 closed.

The version of Lightning according to the profile info file is 2.23. This looks like the newest version.

danepowell commented 6 years ago

Thanks for trying to reproduce on a fresh install. I just did the same thing and it worked fine for me, so I'm wondering what's different about your setup.

For one thing, a fresh BLT project should not have any configuration in config/default, and when you run blt setup you should see this message after the install:

[warning] BLT will NOT import configuration, /var/www/blted89/docroot/../config/default/core.extension.yml was not found.

Yet, it appears that on your install it is trying to import configuration. Do you know where that config is coming from?

kevinquillen commented 6 years ago

The config directory only has ci and default, both folders are empty.

danepowell commented 6 years ago

Actually I now see the warning in your log, so that's not it.

I've tested this several times locally, and we also test this exact project creation process in all of our automated tests, and I've never seen this. Very perplexing.

Can you post the output of the composer create-project command? It might be easier to attach it or use a pastebin or something, since it's probably quite large.

kevinquillen commented 6 years ago

Here's the composer create-project output:

➜ composer create-project --no-interaction acquia/blt-project blt-project
Installing acquia/blt-project (8.0.4)
  - Installing acquia/blt-project (8.0.4): Downloading (100%)         
Created project in blt-project
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 65 installs, 0 updates, 0 removals
  - Installing wikimedia/composer-merge-plugin (v1.4.1): Loading from cache
  - Installing grasmash/drupal-security-warning (1.1.1): Loading from cache
  - Installing composer/installers (v1.4.0): Loading from cache
  - Installing composer/semver (1.4.2): Loading from cache
  - Installing tivie/php-os-detector (1.1.0): Loading from cache
  - Installing squizlabs/php_codesniffer (2.9.1): Loading from cache
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.4.3): Loading from cache
  - Installing symfony/yaml (v3.2.13): Loading from cache
  - Installing dflydev/dot-access-data (v1.1.0): Loading from cache
  - Installing grasmash/yaml-expander (1.2.0): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v3.3.10): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.6.0): Loading from cache
  - Installing symfony/console (v3.2.13): Loading from cache
  - Installing consolidation/config (1.0.7): Loading from cache
  - Installing symfony/process (v3.3.10): Loading from cache
  - Installing symfony/finder (v3.3.10): Loading from cache
  - Installing symfony/filesystem (v3.3.10): Loading from cache
  - Installing symfony/event-dispatcher (v3.3.10): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing container-interop/container-interop (1.2.0): Loading from cache
  - Installing league/container (2.4.1): Loading from cache
  - Installing consolidation/output-formatters (3.1.12): Loading from cache
  - Installing consolidation/log (1.0.3): Loading from cache
  - Installing webmozart/assert (1.2.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (2.0.5): Loading from cache
  - Installing consolidation/annotated-command (2.8.1): Loading from cache
  - Installing consolidation/robo (1.1.5): Loading from cache
  - Installing sebastian/version (1.0.6): Loading from cache
  - Installing sebastian/global-state (1.1.1): Loading from cache
  - Installing sebastian/recursion-context (1.0.5): Loading from cache
  - Installing sebastian/exporter (1.2.2): Loading from cache
  - Installing sebastian/environment (1.3.8): Loading from cache
  - Installing sebastian/diff (1.4.3): Loading from cache
  - Installing sebastian/comparator (1.2.4): Loading from cache
  - Installing doctrine/instantiator (1.1.0): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/phpunit-mock-objects (2.3.8): Loading from cache
  - Installing phpunit/php-timer (1.0.9): Loading from cache
  - Installing phpunit/php-file-iterator (1.4.2): Loading from cache
  - Installing phpunit/php-token-stream (1.4.11): Loading from cache
  - Installing phpunit/php-code-coverage (2.2.4): Loading from cache
  - Installing phpspec/prophecy (v1.7.2): Loading from cache
  - Installing phpunit/phpunit (4.8.36): Loading from cache
  - Installing grasmash/yaml-cli (1.0.3): Loading from cache
  - Installing webmozart/path-util (2.3.0): Loading from cache
  - Installing symfony/var-dumper (v3.3.10): Loading from cache
  - Installing jakub-onderka/php-console-color (0.1): Loading from cache
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Loading from cache
  - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
  - Installing nikic/php-parser (v3.1.2): Loading from cache
  - Installing psy/psysh (v0.8.13): Loading from cache
  - Installing pear/console_table (v1.3.0): Loading from cache
  - Installing twig/twig (v1.35.0): Loading from cache
  - Installing drush/drush (8.1.15): Loading from cache
  - Installing drupal/coder (8.2.12): Cloning 984c54a7b1 from cache
  - Installing oomphinc/composer-installers-extender (v1.1.2): Loading from cache
  - Installing doctrine/inflector (v1.1.0): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing doctrine/collections (v1.5.0): Loading from cache
  - Installing doctrine/cache (v1.7.1): Loading from cache
  - Installing doctrine/annotations (v1.5.0): Loading from cache
  - Installing doctrine/common (v2.8.1): Loading from cache
  - Installing asm89/twig-lint (1.0.2): Loading from cache
  - Installing acquia/blt (8.9.10): Loading from cache
dealerdirect/phpcodesniffer-composer-installer suggests installing dealerdirect/qa-tools (All the PHP QA tools you'll need)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
consolidation/robo suggests installing pear/archive_tar (Allows tar archives to be created and extracted in taskPack and taskExtract, respectively.)
consolidation/robo suggests installing henrikbjorn/lurker (For monitoring filesystem changes in taskWatch)
consolidation/robo suggests installing patchwork/jsqueeze (For minifying JS files in taskMinify)
consolidation/robo suggests installing natxet/CssMin (For minifying CSS files in taskMinify)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
symfony/var-dumper suggests installing ext-symfony_debug ()
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
pear/console_table suggests installing pear/Console_Color2 (>=0.1.2)
drush/drush suggests installing ext-pcntl (*)
drush/drush suggests installing drush/config-extra (Provides configuration workflow commands, such as config-merge.)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
acquia/blt suggests installing hirak/prestissimo (^0.3)
acquia/blt suggests installing typhonius/acquia_cli (^0.0.7)
Writing lock file
Generating autoload files
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer/
PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer/
Creating BLT templated files...
 > /Users/kevinquillen/Servers/blt-project/vendor/acquia/blt/bin/blt internal:create-project --ansi
Copying files from BLT's template into your project...
Merging default configuration into composer.json...
Merging BLT's project.yml template with your project's blt/project.yml...
Installing new Composer dependencies provided by BLT. This make take a while...
[ExecStack] composer install --no-interaction --prefer-dist --ansi
[ExecStack] Running composer install --no-interaction --prefer-dist --ansi in /Users/kevinquillen/Servers/blt-project
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 65 installs, 0 updates, 0 removals
  - Installing wikimedia/composer-merge-plugin (v1.4.1): Loading from cache
  - Installing grasmash/drupal-security-warning (1.1.1): Loading from cache
  - Installing composer/installers (v1.4.0): Loading from cache
  - Installing composer/semver (1.4.2): Loading from cache
  - Installing tivie/php-os-detector (1.1.0): Loading from cache
  - Installing squizlabs/php_codesniffer (2.9.1): Loading from cache
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.4.3): Loading from cache
  - Installing symfony/yaml (v3.2.13): Loading from cache
  - Installing dflydev/dot-access-data (v1.1.0): Loading from cache
  - Installing grasmash/yaml-expander (1.2.0): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v3.3.10): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.6.0): Loading from cache
  - Installing symfony/console (v3.2.13): Loading from cache
  - Installing consolidation/config (1.0.7): Loading from cache
  - Installing symfony/process (v3.3.10): Loading from cache
  - Installing symfony/finder (v3.3.10): Loading from cache
  - Installing symfony/filesystem (v3.3.10): Loading from cache
  - Installing symfony/event-dispatcher (v3.3.10): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing container-interop/container-interop (1.2.0): Loading from cache
  - Installing league/container (2.4.1): Loading from cache
  - Installing consolidation/output-formatters (3.1.12): Loading from cache
  - Installing consolidation/log (1.0.3): Loading from cache
  - Installing webmozart/assert (1.2.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (2.0.5): Loading from cache
  - Installing consolidation/annotated-command (2.8.1): Loading from cache
  - Installing consolidation/robo (1.1.5): Loading from cache
  - Installing sebastian/version (1.0.6): Loading from cache
  - Installing sebastian/global-state (1.1.1): Loading from cache
  - Installing sebastian/recursion-context (1.0.5): Loading from cache
  - Installing sebastian/exporter (1.2.2): Loading from cache
  - Installing sebastian/environment (1.3.8): Loading from cache
  - Installing sebastian/diff (1.4.3): Loading from cache
  - Installing sebastian/comparator (1.2.4): Loading from cache
  - Installing doctrine/instantiator (1.1.0): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/phpunit-mock-objects (2.3.8): Loading from cache
  - Installing phpunit/php-timer (1.0.9): Loading from cache
  - Installing phpunit/php-file-iterator (1.4.2): Loading from cache
  - Installing phpunit/php-token-stream (1.4.11): Loading from cache
  - Installing phpunit/php-code-coverage (2.2.4): Loading from cache
  - Installing phpspec/prophecy (v1.7.2): Loading from cache
  - Installing phpunit/phpunit (4.8.36): Loading from cache
  - Installing grasmash/yaml-cli (1.0.3): Loading from cache
  - Installing webmozart/path-util (2.3.0): Loading from cache
  - Installing symfony/var-dumper (v3.3.10): Loading from cache
  - Installing jakub-onderka/php-console-color (0.1): Loading from cache
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Loading from cache
  - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
  - Installing nikic/php-parser (v3.1.2): Loading from cache
  - Installing psy/psysh (v0.8.13): Loading from cache
  - Installing pear/console_table (v1.3.0): Loading from cache
  - Installing twig/twig (v1.35.0): Loading from cache
  - Installing drush/drush (8.1.15): Loading from cache
  - Installing drupal/coder (8.2.12): Cloning 984c54a7b1 from cache
  - Installing oomphinc/composer-installers-extender (v1.1.2): Loading from cache
  - Installing doctrine/inflector (v1.1.0): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing doctrine/collections (v1.5.0): Loading from cache
  - Installing doctrine/cache (v1.7.1): Loading from cache
  - Installing doctrine/annotations (v1.5.0): Loading from cache
  - Installing doctrine/common (v2.8.1): Loading from cache
  - Installing asm89/twig-lint (1.0.2): Loading from cache
  - Installing acquia/blt (8.9.10): Loading from cache
dealerdirect/phpcodesniffer-composer-installer suggests installing dealerdirect/qa-tools (All the PHP QA tools you'll need)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
consolidation/robo suggests installing pear/archive_tar (Allows tar archives to be created and extracted in taskPack and taskExtract, respectively.)
consolidation/robo suggests installing henrikbjorn/lurker (For monitoring filesystem changes in taskWatch)
consolidation/robo suggests installing patchwork/jsqueeze (For minifying JS files in taskMinify)
consolidation/robo suggests installing natxet/CssMin (For minifying CSS files in taskMinify)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
symfony/var-dumper suggests installing ext-symfony_debug ()
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
pear/console_table suggests installing pear/Console_Color2 (>=0.1.2)
drush/drush suggests installing ext-pcntl (*)
drush/drush suggests installing drush/config-extra (Provides configuration workflow commands, such as config-merge.)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
acquia/blt suggests installing hirak/prestissimo (^0.3)
acquia/blt suggests installing typhonius/acquia_cli (^0.0.7)
Writing lock file
Generating autoload files
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 112 installs, 2 updates, 0 removals
  - Installing drupal-composer/drupal-scaffold (2.3.0): Loading from cache
  - Installing cweagans/composer-patches (1.6.2): Loading from cache
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing symfony/translation (v3.2.13): Loading from cache
  - Updating symfony/event-dispatcher (v3.3.10 => v3.2.13): Loading from cache
  - Installing symfony/dependency-injection (v3.2.13): Loading from cache
  - Installing symfony/config (v3.2.13): Loading from cache
  - Installing symfony/class-loader (v3.2.13): Loading from cache
  - Installing behat/transliterator (v1.2.0): Loading from cache
  - Installing behat/gherkin (v4.5.1): Loading from cache
  - Installing behat/behat (v3.3.1): Loading from cache
  - Installing jarnaiz/behat-junit-formatter (v1.3.2): Loading from cache
  - Installing jakoch/phantomjs-installer (2.1.1-p07): Loading from cache
  - Installing textalk/websocket (1.2.0): Loading from cache
  - Installing symfony/css-selector (v3.3.10): Loading from cache
  - Installing behat/mink (v1.7.1): Loading from cache
  - Installing dmore/chrome-mink-driver (2.4.0): Loading from cache
  - Installing dmore/behat-chrome-extension (1.0.0): Loading from cache
  - Installing zendframework/zend-stdlib (3.1.0): Loading from cache
  - Installing zendframework/zend-escaper (2.5.2): Loading from cache
  - Installing zendframework/zend-feed (2.8.0): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing zendframework/zend-diactoros (1.6.1): Loading from cache
  - Installing symfony/validator (v3.2.13): Loading from cache
  - Installing symfony/serializer (v3.2.13): Loading from cache
  - Installing symfony/routing (v3.2.13): Loading from cache
  - Installing paragonie/random_compat (v2.0.11): Loading from cache
  - Installing symfony/http-foundation (v3.2.13): Loading from cache
  - Installing symfony/psr-http-message-bridge (v1.0.0): Loading from cache
  - Updating symfony/process (v3.3.10 => v3.2.13): Loading from cache
  - Installing symfony/polyfill-iconv (v1.6.0): Loading from cache
  - Installing symfony/http-kernel (v3.2.13): Loading from cache
  - Installing symfony-cmf/routing (1.4.1): Loading from cache
  - Installing stack/builder (v1.0.4): Loading from cache
  - Installing masterminds/html5 (2.3.0): Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2): Loading from cache
  - Installing guzzlehttp/promises (v1.3.1): Loading from cache
  - Installing guzzlehttp/guzzle (6.3.0): Loading from cache
  - Installing egulias/email-validator (1.2.14): Loading from cache
  - Installing easyrdf/easyrdf (0.9.1): Loading from cache
  - Installing asm89/stack-cors (1.1.0): Loading from cache
  - Installing drupal/core (8.4.2): Loading from cache
  - Applying patches for drupal/core
    https://www.drupal.org/files/issues/2752961-90.patch (Clear Twig caches on deploys)
    https://www.drupal.org/files/issues/1356276-408--8.4.x.patch (1356276 - Allow profiles to provide a base/parent profile and load them in the correct order)
    https://www.drupal.org/files/issues/2880374-remove-experimental-warnings-6.patch (2880374 - Experimental modules should not have warnings after being installed)
    https://www.drupal.org/files/issues/2880445-remove-config-write-warning-2.patch (2880445 - Config sync should not throw a warning when not being writable)
    https://www.drupal.org/files/issues/2869592-remove-update-warning-7.patch (2869592 - Disabled update module shouldn't produce a status report warning)
    https://www.drupal.org/files/issues/2885441-2.patch (2885441 - EntityReferenceAutocompleteWidget should define its size setting as an integer)
    https://www.drupal.org/files/issues/2883813-27.patch (2883813 - Move File/Image media type into Standard once Media is stable)
    https://www.drupal.org/files/issues/2877383-23.patch (2877383 - Add action support to Media module)

  - Installing mikey179/vfsstream (v1.6.5): Loading from cache
  - Installing symfony/dom-crawler (v3.3.10): Loading from cache
  - Installing symfony/browser-kit (v3.3.10): Loading from cache
  - Installing fabpot/goutte (v3.2.1): Loading from cache
  - Installing behat/mink-browserkit-driver (v1.3.2): Loading from cache
  - Installing behat/mink-goutte-driver (v1.2.1): Loading from cache
  - Installing drupal/config_filter (1.0.0): Loading from cache
  - Installing drupal/config_split (1.2.0): Loading from cache
  - Installing drupal/devel (1.2.0): Loading from cache
  - Installing drupal/workbench_moderation (1.2.0): Loading from cache
  - Applying patches for drupal/workbench_moderation
    https://www.drupal.org/files/issues/2668006-2.patch (2668006 - Provide logical access control for when IPE should be applied to moderated nodes)
    https://www.drupal.org/files/issues/2847078-6.patch (2847078 - Revision tracker's dynamic table creation can break Views)
    https://www.drupal.org/files/issues/workbench_moderation-quickedit-support-2749503-6.patch (2749503 - Add basic support for Quick Edit)

  - Installing drupal/views_infinite_scroll (1.5.0): Loading from cache
  - Installing drupal/video_embed_field (2.0.0-alpha1): Loading from cache
  - Installing drupal/token (1.0.0): Loading from cache
  - Installing defuse/php-encryption (v2.1.0): Loading from cache
  - Installing lcobucci/jwt (3.2.2): Loading from cache
  - Installing league/event (2.1.2): Loading from cache
  - Installing league/oauth2-server (6.0.2): Loading from cache
  - Installing drupal/consumers (1.0.0-beta1): Loading from cache
  - Installing drupal/simple_oauth (3.0.0): Loading from cache
  - Installing drupal/search_api (1.5.0): Loading from cache
  - Installing drupal/inline_entity_form (1.0.0-beta1): Loading from cache
  - Installing drupal/scheduled_updates (1.0.0-alpha6): Loading from cache
  - Installing drupal/ctools (3.0.0): Loading from cache
  - Installing drupal/pathauto (1.0.0): Loading from cache
  - Installing drupal/panels (4.2.0): Loading from cache
  - Applying patches for drupal/panels
    https://www.drupal.org/files/issues/panels-ipe-2878684-3.patch (2878684 - Use String.match to correlate regions when switching Layouts in Panels IPE)
    https://www.drupal.org/files/issues/panels-ipe-propogate-errors-2825034-5.patch (2825034 - Form error messages do not appear in IPE)
    https://www.drupal.org/files/issues/2908897-2.patch (2908897 - CategoryView leaves AJAX request marked active)
    https://www.drupal.org/files/issues/2913353-2.patch (2913353 - IPE attaches behaviors a bit too quickly)

  - Installing drupal/panelizer (4.0.0): Loading from cache
  - Applying patches for drupal/panelizer
    https://www.drupal.org/files/issues/2908917-2.patch (2908917 - SaveTabView blindly assumes a Revert tab exists)

  - Installing drupal/schemata (1.0.0-alpha2): Loading from cache
  - Installing drupal/openapi (1.0.0-alpha1): Loading from cache
  - Installing drupal/metatag (1.3.0): Loading from cache
  - Installing j7mbo/twitter-api-php (1.0.6): Loading from cache
  - Installing drupal/media_entity_twitter (2.0.0-alpha2): Loading from cache
  - Installing drupal/media_entity_instagram (2.0.0-alpha1): Loading from cache
  - Applying patches for drupal/media_entity_instagram
    https://www.drupal.org/files/issues/2917454-2.patch (2917454 - Field formatter test is broken)

  - Installing drupal/entity (1.0.0-beta1): Loading from cache
  - Installing drupal/media_entity (1.6.0): Loading from cache
  - Applying patches for drupal/media_entity
    https://www.drupal.org/files/issues/media_entity-reset-packaging--add-version.patch (Reset D.O packaging information so subsequent patches apply)
    https://www.drupal.org/files/issues/media-entity-1.6--c564fc4.diff (2880334 - Add update path of media_entity config changes from 1.x to core media module)
    https://www.drupal.org/files/issues/2918172-5.patch (2918172 - Media Entity upgrade -> core fails on absent column revision_uid)
    https://www.drupal.org/files/issues/2918166-7.patch (2918166 - Media Entity should uninstall itself after migration to core Media is complete)
    https://www.drupal.org/files/issues/2919381-2.patch (2919381 - Don't cache media_entity_type_plugins)
    https://www.drupal.org/files/issues/media_entity-drush_updatedb-2919754-6-D8.patch (2919754 - non-existent service 'plugin.manager.media_entity.type')

  - Installing drupal/media_entity_image (1.2.0): Loading from cache
  - Installing drupal/media_entity_document (1.1.0): Loading from cache
  - Installing drupal/jsonapi (1.3.0): Loading from cache
  - Installing drupal/crop (1.3.0): Loading from cache
  - Installing drupal/image_widget_crop (2.0.0): Loading from cache
  - Installing drupal/config_update (1.4.0): Loading from cache
  - Installing drupal/features (3.5.0): Loading from cache
  - Installing drupal/embed (1.0.0): Loading from cache
  - Installing drupal/entity_embed (1.0.0-beta2): Loading from cache
  - Applying patches for drupal/entity_embed
    https://www.drupal.org/files/issues/2832504-2.patch (2832504 - Send the CKEditor instance ID to the embed.preview route)

  - Installing drupal/entity_browser (2.0.0-alpha1): Loading from cache
  - Applying patches for drupal/entity_browser
    https://www.drupal.org/files/issues/entity-browser-view-context-2865928-14.patch (2865928 - The View widget should filter based on field settings)
    https://www.drupal.org/files/issues/2877751-17.patch (2877751 - Inform users how many items they can add to a field that uses an entity browser)

  - Installing drupal/entity_block (1.0.0-alpha2): Loading from cache
  - Applying patches for drupal/entity_block
    https://www.drupal.org/files/issues/entity_block-view-builder-class.patch (2844068 - Create derivatives for any viewable entity.)
    https://www.drupal.org/files/issues/2846004-2.patch (2846004 - Entity Block does not perform any access control)

  - Installing drupal/dropzonejs (1.0.0-alpha8): Loading from cache
  - Installing sunra/php-simple-html-dom-parser (v1.5.2): Loading from cache
  - Installing ezyang/htmlpurifier (v4.9.3): Loading from cache
  - Installing caxy/php-htmldiff (v0.1.5): Loading from cache
  - Installing mkalkbrenner/php-htmldiff-advanced (0.0.8): Loading from cache
  - Installing drupal/diff (1.0.0-rc1): Loading from cache
  - Installing drupal/contact_storage (1.0.0-beta9): Loading from cache
  - Installing drupal/acquia_connector (1.13.0): Loading from cache
  - Installing bower-asset/dropzone (v5.1.1): Loading from cache
  - Installing bower-asset/cropper (v2.3.4): Loading from cache
  - Installing acquia/lightning (2.2.3): Loading from cache
  - Installing drupal/cog (1.10.0): Loading from cache
  - Installing drupal/qa_accounts (1.0.0-alpha1): Loading from cache
  - Installing drupal/memcache (2.0.0-alpha5): Loading from cache
  - Installing drupal/seckit (1.0.0-alpha2): Loading from cache
  - Installing drupal/security_review (dev-1.x 35ebae4): Cloning 35ebae445b from cache
  - Installing drupal/shield (1.1.0): Loading from cache
  - Installing bex/behat-extension-driver-locator (1.0.2): Loading from cache
  - Installing behat/mink-extension (v2.2): Loading from cache
  - Installing bex/behat-screenshot (1.2.6): Loading from cache
  - Installing drupal/drupal-driver (v1.2.1): Loading from cache
  - Installing instaclick/php-webdriver (1.4.5): Loading from cache
  - Installing behat/mink-selenium2-driver (v1.3.1): Loading from cache
  - Installing drupal/drupal-extension (v3.3.1): Loading from cache
  - Installing se/selenium-server-standalone (v2.53.1): Loading from cache
symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
behat/behat suggests installing behat/symfony2-extension (for integration with Symfony2 web framework)
behat/behat suggests installing behat/yii-extension (for integration with Yii web framework)
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
zendframework/zend-feed suggests installing zendframework/zend-cache (Zend\Cache component, for optionally caching feeds between requests)
zendframework/zend-feed suggests installing zendframework/zend-db (Zend\Db component, for use with PubSubHubbub)
zendframework/zend-feed suggests installing zendframework/zend-http (Zend\Http for PubSubHubbub, and optionally for use with Zend\Feed\Reader)
zendframework/zend-feed suggests installing zendframework/zend-servicemanager (Zend\ServiceManager component, for easily extending ExtensionManager implementations)
zendframework/zend-feed suggests installing zendframework/zend-validator (Zend\Validator component, for validating email addresses used in Atom feeds and entries ehen using the Writer subcomponent)
symfony/validator suggests installing psr/cache-implementation (For using the metadata cache.)
symfony/validator suggests installing symfony/expression-language (For using the Expression validator)
symfony/validator suggests installing symfony/intl ()
symfony/serializer suggests installing psr/cache-implementation (For using the metadata cache.)
symfony/serializer suggests installing symfony/property-access (For using the ObjectNormalizer.)
symfony/serializer suggests installing symfony/property-info (To deserialize relations.)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
easyrdf/easyrdf suggests installing ml/json-ld (~1.0)
lcobucci/jwt suggests installing mdanter/ecc (Required to use Elliptic Curves based algorithms.)
drupal/dropzonejs suggests installing enyo/dropzone (Required to user drupal/dropzonejs. Dropzone is an easy to use drag'n'drop library.)
bex/behat-screenshot suggests installing bex/behat-screenshot-image-driver-uploadpie (Allows to upload the screenshot to uploadpie.com)
bex/behat-screenshot suggests installing bex/behat-screenshot-image-driver-img42 (Allows to upload the screenshot to img42.com)
bex/behat-screenshot suggests installing bex/behat-screenshot-image-driver-unsee (Allows to upload the screenshot to unsee.cc)
Writing lock file
Generating autoload files
You are using Drupal packages that are not supported by the Drupal Security Team!
  - drupal/video_embed_field:2.0.0.0-alpha1: Alpha releases are not covered by Drupal security advisories.
  - drupal/consumers:1.0.0.0-beta1: Project has not opted into security advisory coverage!
  - drupal/inline_entity_form:1.0.0.0-beta1: Beta releases are not covered by Drupal security advisories.
  - drupal/scheduled_updates:1.0.0.0-alpha6: Project has not opted into security advisory coverage!
  - drupal/schemata:1.0.0.0-alpha2: Project has not opted into security advisory coverage!
  - drupal/schemata_json_schema:1.0.0.0-alpha2: Project has not opted into security advisory coverage!
  - drupal/openapi:1.0.0.0-alpha1: Project has not opted into security advisory coverage!
  - drupal/media_entity_twitter:2.0.0.0-alpha2: Alpha releases are not covered by Drupal security advisories.
  - drupal/media_entity_instagram:2.0.0.0-alpha1: Alpha releases are not covered by Drupal security advisories.
  - drupal/entity:1.0.0.0-beta1: Beta releases are not covered by Drupal security advisories.
  - drupal/entity_embed:1.0.0.0-beta2: Beta releases are not covered by Drupal security advisories.
  - drupal/entity_browser:2.0.0.0-alpha1: Alpha releases are not covered by Drupal security advisories.
  - drupal/entity_block:1.0.0.0-alpha2: Alpha releases are not covered by Drupal security advisories.
  - drupal/dropzonejs:1.0.0.0-alpha8: Project has not opted into security advisory coverage!
  - drupal/diff:1.0.0.0-RC1: RC releases are not covered by Drupal security advisories.
  - drupal/contact_storage:1.0.0.0-beta9: Beta releases are not covered by Drupal security advisories.
  - drupal/qa_accounts:1.0.0.0-alpha1: Project has not opted into security advisory coverage!
  - drupal/memcache:2.0.0.0-alpha5: Alpha releases are not covered by Drupal security advisories.
  - drupal/seckit:1.0.0.0-alpha2: Alpha releases are not covered by Drupal security advisories.
  - drupal/security_review:dev-1.x: Dev releases are not covered by Drupal security advisories.
See https://www.drupal.org/security-advisory-policy for more information.
PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer/
Downloading (100%)Downloading (100%)PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer/
Updating BLT templated files...
 > blt update --ansi -y
Copying files from BLT's template into your project...
Merging BLT's project.yml template with your project's blt/project.yml...
Removing deprecated files and directories...
> install-alias
BLT can automatically create a Bash alias to make it easier to run BLT tasks.
This alias will be created in /Users/kevinquillen/.zshrc.
Installing blt alias...
Added alias for blt to /Users/kevinquillen/.zshrc.
You may now use the blt command from anywhere within a BLT-generated repository.
Restart your terminal session or run source /Users/kevinquillen/.zshrc to use the new command.
[ExecStack] Done in 01:35
> examples:init
Example commands and hooks were copied to your repository root.
[ExecStack] git init && git add -A && git commit -m 'Initial commit.'
> install-alias
The BLT alias is already installed and up to date.
danepowell commented 6 years ago

That all looks normal. Right now I don't see anything that would explain this weird behavior. I'll have to think about this.

kevinquillen commented 6 years ago

Everything else seems up to date, its 8.4.2 core, Drupal VM 4.3... I don't really get it.

greylabel commented 6 years ago

I am seething the same thing on 9.1.x with no changes to default BLT config. (Installing the standard profile works fine.)

composer create-project acquia/blt-project:9.1.x-dev --no-interaction my-project
cd my-project/
blt vm
blt setup
$ blt setup
[warning] The xDebug extension is loaded. This will significantly decrease performance.
Setting up local environment for site 'default'.
Using drush alias @my-project.local
> setup:build
> setup:behat
Executing command blt 'setup:behat' --define=drush.alias=self inside of Drupal VM...
[warning] The xDebug extension is loaded. This will significantly decrease performance.
Generating Behat configuration files...
Connection to 127.0.0.1 closed.
> setup:composer:install
Gathering patches for root package.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
> setup:git-hooks
Installing pre-commit git hook...
Installing commit-msg git hook...
> setup:settings
> frontend
Executing command blt frontend --define=drush.alias=self inside of Drupal VM...
[warning] The xDebug extension is loaded. This will significantly decrease performance.
> frontend:setup
> frontend:build
Connection to 127.0.0.1 closed.
> setup:hash-salt
Generating hash salt...
[File\Write] Writing to /Users/username/Projects/tmp/my-project/salt.txt.
> setup:drupal:install
Executing command blt 'setup:drupal:install' --define=drush.alias=self inside of Drupal VM...
[warning] The xDebug extension is loaded. This will significantly decrease performance.
> internal:drupal:install
[Acquia\Blt\Robo\Tasks\DrushTask] Running /var/www/my-project/vendor/bin/drush site-install lightning install_configure_form.update_status_module='array(FALSE,FALSE)' install_configure_form.enable_update_status_module=NULL --site-name='BLTed 8' --site-mail=no-reply@acquia.com --account-name=GmtVf0Plwr --account-mail=no-reply@acquia.com --locale=en --uri=default --no-interaction --verbose --config=/var/www/my-project/drush/drushrc.php in /var/www/my-project/docroot
 [info] Executing: mysql --defaults-file=/tmp/drush_g8teBV --database=drupal --host=localhost --port=3306 --silent  < /tmp/drush_WSbfa5 > /dev/null
 [info] Sites directory sites/default already exists - proceeding.
 [info] Executing: mysql --defaults-file=/tmp/drush_46VoBC --database=drupal --host=localhost --port=3306 --silent  < /tmp/drush_syai6L > /dev/null
 [info] Executing: mysql --defaults-file=/tmp/drush_oT7YDj --database=drupal --host=localhost --port=3306 --silent  < /tmp/drush_cqaF7s
 [notice] Starting Drupal installation. This takes a while. Consider using the --notify global option.
 [error]  Configuration objects (core.entity_form_display.media.image.default, core.entity_view_display.media.image.default, media.type.image) provided by lightning_media_image already exist in active configuration
[Acquia\Blt\Robo\Tasks\DrushTask]  Exit code 1  Time 58.055s
[error]  Failed to install Drupal!
[error]  Command `internal:drupal:install ` exited with code 1.
Connection to 127.0.0.1 closed.
> setup:toggle-modules
Executing command blt 'setup:toggle-modules' --define=drush.alias=self inside of Drupal VM...
[warning] The xDebug extension is loaded. This will significantly decrease performance.
[Acquia\Blt\Robo\Tasks\DrushTask] Running /var/www/my-project/vendor/bin/drush pm-enable dblog devel seckit views_ui --uri=default --no-interaction --config=/var/www/my-project/drush/drushrc.php in /var/www/my-project/docroot
The following module(s) will be enabled: devel, seckit
 [success] Successfully enabled: devel, seckit
[Acquia\Blt\Robo\Tasks\DrushTask] Done in 5.124s
[Acquia\Blt\Robo\Tasks\DrushTask] Running /var/www/my-project/vendor/bin/drush pm-uninstall acquia_connector shield --uri=default --no-interaction --config=/var/www/my-project/drush/drushrc.php in /var/www/my-project/docroot
 [success] Successfully uninstalled: acquia_connector, shield
[Acquia\Blt\Robo\Tasks\DrushTask] Done in 0.669s
Connection to 127.0.0.1 closed.
> install-alias
The BLT alias is already installed and up to date.
danepowell commented 6 years ago

This seems relevant, although I can't understand how it would apply to a completely new project: https://github.com/acquia/lightning/issues/509

danepowell commented 6 years ago

This is a shot in the dark... are you using the latest Composer version (1.5.2)? If not maybe try upgrading.

This seems vaguely similar to the Lightning issue, which was a Composer-related bug (config-related core patch not being applied)

kevinquillen commented 6 years ago

Yep, composer 1.5.2. First thing I tried upgrading.

On Mon, Nov 6, 2017 at 12:47 PM, Dane Powell notifications@github.com wrote:

This is a shot in the dark... are you using the latest Composer version (1.5.2)? If not maybe try upgrading.

This seems vaguely similar to the Lightning issue, which was a Composer-related bug (config-related core patch not being applied)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/acquia/blt/issues/2251#issuecomment-342228788, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWGwI6r4wyGDC0zGIVa9wlidRSyuTXSks5sz0ZEgaJpZM4QRlvv .

kevinquillen commented 6 years ago

That issue seems like it eventually worked for 8.4.1, but I have 8.4.2.

On Mon, Nov 6, 2017 at 12:48 PM, Kevin Quillen kevinquillen@gmail.com wrote:

Yep, composer 1.5.2. First thing I tried upgrading.

On Mon, Nov 6, 2017 at 12:47 PM, Dane Powell notifications@github.com wrote:

This is a shot in the dark... are you using the latest Composer version (1.5.2)? If not maybe try upgrading.

This seems vaguely similar to the Lightning issue, which was a Composer-related bug (config-related core patch not being applied)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/acquia/blt/issues/2251#issuecomment-342228788, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWGwI6r4wyGDC0zGIVa9wlidRSyuTXSks5sz0ZEgaJpZM4QRlvv .

danepowell commented 6 years ago

Can you confirm that this directory has exactly two files? docroot/core/modules/media/config/install

My suspicion is that this patch is not being applied by composer, though I have no idea why yet. https://www.drupal.org/node/2883813

Maybe also upgrade any global plugins you are using? composer global update

Rest assured you are not the only person with this problem, more people are experiencing it now. We're just not sure why.

kevinquillen commented 6 years ago

composer global show outputs this:

cilex/cilex                           1.x-dev 7acd965    The PHP micro-framework for Command line tools based on the Symfony2 Components
cilex/console-service-provider        1.0.0              Console Service Provider
composer/ca-bundle                    dev-master 9dd73a0 Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.
consolidation/annotated-command       dev-master f7fb76f Initialize Symfony Console commands from annotated command class methods.
consolidation/config                  dev-master 68b938f Provide configuration services for a commandline tool.
consolidation/log                     dev-master bba3fd2 Improved Psr-3 / Psr\Log logger based on Symfony Console components.
consolidation/output-formatters       3.x-dev 6b0d1bc    Format text by applying transformations provided by plug-in formatters.
consolidation/robo                    dev-master b92adf2 Modern task runner
container-interop/container-interop   1.2.0              Promoting the interoperability of container objects (DIC, SL, etc.)
dflydev/dot-access-data               v1.1.0             Given a deep data structure, access data by dot notation.
dnoegel/php-xdg-base-dir              0.1                implementation of xdg base directory specification for php
doctrine/annotations                  dev-master 2497b1f Docblock Annotations Parser
doctrine/instantiator                 dev-master 185b886 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                        dev-master cc709ba Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
drush/drush                           8.x-dev d482553    Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to m...
erusev/parsedown                      1.6.3              Parser for Markdown.
grasmash/yaml-expander                dev-master 720c54b Expands internal property references in a yaml file.
hirak/prestissimo                     0.3.7              composer parallel install plugin
jakub-onderka/php-console-color       0.1               
jakub-onderka/php-console-highlighter v0.3.2            
jms/metadata                          1.6.0              Class/method/property metadata management in PHP
jms/parser-lib                        dev-master 6067cc6 A library for easily creating recursive-descent parsers.
jms/serializer                        1.7.1              Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.
league/container                      2.x-dev e541429    A fast and intuitive dependency injection container.
monolog/monolog                       1.x-dev fd8c787    Sends your logs to files, sockets, inboxes, databases and various web services
nikic/php-parser                      1.x-dev c4bbc8e    A PHP parser written in PHP
padraic/humbug_get_contents           1.1.1              Secure wrapper for accessing HTTPS resources with file_get_contents for PHP 5.3+
padraic/phar-updater                  dev-master 5c28f00 A thing to make PHAR self-updating easy and secure.
pear/console_table                    v1.3.0             Library that makes it easy to build console style tables.
phpcollection/phpcollection           0.5.0              General-Purpose Collection Library for PHP
phpdocumentor/fileset                 1.0.0              Fileset component for collecting a set of files given directories and file paths
phpdocumentor/graphviz                1.0.4             
phpdocumentor/phpdocumentor           2.9.x-dev 8cfa8a5  Documentation Generator for PHP
phpdocumentor/reflection              3.0.1              Reflection library to do Static Analysis for PHP Projects
phpdocumentor/reflection-docblock     2.0.5             
phpoption/phpoption                   1.5.0              Option Type for PHP
pimple/pimple                         1.1.x-dev cae373f  Pimple is a simple Dependency Injection Container for PHP 5.3
psr/cache                             dev-master 78c5a01 Common interface for caching libraries
psr/container                         dev-master 2cc4a01 Common Container Interface (PHP FIG PSR-11)
psr/log                               dev-master 4ebe3a8 Common interface for logging libraries
psy/psysh                             0.8.x-dev dc3b0a2  An interactive shell for modern PHP.
symfony/config                        2.8.x-dev 4e4ebb7  Symfony Config Component
symfony/console                       2.8.x-dev a2e9868  Symfony Console Component
symfony/debug                         3.0.x-dev 697c527  Symfony Debug Component
symfony/event-dispatcher              2.8.x-dev 1377400  Symfony EventDispatcher Component
symfony/filesystem                    3.0.x-dev b2da500  Symfony Filesystem Component
symfony/finder                        2.8.x-dev 4f4e848  Symfony Finder Component
symfony/polyfill-mbstring             dev-master 7c8fae0 Symfony polyfill for the Mbstring extension
symfony/process                       2.8.x-dev 57e52a0  Symfony Process Component
symfony/stopwatch                     2.8.x-dev e02577b  Symfony Stopwatch Component
symfony/translation                   3.0.x-dev eee6c66  Symfony Translation Component
symfony/validator                     2.8.x-dev 864ba68  Symfony Validator Component
symfony/var-dumper                    2.8.x-dev 83ebf3e  Symfony mechanism for exploring and dumping PHP variables
symfony/yaml                          2.8.x-dev 4c29dec  Symfony Yaml Component
twig/twig                             1.x-dev cd06d3c    Twig, the flexible, fast, and secure template language for PHP
webmozart/assert                      dev-master 4a8bf11 Assertions to validate method input/output with nice error messages.
webmozart/path-util                   dev-master 95a8f7a A robust cross-platform utility for normalizing, comparing and modifying file paths.
zendframework/zend-cache              2.8.x-dev 0ca0a29  provides a generic way to cache any data
zendframework/zend-config             2.6.0              provides a nested object property based user interface for accessing this configuration data within applicat...
zendframework/zend-eventmanager       3.3.x-dev 071016a  Trigger and listen to events within a PHP application
zendframework/zend-filter             2.8.x-dev 5820559  provides a set of commonly needed data filters
zendframework/zend-hydrator           1.1.x-dev 22652e1 
zendframework/zend-i18n               2.8.x-dev af8adbe 
zendframework/zend-json               3.1.x-dev abef83c  provides convenience methods for serializing native PHP to JSON and decoding JSON to native PHP
zendframework/zend-serializer         2.9.x-dev a9d6c50  provides an adapter based interface to simply generate storable representation of PHP types by different fac...
zendframework/zend-servicemanager     2.7.8             
zendframework/zend-stdlib             2.7.x-dev 0e44eb4 
zetacomponents/base                   1.9                The Base package provides the basic infrastructure that all packages rely on. Therefore every component reli...
zetacomponents/document               dev-master d444dd8 The Document components provides a general conversion framework for different semantic document markup langu...
kevinquillen commented 6 years ago

Here is what is in the media folder. More than 2 files:

screen shot 2017-11-06 at 1 24 33 pm

greylabel commented 6 years ago

Not sure if related to this specifically, but want to flag. There are some pretty major issues with composer patches that impact the way lightning gets installed.

https://github.com/acquia/lightning/issues/473 https://github.com/cweagans/composer-patches/issues/148 https://github.com/cweagans/composer-patches/pull/152

kevinquillen commented 6 years ago

Hmm... I too have an open issue about composer patches not always applying and in some cases outright ignored.

On Mon, Nov 6, 2017 at 1:28 PM, Grant Gaudet notifications@github.com wrote:

Not sure if related to this specifically, but want to flag. There are some pretty major issues with composer patches that impact the way lightning gets installed.

acquia/lightning#473 https://github.com/acquia/lightning/issues/473 cweagans/composer-patches#148 https://github.com/cweagans/composer-patches/issues/148 cweagans/composer-patches#152 https://github.com/cweagans/composer-patches/pull/152

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/acquia/blt/issues/2251#issuecomment-342240666, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWGwKF9LwAxLCR5tfRcP9mfUggvfhTcks5sz0-4gaJpZM4QRlvv .

danepowell commented 6 years ago

Okay so this almost certainly a composer-patches bug then, if that patch is not being applied on a clean install.

It's been suggested to me to try clearing composer caches multiple times before creating a new project, try that.

kevinquillen commented 6 years ago

composer clear-cache? Yep, I had done that twice as well on both machines.

On Mon, Nov 6, 2017 at 1:32 PM, Dane Powell notifications@github.com wrote:

Okay so this almost certainly a composer-patches bug then, if that patch is not being applied on a clean install.

It's been suggested to me to try clearing composer caches multiple times before creating a new project, try that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/acquia/blt/issues/2251#issuecomment-342242003, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWGwBlKXYkp7JId21SOvd6jK16OoC1Lks5sz1DJgaJpZM4QRlvv .

kevinquillen commented 6 years ago

Here is the issue I opened a while back as well: https://github.com/cweagans/composer-patches/issues/145

jrbeeman commented 6 years ago

In my local testing, it appears that the patch in https://www.drupal.org/node/2883813 should be failing to apply against Drupal 8.4.2, and composer-patches is not reporting the failure.

[2017-11-06 11:38:47] $ git apply -v 2883813-27.patch
Checking patch core/modules/hal/tests/src/Functional/EntityResource/Media/MediaHalJsonAnonTest.php...
Checking patch core/modules/media/tests/modules/media_test_type/media_test_type.info.yml...
error: while searching for:
package: Testing
version: VERSION
dependencies:
  - media_test_source

error: patch failed: core/modules/media/tests/modules/media_test_type/media_test_type.info.yml:5
error: core/modules/media/tests/modules/media_test_type/media_test_type.info.yml: patch does not apply
jayakrishnanj commented 6 years ago

Hi @jrbeeman, I see the patch is available for 8.5.x version and 8.4.2, but it is not completely applied in 8.4.2. Below part of code is not applied in 8.4.2

diff --git a/core/modules/media/config/install/core.entity_form_display.media.file.default.yml b/core/profiles/standard/config/optional/core.entity_form_display.media.file.default.yml similarity index 100% rename from core/modules/media/config/install/core.entity_form_display.media.file.default.yml rename to core/profiles/standard/config/optional/core.entity_form_display.media.file.default.yml diff --git a/core/modules/media/config/install/core.entity_form_display.media.image.default.yml b/core/profiles/standard/config/optional/core.entity_form_display.media.image.default.yml similarity index 100% rename from core/modules/media/config/install/core.entity_form_display.media.image.default.yml rename to core/profiles/standard/config/optional/core.entity_form_display.media.image.default.yml diff --git a/core/modules/media/config/install/core.entity_view_display.media.file.default.yml b/core/profiles/standard/config/optional/core.entity_view_display.media.file.default.yml similarity index 100% rename from core/modules/media/config/install/core.entity_view_display.media.file.default.yml rename to core/profiles/standard/config/optional/core.entity_view_display.media.file.default.yml diff --git a/core/modules/media/config/install/core.entity_view_display.media.image.default.yml b/core/profiles/standard/config/optional/core.entity_view_display.media.image.default.yml similarity index 100% rename from core/modules/media/config/install/core.entity_view_display.media.image.default.yml rename to core/profiles/standard/config/optional/core.entity_view_display.media.image.default.yml diff --git a/core/modules/media/config/install/field.field.media.file.field_media_file.yml b/core/profiles/standard/config/optional/field.field.media.file.field_media_file.yml similarity index 100% rename from core/modules/media/config/install/field.field.media.file.field_media_file.yml rename to core/profiles/standard/config/optional/field.field.media.file.field_media_file.yml diff --git a/core/modules/media/config/install/field.field.media.image.field_media_image.yml b/core/profiles/standard/config/optional/field.field.media.image.field_media_image.yml similarity index 100% rename from core/modules/media/config/install/field.field.media.image.field_media_image.yml rename to core/profiles/standard/config/optional/field.field.media.image.field_media_image.yml diff --git a/core/modules/media/config/install/field.storage.media.field_media_file.yml b/core/profiles/standard/config/optional/field.storage.media.field_media_file.yml similarity index 100% rename from core/modules/media/config/install/field.storage.media.field_media_file.yml rename to core/profiles/standard/config/optional/field.storage.media.field_media_file.yml diff --git a/core/modules/media/config/install/field.storage.media.field_media_image.yml b/core/profiles/standard/config/optional/field.storage.media.field_media_image.yml similarity index 100% rename from core/modules/media/config/install/field.storage.media.field_media_image.yml rename to core/profiles/standard/config/optional/field.storage.media.field_media_image.yml diff --git a/core/modules/media/config/install/media.type.file.yml b/core/profiles/standard/config/optional/media.type.file.yml similarity index 100% rename from core/modules/media/config/install/media.type.file.yml rename to core/profiles/standard/config/optional/media.type.file.yml diff --git a/core/modules/media/config/install/media.type.image.yml b/core/profiles/standard/config/optional/media.type.image.yml similarity index 100% rename from core/modules/media/config/install/media.type.image.yml rename to core/profiles/standard/config/optional/media.type.image.yml

theneonlobster commented 6 years ago

I am also experiencing this issue. Do we have a recommended resolution for now? Use an earlier version of Lightning?

Edit: I resolved the issue by rolling back to Git 2.13.4, as per this composer-patches issue. Doing so with Homebrew isn't obvious, so here's how you do it (assuming you've already installed Git via Homebrew):

brew unlink
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/403d7edbc643281dae621f83dd824485291eafa0/Formula/git.rb
brew pin git
danepowell commented 6 years ago

tl;dr: I've found a better fix, though probably not the best (which would be to fix composer-patch): brew install gpatch then restart your terminal

I've been testing this on an Ubuntu and Mac machine. Both are running Composer 1.5.2 and Git 2.15.0. I was able to reproduce this only on the Mac.

I noticed that Mac has a very old version of GNU patch installed by default (2.5). Ubuntu uses 2.7.5. Upgrading the version of GNU patch on Mac to 2.7.5 like Ubuntu solved this.

kevinquillen commented 6 years ago

Wow, if this is true what a great find. I’ll have to give it a whirl.

On Tue, Nov 7, 2017 at 7:03 PM Dane Powell notifications@github.com wrote:

tl;dr: I've found a better fix, though probably not the best (which would be to fix composer-patch): brew install gpatch then restart your terminal

I've been testing this on an Ubuntu and Mac machine. Both are running Composer 1.5.2 and Git 2.15.0. I was able to reproduce this only on the Mac.

I noticed that Mac has a very old version of GNU patch installed by default (2.5). Ubuntu uses 2.7.5. Upgrading the version of GNU patch on Mac to 2.7.5 like Ubuntu solved this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/acquia/blt/issues/2251#issuecomment-342665375, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWGwEtcOZEhKVlkKhzy7LhBWwxy6kp9ks5s0O_hgaJpZM4QRlvv .

greylabel commented 6 years ago

I think we still need to fix this in CI as build artifacts will not be patched correctly.

jayakrishnanj commented 6 years ago

Unable to reproduce the issue now. Installed gpatch and then uninstalled it. The issue seems to be resolved now.

git version 2.14.0 Composer version 1.4.2 2017-05-17 08:17:52 Drupal version : 8.4.2 Drush version : 9.0.0-beta8

Edit: Working with latest version of Git/Composer also. Tried with git version 2.15.0 Composer version 1.5.2 2017-09-11 16:59:25 Drupal version : 8.4.2 Drush version : 9.0.0-beta8

kevinquillen commented 6 years ago

Success!

brew install gpatch

I ran through creating a new project and blt setup executed without error this time. I am looking at the default homepage for Lightning in my browser right now. Excellent find! Perhaps this also explains why composer would not always correctly patch projects for me this year (I am on a mac) because I do recall upgrading git via brew earlier in the year.

danepowell commented 6 years ago

I'm working on a fix for this as part of https://github.com/cweagans/composer-patches/issues/148, but it might not be easy.

Short-term, it might be better for BLT to run a check for the conditions in which this bug is triggered (Git > 2.14, patch < 2.7.5) and abort the build. I figure it's better to fall over than to silently fail to apply patches.

kevinquillen commented 6 years ago

Here is what I had to do to an existing project to get back on track:

rm -rf composer.lock
rm -rf vendor
rm -rf core
composer install
blt setup

Effectively overwriting the new site with the Standard profile with the Lightning one, so blt setup or blt setup:drupal:install could work without fail.

danepowell commented 6 years ago

We're just waiting on a new tagged release of composer-patches: https://github.com/cweagans/composer-patches/issues/173

I've reviewed the intermediate commits to composer-patches, they should be harmless and it should be safe to update, although we should test to be sure.

Once that's out, we should also ping the Lightning team and recommend they update.

cweagans commented 6 years ago

New release is out and Packagist has picked up the new tag. Should be good to go!

kevinquillen commented 6 years ago

Excellent work!

On Wed, Nov 29, 2017 at 5:11 PM Dane Powell notifications@github.com wrote:

Closed #2251 https://github.com/acquia/blt/issues/2251 via #2319 https://github.com/acquia/blt/pull/2319.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/acquia/blt/issues/2251#event-1364526285, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWGwHBnYWE-PKNhatVXz52nayjPrqFzks5s7dZ8gaJpZM4QRlvv .

danepowell commented 6 years ago

I've also recommended that Lightning require the new version: https://github.com/acquia/lightning/pull/524

danepowell commented 6 years ago

Ugh, I really hate to reopen this, but it looks like this might not be a complete fix: https://github.com/acquia/lightning/pull/524#issuecomment-348019822