Skip to content
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

Can't install from config due to bug in Drupal core #1

Open
agentolivia opened this issue Sep 27, 2023 · 4 comments
Open

Can't install from config due to bug in Drupal core #1

agentolivia opened this issue Sep 27, 2023 · 4 comments

Comments

@agentolivia
Copy link

Problem

When I try to install the site from existing config, as directed in the README, I run into the following error:

In install.core.inc line 2313:
                                                                                                                               
  Configuration install:standard<br /><br />The selected profile has a hook_install() implementation and therefore can not be  
   installed from configuration.                                                                                               
                                                                                                                               

Failed to run drush site:install --existing-config -y: exit status 1

Steps to reproduce

  1. Clone repo and change directories into the project
  2. Run ddev start
  3. Run ddev composer install
  4. Run ddev drush site:install --existing-config -y
  5. Get error: "Failed to run drush site:install --existing-config -y: exit status 1"

Additional info

I searched the Drush issue queue and found a related issue, which was closed because this appears to be a bug in Drupal core, see #2982052.

Proposed resolution

TBD, but ultimately the README for this repo should be updated with installation directions that bypass this bug.

@sdaniel-uw
Copy link

I have the same problem.

@eojthebrave
Copy link
Member

I added a backup.sql.gz file to the repo that contains a DB export from my local. You should be able to start by importing that, and bypass the need to install Drupal. And ... I think that would solve the problem of needing to run drush si --existing-config

New commands would be:

ddev import-db --src=backup.sql.gz
ddev drush deploy

@sdaniel-uw
Copy link

Thanks for your help. Unfortunately, when I run the ddev drush deploy, I get this error:

 Import the listed configuration changes? (yes/no) [yes]:
 > >  [error]  Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
> Unable to uninstall the <em class="placeholder">Password Compatibility</em> module since the <em class="placeholder">Migrate Drupal</em> module is installed.
> Unable to uninstall the <em class="placeholder">Password Compatibility</em> module since the <em class="placeholder">Drupal Upgrade</em> module is installed. in Drupal\Core\Config\ConfigImporter->validate() (line 814 of /var/www/html/web/core/lib/Drupal/Core/Config/ConfigImporter.php).
>
> In ConfigImportCommands.php line 324:
>
>   The import failed due to the following reasons:
>   Unable to uninstall the <em class="placeholder">Password Compatibility</em> module since the <em class="placeholder">Migrate Drupal</em> module is installed.
>   Unable to uninstall the <em class="placeholder">Password Compatibility</em> module since the <em class="placeholder">Drupal Upgrade</em> module is installed.
>

@eojthebrave
Copy link
Member

ooh ... looks like 10.1 has a new module https://www.drupal.org/node/3322420 guess I need to update, and then re-export the db maybe.

I just created a new commit with an updated backup.sql.gz and config/ directory that should work now. Good find!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants