-
Notifications
You must be signed in to change notification settings - Fork 272
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
Azure Deployment - Repeated Grpc.Core.RpcException: Status(StatusCode="XXX", Detail="Error connecting to subchannel.", "System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions" #2970
Comments
gRPC connection errors are generally not expected unless one of either the host process (which I think you're referring to as the sidecar) or the worker process crashes. Can you check to see if the Azure Functions host process might be recycling? |
Thanks Chris! I'm not entirely sure how to check if the host process is recycling? It might make sense that the host process is dying, as once it starts throwing the errors, the only way to clear them is to restart the functions app. So my retry work around probably wouldn't work... |
@nytian mentioned a similar case to me yesterday. We suspect that this kind of problem might happen if the host process recycles and the worker process doesn't, in which case the host process starts listening on a different port than what the worker process is expecting. I was able to find your app using the information you provided (thanks!) and while it's not easy for me to know whether there's a host restart (I can see host starting, but not necessarily stopping), I do see a couple of cases where there was at least two host startup events on the same VM within a 10 minute window.
They didn't quite match up with the timestamp you provided, however, so I'm not sure if these are related. By the way, are you running on the Consumption plan? It seems like your app is changing VMs pretty regularly. If you haven't done so already, it might be worth opening an Azure Support request so that we can get more experts looking into this. |
@cgillum - thanks for taking the time to look into all of this.
|
cross ref: microsoft/durabletask-dotnet#353 |
Description
We get repeated intermittent GRPC RpcExceptions in our deployed durable functions app, seemingly when it's trying to connect to the side car?
Expected behavior
A retry, or a reliable GRPC connection to the sidecar
Actual behavior
Randomly fails
Relevant source code snippets
Known workarounds
I think I'd basically need to create a custom
DurableTaskClient
that proxied all the calls wrapped in retry logic?App Details
Screenshots
None
If deployed to Azure
The text was updated successfully, but these errors were encountered: