Closed gitressa closed 2 months ago
Yeah, I've seen that. Not sure what's going on, and I don't really have too much time to trace into it right now. If you have any ideas, please go ahead!
I know nothing about recipes ... sadly :-)
But I did check for mentions of "block_content:aa33cb62-047a-4695-a523-aa43266c2bb3", in case that was the culprit, though there are many [warning] The <SOMETHING> was not found
warnings...
The first thing that jumped out, was that it looks like the recipes are duplicated in two folders. Is that intentional?
In web/recipes
$ ls web/recipes/
total 72K
drwxr-xr-x 4 user user 4,0K 31 jul 17:16 notify_new_comments
drwxr-xr-x 4 user user 4,0K 31 jul 17:16 starshot
drwxr-xr-x 2 user user 4,0K 31 jul 17:16 starshot_accessibility_tools
drwxr-xr-x 2 user user 4,0K 31 jul 17:16 starshot_admin_theme
drwxr-xr-x 2 user user 4,0K 31 jul 17:16 starshot_anti_spam
drwxr-xr-x 2 user user 4,0K 31 jul 17:16 starshot_audio_media_type
drwxr-xr-x 3 user user 4,0K 31 jul 17:16 starshot_basic_html_editor
drwxr-xr-x 4 user user 4,0K 31 jul 17:16 starshot_blog
drwxr-xr-x 3 user user 4,0K 31 jul 17:16 starshot_content_type_base
drwxr-xr-x 2 user user 4,0K 31 jul 17:16 starshot_document_media_type
drwxr-xr-x 4 user user 4,0K 31 jul 17:16 starshot_event_content_type
drwxr-xr-x 2 user user 4,0K 31 jul 17:16 starshot_forms
drwxr-xr-x 3 user user 4,0K 31 jul 17:16 starshot_full_html_editor
drwxr-xr-x 3 user user 4,0K 31 jul 17:16 starshot_image_media_type
drwxr-xr-x 2 user user 4,0K 31 jul 17:16 starshot_local_video_media_type
drwxr-xr-x 2 user user 4,0K 31 jul 17:16 starshot_maintenance
drwxr-xr-x 2 user user 4,0K 31 jul 17:16 starshot_multilingual
drwxr-xr-x 4 user user 4,0K 31 jul 17:16 starshot_page_content_type
Also in recipes
$ ls recipes/
total 68K
drwxr-xr-x 4 user user 4,0K 31 jul 17:15 starshot
drwxr-xr-x 2 user user 4,0K 31 jul 17:15 starshot_accessibility_tools
drwxr-xr-x 2 user user 4,0K 31 jul 17:15 starshot_admin_theme
drwxr-xr-x 2 user user 4,0K 31 jul 17:15 starshot_anti_spam
drwxr-xr-x 2 user user 4,0K 31 jul 17:15 starshot_audio_media_type
drwxr-xr-x 3 user user 4,0K 31 jul 17:15 starshot_basic_html_editor
drwxr-xr-x 4 user user 4,0K 31 jul 17:15 starshot_blog
drwxr-xr-x 3 user user 4,0K 31 jul 17:15 starshot_content_type_base
drwxr-xr-x 2 user user 4,0K 31 jul 17:15 starshot_document_media_type
drwxr-xr-x 4 user user 4,0K 31 jul 17:15 starshot_event_content_type
drwxr-xr-x 2 user user 4,0K 31 jul 17:15 starshot_forms
drwxr-xr-x 3 user user 4,0K 31 jul 17:15 starshot_full_html_editor
drwxr-xr-x 3 user user 4,0K 31 jul 17:15 starshot_image_media_type
drwxr-xr-x 2 user user 4,0K 31 jul 17:15 starshot_local_video_media_type
drwxr-xr-x 2 user user 4,0K 31 jul 17:15 starshot_maintenance
drwxr-xr-x 2 user user 4,0K 31 jul 17:15 starshot_multilingual
drwxr-xr-x 4 user user 4,0K 31 jul 17:15 starshot_page_content_type
In the context of this prototype project, yes, that's completely normal. Drupal only "sees" the ones in web/recipes
, and those are the ones it applies.
I have a question, what is the difference in using the 'git clone' method (for ddev) and using 'composer create-project' for other projects and then using 'ddev quick-start' which I ended up using inorder to get the site to install with ddev?
When I tried using git clone (originally) my install was failing saying it could not install npm which is why I tried the other method.
The git clone
method is there in case your computer doesn't have Composer or PHP installed. DDEV supplies those things.
If you already have Composer and PHP, you don't really need to use DDEV. But if you wanted to anyway, you could do composer create-project --no-install
, then run ddev quick-start
in there.
These options are there to support both people like myself, who use bare-metal Composer and PHP, and people who want to use the officially recommended Docker-based environment (DDEV).
I don't know why in the world your attempt failed because of npm -- Starshot doesn't use npm, maybe DDEV itself does?
So I tried adding -vvv
to the install command in composer.json like this:
"drush site:install --yes -vvv --account-pass admin --config drush-install.yml",
... and it looks like installing each modules takes about 7 seconds, between the timestamps here, which is the stalled bit:
[info] automatic_updates module installed. [32.02 sec, 60.54 MB]
[...]
[info] redirect module installed. [144.07 sec, 59.88 MB]
package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [40.42 sec, 60.76 MB]
[info] automatic_updates_extensions module installed. [41.16 sec, 57.39 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [47.28 sec, 58.53 MB]
[info] upgrade_status module installed. [47.98 sec, 57.6 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [54.2 sec, 58.64 MB]
[info] easy_breadcrumb module installed. [55.07 sec, 60.67 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [61.18 sec, 61.8 MB]
[info] uli_custom_workflow module installed. [61.84 sec, 58.02 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [67.94 sec, 59.08 MB]
[info] help module installed. [68.67 sec, 58.06 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [74.78 sec, 59.24 MB]
[info] config module installed. [75.52 sec, 58.66 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [81.65 sec, 59.75 MB]
[info] field_ui module installed. [82.39 sec, 58.79 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [88.49 sec, 59.93 MB]
[info] history module installed. [89.22 sec, 58.9 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [95.35 sec, 59.99 MB]
[info] inline_form_errors module installed. [96.06 sec, 58.94 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [102.17 sec, 60.12 MB]
[info] link module installed. [102.89 sec, 59.08 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [109.04 sec, 60.18 MB]
[info] menu_link_content module installed. [109.86 sec, 58.54 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [115.97 sec, 59.71 MB]
[info] menu_ui module installed. [116.68 sec, 58.98 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [122.79 sec, 60 MB]
[info] shortcut module installed. [123.61 sec, 58.91 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [129.7 sec, 60.05 MB]
[info] views_ui module installed. [130.42 sec, 59.22 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [136.48 sec, 60.27 MB]
[info] eca_ui module installed. [137.22 sec, 60.88 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [143.29 sec, 62.1 MB]
[info] redirect module installed. [144.07 sec, 59.88 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [150.18 sec, 61.03 MB]
[warning] The "block_content:aa33cb62-047a-4695-a523-aa43266c2bb3" was not found [150.87 sec, 54.32 MB]
[notice] Performed install task: starshot_installer_apply_template [152.91 sec, 81.76 MB]
[info] starshot_installer module uninstalled. [153.08 sec, 80.05 MB]
[info] The following paths in /var/www/html aren't recognized as part of your Drupal site, so to be safe, Package Manager is excluding them from all stage operations. If these files are not needed for Composer to work properly in your site, no action is needed. Otherwise, you can disable this behavior by setting the package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [159.46 sec, 91.74 MB]
[notice] Performed install task: starshot_installer_uninstall_myself [159.99 sec, 89.67 MB]
[info] Cron run completed. [160.22 sec, 88.96 MB]
[notice] Performed install task: install_finished [160.23 sec, 88.96 MB]
[success] Installation complete. [160.23 sec, 88.95 MB]
> rm -f drush-install.yml
> drush webform-libraries-download
Removing existing libraries…
Downloading https://github.com/components/codemirror/archive/refs/tags/5.65.12.zip
Extracting to /var/www/html/web/libraries/codemirror
Downloading https://github.com/RobinHerbots/jquery.inputmask/archive/refs/tags/5.0.8.zip
Extracting to /var/www/html/web/libraries/jquery.inputmask
Downloading https://github.com/jackocnr/intl-tel-input/archive/refs/tags/v17.0.19.zip
Extracting to /var/www/html/web/libraries/jquery.intl-tel-input
Downloading https://github.com/gjunge/rateit.js/archive/refs/tags/1.1.5.zip
Extracting to /var/www/html/web/libraries/jquery.rateit
Downloading https://github.com/select2/select2/archive/refs/tags/4.0.13.zip
Extracting to /var/www/html/web/libraries/jquery.select2
Downloading https://github.com/ractoon/jQuery-Text-Counter/archive/refs/tags/0.9.1.zip
Extracting to /var/www/html/web/libraries/jquery.textcounter
Downloading https://github.com/jonthornton/jquery-timepicker/archive/refs/tags/1.14.0.zip
Extracting to /var/www/html/web/libraries/jquery.timepicker
Downloading https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz
Extracting to /var/www/html/web/libraries/popperjs
Downloading https://github.com/NigelOToole/progress-tracker/archive/refs/tags/2.0.7.zip
Extracting to /var/www/html/web/libraries/progress-tracker
Downloading https://github.com/szimek/signature_pad/archive/refs/tags/v2.3.0.zip
Extracting to /var/www/html/web/libraries/signature_pad
Downloading https://github.com/cferdinandi/tabby/archive/refs/tags/v12.0.3.zip
Extracting to /var/www/html/web/libraries/tabby
Downloading https://registry.npmjs.org/tippy.js/-/tippy.js-6.3.7.tgz
Extracting to /var/www/html/web/libraries/tippyjs
```
Oooh -- nice detective work! That makes perfect sense. I bet the culprit is automatic_updates_modules_installed()
, which runs the Package Manager status checks -- which are slow -- every time a module is installed. Bad news! (You can test this theory by just putting an early return at the top of that function, and try the installation again.)
Status check does sound like a probable suspect! I have created an issue, in case someone has an opinion on whether this is true, and maybe how to tweak and circumvent this: Starshot install takes several minutes, due to Automatic Updates check?
And, yes you're right about Package Manager status checks. As you suggested, I tried adding a return
right after function automatic_updates_modules_installed($modules)
in _automaticupdates.module and the installation flew through, in less than a minute:
[success] Installation complete. [48.08 sec, 88.7 MB]
package_manager.settings:include_unknown_files_in_project_root
config setting to TRUE
.
.ddev
.git
.github
.gitignore
.tugboat
README.md
installer
patches
patches.lock.json
phpunit.xml
tests [47.28 sec, 91.42 MB]
[notice] Performed install task: starshot_installer_uninstall_myself [47.79 sec, 89.36 MB]
[info] Cron run completed. [48.08 sec, 88.71 MB]
[notice] Performed install task: install_finished [48.08 sec, 88.71 MB]
[success] Installation complete. [48.08 sec, 88.7 MB]
> rm -f drush-install.yml
> drush webform-libraries-download
Removing existing libraries…
Downloading https://github.com/components/codemirror/archive/refs/tags/5.65.12.zip
Extracting to /var/www/html/web/libraries/codemirror
Downloading https://github.com/RobinHerbots/jquery.inputmask/archive/refs/tags/5.0.8.zip
Extracting to /var/www/html/web/libraries/jquery.inputmask
Downloading https://github.com/jackocnr/intl-tel-input/archive/refs/tags/v17.0.19.zip
Extracting to /var/www/html/web/libraries/jquery.intl-tel-input
Downloading https://github.com/gjunge/rateit.js/archive/refs/tags/1.1.5.zip
Extracting to /var/www/html/web/libraries/jquery.rateit
Downloading https://github.com/select2/select2/archive/refs/tags/4.0.13.zip
Extracting to /var/www/html/web/libraries/jquery.select2
Downloading https://github.com/ractoon/jQuery-Text-Counter/archive/refs/tags/0.9.1.zip
Extracting to /var/www/html/web/libraries/jquery.textcounter
Downloading https://github.com/jonthornton/jquery-timepicker/archive/refs/tags/1.14.0.zip
Extracting to /var/www/html/web/libraries/jquery.timepicker
Downloading https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz
Extracting to /var/www/html/web/libraries/popperjs
Downloading https://github.com/NigelOToole/progress-tracker/archive/refs/tags/2.0.7.zip
Extracting to /var/www/html/web/libraries/progress-tracker
Downloading https://github.com/szimek/signature_pad/archive/refs/tags/v2.3.0.zip
Extracting to /var/www/html/web/libraries/signature_pad
Downloading https://github.com/cferdinandi/tabby/archive/refs/tags/v12.0.3.zip
Extracting to /var/www/html/web/libraries/tabby
Downloading https://registry.npmjs.org/tippy.js/-/tippy.js-6.3.7.tgz
Extracting to /var/www/html/web/libraries/tippyjs
```
Fixed in #163 by patching Automatic Updates. 😅
Nice, the install is back to about ~40 seconds again, thanks @phenaproxima :+1:
Usually, Starshot is installed very quickly. Now, it stalls for a minute (or more?), right after
[warning] The "field_block:node:event:field_map_location" was not found
warning:Hangs here for a minute or two, and then resumes