Changing Synchrony Port Problem
Asked by Neil Anthony Morada:

Hi All,

I am trying to change our confluence synchrony port from 8091 to 8092.

I include this command to confluence/bin/setenv.sh

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

I also stop the confluence before adding this line and start it after but it seems that it dont have any effect on our confluence. The synchrony port is still on 8091. Can anyone tell me what is wrong on my steps? Thank you!


Answers:
author: Nic Brough -Adaptavist-
body: This is a long shot, but as it's fixed this for me a few times, can you try forcing your Confluence to re-read all the Synchrony config?

In theory, you only need to change the Catalina options and restart it all, exactly as you have, but for some unknown reason, this does not always work immediately, despite the restart. (My best guess is a cache or temporary file being reloaded, but that really is a guess).

Could you try:

* log into Confluence as an Admin
* go to Admin -\> Collaborative Editing
* turn it off, and save the changes
* make sure it really is off by editing a page somewhere (no need to save, just check behaviour)
* turn it back on and save the changes

This should land us in one of three places:

* Worst case: doesn't work, doesn't change port, no logs
* Middling case: doesn't work, doesn't change port, but more stuff in the logs to tell us why
* Best case: it starts working with the new port

My success rate with that is around 60%, the other 40% got me logs telling me firewalls, dns or network routing didn't like my new port

comments: author: Neil Anthony Morada
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

Thank you for this! I will try it now and will keep you posted. Thank you!


author: Nic Brough -Adaptavist-
body: This is just a paste of a doc I wrote for debugging/fixing for someone a while ago. I don't hold out a lot of hope that it will suddenly work.

I hope it does, but I would actually bet on the middling outcome - it doesn't work, but we get more logs.


author: Neil Anthony Morada
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

Unfortunately, it doesn't work. I try to turn it off and on many times but still not working.

Thank you for your support sir.


author: Nic Brough -Adaptavist-
body: Ok, the other thing to try is a different place for the setting.

Look for \<confluence install\>/bin/synchrony-start.sh and use the "optional overrides" as the note in there says to (obviously, change the port in their example to 8092)


author: Neil Anthony Morada
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

Thank you for the support.

Sorry I'm a little bit confused,

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/160274iEA6B1384E548893D/image-size/large?v=v2&px=999 "image.png")

Do you mean I will just change this port to 8092? Or should I include this line to another file like setenv.sh? Thank you!


author: Nic Brough -Adaptavist-
body: No, stick with this file, forget the others you might be looking at.

You show us three lines of text, edit the last one, replacing the "" with "-Dsynchrony.port=80xx "

In that string, please replace the 80xx with the 80yy you want to use - 8092 for example.


author: Neil Anthony Morada
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

I already did this process but still no effect on our confluence.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/160277i5D37222D0597E36F/image-size/large?v=v2&px=999 "image.png")

Thank you!


author: Nic Brough -Adaptavist-
body: Bother, I am completely stuck now, there's no reason I can think of for synchrony to be ignoring either of those settings.


author: Neil Anthony Morada
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

Thank you for your assistance, I think we will just reinstall our Confluence.


Tags: server

synchrony