Collaborative editing not working
Asked by rishi:

Hi

I have upgraded to Confluence 6.4.0 and cannot edit pages in Collaborative mode. I get this message
> This page is taking longer to load than usual. Give it a few moments, then try refreshing. Still having issues? Contact your Confluence admin.

and logs in the **atlassian-synchrony.log** file:

{"synchrony":{"message":"synchrony.middleware.memorize-response \[info\] request for static resource","cache-key":\["0.0.0.0","/synchrony/resources/js/vendor/sockjs.min.js",null\],"ns":"synchrony.middleware.memoize-response"}}

{"synchrony":{"message":"synchrony.middleware.memorize-response \[info\] request for static resource","cache-key":\["0.0.0.0","/synchrony/resources/js/synchrony.min.js",null\],"ns":"synchrony.middleware.memoize-response"}}


Answers:
author: Khuong Vu
body: I also upgraded from 5.10 to 6.1 for both staging and production environments. Collaborative editing works in staging, but not in production. I compare the log files, the atlassian-synchrony.log, and the error seems to be in these 2 lines:

{"synchrony":{"message":"synchrony.sync.hub \[**warn**\] closing in-close-promise due to xform error","ns":"synchrony.sync.hub","level":"warn","throwable":"clojure.lang.ExceptionInfo: closed having pending chunks {:message \\"closed having pending chunks\\", :chunk-count 2}\\n\\tat clojure.core$ex_info.invoke(core.clj:4593)\\n\\tat ginga.core$throwable.invoke(core.cljc:311)\\n\\tat ginga.core$throw_map.invoke(core.cljc:316)\\n\\tat synchrony.data_buffer$assert_valid.invoke(data_buffer.clj:17)\\n\\tat synchrony.data_buffer$decoder$fn__21714.invoke(data_buffer.clj:61)\\n\\tat ginga.core$contextual_buffering_transducer$fn__6447$fn__6448.invoke(core.cljc:453)\\n\\tat clojure.core.async.impl.channels$chan$fn__389.invoke(channels.clj:295)\\n\\tat clojure.core.async.impl.channels.ManyToManyChannel.close_BANG_(channels.clj:256)\\n\\tat clojure.core.async$close_BANG_.invoke(async.clj:188)\\n\\tat clojure.core.async$pipe$fn__4656$state_machine__4460__auto____4657$fn__4659.invoke(async.clj:470)\\n\\tat clojure.core.async$pipe$fn__4656$state_machine__4460__auto____4657.invoke(async.clj:467)\\n\\tat clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:1012)\\n\\tat clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:1016)\\n\\tat clojure.core.async.impl.ioc_macros$take_BANG_$fn__4476.invoke(ioc_macros.clj:1025)\\n\\tat clojure.core.async.impl.channels.ManyToManyChannel$fn__313$fn__314.invoke(channels.clj:95)\\n\\tat clojure.lang.AFn.run(AFn.java:22)\\n\\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\\n\\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\\n\\tat java.lang.Thread.run(Thread.java:745)\\n"},"message":"synchrony.sync.hub \[warn\] closing in-close-promise due to xform error"}

<br />

{"synchrony":{"message":"synchrony.http.entity-api \[**warn** \] **Error** in put-entity","entity":"/Synchrony-670f9d54-b238-3d11-ae8a-177723ff8625/confluence-14026356","ns":"synchrony.http.entity-api","level":"warn","throwable":"clojure.lang.ExceptionInfo: Request aborted {:level :warn}\\n\\tat clojure.core$ex_info.invoke(core.clj:4593)\\n\\tat synchrony.sync.connection$request_BANG_$fn__26921$state_machine__4460__auto____26922$fn__26924.invoke(connection.clj:56)\\n\\tat synchrony.sync.connection$request_BANG_$fn__26921$state_machine__4460__auto____26922.invoke(connection.clj:53)\\n\\tat ginga.async.take?(async.cljx:0)\\n\\tat synchrony.http.entity_api$content_reconciliation$fn__47975$state_machine__4460__auto____47976$fn__47978.invoke(entity_api.clj:489)\\n\\tat synchrony.http.entity_api$content_reconciliation$fn__47975$state_machine__4460__auto____47976.invoke(entity_api.clj:489)\\n\\tat ginga.async.take?(async.cljx:0)\\n\\tat synchrony.http.entity_api$put_revision_handler$fn__48231$state_machine__4460__auto____48232$fn__48234.invoke(entity_api.clj:549)\\n\\tat synchrony.http.entity_api$put_revision_handler$fn__48231$state_machine__4460__auto____48232.invoke(entity_api.clj:549)\\n\\tat clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:1012)\\n\\tat clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:1016)\\n\\tat clojure.core.async.impl.ioc_macros$take_BANG_$fn__4476.invoke(ioc_macros.clj:1025)\\n\\tat clojure.core.async.impl.channels.ManyToManyChannel$fn__313$fn__314.invoke(channels.clj:95)\\n\\tat clojure.lang.AFn.run(AFn.java:22)\\n\\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\\n\\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\\n\\tat java.lang.Thread.run(Thread.java:745)\\nCaused by: clojure.lang.ExceptionInfo: in channel closed prematurely {}\\n\\tat clojure.core$ex_info.invoke(core.clj:4593)\\n\\tat ginga.core$raise.doInvoke(core.cljc:587)\\n\\tat clojure.lang.RestFn.invoke(RestFn.java:408)\\n\\tat ginga.async$expect_BANG_$fn__7003$state_machine__4460__auto____7004$fn__7006.invoke(async.cljc:224)\\n\\tat ginga.async$expect_BANG_$fn__7003$state_machine__4460__auto____7004.invoke(async.cljc:221)\\n\\tat clojure.core.async$ioc_alts_BANG_$fn__4614.invoke(async.clj:383)\\n\\tat clojure.core.async$do_alts$fn__4568$fn__4571.invoke(async.clj:252)\\n\\tat ginga.async.take?(async.cljx:0)\\n\\tat ginga.async$request_BANG_$fn__7104$state_machine__4460__auto____7105$fn__7107.invoke(async.cljc:245)\\n\\tat ginga.async$request_BANG_$fn__7104$state_machine__4460__auto____7105.invoke(async.cljc:245)\\n\\t... 8 more\\n"},"message":"synchrony.http.entity-api \[warn\] Error in put-entity"}


author: rishi
body: We upgraded from Confluence 5.10.1


author: Steven F Behnke
body: Upgraded from what version? Did collaborative editing work before? The logs you provided have no relevant detail. Please provide portions of the atlassian-confluence.log instead.


Tags: synchrony