-
Notifications
You must be signed in to change notification settings - Fork 113
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
container keep restarting with dotnetmonitor side car and DOTNET_DiagnosticPorts configured #2017
Comments
This appears to be the same issue in #1958 that you logged a few weeks ago. I would ask that you still provide the same information that I asked for in that issue:
|
@jander-msft thanks for the response.
I checked today, we do see some logs with error: |
This is likely the same issue as #1827. In your case, what's likely happening is that when you've updated or redeployed the StatefulSet, it had a stale Unix domain socket file at the same path that you are specifying for the diagnostic port. So dotnet-monitor fails to establish its server there and the target applications fail to communicate at that path and remain stuck in the "The runtime has been configured to pause during startup and is awaiting a Diagnostics IPC ResumeStartup command from a Diagnostic Port." We have a fix (#2164) where we will enable deleting the Unix domain socket at startup before the server attempts to create a new socket file at the path. We hope to have this fix rolled out in the next dotnet-monitor update and automatically enabled in the dotnet-monitor images. |
The "Address is use" issue should be fixed in the dotnet-monitor images that were released today: 6.2.2 and 7.0.0 Preview 7. |
Description
We have a statefulset that configured with dotnetmonitor as sidecar, but after running for a few days, some container keeps restarting because of below error:
The runtime has been configured to pause during startup and is awaiting a Diagnostics IPC ResumeStartup command from a Diagnostic Port.
DOTNET_DiagnosticPorts="/diag/port"
DOTNET_DefaultDiagnosticPortSuspend=0
Configuration
Our statefulset is running in AKS, and dotnetmonitor is added as sidecar, environment variable DOTNET_DiagnosticPorts is set, DOTNET_DefaultDiagnosticPortSuspend is not set and it will get default value 0 per the dotnetmonitor document.
Regression?
In the same statefulset, most of the pods are running fine, this only happens to a few pods.
Other information
The text was updated successfully, but these errors were encountered: