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
gcdump
ortrace
and have it egress to Azure Blob Storage as well as to the File System. I am also able to do the same fordump
if I specifytype=Full
. I am unable to collect adump
with any othertype
(i.e.WithHeap
) as it always end up with aFileNotFoundException
with a message in the operation log similar to:The
dumps
sub-folder gets created and a 0-byte file is created in the root of the/diag
folder. I can use the File System egress to exportgcdump
ortrace
files to the/diag
folder (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=Full
works just fine as well.I've tried every possible combination of configuring
securityContext
; at thespec
andcontainer
levels, settingfsGroup
, overridingrunAsUser
andrunAsGroup
but 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-slim
as it's base imageaspnet:8.0-bookworm-slim
APP_UID
user)8.0
,9.0
andlatest
securityContext
) 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