Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

EndpointManager launch process fail #418

Closed
ghostcoach opened this issue Dec 18, 2020 · 11 comments
Closed

EndpointManager launch process fail #418

ghostcoach opened this issue Dec 18, 2020 · 11 comments

Comments

@ghostcoach
Copy link

ghostcoach commented Dec 18, 2020

When migrating to Bridge to kubernetes from Dev Spaces the elevation process fails for me. After accepting the elevated privileges I get the error "The EndpointManager launch process has exited". As far as I can see no logs (logs are enabled) for bridge to kubernetes are produced in my Temp folder.

Do I need to configure my client in any additional way to support endpoint manager?

bild
bild

I am running Visual Studio as an administrator.

Visual Studio Version: 16.8.3
Bridge to kubernete extension version: 2.0.20201216.1

Kubernetes version:
Client: 1.19.3
Server: 1.19.3

@daniv-msft
Copy link
Collaborator

Thank you for logging this issue and sorry you encounter it.
This looks like a bug on our side, and we would need more logs to investigate further.

Could you please provide the latest logs present in %TEMP%/Bridge to Kubernetes?
I'm especially interested by the latest bridge-endpointmanager-* and the bridge-library-* logs that should contain more information.
These logs might contain personally identifiable information, so if you don't feel comfortable attaching them to this GitHub issue, please don't hesitate to send them by email directly to BridgeToKubernetes@microsoft.com.

Also, I see that we're trying to stop the World Wide Web Publishing Service in your case. In the past, we encountered an issue related to this (#401). This issue was now fixed for a long time, but in case we had a regression, could you please try to stop this service manually (from the Services app on Windows) and retry Bridge?

@ghostcoach
Copy link
Author

ghostcoach commented Dec 19, 2020

Thanks for your reply. I stopped World Wide Web Publishing Service manually with the result that VS no longer tries to stop it. Unfortunately, the problem still persist.

I am attaching the logs from my latest try.

[Logs removed]

@daniv-msft
Copy link
Collaborator

Thanks @ghostcoach for your reply and sharing these logs.
I confirm we get an exception when starting the EndpointManager. The exception happens when we instantiate a new System.Net.Sockets.Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified) and we get a SocketException: An address incompatible with the requested protocol was used..
Please note that even though we're mentioning a Unix socket here, this code will work on Windows as .NET Core support Unix Domain Sockets.

We need to investigate this issue further and will get back to you once we understand better what's happening.
Adding @amsoedal for FYI.

@amsoedal
Copy link
Collaborator

Hi @ghostcoach, thanks for reporting this issue! I'm not able to repro this issue myself, but I'm wondering if it could be due to any socket or IP configurations on your side. Would you be open to trying a winsock reset as described here? If that doesn't fix it, my second guess would be to try running ipconfig /release && ipconfig /renew. Let me know how it works for you!

@ghostcoach
Copy link
Author

ghostcoach commented Dec 28, 2020

Thanks for taking the time @amsoedal to try to reproduce my issue. Winsock reset or ipconfig did not solve the issue.

In order to try a more clean scenario I reinstalled Windows on my client and reinstalled all programs and sdks. Then I followed this guide so I could try with a new service in a new k8s-cluster. I also turned off Windows Firewall. Unfortunately I still get the error about Endpoint manager.

Is there any other configuration or setting for my client I can look at?

Visual Studio: 16.8.3
Bridge to Kubernetes Extension: 2.0.20201216.1
Azure CLI: 2.16.0

[Logs removed]

@amsoedal
Copy link
Collaborator

Hi @ghostcoach, thanks for giving that a try & sorry it didn't unblock you! Can you tell me more about your system -- when you say you reinstalled Windows on your client, are you running a VM? What OS version are you running?

@ghostcoach
Copy link
Author

@amsoedal, when I say reinstalled Windows I mean reinstalled my computer. My system information are:

image

@amsoedal
Copy link
Collaborator

Thanks for providing those details @ghostcoach! I've reached out to the dotnetcore team to see if they can help as well, although I'm expecting a delayed response due to the holidays. I'll try to keep this thread updated as soon as I hear back from them.

@amsoedal
Copy link
Collaborator

amsoedal commented Jan 7, 2021

Thanks for the patience @ghostcoach. It turns out the Unix Domain Sockets we're using for IPC are only supported on Windows 10 version 1803 (10.0.17134) and onwards. I believe upgrading your Windows version should fix the issue!

@ghostcoach
Copy link
Author

I can happily confirm @amsoedal that updating Windows 10 to a newer version solved to problem for me!
Thanks a lot for your troubleshooting and the coordination with the dotnetcore team. This really makes a difference for me and my development team.

@amsoedal
Copy link
Collaborator

amsoedal commented Jan 8, 2021

I'm happy to hear it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants