How do I import configuration without getting these errors? I am using drush cim and drush cex for importing and exporting the  configuration between environments.

At this moment, local and develop are working OK, but I am getting an error on stage.

This is the error.


  The import failed due to the following reasons:
  This config does not have system.site, rejected
  UUID source site does not match current site.  
  
  Config core.extension does not exists.


But actually both of them exists. I have already ran drupal config.override and set the UUID on system.site, but I am still getting those errors.

I have also tried drush cr.

The system site has the same UUID as local. It's the same file.
I have fixed the issue using config suite module: install this module and it will assign the uuid for those enviroments so you don't need to worry to set up manually.