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!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...