Problem/Motivation

While updating drupal.org/download to promote the Drupal quickstart command (instead of zip/tar.gz as the primary way to get Drupal) encountered some memory issues.

The standard Drupal quickstart command recommending the demo_umami profile doesn't fit in with most systems 128M limit for php memory:

$ git clone https://git.drupalcode.org/project/drupal.git && cd drupal && composer install
$ php ./core/scripts/drupal quick-start demo_umami

The failure output typically looks like:

php ./core/scripts/drupal quick-start demo_umami
 9/17 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░]
Install site
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /Users/timlehnen/Dev/quickstart/drupal/core/lib/Drupal/Core/Config/Entity/Query/Condition.php on line 125

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /Users/timlehnen/Dev/quickstart/drupal/core/lib/Drupal/Core/Config/Entity/Query/Condition.php on line 125

This can be mitigated with a command like:
$ php -d memory_limit=256M core/scripts/drupal quick-start demo_umami

Per @alexpott - it is likely this issue is related to: https://www.drupal.org/project/drupal/issues/3043330

Steps to reproduce

Run the quickstart command.

Standard and Minimal profiles fit in the 128M default, but there are some reports they encounter random whitescreens after install.

Proposed resolution

TBD

Remaining tasks

TBD

Release notes snippet

Comments

hestenet created an issue. See original summary.

hestenet’s picture

Issue summary: View changes
drumm’s picture

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

ressa’s picture

I will just mention and add #3271178: Quick start command installation stops responding under "Related issues" here, to hopefully give it some attention, since the Drupal Quickstart command (for some) freezes after a minute, at least since March 2022 ...

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

wim leers’s picture

Status: Active » Postponed (maintainer needs more info)
acbramley’s picture

Status: Postponed (maintainer needs more info) » Active

Unfortunately I can still reproduce this on 11.x

❯ php -d memory_limit=128M core/scripts/drupal quick-start demo_umami
 9/17 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░]
Install site
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 53248 bytes) in /home/adam/src/projects/drupal/core/lib/Drupal/Core/Cache/MemoryBackend.php on line 121
ressa’s picture

Both https://www.drupal.org/download and in the docs use more memory (memory_limit=256M), so maybe that takes care of it?

I use DDEV to run quick-start, but am facing difficulties currently ... see Document or fix Drupal Quickstart command #7348.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.