can't edit document when enable synchrony
Asked by kang:

when I enable synchrony, I can't create or edit a document.

I use chrome debug mode .

It shows POST 404 "[http://mydomain.com/synchrony-proxy/v1/data/Synchrony-58256301-093c-3f38-97a8-721f170485da/confluence-45547527?state-at=@head\&state-format=type-tagged\&rewrite-request=true\&cached=true](http://mydomain.com/synchrony-proxy/v1/data/Synchrony-58256301-093c-3f38-97a8-721f170485da/confluence-45547527?state-at=@head&state-format=type-tagged&rewrite-request=true&cached=true)"

My confluence version is 6.15

I didn't use nginx as a proxy.I use tomcat directly.

Here is my server.xml

```
<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<!--
==============================================================================================================
DEFAULT - Direct connector with no proxy, for unproxied HTTP access to Confluence.

If using a http/https proxy, comment out this connector.
==============================================================================================================
-->
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"/>
<!--
==============================================================================================================
HTTP - Proxying Confluence via Apache or Nginx over HTTP

If you're proxying traffic to Confluence over HTTP, uncomment the connector below and comment out the others.
Make sure you provide the right information for proxyName and proxyPort.

For more information see:
Apache - https://confluence.atlassian.com/x/4xQLM
nginx - https://confluence.atlassian.com/x/TgSvEg

==============================================================================================================
-->


<!--
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
scheme="http" proxyName="wikitest.in.happycfc.com" proxyPort="80"/>
-->

<!--
==============================================================================================================
HTTPS - Direct connector with no proxy, for unproxied HTTPS access to Confluence.

For more info see https://confluence.atlassian.com/x/s3UC
==============================================================================================================
-->

<!--
<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25"
protocol="org.apache.coyote.http11.Http11Nio2Protocol"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLSv1.2" sslEnabledProtocols="TLSv1.2" SSLEnabled="true"
URIEncoding="UTF-8" keystorePass="<MY_CERTIFICATE_PASSWORD>"/>
-->

<!--
==============================================================================================================
HTTPS - Proxying Confluence via Apache or Nginx over HTTPS

If you're proxying traffic to Confluence over HTTPS, uncomment the connector below and comment out the others.
Make sure you provide the right information for proxyName and proxyPort.

For more information see:
Apache - https://confluence.atlassian.com/x/PTT3MQ
nginx - https://confluence.atlassian.com/x/cNIvMw
==============================================================================================================
-->

<!--
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
scheme="https" secure="true" proxyName="wikitest.in.happycfc.com" proxyPort="443"/>
-->

<Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
<!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname=""/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
</Context>

<Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0"
reloadable="false" useHttpOnly="true">
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
```

Here is atlassian-synchrony.log

```
2021-07-28 20:50:52,041 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 2rxs7xai1tsyvbjc2746w|3327406e, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 2rxs7xai1tsyvbjc2746w|3327406e, idleConnectionTestPeriod -> 100, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://10.1.80.29:3306/confluence?useSSL=false, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 3600, maxIdleTimeExcessConnections -> 100, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> true, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
2021-07-28 20:50:52,361 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] {"synchrony":{"request":{"remote-addr":"127.0.0.1","uri":"/synchrony/v1/data/Synchrony-23cb09de-8381-30a1-94e7-021e15acf320/confluence-45580289","request-method":"post","query-string":"state-at=@head&state-format=type-tagged&rewrite-request=true&cached=true","x-forwarded-for":"10.9.94.167"},"response":{"status":404},"ns":"synchrony.middleware.logging","level":"info","message":"synchrony.middleware.logging [info] null"}}
2021-07-28 20:50:52,613 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] {"synchrony":{"message":"synchrony.sync.hub [info] create-entity","event":"entity.created","entity":"/~insecure/bayeux-rerouting/xDNdi7FTLhEeMwTSPvPqyw","ns":"synchrony.sync.hub","level":"info"}}
2021-07-28 20:50:53,006 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] {"synchrony":{"message":"synchrony.sync.hub [info] create-entity","event":"entity.created","entity":"/Synchrony-23cb09de-8381-30a1-94e7-021e15acf320/confluence-45580289","ns":"synchrony.sync.hub","level":"info"}}
2021-07-28 20:50:53,204 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] {"synchrony":{"message":"synchrony.sync.hub [info] init-session","source":"3k38zkLRm9DG0gkXB7DJkAU","event":"session.created","entity":"/Synchrony-23cb09de-8381-30a1-94e7-021e15acf320/confluence-45580289","ns":"synchrony.sync.hub","level":"info"}}
2021-07-28 20:51:04,684 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] {"synchrony":{"request":{"remote-addr":"127.0.0.1","uri":"/synchrony/heartbeat","request-method":"get","query-string":null},"response":{"status":200},"ns":"synchrony.middleware.logging","level":"info","message":"synchrony.middleware.logging [info] null"}}
2021-07-28 20:51:17,934 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] {"synchrony":{"request":{"remote-addr":"127.0.0.1","uri":"/synchrony/v1/data/Synchrony-23cb09de-8381-30a1-94e7-021e15acf320/confluence-45580289","request-method":"get","query-string":"state-at=@head&state-format=type-tagged&rewrite-request=true&cached=true","x-forwarded-for":"10.9.94.167"},"response":{"status":400},"ns":"synchrony.middleware.logging","level":"info","message":"synchrony.middleware.logging [info] null"}}
2021-07-28 20:51:34,684 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] {"synchrony":{"request":{"remote-addr":"127.0.0.1","uri":"/synchrony/heartbeat","request-method":"get","query-string":null},"response":{"status":200},"ns":"synchrony.middleware.logging","level":"info","message":"synchrony.middleware.logging [info] null"}}
2021-07-28 20:52:04,683 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] {"synchrony":{"request":{"remote-addr":"127.0.0.1","uri":"/synchrony/heartbeat","request-method":"get","query-string":null},"response":{"status":200},"ns":"synchrony.middleware.logging","level":"info","message":"synchrony.middleware.logging [info] null"}}
2021-07-28 20:52:34,683 DEBUG [224:StdOutHandler [/data/tools/confluence/jre/bin/java]] {"synchrony":{"request":{"remote-addr":"127.0.0.1","uri":"/synchrony/heartbeat","request-method":"get","query-string":null},"response":{"status":200},"ns":"synchrony.middleware.logging","level":"info","message":"synchrony.middleware.logging [info] null"}}
```


Answers:
author: Fabian Lim
body: Hi [@kang](/t5/user/viewprofilepage/user-id/3849727)

I recommend you create a support ticket directly with atlassian. We had similar issues with synchrony and we had to get on a bridge with atlassian support to resolve it.

Regards


Tags: new-to-confluence

synchrony