If you setup a new site from a database dump it's important that you reset the local state of Content Sync on that site. Otherwise your new site will be mistaken for your previous site which can have many unwanted consequences.


To reset your local Content Sync state:

  1. Run this drush command in your CLI: drush ev '$state = Drupal::state(); $state->delete("cms_content_sync.base_url"); $state->delete("cms_content_sync.site_id"); $state->delete("cms_content_sync.site_uuid");'
  2. Clear the Drupal cache e.g. with drush: drush cr
  3. Manually edit the "CMS Content Sync" user and set a new password that consists of 60 random alphanumerical characters.
  4. Open the Settings tab of Content Sync and enter the new base URL.
  5. Register your site again at the Site tab of Content Sync.
  6. Open the Pools tab of Content Sync and for every Pool, use "Reset status entities".
  7. If this site will use different Flow configurations, delete all Flows that this site will not use but that the previous (dumped) site used.
    • Do this even if you are importing them again later with Drupal's config-import and have them inactive. This will delete the status entities associated with your push and pull operations on the previous (dumped) site that may otherwise interfere with your new configuration.
  8. Create or activate all the Flows you need on this site and export them all to the Sync Core.
  9. If you are NOT using Content Sync on the site or you want to start with a clean slate, truncate the cms_content_sync_entity_status table.