Skip to content

How does the Composer pick up the port to use for the bot host? #8450

Open

Description

Confusion about the Port usage behavior

Would you please help clarify how we can ensure the port usage?

Setup
e.g., we have two bots and intended to setup the ports in the appsettings.json as seen below,

  • Root bot (Orchestrator.csproj) to use Port 3981
  • Skill Bot (XxxComposerSkill.csproj) to use Port 3982

image

Symptom

  • After launching the bots, I saw the port 3981 is used for Orchestrator bot as expected, however, 3980 is used for XxxComposerSkill.csproj, which is a port I did not specify.
  • Not always, sometimes the Composer itself do the changes for me (change the "3982" to "3980" in the appsettings.json) after I launch the bot, as seen below.
    image

Workaround Attempted

  • When this happens, the test from web chat failed due to communication failures between bots, and I have to reboot the composer several times to get things back to work, but it's not clear to me yet what happened and what makes it recovered.
  • Updates: I think if I launch the Skill project first and then the Root bot, the ports would be updated automatically and things started working. Is this a documented requirement around how user should launch the bots?

image

Other Context

A side note is that I observed the Composer seems randomly change the appsettings.json to different port number, I'm still in the progress of getting a clear and consistant repro, which I can provide more details later.

Version

2.0

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    BacklogBacklog items - not in current milestoneType: BugSomething isn't workingcustomer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions