Splunk AppDynamics

AppDynamics kubernetes cluster agent instrumentation

Sitikantha_Mish
New Member

We are using java instrumentation for our applications running on the Kubernetes cluster.

The applications are running with a normal user "appuser" , where appd agent is showing an error.

MultiTenantAgent Dynamic Service error - could not open Dynamic Service Log /opt/appdynamics-java/ver22.4.0.33722/logs/fixeddeposit-service-cb865796d-jp29w/argentoDynamicService_05-09-2022-05.10.44.log

     Running as user appuser

     Cannot write to parent folder /opt/appdynamics-java/ver22.4.0.33722/logs/fixeddeposit-service-cb865796d-jp29w

     Could NOT get owner for MultiTenantAgent Dynamic Services Folder

     Likely due to fact that owner (null) is not same user as the runtime user (appuser)

     which means you will need to give group write access using this command:  find external-services/argentoDynamicService  -type d -exec chmod g+w {}

     Possibly due to lack of permissions or file access to folder: Exists: false, CanRead: false, CanWrite: false

     Possibly due to lack of permissions or file access to log: Exists: false, CanRead: false, CanWrite: false

     Possibly due to java.security.Manager set - null

     Possibly due to missed agent-runtime-dir in Controller-XML and will need the property set to correct this...

     Call Stack: java.io.FileNotFoundException: /opt/appdynamics-java/ver22.4.0.33722/logs/fixeddeposit-service-cb865796d-jp29w/argentoDynamicService_05-09-2022-05.10.44.log (No such file or directory)

can anyone help me here?

Labels (1)
Tags (2)
0 Karma

Morelz
Builder

Hi Sitakantha

How have you added the java agent into the pods? Are you using the Cluster Agent Auto Deployment, or are you using a sidecar method or adding the agent in via the Dockerfile etc?

From the error it is clear the user that is running the java app process, does not have sufficient permissions to read/write to the Java Agent directory.

Please ensure to set the permissions to allow the user that the java app process runs as has the necessary rights to the java agent directories.

This should then resolve the problem.

Ciao

Get Updates on the Splunk Community!

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...