Compatibility of apm server and apm agent version

After I updated apm agent 1.6.1 to 1.11.1, starting the service, an unexpected error occurred when executing the interface.

According to the documentation, if server ≥ 6.5 should be able to support most agents, but now the error "Method not found" appears.

The agent rolls back to 1.6.1 and everything is normal.

apm server:7.12.0
kibana:7.12.0
.net core code

2021-10-25 14:59:40 ERROR 2fd502db4c1e184eb7eafee028d2c2b1 dea4ad13f269d949 Method not found: 'Void Elastic.Apm.Api.IExecutionSegment.CaptureException(System.Exception, System.String, Boolean, System.String)'.
System.MissingMethodException: Method not found: 'Void Elastic.Apm.Api.IExecutionSegment.CaptureException(System.Exception, System.String, Boolean, System.String)'.
at Lonsid.APM.LonsidExceptionFilter.<>c__DisplayClass1_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location where exception was thrown ---
at Lonsid.APM.LonsidExceptionFilter.HandleAndWrapException(ExceptionContext context)
at Lonsid.APM.LonsidExceptionFilter.OnExceptionAsync(ExceptionContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2021-10-25 14:59:41 ERROR An unhandled exception has occurred while executing the request.
System.MissingMethodException: Method not found: 'Void Elastic.Apm.Api.IExecutionSegment.CaptureException(System.Exception, System.String, Boolean, System.String)'.
at Lonsid.APM.ExceptionEventHandler.HandleEvent(AbpHandledExceptionData eventData)
--- End of stack trace from previous location where exception was thrown ---
at Abp.Events.Bus.EventBus.Trigger(Type eventType, Object eventSource, IEventData eventData)
at Abp.Events.Bus.EventBus.Trigger[TEventData](Object eventSource, TEventData eventData)

This problem has been resolved. The apm agent package version of one of our underlying frameworks is too low, which is related to the package dependency version.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.