Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevAgent ReversePortForwardManger Remote Connection Closed error #23

Closed
SteveCurran opened this issue Aug 20, 2022 · 6 comments
Closed
Assignees
Labels
bug Something isn't working investigation needed Investigation is needed before a proper triage can be done

Comments

@SteveCurran
Copy link

I am running latest extension from vscode with local k3s using ubuntu 20.04. Everything works when debugging a non-edge (front end) container. However, when trying to debug a edge (front end) container it never hits the break point. Looking at the devagent logs I see the websocket is created, then immediately, the "remote connection closed". The restoration agent container continues to fail after 12 unsuccessful ping attempts (connection refused) to the devagent container. After stopping the debug session the restoration job never executes because of the connection problem. The only difference between the edge container and non-edge container is the edge container is using aspnetcore kestrel. I thought maybe this was related to running behind a reverse proxy so I set the allowedhosts setting to localhost, but no luck.
bridge-library.txt
bridge-restoration-job.log

@SteveCurran
Copy link
Author

SteveCurran commented Aug 23, 2022

It appears that btk has trouble with containers running aspnet core kestrel and with the URLS host configuration environment variable set. Setting this appears to lock down the container from receiving any connection from a port other than what is set in the URLS environment variable. Switching to ASPNETCORE_URLS fixes the issue. Having both present still breaks btk.

dotnet/AspNetCore.Docs#25626

@qpetraroia
Copy link
Collaborator

Hi @SteveCurran,

Are you running on an AKS cluster? Arc cluster?

@qpetraroia qpetraroia added the bug Something isn't working label Aug 25, 2022
@SteveCurran
Copy link
Author

@qpetraroia I am running a local k3s cluster.

@elenavillamil elenavillamil added the investigation needed Investigation is needed before a proper triage can be done label Oct 4, 2022
@hsubramanianaks
Copy link
Collaborator

@SteveCurran Is this still happening ? Please let me know. Thanks.

@SteveCurran
Copy link
Author

@hsubramanianaks I was setting the environment variable URLS in the deployment yaml.

@elenavillamil
Copy link
Contributor

@SteveCurran , correct since having those will lock container ports other than specified in the URL. This means b2k controller running on your local machine wont be able to communicate with devhostagent (b2k client on the cluster) because this communication happens on port 50052.

Glad there is a workaround :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigation needed Investigation is needed before a proper triage can be done
Projects
Development

No branches or pull requests

4 participants