Splunk AppDynamics

Error opening zip file or JAR manifest missing

CommunityUser
Splunk Employee
Splunk Employee

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

Labels (1)
0 Karma
2 Solutions

CommunityUser
Splunk Employee
Splunk Employee

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>

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I simply forgot to mount the folder into docker respectively the mounted folder was wrong, thats it

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I simply forgot to mount the folder into docker respectively the mounted folder was wrong, thats it

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I have the same porblem. Have you resolved it?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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>

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

@Anonymousand @Anonymous 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

0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco &#43; Splunk! We’ve ...