question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running multiple companion instances

See original GitHub issue

Hi Team,

Is it possible to run multiple instances of companion app that are related? We have companion deployed with our server which is highly available. When instance count > 1 provider oauth flow fails with companion: 2019-09-23T08:49:42.840Z [error] grant.oauth.error grant.js responded with error: error=Grant%3A%20missing%20session%20or%20misconfigured%20provider

Earlier I was getting a different error that was resolved after I added transport: 'session' to my custom providers.

From looking at the code extensively, I believe the redis integration only provides for storing update progress and not the session storage itself. Is it possible today to have companion running in high availability with shared session storage?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ifedapoolarewajucommented, Oct 12, 2019

@serverdevil when a companion instance receives the first request, it will redirect to the master domain for the oauth dance to be handled. After the Oauth dance is done, further requests are passed back to the instance that received the first request.

so long as you are setting the sendSelfEndpoint option per companion instance to it’s actual URL i.e https://instance1.server.com, and it is directly accessible via this URL, then companion will try to achieve this sticky session behaviour by itself.

1reaction
arturicommented, Sep 23, 2019

@ifedapoolarewaju could you help here please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I run 2 instances of Pro Presenter from one stream deck
How do I run 2 instances of Pro Presenter from one stream deck? I am having trouble getting the stream deck to control...
Read more >
Running multiple emulators? : r/BitfocusCompanion - Reddit
Hi, Curious if anyone has tried to run multiple instances of companion at once? Is it possible? I'd love to have an emulator...
Read more >
Running Stream Deck + Companion SIMULTANEOUSLY to ...
DJF Companion Profile v3.0 available here: https://davidjoshuaford.com/ companion /If you've ever tried to run Stream Deck software alongside ...
Read more >
Disguise Multi Transports with Companion - YouTube
In this quick tip we look at controlling Multi Transports in Disguise using Companion for the Streamdeck.Download Companion here: ...
Read more >
Multiple homes in the companion app
Hello I am running multiply HA instances in different location I run into a problem with the companion android SW. It couldn't able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found