Splunk AppDynamics

NodeJS Appdynamics initialization error

pothuraju_chebe
New Member

I'm using nodejs appdynamics agent, when deployed in AWS EC2 Container application is not up because of this error.

Even in local when tried to run this, I'm stuck with same error. Please help!

docker container run <<DOCKERIMAGE>>

TypeError: Cannot read property 'logError' of undefined
at LibagentConnector.logError (/usr/src/app/node_modules/appdynamics/lib/libagent/libagent-connector.js:367:17)
at Logger.error (/usr/src/app/node_modules/appdynamics/lib/core/logger.js:167:28)
at Agent.init (/usr/src/app/node_modules/appdynamics/lib/core/agent.js:319:17)
at AppDynamics.self.(anonymous function) [as profile] (/usr/src/app/node_modules/appdynamics/lib/core/agent.js:610:26)

Labels (1)
0 Karma

Piyush_Mundra
Communicator

Hi Pothuraju,

This issue comes up when the Node version for which the agent was installed differs in the environments. The Node agent has some native dependencies so I suggest installing the agent in the docker container rather than pushing the agent files with the project files. This will ensure the correct agent dependency files would be installed in the docker environment.

Best Regards,

Piyush

Get Updates on the Splunk Community!

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

What’s New in Splunk Enterprise 9.4: Tools for Digital ResilienceTune in to What’s New in Splunk Enterprise ...

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...