Skip to content

Trouble Implementing Container Mode with Separate UI and Code Execution Service #437

@bsavocad

Description

@bsavocad

We’re trying to set up container mode for our application by splitting the UI into one container and the code execution service into another. However, we’re running into issues connecting the two containers.

What We’ve Tried:

1 Building the UI Container:

  • Successfully built the first container hosting the UI.
  • It works fine when running locally without separating the code execution service.

2 Creating the Code Execution Service Container:

  • Attempted to create a second container for the code execution service.
  • Having trouble getting the UI in the first container to communicate with this second container.

3 Editing environment.py:

  • Adjusted environment.py to point to the correct URL and ports for the code execution service.
  • Despite these changes, the connection between the UI and the code execution service still isn’t working.

Issues We’re Facing:

  • The UI can’t connect to the code execution service in the second container.
  • Getting errors about the UI not being able to communicate with the external service.
  • Attached logs and error messages for more context (see attached files).

We’re Looking For:

  • Guidance on how to properly configure both containers so the UI and code execution service can communicate.
  • Confirmation if we need to do anything else when modifying environment.py or other config files.
  • Suggestions or resources to help us fix this connection issue.
  • Guidance on how to manage the session_id-kernel_id.json in this case

thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions