Closed DonRichards closed 6 months ago
I ran into the same issue.
The tag in the .env file is for images running php7 and starter site needs to run now on php8 because of drupal 10. These two prs #346 #347 need to be merged and then the tag in the .env file needs to be changed from 1.0.10 to main. Might still have issues with drush 12 and drupal 10 specific to the isle-dc install but you will get a working site (I was able to after I made those changes locally.)
Drupal 10 with Drush 12 issues I mentioned in last comment during make starter_dev:
docker compose exec -T drupal with-contenv bash -lc 'chown -R nginx:nginx .' make drupal-database make[1]: Entering directory '/path/to/isle-dc' Waiting for up to 300 seconds to connect to Database mariadb:3306 Waiting for 3306 on mariadb to open. Database found Validating Database credentials mysqld is alive Credentials are valid make[1]: Leaving directory '/path/to/isle-dc' make update-settings-php make[1]: Entering directory '/path/to/isle-dc' PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /usr/share/drush/Commands/UpdateSettingsCommands.php:204 Stack trace:
thrown in /usr/share/drush/Commands/UpdateSettingsCommands.php on line 204 [warning] Drush command terminated abnormally. make[1]: Leaving directory '/path/to/isle-dc' docker compose exec -T drupal with-contenv bash -lc "drush si -y --existing-config minimal --account-pass password" You are about to:
DROP all tables in your 'drupal_default' database.
// Do you want to continue?: yes.
[notice] Starting Drupal installation. This takes a while. [notice] Performed install task: install_select_language [notice] Performed install task: install_select_profile [notice] Performed install task: install_load_profile [notice] Performed install task: install_verify_requirements [notice] Performed install task: install_verify_database_ready [notice] Performed install task: install_base_system [notice] Performed install task: install_bootstrap_full [error] The Flysystem driver is missing. [warning] Could not find required jsonld.settings to add default RDF namespaces. [warning] The "advanced_search_result_pager:solr_search_contentpage_1" was not found [warning] The "advanced_search_result_pager:solr_search_contentblock_1" was not found [warning] The "advanced_search_block:solr_search_content__page_1" was not found [warning] The "advanced_search_block:solr_search_content__block_1" was not found [notice] Performed install task: install_config_import_batch [notice] Performed install task: install_config_download_translations [notice] Performed install task: install_config_revert_install_changes [notice] Performed install task: install_configure_form [notice] Performed install task: install_finished [success] Installation complete. docker compose exec -T drupal with-contenv bash -lc "drush -l https://islandora.traefik.me user:role:add fedoraadmin admin" [success] Added fedoraadmin role to admin MIGRATE_IMPORT_USER_OPTION=--userid=1 make hydrate make[1]: Entering directory '/path/to/isle-dc' PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /usr/share/drush/Commands/UpdateSettingsCommands.php:204 Stack trace:
thrown in /usr/share/drush/Commands/UpdateSettingsCommands.php on line 204 [warning] Drush command terminated abnormally. [notice] Already enabled: islandora_core_feature
// Do you want to update remove_jsonld_format key in jsonld.settings config?:
// yes.
// Do you want to update broker_url key in islandora.settings config?: yes.
Fedora Admin role already exists. No need to create it. [success] Added fedoraadmin role to admin [notice] Already enabled: jwt +------------+---------------------------+-----------+ | Collection | Config | Operation | +------------+---------------------------+-----------+ | | key.key.islandora_rsa_key | Update | +------------+---------------------------+-----------+
// Import the listed configuration changes?: yes.
[notice] Synchronized configuration: update key.key.islandora_rsa_key. [notice] Finalizing configuration synchronization. [success] The configuration was imported successfully.
The "--pipe" option does not exist.
Search API is not installed. Skipping configuration [notice] Already enabled: search_api_solr
In PmCommands.php line 177:
The following module(s) are not installed: search. No modules to uninstall.
make[1]: [Makefile:160: update-config-from-environment] Error 1 (ignored)
The "--pipe" option does not exist.
matomo is not installed. Skipping configuration
The "--pipe" option does not exist.
openseadragon is not installed. Skipping configuration
The "--pipe" option does not exist.
Search API is not installed. Skipping configuration
The "--pipe" option does not exist.
search_api_solr is not installed. Skipping core setup. Waiting for 8080 on blazegraph to open. Triplestore Found at blazegraph:8080 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 736 100 18 100 718 131 5242 --:--:-- --:--:-- --:--:-- 5411 CREATED: islandora % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 282 100 60 100 222 74 274 --:--:-- --:--:-- --:--:-- 349 <?xml version="1.0"?> 1/35 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 2% 4/35 [▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░] 11% 7/35 [▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░] 20% 11/35 [▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░] 31% 14/35 [▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░] 40% 18/35 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░] 51% 21/35 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░] 60% 25/35 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░] 71% 28/35 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░] 80% 32/35 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░] 91% 35/35 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% [notice] Processed 35 items (35 created, 0 updated, 0 failed, 0 ignored) in 2 seconds (1065.1/min) - done with 'islandora_defaults_tags'
1/18 [▓░░░░░░░░░░░░░░░░░░░░░░░░░░░] 5% 2/18 [▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░] 11% 4/18 [▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░] 22% 6/18 [▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░] 33% 8/18 [▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░] 44% 9/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░] 50% 11/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░] 61% 13/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░] 72% 15/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░] 83% 17/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░] 94% 18/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% [notice] Processed 18 items (18 created, 0 updated, 0 failed, 0 ignored) in 0.9 seconds (1265.7/min) - done with 'islandora_tags' [error] http://islandora.traefik.me:8081/fcrepo/rest/ is unavailable, cannot connect. [success] Cache rebuild complete. make[1]: Leaving directory '/path/to/isle-dc' docker compose exec -T drupal with-contenv bash -lc 'drush -l https://islandora.traefik.me migrate:import --userid=1 islandora_fits_tags' [notice] Now acting as user ID 1
1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% [notice] Processed 1 item (1 created, 0 updated, 0 failed, 0 ignored) in 0.2 seconds (260.2/min) - done with 'islandora_fits_tags' [notice] Switching back from user 1.
id -u
:nginx /var/www/drupal'make login make[1]: Entering directory '/path/to/isle-dc'
/=========== LOGIN =========== http://islandora.traefik.me/user/reset/1/1693420546/pQz45vZXu4op3DHr5qptGRH-x9FUgkY45GH1oqCNKQQ/login /=============================
make[1]: Leaving directory '/path/to/isle-dc'
This error: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation Is related to this: https://github.com/Islandora-Devops/isle-site-template/pull/7 Maybe a fix should go here: https://github.com/Islandora-Devops/isle-buildkit/blob/main/drupal/rootfs/usr/share/drush/Commands/UpdateSettingsCommands.php#L204
The pipe error comes from a call to this function: https://github.com/Islandora-Devops/isle-dc/blob/development/Makefile#L599 These are the places where pipe is being used and match my errors posted above: https://github.com/search?q=repo%3AIslandora-Devops%2Fisle-buildkit%20--pipe&type=code
It doesn't look like the pipe format is an option anymore in drush 11/12: https://www.drush.org/12.x/output-formats-filters/ Maybe use --filter instead?
Not sure if this is already fixed or not, but tested make starter_dev
on https://github.com/Islandora-Devops/isle-dc/pull/384 and it works so once that PR merges I think we can close this issue.
Composer.lock looks like it's out of date and needs to be updated for the islandora-starter-site
Related to https://github.com/Islandora-Devops/islandora-starter-site/issues/109