-
-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[site:install] fails when the settings file is populated #3572
Comments
@cburschka-pwc You can use the
|
Unfortunately, in 1.1.0 this problem has been exacerbated, and Running
In particular, this happens with all commands, including In 1.0.2, In 1.1.* and 1.2, both crash with the above error. |
@cburschka-pwc I will check this and add some comments on this issue. |
I tested by dropping database using:
After executing some commands against the not yet installed site some tables are created.
I sent the PR #3598 to avoid this from happening by validating the |
To reproduce this:
drupal site:install
again.The wizard continues until the installation starts, and then fails with the error
Drupal is already installed
. (This seems like a valid use case, especially in local environments where the database is frequently torn down and reinstalled. Also, note that Drupal's web installer seemingly has no problem with an existing settings.php, as long as the DB isn't installed yet.)Investigation shows that this is actually caused by the bootstrap adding some tables automatically, and adding a single config object (which then makes the configuration fail the "non-empty" check).
A workaround is to run
drupal site:install
, then (once it has bootstrapped and reached the first prompt), manually truncate the config table, and then let the installer continue. Maybe we can somehow prevent this config object from being inserted during bootstrap, or remove it before the installation begins?The text was updated successfully, but these errors were encountered: