1

I'm getting this error below whenever I try executing the commands drush config-import staging on the CLI. I'm basically in the process of migrating a drupal 7 DB to Drupal 8 and currently following this guide since I'm still new with migration.

https://www.youtube.com/watch?v=_z2FH0efd_g


Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization. in         [error]
Drupal\Core\Config\ConfigImporter->validate() (line 728 of
/Applications/XAMPP/xamppfiles/htdocs/drupal-eight-iom/core/lib/Drupal/Core/Config/ConfigImporter.php).
The import failed due for the following reasons:                                                                [error]
Site UUID in source storage does not match the target storage.
Entities exist of type <em class="placeholder">Shortcut link</em> and <em class="placeholder">Shortcut set</em>
<em class="placeholder">Default</em>. These entities need to be deleted before importing.
The core.extension configuration does not exist.
Can not uninstall the Configuration module as part of a configuration synchronization through the user
interface.

$databases['default']['default'] = array (
  'database' => 'drupal-eight-iom',
  'username' => 'root',
  'password' => '',
  'prefix' => '',
  'host' => '127.0.0.1',
  'port' => '3306',
  'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
  'driver' => 'mysql',
);

$databases['upgrade']['default'] = array (
    'database' => 'drupal-seven-iom',
    'username' => 'root',
    'password' => '',
    'prefix' => '',
    'host' => '127.0.0.1',
    'port' => '3306',
    'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
    'driver' => 'mysql',
  );


$settings['install_profile'] = 'standard';
$config_directories['staging'] = 'sites/default/config';
$config_directories['sync'] = 'sites/default/files/config_zB_DnNUK68i5Owp5a8FzTiClQfp3d3jrwcy0_HuS1hNCGv9Y_Iva2Ahm8LCH-P0j0M2jwmQAsA/sync';
0

Site UUID in source storage does not match the target storage.

Make sure you've system.site.yml on your staging site, see: Site UUID in source storage does not match the target storage.

To check the current UUID, run:

drush config-get "system.site" uuid

to change it, run:

drush config-set "system.site" uuid "xyz"

See: How can I import the configuration on a different site?

Entities exist of type Shortcut link and Shortcut set Default. These entities need to be deleted before importing.

Try removing these entities manually before the import as it says.

The core.extension configuration does not exist.

Make sure you've core.extension.yml file in your config folder, otherwise generate one via config-export.

Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.

Most likely it's related to the missing core.extension.yml.


Few hints:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.