STR:

  1. Install Drupal 8.0.x once so settings.php and services.yml are correct.
  2. Empty the database (e.g. drush sql-drop)
  3. chown & chmod those 2 files so Drupal can read but not write them (and PHP cannot chmod them either)
  4. Delete the active and staging config directories (which are not used by default)
  5. Hit core/install.php and follow the language and profile secltion

expected result: installation continues

actual result: an error screen that complains that settings.php and services.yml are not writeable, when the actual problem was simply that Drupal didn't find the 2 config directories to exists at line ~336 of install.core.inc inside function install_begin_request(&$install_state)

  $install_state['config_verified'] = install_verify_config_directory(CONFIG_ACTIVE_DIRECTORY) && install_verify_config_directory(CONFIG_STAGING_DIRECTORY);

Refreshing that page allows installation to continue, which shows that the error message is totally wrong.

Comments

pwolanin’s picture

Issue summary: View changes
pwolanin’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new2.36 KB

The code comment for install_verify_config_directory() really doesn't make sense to me.

I think we can rm that function and fix the bug by using install_ensure_config_directory() instead

pwolanin’s picture

Issue summary: View changes
pwolanin’s picture

Issue summary: View changes
pwolanin’s picture

Discussed with alexpott on IRC and this looked reasonable to him, since we create the files directory before this.

alexpott’s picture

Status: Needs review » Reviewed & tested by the community

I manually tested this and it works are expected.

  • catch committed e6844da on 8.0.x
    Issue #2376013 by pwolanin: Drupal 8 installer initially fails if...
catch’s picture

Status: Reviewed & tested by the community » Fixed

This is a critical so fine per https://www.drupal.org/contribute/core/beta-changes

Committed/pushed to 8.0.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.