Unable to do configuration import on fresh install

Created on 2 May 2020, almost 5 years ago
Updated 13 October 2023, over 1 year ago

I installed fresh opigno and unable to config import.

Steps to reproduce:
1. After fresh installation does some basic configuration changes in opigno theme settings.
2. Do config export.
3. Try to do config import (drush cim)

Getting below error;

 [error]  Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
Site UUID in source storage does not match the target storage.
Entities exist of type <em class="placeholder">Taxonomy term</em> and <em class="placeholder">Vocabulary</em> <em class="placeholder">Forums</em>. These entities need to be deleted before importing.
Configuration <em class="placeholder">block.block.privatemessageactions</em> depends on the <em class="placeholder">Bartik</em> theme that will not be installed after import.
Configuration <em class="placeholder">block.block.privatemessageinbox</em> depends on the <em class="placeholder">Bartik</em> theme that will not be installed after import.
Configuration <em class="placeholder">block.block.privatemessagenotification</em> depends on the <em class="placeholder">Bartik</em> theme that will not be installed after import.
Configuration <em class="placeholder">field.field.media.image_png.field_media_image</em> depends on the <em class="placeholder">Content Translation</em> module that will not be installed after import.
Configuration <em class="placeholder">search.page.node_search</em> depends on the <em class="placeholder">Search</em> module that will not be installed after import.
Configuration <em class="placeholder">search.page.user_search</em> depends on the <em class="placeholder">Search</em> module that will not be installed after import. in Drupal\Core\Config\ConfigImporter->validate() (line 755 of /var/www/html/core/lib/Drupal/Core/Config/ConfigImporter.php).

In ConfigImportCommands.php line 343:

  The import failed due to the following reasons:
  Site UUID in source storage does not match the target storage.
  Entities exist of type <em class="placeholder">Taxonomy term</em> and <em class="placeholder">Vocabulary</em> <em class="placeholder">Forums</em>. These entities need to be deleted before importing.
  Configuration <em class="placeholder">block.block.privatemessageactions</em> depends on the <em class="placeholder">Bartik</em> theme that will not be installed after import.
  Configuration <em class="placeholder">block.block.privatemessageinbox</em> depends on the <em class="placeholder">Bartik</em> theme that will not be installed after import.
  Configuration <em class="placeholder">block.block.privatemessagenotification</em> depends on the <em class="placeholder">Bartik</em> theme that will not be installed after import.
  Configuration <em class="placeholder">field.field.media.image_png.field_media_image</em> depends on the <em class="placeholder">Content Translation</em> module that will not be installed after import
  .
  Configuration <em class="placeholder">search.page.node_search</em> depends on the <em class="placeholder">Search</em> module that will not be installed after import.
  Configuration <em class="placeholder">search.page.user_search</em> depends on the <em class="placeholder">Search</em> module that will not be installed after import.

This should not be the case in distribution.
If this will give error on dev activist one cannot add the deployment process with this and can't modify the system also.

🐛 Bug report
Status

Fixed

Version

2.11

Component

Code

Created by

🇮🇳India sharma.amitt16 Delhi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Make sure module is turned on in config files as well it should be listed as:
    'search: 0'
    in core.extensions.yml file. Otherwise drupal will try to uninstall it which results in this error:
    depends on the <em class="placeholder">Search</em> module that will not be installed after import.

Production build 0.71.5 2024