Drupal 8: Site UUID in source storage does not match the target storage
Problem
You encountered this error when running 'drush cim':
1Site UUID in source storage does not match the target storage.
As mentioned, UUID no longer match. To fix, get the UUID in config/sync directory, something like below:
1awk '{for (I=1;I<=NF;I++) if ($I == "uuid:") {print $(I+1)};}' sites/default/config/sync/system.site.yml
and assuming you get this value:
1d5835485-ed5e-433a-b782-41eca3ef7727
Set that to current installation as follows:
1drush cset system.site uuid d5835485-ed5e-433a-b782-41eca3ef7727 -y
Rerun 'drush cim'
See details in https://web.archive.org/web/20170429231018/https://justdrupal.com/drupal-8-reinstall/