cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Nodejs Agent 20.4.0 Mongodb error.

Bilal.Tahseen
Creator

Hi,

I recently updated my AppDynamics package for nodejs from version 4.x.x to 20.4.0 and tested it out locally it works perfectly but when I created a docker image to deploy on my server it seems to not work.

 

The main issue I think is due to MongoDB. Can someone please take a look and tell me what the issue could be? 

 

I found a ticket "NODEJS-103" in the past resolved issue so anyone can explain this ticket in detail. I have provided a stack trace of my nodejs API.

 

stack trace

-----------------------------------------------

qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:15.99 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:15.992Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:17.06 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:17.064Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:17.06 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:17.067Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:23.33 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:23.333Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:23.33 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:23.335Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:23.61 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:23.618Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:23.61 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:23.619Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:25.13 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:25.136Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:25.13 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:25.138Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | Returning an existing Mongo instance
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:29.90 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:29.906Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:29.90 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:29.907Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:39.92 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:39.924Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:18:39.92 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:18:39.926Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | Returning an existing Mongo instance
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:19:0.33 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:19:00.330Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:19:0.33 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:19:00.332Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:19:1.62 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:19:01.626Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | 17.01.2022 10:19:1.62 | error | RestInterface | app.js | uncaughtException | uncaught exception
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | {"name":"RestInterface","hostname":"15e77919f4f4","pid":1,"level":50,"fs":"app.js","func":"uncaughtException","error":{},"stack":"TypeError: Cannot read property 'api' of undefined\n at Profiler.agent.profiler.addExitCall (/opt/app-root/node_modules/appdynamics/lib/libagent/libagent-connector.js:562:21)\n at MongodbProbe.addExitCall (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:364:14)\n at Instrumentation.<anonymous> (/opt/app-root/node_modules/appdynamics/lib/probes/mongodb-probe.js:120:14)\n at Instrumentation.emit (events.js:182:13)\n at MongoClient.on.event (/opt/app-root/node_modules/mongodb/lib/apm.js:18:60)\n at MongoClient.emit (events.js:182:13)\n at ReplSet.topology.on (/opt/app-root/node_modules/mongodb/lib/operations/connect.js:661:19)\n at ReplSet.emit (events.js:182:13)\n at ReplSet.<anonymous> (/opt/app-root/node_modules/mongodb/lib/topologies/replset.js:281:14)\n at ReplSet.emit (events.js:182:13)\n at Server.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Server.emit (events.js:182:13)\n at Pool.listener.on.event (/opt/app-root/node_modules/mongodb/lib/core/utils.js:34:71)\n at Pool.emit (events.js:182:13)\n at operation.cb (/opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:928:16)\n at /opt/app-root/node_modules/mongodb/lib/core/connection/pool.js:420:18\n at appd_proxy (/opt/app-root/node_modules/appdynamics/lib/core/appDProxy.js:431:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)","msg":"uncaught exception","time":"2022-01-17T10:19:01.628Z","v":0}
qa_recon_api_internal_api-internal.1.mspid2qxv9kz@adkqwk04 | Returning an existing Mongo instance

 

^ Edited by @Ryan.Paredez for formatting 

1 REPLY 1

Ryan.Paredez
Community Manager

Hi @Bilal.Tahseen,

 

Thanks for asking your question on the community. Sorry for the late reply, it seems your post got flagged by our spam filter. 

 

I went and checked out that JIRA ticket and it seems this issue was fixed in Agent version 20.6

 

You can see the release notes here - https://docs.appdynamics.com/20.x/en/release-notes/past-releases/past-resolved-and-known-issues-by-r...

 

 


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.