Cannot create/edit pages whenever collaborative editing is enabled.

The Collaborative editing funtion isn't work proper after I installed Confluence 6. The page hung with following screenshut: 

the log :

2017-02-13 14:19:42,737 INFO [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify AppID/Secret for real-time collaboration service at endpoint: http://192.168.5.225:8091/synchrony/v1/apps/secret
2017-02-13 14:19:42,739 WARN [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-bc3456c9-41a1-3e92-a5f1-c22cb9d61ab6: Internal Server Error
-- referer: http://192.168.5.225:8090/pages/viewpage.action?pageId=2031618&editingFailed | url: /plugins/createcontent/draft-createpage.action | traceId: c80a5cb18d184400 | userName: admin | action: draft-createpage
2017-02-13 14:20:07,734 INFO [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify AppID/Secret for real-time collaboration service at endpoint: http://192.168.5.225:8091/synchrony/v1/apps/secret
2017-02-13 14:20:07,736 WARN [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-bc3456c9-41a1-3e92-a5f1-c22cb9d61ab6-debug: Internal Server Error
-- referer: http://192.168.5.225:8090/pages/viewpage.action?pageId=2031618&editingFailed | url: /plugins/createcontent/draft-createpage.action | traceId: c80a5cb18d184400 | userName: admin | action: draft-createpage
2017-02-13 14:20:07,738 ERROR [http-nio-8090-exec-7] [confluence.plugins.synchrony.SynchronyContextProvider] getContextMap This instance could not be registered with Synchrony.
-- referer: http://192.168.5.225:8090/pages/viewpage.action?pageId=2031618&editingFailed | url: /plugins/createcontent/draft-createpage.action | traceId: c80a5cb18d184400 | userName: admin | action: draft-createpage
2017-02-13 14:20:32,737 INFO [http-nio-8090-exec-6] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify AppID/Secret for real-time collaboration service at endpoint: http://192.168.5.225:8091/synchrony/v1/apps/secret
2017-02-13 14:20:32,737 INFO [http-nio-8090-exec-3] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify AppID/Secret for real-time collaboration service at endpoint: http://192.168.5.225:8091/synchrony/v1/apps/secret
2017-02-13 14:20:32,739 WARN [http-nio-8090-exec-6] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-bc3456c9-41a1-3e92-a5f1-c22cb9d61ab6: Internal Server Error
-- referer: http://192.168.5.225:8090/plugins/createcontent/draft-createpage.action?draftId=2031620 | url: /rest/synchrony/1.0/token/2031620/generate | traceId: 8c8a96f67158e3bc | userName: admin
2017-02-13 14:20:32,739 WARN [http-nio-8090-exec-3] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-bc3456c9-41a1-3e92-a5f1-c22cb9d61ab6: Internal Server Error
-- referer: http://192.168.5.225:8090/plugins/createcontent/draft-createpage.action?draftId=2031620 | url: /rest/synchrony/1.0/token/2031620/generate | traceId: aad7494fa5d39e9c | userName: admin
2017-02-13 14:20:57,733 INFO [http-nio-8090-exec-3] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify AppID/Secret for real-time collaboration service at endpoint: http://192.168.5.225:8091/synchrony/v1/apps/secret
2017-02-13 14:20:57,735 WARN [http-nio-8090-exec-3] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-bc3456c9-41a1-3e92-a5f1-c22cb9d61ab6-debug: Internal Server Error
-- referer: http://192.168.5.225:8090/plugins/createcontent/draft-createpage.action?draftId=2031620 | url: /rest/synchrony/1.0/token/2031620/generate | traceId: aad7494fa5d39e9c | userName: admin
2017-02-13 14:20:57,738 INFO [http-nio-8090-exec-6] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify AppID/Secret for real-time collaboration service at endpoint: http://192.168.5.225:8091/synchrony/v1/apps/secret
2017-02-13 14:20:57,739 ERROR [http-nio-8090-exec-3] [synchrony.api.v1.SynchronyTokenResource] generateToken This instance could not be registered with Synchrony.
-- referer: http://192.168.5.225:8090/plugins/createcontent/draft-createpage.action?draftId=2031620 | url: /rest/synchrony/1.0/token/2031620/generate | traceId: aad7494fa5d39e9c | userName: admin
2017-02-13 14:20:57,740 WARN [http-nio-8090-exec-6] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-bc3456c9-41a1-3e92-a5f1-c22cb9d61ab6-debug: Internal Server Error
-- referer: http://192.168.5.225:8090/plugins/createcontent/draft-createpage.action?draftId=2031620 | url: /rest/synchrony/1.0/token/2031620/generate | traceId: 8c8a96f67158e3bc | userName: admin
2017-02-13 14:20:57,744 ERROR [http-nio-8090-exec-6] [synchrony.api.v1.SynchronyTokenResource] generateToken This instance could not be registered with Synchrony.
-- referer: http://192.168.5.225:8090/plugins/createcontent/draft-createpage.action?draftId=2031620 | url: /rest/synchrony/1.0/token/2031620/generate | traceId: 8c8a96f67158e3bc | userName: admin
2017-02-13 14:20:57,753 INFO [http-nio-8090-exec-3] [atlassian.confluence.status.SystemErrorInformationLogger] writeToLog
Request Unique ID : fec617fd-a755-4f1c-9726-d5af915facd1
--------------------------
JVM Stats
--------------------------
usedMemory = 1279578976
usedMemoryInMegabytes = 1220
availableHeap = 3015388320
freeMemoryInMegabytes = 827
allocatedHeap = 2147483648
freeAllocatedHeap = 867904672
totalMemory = 2147483648
totalMemoryInMegabytes = 2048
availablePermGen = 0
maxPermGen = -1
maxHeap = 4294967296
usedHeap = 1279578976
freeMemory = 867904672
usedPermGen = -1
--------------------------
Request Information
--------------------------
URL: http://192.168.5.225:8090/500page.jsp
Scheme: http
Server: 192.168.5.225
Port: 8090
URI: /500page.jsp
Context Path:
Servlet Path: /500page.jsp
Path Info: null
Query String: null
--------------------------
Attributes
--------------------------
javax.servlet.forward.request_uri: /rest/synchrony/1.0/token/2031620/generate
javax.servlet.forward.context_path:
javax.servlet.forward.servlet_path: /rest
javax.servlet.forward.path_info: /synchrony/1.0/token/2031620/generate
javax.servlet.error.status_code: 500
com.atlassian.confluence.impl.profiling.DecoratorTimings: com.atlassian.confluence.impl.profiling.DecoratorTimings@ad8f334
com.opensymphony.sitemesh.APPLIED_ONCE: true
__cleanup_recursion_counter: 0
javax.servlet.error.message: Internal Server Error
javax.servlet.error.servlet_name: noop
com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true
atlassian.core.seraph.original.url: /500page.jsp
com.atlassian.gzipfilter.GzipFilter_already_filtered: true
B3-TraceId: 4bc56eaf82df30
loginfilter.already.filtered: true
javax.servlet.error.request_uri: /rest/synchrony/1.0/token/2031620/generate
com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true
os_securityfilter_already_filtered: true
com.atlassian.seraph.auth.LoginReason: OK
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true
--------------------------
Parameters
--------------------------

2017-02-13 14:20:57,758 INFO [http-nio-8090-exec-6] [atlassian.confluence.status.SystemErrorInformationLogger] writeToLog
Request Unique ID : 52f4d4dd-4867-45a4-a8db-987ca0e69dc8
--------------------------
JVM Stats
--------------------------
usedMemory = 1280107600
usedMemoryInMegabytes = 1220
availableHeap = 3014859696
freeMemoryInMegabytes = 827
allocatedHeap = 2147483648
freeAllocatedHeap = 867376048
totalMemory = 2147483648
totalMemoryInMegabytes = 2048
availablePermGen = 0
maxPermGen = -1
maxHeap = 4294967296
usedHeap = 1280107600
freeMemory = 867376048
usedPermGen = -1
--------------------------
Request Information
--------------------------
URL: http://192.168.5.225:8090/500page.jsp
Scheme: http
Server: 192.168.5.225
Port: 8090
URI: /500page.jsp
Context Path:
Servlet Path: /500page.jsp
Path Info: null
Query String: null
--------------------------
Attributes
--------------------------
javax.servlet.forward.request_uri: /rest/synchrony/1.0/token/2031620/generate
javax.servlet.forward.context_path:
javax.servlet.forward.servlet_path: /rest
javax.servlet.forward.path_info: /synchrony/1.0/token/2031620/generate
javax.servlet.error.status_code: 500
com.atlassian.confluence.impl.profiling.DecoratorTimings: com.atlassian.confluence.impl.profiling.DecoratorTimings@4fe72128
com.opensymphony.sitemesh.APPLIED_ONCE: true
__cleanup_recursion_counter: 0
javax.servlet.error.message: Internal Server Error
javax.servlet.error.servlet_name: noop
com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true
atlassian.core.seraph.original.url: /500page.jsp
com.atlassian.gzipfilter.GzipFilter_already_filtered: true
B3-TraceId: a907d639e45151
loginfilter.already.filtered: true
javax.servlet.error.request_uri: /rest/synchrony/1.0/token/2031620/generate
com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true
os_securityfilter_already_filtered: true
com.atlassian.seraph.auth.LoginReason: OK
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true
--------------------------
Parameters
--------------------------

 

Please kindly check if possible.

3 answers

1 accepted

2 votes
Mizan Community Champion Feb 12, 2017

Check https://confluence.atlassian.com/doc/troubleshooting-collaborative-editing-858772087.html

You can try restarting Synchrony as mention in the doc.

You can even disable this feature if you do not need it, refer https://answers.atlassian.com/questions/43893571

 

Hi Mizan,

Thank you for kindly update! 

The two links you mentioned had been checked before I ask. So, disable the collaborative editing feather as the workaround is the best solution currently~~~~~

Actually, I tried to solve this problem with several methods, as you know, they all failed. It would be very useful if you can explain some details according to the log attached.

Anyway, thank you for this message!

Brs,

Yuan

Mizan Community Champion Feb 13, 2017

Synchrony is a separate service which has its own process and own port and Confluence communicate with synchrony service for collaborative editing.

I do not know the exact details of the errors we see, but seems synchrony is not able to start or Confluence is not able to communicate with the synchrony service , this is the reason collab editing is not working.

Synchrony response (500): Could not verify AppID/Secret for real-time collaboration service at endpoint: http://192.168.5.225:8091/synchrony/v1/apps/secret

 

Hi,

Thank you for explain. I tried to connect 8091 port and it seems established but did not work. And, can not find any symptoms in log files. I think  it would be the reason. Hoe ou can update this issue after Atlassian clarifed this issue. 

Brs,

Team,

 

Can someone help by providing a fix or workaround ? we are also seeing the same error after migrating from Confluence Cloud to Confluence Server (6.4.2).

 

2017-12-01 12:06:27,684 INFO [http-nio-8090-exec-4] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify  AppID/Secret for real-time collaboration service at endpoint: http://127.0.0.1:8091/synchrony/v1/apps/secret

2017-12-01 12:06:27,686 WARN [http-nio-8090-exec-4] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-9598aef1-9d96-33f9-86d7-d6836232955a: Internal Server Error

2017-12-01 12:06:58,276 ERROR [http-nio-8090-exec-4] [confluence.plugins.synchrony.SynchronyContextProvider] getContextMap This instance could not be registered with Synchrony.

 

Thanks,

Kiran.

That's one of the symptoms of the problems the troubleshooting doc can fix (Mizan pointed to it in an earlier answer)

Hi,

I have got the same problem after upgrade our Confluence Server to version 6.4.1.

You can work around by navigate to <base URL>/admin/darkfeatures.action and remove:
        site-wide.synchrony
        site-wide.synchrony.opt-in
        site-wide.shared-drafts

Our Confuence is running behind firewall and my solution for this problem is adding these  to installation-directory/bin/setenv.sh:

Dhttp.nonProxyHosts=localhost\|127.0.0.1
Dhttps.nonProxyHosts=localhost\|127.0.0.1

 
Cheers,
Anh Le

Ouch, no, you do NOT want to remove those files, they exist for a reason.  The proxy lines are ok to get it working, but do hint that you may have a poorly configured firewall.

You are right that all files are there for some reason and should not be removed, but I guess these files will not be "removed" from Confluence and will appear again on next start-up. Like I have said, this is just a work around, and can be used in emergency case.

Of course that was not all of my firewall configuration, just the options on setenv.sh that resolved the problem.

What would be your solution on this?

It's a work-around you don't understand, so it's a very poor choice, and because you don't know what it's "fixing", you have no idea if it might work around other people's problems.

You should fix your network so that it routes correctly to Synchrony.  (I suspect the removal of the files is incidental and not actually helping in the slightest)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

869 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you