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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Atlassian Companion gives error if opened more than once on Citrix Host

Application info -->

Companion App Version: 1.2.2

Infrastruktur: Citrix VDA Multi User Server Farm

Citrix Version: Citrix 7.15 LTSR CU3

OS: Windows Server 2016 Version 1607

 

Error sample -->

This happens if nobody has the application open on the host:

info: adc:browser 2020-09-14T08:32:39.685Z direct websocket launched successfully on port: 31459

 

This happens if someone else already has the application open on the host:

error: adc:browser 2020-09-14T08:31:46.789Z Error: listen EADDRINUSE: address already in use 127.0.0.1:31459
at Server.setupListenHandle [as _listen2] (net.js:1300:14)
at listenInCluster (net.js:1348:12)
at doListen (net.js:1487:7)
at processTicksAndRejections (internal/process/task_queues.js:81:21)

2 answers

1 accepted

0 votes
Answer accepted
Alex K Atlassian Team Sep 14, 2020

Hi @Stephan Maass ,

Which version of Confluence are you using? 

This error is to be expected, Companion runs a local websocket server which is used in Confluence Server 6.11 - 7.2 (and Confluence Cloud). This method of connecting is incompatible with Citrix virtual desktop environments. Since Confluence 7.3, Confluence connects to Companion in a completely different way (using a custom URI handler) which is compatible with Citrix virtual environments. If you are using Confluence 7.3+ then the Companion error can be safely ignored. Companion 1.2.2 is backwards compatible which is why we still attempt to run that local server. 

Regards,
Alex (Developer at Atlassian)

Hi Alex. Thanks so much. I already thought could be something in this direction. We run the newest version of Confluence, so it works.

Do you have a way to suppress this message or a version of the companion app without the backwards compatibility?

Regards, Timo

Alex K Atlassian Team Sep 15, 2020

Hi @Stephan Maass ,

At this stage we do not ship a separate Companion version without backwards compatibility. We do not have a configuration option to disable the local websocket server, it is a great idea so I have created a suggestion here.

Please vote on the linked Jira ticket to raise it to team's attention. 

Also just noting that although the error message is annoying, it does not have any negative consequences if you are not using older versions of Confluence.  

Thanks! 

Like Stephan Maass likes this
0 votes

In Companion 1.3.0, you can now disable the launching of the local websocket server by modifying the companionConfig.json file in the install directory and setting

"websocketsEnabled":"false"`

 

The location of this config file is:

For the .exe:

C:\Users\username\AppData\Local\atlassian-desktop-companion/app-version/resources/companionConfig.json

For the .msi:

C:\Program Files (x86)\Atlassian Companion/resources/companionConfig.json

For the .dmg:

/Applications/Atlassian Companion.app/Contents/Resources/companionConfig.json   




When the versions of Confluence supporting websockets reach End of Life, then we will disable the websocket server by default and eventually remove it entirely. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,780 views 8 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you