Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I disable Synchrony from DB or properties?

David Du Buron December 29, 2016

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.

4 answers

1 accepted

3 votes
Answer accepted
Branno
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2017

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 requests

def 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()
Jonny Carter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2019

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.

Like Branno likes this
4 votes
Daniel Ponzio
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 21, 2018

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. :)

1 vote
David Du Buron January 3, 2017

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).

0 votes
David Du Buron December 30, 2016

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events