Forums

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

I change the synchrony port in the setenv.sh file but confluence isn't showing the change

Irwin Schreiman February 16, 2018

I am running Confluence 6.6.0 behind NGINX and needed to change the default synchrony port.  

In setenv.sh I added:

CATALINA_OPTS="-Dsynchrony.port=8092 ${CATALINA_OPTS}"

and in NGINX I added the following to the Configuration

}
    location /synchrony {
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://localhost:8092/synchrony;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }

 However, when I turn on collaborative editing, pages cannot be edited.   I get "Something went wrong after loading the editor. Copy your unsaved changes and refresh the page to keep editing." and have to hit the back button to stop trying to edit the page. Any ideas?

2 answers

1 vote
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2018

Everything you posted looks correct per the docs I checked: How to use NGINX to proxy requests for Confluence and Configuring System Properties. I assume you restarted Confluence after editing the setenv.sh.

I found this similar post on the forum, please check out the tips from Shannon on this Question: "Something went wrong after loading the editor." Confluence behind NGINX reverse proxy

Please let me know why Synchrony can't run on port 8091 (just curious).

Irwin Schreiman February 20, 2018

Yes, I restarted Confluence.  I used 8092 because the person who set up NGINX is using 8091 for another purpose.  It looks to me like it NGNIX is not set up to handle web socket connections. I have an incident with my IT staff to check on this - will keep you posted.

0 votes
Le Minh Hieu July 27, 2018

Dear All

I have 2 confluences db installed on 1 windows server 2008. I need to open synchrony both 2 confluences. One is set port 8091 default, open Collaborative editing and it works. The second I turn on Collaborative editing , I cannot open page to edit, it errors:

"This page is taking longer to load than usual. Give it a few moments, then try refreshing. Still having issues? Contact your Confluence admin."

Would you please tell me how to change synchrony port so that we can use Collaborative editing in both confluence. 

In setenv.sh I added: ( in the second confluence )

CATALINA_OPTS="-Dsynchrony.port=8092 ${CATALINA_OPTS}"

and restart service of confluence but it does not work

Many Thanks,

Le Minh Hieu July 27, 2018

My version confluence is 6.10.0. Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events