-
Notifications
You must be signed in to change notification settings - Fork 55
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
Comments
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. |
Hi @SteveCurran, Are you running on an AKS cluster? Arc cluster? |
@qpetraroia I am running a local k3s cluster. |
@SteveCurran Is this still happening ? Please let me know. Thanks. |
@hsubramanianaks I was setting the environment variable URLS in the deployment yaml. |
@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 :) |
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
The text was updated successfully, but these errors were encountered: