vscode-coder icon indicating copy to clipboard operation
vscode-coder copied to clipboard

bug: VSCode desktop failing with multiple agents

Open stirby opened this issue 2 years ago • 3 comments

VSCode Desktop Integration Fails with Multi-Agent Docker Workspace

Problem Description

When deploying a Docker workspace with two agents using our example Terraform templates, the VSCode Desktop integration is experiencing issues. Although all the necessary resources such as docker_volume, docker_container, and coder_agent have been correctly doubled, the VSCode Desktop extension fails to connect.

Error Message

The error message displayed in VSCode Desktop is: "Error: Invalid Coder SSH authority. Agent not found!"

double-container-error

Dashboard Health

The dashboard indicates that all components are healthy:

double-container-dashboard

Steps to Reproduce

Double all required resources from the example Terraform template. Deploy the Docker workspace. Open the VSCode Desktop extension.

Expected Behavior

The VSCode Desktop extension should successfully connect to both agents in the Docker workspace.

Actual Behavior

The VSCode Desktop extension is unable to find the agents and shows an error message regarding invalid SSH authority.

Template Link

stirby avatar Aug 25 '23 21:08 stirby

While trying to reproduce this. I created a template with 6 agents, and I can connect if I press ok on the error, but interestingly, it always connects to the first agent shown on the workspace page.

matifali avatar Nov 28 '23 08:11 matifali

I think this might be fixed now. At least, it should ask which agent to connect.

code-asher avatar Jul 03 '24 21:07 code-asher