United-Philanthropy-Forum / km-starter-kit

KM Starter Kit
0 stars 1 forks source link

Site setup script breaks with out of memory error #40

Open unclegcb opened 1 month ago

unclegcb commented 1 month ago

Running the default site setup script, the script fails with:

[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 [notice] Performed install task: install_profile_modules [notice] Performed install task: install_profile_themes Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /code/web/core/lib/Drupal/Core/Config/Schema/Mapping.php on line 239 [warning] Drush command terminated abnormally.a

This was an issue in the past that I thought we resolved with automated testing on the distro, but that testing may be flawed (or disabled?).

Anyway, this makes spinning up new sites much harder, and we need to resolve whatever the testing disfunction is.

As a temporary workaround, I have set the installation profile to "minimial" in release 3.0.1 of this starter kit: https://github.com/United-Philanthropy-Forum/km-starter-kit/commit/1f0621ec6e261d8a5c5d16da83eb8e574ecd40eb

unclegcb commented 1 month ago

As @mariacha noted, part of the issue here is that our circle environment has a higher memory limit than a Pantheon sandbox.

Further question, though. We can't actually run the full distro installation in sandboxes no matter what. Should we simple dodge that part of the the Pantheon process and make our work-around (run the install locally, upload database to Pantheon) the official process? That would save us the need to run this test at all.

In addition, I'm curious whether using pantheon's "terminus build" is serving us, or whether we should do the whole thing manually. I've had an incredibly low success rate with the build command: something always breaks, often quietly, and requires a lot of troubleshooting and starting over. I think having the individual manual steps might be faster so we can see where things go wrong and fix them immediately.