Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you might find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Changing Synchrony Port Problem

Neil Anthony Morada September 13, 2021

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!

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 13, 2021

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

Neil Anthony Morada September 13, 2021

Hi @Nic Brough -Adaptavist- 

 

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

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 13, 2021

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.

Neil Anthony Morada September 13, 2021

Hi @Nic Brough -Adaptavist- 

 

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.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 14, 2021

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)

Neil Anthony Morada September 14, 2021

Hi @Nic Brough -Adaptavist- 

 

Thank you for the support.

 

Sorry I'm a little bit confused, 

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!

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 14, 2021

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.

Neil Anthony Morada September 14, 2021

Hi @Nic Brough -Adaptavist- 

 

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

 

image.png

 

Thank you!

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2021

Bother, I am completely stuck now, there's no reason I can think of for synchrony to be ignoring either of those settings.

Neil Anthony Morada September 15, 2021

Hi @Nic Brough -Adaptavist- 

 

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events