Splunk AppDynamics

.Net core alpine linux image throwing Microsoft.AspNetCore.Server.Kestrel (System.AggregateException)

Sham_Sharma
New Member

Hi Team, 

We are using appd .net core Linux alpine image 20.7.0 image for our .net core 3.1 application and trying to deploy appdynamics with it. 

For .net applications that are using kestrel service are giving exception when Appd agent is getting started. 

Unhandled exception while processing 0HM4SAP0EPM6O.

Category Name: Microsoft.AspNetCore.Server.Kestrel

Stack Trace

System.AggregateException:

   at Microsoft.Extensions.Logging.Logger.ThrowLoggingError (Microsoft.Extensions.Logging, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.Extensions.Logging.Logger.Log (Microsoft.Extensions.Logging, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelTrace.Log (Microsoft.AspNetCore.Server.Kestrel.Core, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.Extensions.Logging.LoggerExtensions.Log (Microsoft.Extensions.Logging.Abstractions, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.Extensions.Logging.LoggerExtensions.LogCritical (Microsoft.Extensions.Logging.Abstractions, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection+<ProcessRequestsAsync>d__12`1.MoveNext (Microsoft.AspNetCore.Server.Kestrel.Core, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.ConnectionLimitMiddleware+<OnConnectionAsync>d__5.MoveNext (Microsoft.AspNetCore.Server.Kestrel.Core, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection+<ExecuteAsync>d__32.MoveNext (Microsoft.AspNetCore.Server.Kestrel.Core, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

Inner exception System.InvalidProgramException handled at Microsoft.Extensions.Logging.Logger.ThrowLoggingError:

   at HoneywellEOM.ModelRegistry.Utils.LoggerScopeLogger.Log (HoneywellEOM.ModelRegistry.Util, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)

   at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|12_0 (Microsoft.Extensions.Logging, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

we have also raised a ticket with AppD support: https://help.appdynamics.com/hc/en-us/requests/264921?page=1  

AppD dot net configs we are using 

ASPNETCORE_URLS: "http://*:5000"
CORECLR_ENABLE_PROFILING: "1"
CORECLR_PROFILER: "{57e1aa68-2229-41aa-9931-a6e93bbc64d8}"
CORECLR_PROFILER_PATH: "/opt/appdynamics/dotnet/libappdprofiler.so"
LD_LIBRARY_PATH: "/opt/appdynamics/dotnet"

@Anonymous can you help?

^ Edited by @Ryan.Paredez for readability and removing an email address. Please do not share your or others email addresses in community posts for security and privacy reasons

Labels (1)
Tags (2)
0 Karma

Sham_Sharma
New Member

@Anonymous  I read your blog on dot net core AppD, a good read !! Could you help us out here or someone from your team? 
I have raised a ticket as well or this https://help.appdynamics.com/hc/en-us/requests/264921?page=1  

@Anonymous - Kindly help 

0 Karma

iamryan
Community Manager
Community Manager

Hi @Sham.Sharma,

Since you have created a support ticket, please work with the support team on this issue. Can you please share the learnings and outcomes from the support ticket back on this post, please. This community is all about knowledge sharing. What you learn can help the next person.

0 Karma
Get Updates on the Splunk Community!

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...