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
02-28-2017 07:47 AM
Hi,
I get the error
2017-02-28T15:40:47.800889709Z Error opening zip file or JAR manifest missing : /path/to/agent/appdynamics/appserveragent/javaagent.jar 2017-02-28T15:40:47.801251415Z Error occurred during initialization of VM 2017-02-28T15:40:47.801278670Z agent library failed to init: instrument
if I am trying to start my Application from within a Docker container with
docker start appname
If I start the application without Docker everything works find, so the path is correct and the agent is working.
Can anyone help me?
Regards
Michael
Solved! Go to Solution.
02-28-2017 08:31 AM
Hi Michael,
Just to make sure, you have the java agent.jar present in the path that you are giving in the configuration, right?
Also have you tried doing ls /path to the file/jar with the same user id with which you start the application and see if its accessible?
Thanks.
02-28-2017 08:42 AM
Hi gurmit.arora,
of course the javaagent.jar is accesible and the folder it resides in and the file itself is owned by the user who executes it.
So if I run
/usr/bin/java -javaagent:/path/to/agent/javaagent.jar -jar /path/to/app/appname.jar
everything works fine as I said earlier.
But now with Docker:
If I build the Docker File everything is ok but if I start the container via
docker start appname
I get the error
Error opening zip file or JAR manifest missing : /path/to/agent/javaagent.jar Error occurred during initialization of VM agent library failed to init: instrument
My problem is, my Docker Knowhow is limited at the moment. It it possible, that the are some issues with the ownership of the agent if I start it with Docker, but unfortunately I have no idea what I have to change.
02-28-2017 10:25 AM
@michael.lossagkand @gurmit.arora I spoke with our product manager, and he wrote:
"I think the customer is trying to use APM with Alpine Linux. There may be issues with libc compatibility."
Can you let us know if you are using APM with Alpine Linux?
Cody
08-09-2017 06:42 PM
I have the same porblem. Have you resolved it?
09-26-2017 11:49 AM
Hi I face the same issue and it is resolved after changing the folder permission where the jar is present.
chmod -R o+x <folder where the jar is present>
12-13-2017 09:58 AM
Hi Michael,
Have you found a resolution to this? I have the same problem and i am sure i had set the permissions as expected. Any other ideas? I am running on CentOS with OpenJDK 1.8
Thanks
Yalkin
12-13-2017 11:44 PM
I simply forgot to mount the folder into docker respectively the mounted folder was wrong, thats it
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form