Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
05-09-2022 05:02 AM - last edited on 05-09-2022 09:00 AM by Ryan.Paredez
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?
05-09-2022 01:13 PM
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
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form