Unable to CollectDump where Type != Full in Kubernetes #7645
Unanswered
pinkfloydx33 asked this question in Q&A
Replies: 0 comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've got dotnet-monitor configured as a side car container running in Azure Kubernetes. Using the API I am able to successfully take a
gcdumportraceand have it egress to Azure Blob Storage as well as to the File System. I am also able to do the same fordumpif I specifytype=Full. I am unable to collect adumpwith any othertype(i.e.WithHeap) as it always end up with aFileNotFoundExceptionwith a message in the operation log similar to:The
dumpssub-folder gets created and a 0-byte file is created in the root of the/diagfolder. I can use the File System egress to exportgcdumportracefiles to the/diagfolder (or its sub-folders) so I don't see how it can necessarily be a permissions error (which is the only thing I've found in the documentation and in issues/discussions), plusType=Fullworks just fine as well.I've tried every possible combination of configuring
securityContext; at thespecandcontainerlevels, settingfsGroup, overridingrunAsUserandrunAsGroupbut nothing works. I always end up with the same failure.Interestingly, I seem to have a similar problem as #6991. If I run the configuration as specified in #6991 (comment) then I can take a
dump. However once I replace it with my application image it is no longer possible. Unlike #6991, I'm not running DataDog or anything like it.For what it's worth:
runtime-deps:8.0-bookworm-slimas it's base imageaspnet:8.0-bookworm-slimAPP_UIDuser)8.0,9.0andlatestsecurityContext) on both containersDoes anyone have any ideas on what might be causing this, or something I can look into further?
Beta Was this translation helpful? Give feedback.
All reactions