I am Upgrading Drupal 8.9 to Drupal 9.2 and it's installed but when am I trying run drush -y config-import then getting error

[error] Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization. Cannot change the install profile from to standard once Drupal is installed. Unable to install the standard module since it does not exist. in Drupal\Core\Config\ConfigImporter->validate() (line 750 of /web/core/lib/Drupal/Core/Config/ConfigImporter.php).

The import failed due to the following reasons:
Cannot change the install profile from to standard once Drupal is installed. Unable to install the standard module since it does not exist.

I verified my core.extension.yml file there is already written:

module:
   standard: 1000
profile: standard

I tried with this reference as well https://www.drupal.org/node/2952947 and https://www.drupal.org/node/2538996 but didn't get any solution.

Comments

Anshu Raj created an issue. See original summary.

cilefen’s picture

Priority: Critical » Normal
Status: Active » Closed (duplicate)
Issue tags: -Configuration system, -installation, -Drupal 9, -Drupal 8.x upgrade
Related issues: +#2870028: drush cim erroneously reports change of install profile

This looks like a duplicate. I am not sure we need another issue.

anshu raj’s picture

@cilefen, It seems duplicate issue related with config synchronization but the error is completely different, We are upgrading Drupal 8.9 to Drupal 9.2 and I had tried all the proposed solution related to config synchronization but didn't work for Drupal 9.2.

If you have any proposed solution, Please suggest.

cilefen’s picture

Category: Bug report » Support request
Status: Closed (duplicate) » Active
Issue tags: +Bug Smash Initiative

What is the overall upgrade process you are following?

anshu raj’s picture

Basically I am upgrading it on a new server with composer 2 along with php 7.3 older server doesn't support php version.
Through composer 2.0 and along with Drush v10 I upgraded Drupal 9.2.6 but whenever I try to run drush -y config-import(cim).

once it started to run then in process it throws error related validation and standard

we are using the same core.extension.yml including all exported configuration (.yml) file and existing database of Drupal 8 and it is already mentioned in file

module:
  views: 10
  standard: 1000
  eu_cookie_compliance: 1001
theme:
  stable: 0
  classy: 0
  bartik: 0
  seven: 0
  bootstrap: 0
  my_custom_theme: 0
profile: standard
_core:
  default_config_hash:  xxxxxxx

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.1.10 (June 4, 2021) and Drupal 9.2.10 (November 24, 2021) were the last bugfix releases of those minor version series. Drupal 9 bug reports should be targeted for the 9.3.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)

Is there any update after two months?

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)