Installation and deployment
Version 7.x > Installation and deployment > Syncing multiple sites View modes: 
User avatar
Member
Member
rmclemore-millerheiman - 6/30/2013 10:50:50 PM
   
Syncing multiple sites
I have a Stage server and a live server. I have setup bi-directional synchronization. I can't get multiple sites to sync correctly. Do I need to create a stating server for each site and it's url to make it work correctly? if so for bi-directional you need to add a CMSStagingServerName key to the web config. can you add two keys for each?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 7/8/2013 2:13:51 AM
   
RE:Syncing multiple sites
Hello.

Could you please describe more in details what particular issues are you facing to? Why cannot you sync it correctly? Do you receive any error? Is there any additional info in your Event log (Site Manager / Administrator)? Could you please make sure and confirm that you follow all steps for Bi-directional staging configuration as per http://devnet.kentico.com/docs/devguide/bidirectional_staging.htm? Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
rmclemore-millerheiman - 7/11/2013 11:33:23 AM
   
RE:Syncing multiple sites
You add a key to the web.config. the key is a unique id for the server. then you create a "server" on that machine with server code name that matches the key you added.

now i go to sync another site on that server (i have a 10 site license) and I need to build a new "server" with a unique server code name, one that cannot match the key value because it is already being used.

without that key value i'm afraid that I will end up with sync loops.
<add key="CMSStagingServerName" value="Dev" />

User avatar
Member
Member
kentico_sandroj - 7/13/2013 8:53:56 PM
   
RE:Syncing multiple sites
Hello,

Did you follow the documentation?

This is how you avoid the loops:

If you want to perform content staging bi-directionally between two servers, i.e. you want to transfer changes made on Server 1 to Server 2 and also in the other direction from Server 2 to Server 1, you need to configure both servers as a source and a target server at the same time, as described in the Staging configuration topic.

On top of it, you also need to disable the Log staging changes option in Site Manager -> Settings -> Versioning & Synchronization -> Staging on both servers.

If this option is enabled, changes made to the system via content staging synchronization (i.e. transferred from Server 1 to Server 2) are logged as new synchronization tasks on the target server (on Server 2). Now if you perform synchronization in the reversed direction, i.e. back from Server 2 to Server 1, these tasks are also performed and logged back on Server 1 as new staging tasks. This goes on and on in a never-ending loop, which results in the tasks remaining and not being deleted on both servers.


Also in the server settings you are specifying the target server, not the current server, correct?

Please let me know if the documentation helps.

Regards,
Sandro