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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...

Build resilience for the agentic era: Join us at Splunk Go San Jose

AI is changing how organizations build, operate, and secure digital services. As teams adopt AI agents and ...

Manage Edge Processor pipelines end to end with APIs

This guide uses the Data Management APIs to create an Edge Processor, onboard one instance, deploy a pipeline ...