How can I disable Synchrony from DB or properties?
Asked by David Du Buron:

This week I upgraded our live Confluence environment to latest as I believe we were approaching end of life for the version we were on. I had a surprise when I found out about the Synchrony / Collaborative Editing functionality. It sounds very nice and fancy, but right now it's stopping my company from editing wiki documents.

Our server is configured in front of a proxy, which I know is part of the complication, but when I go into the admin page to try and disable Synchrony I get an error stating "Something went wrong. Please try again." So I obviously don't want to use Synchrony because it isn't working but I also can't disable Sychrony because the server isn't working. This seems like a catch 22.

I'd love the opportunity to plan for enabling Synchrony on our own time table, but how can I disable it now (DB setting, or config file) until I can configure it properly.


Answers:
author: Branno
body: The **synchrony.enable.xhr.fallback=true** parameter doesn't kill Synchrony, it switches the connection between Confluence and Synchrony to the experimental XHR connection, instead of through the Synchrony proxy.

Disabling Synchrony can be accomplished either through the UI (ConfluenceAdmininstration\> Collaborative Editing \> Change Mode \> Off) or through a rest call against \<base_url\>/rest/synchrony-interop/disable

The following python script would do the trick:

```
import requestsdef main():    session = requests.session()    session.auth = ('admin', 'admin')    headers = {'X-Atlassian-Token': 'no-check'}        resp = session.post('http://&lt;base_url&gt;/rest/synchrony-interop/disable',            headers=headers)    print(resp)    print(resp.content)main()
```

comments: author: Jonny Carter
body: If you're an Atlassian plugin dev and found your way here, you may wish to know there are some system property flags you can use instead for your local development environment.

<https://community.developer.atlassian.com/t/how-to-disable-collaborative-editing-via-amps-when-developing/8057>

<https://community.developer.atlassian.com/t/disable-synchrony-with-system-property-in-confluence-plugin-sdk/4668/3>

Probably not suitable for a production environment, but a bit quicker for a local development environment.

Be cautious, of course, as you will likely want to test with Collaborative Editing *on* as well.


author: Daniel Ponzio
body: Going off Stephen's answer above, it might be easier to just run the following on a terminal with your admin user credentials and your base URL:

```
curl -X POST --user admin_user:password --header "X-Atlassian-Token: no-check" https://your.confluence.url/rest/synchrony-interop/disable
```

It worked for me. :)


author: David Du Buron
body: I just realized I wrote about a different issue, but I'd love to get more attention on the page that solved my ultimate issue with Synchrony.  

<https://confluence.atlassian.com/confkb/after-upgrading-confluence-you-are-unable-to-create-new-pages-or-spaces-785457379.html>

This page describes a problem where you are unable to Create new pages in Confluence. As it turns out, with Synchrony enabled it also stops you from being able to Edit pages. In addition, I found this page, because a co-worker described to me that they were unable to COPY a page in confluence. So it might be worth expanding the description of symptoms of that KB. Meaning it affects, Create, Copy (which Create does imply Copy), and Edit (with Synchrony enabled).


author: David Du Buron
body: I FINALLY found the synchrony.enable.xhr.fallback=true property and have killed synchrony and got confluence working again.  

Your Troubleshooting Collaborative Editing page should have that section labeled, "When all else fails, disable Synchrony" or something more explicit.


Tags: confluence-administration

synchrony