# Error opening zip file or JAR manifest missing : /opt/build/workspace/elastic-apm-agent-1.38.0.jar

**URL:** <https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-opt-build-workspace-elastic-apm-agent-1-38-0-jar/334276>\
**Category:** APM\
**Tags:** docker, agent-explorer\
**Created:** [May 25, 2023, 5:59am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-opt-build-workspace-elastic-apm-agent-1-38-0-jar/334276 "2023-05-25T05:59:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nupur\_srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nupur_srivastava/32/121414_2.png) [@nupur\_srivastava](https://discuss.elastic.co/u/nupur_srivastava)\
**Post date:** [May 25, 2023, 5:59am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-opt-build-workspace-elastic-apm-agent-1-38-0-jar/334276/1 "2023-05-25T05:59:41Z")

</div>

Hi,  
We have multiple microservices running on docker, I have installed Elastic APM -Java "elastic-apm-agent-1.38.0.jar" into my project directory /opt/build/workspace/ and run the same with changes made in docker file but getting below error:

Error opening zip file or JAR manifest missing : /opt/build/workspace//elastic-apm-agent-1.38.0.jar  
Error occurred during initialization of VM  
agent library failed to init: instrument

Permission :  
-rw-rw-r-- 1 ubuntu ubuntu

---

<div class="post-metadata">

**Author:** ![Jack\_Shirazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_shirazi/32/91641_2.png) [@Jack\_Shirazi](https://discuss.elastic.co/u/Jack_Shirazi)\
**Post date:** [May 25, 2023, 12:29pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-opt-build-workspace-elastic-apm-agent-1-38-0-jar/334276/2 "2023-05-25T12:29:24Z")

</div>

The error is saying the jar is not at that path. Maybe it failed to copy in? I notice the '//' in the path, usually that shouldn't matter but maybe change that too

---

<div class="post-metadata">

**Author:** ![nupur\_srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nupur_srivastava/32/121414_2.png) [@nupur\_srivastava](https://discuss.elastic.co/u/nupur_srivastava)\
**Post date:** [May 26, 2023, 6:05am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-opt-build-workspace-elastic-apm-agent-1-38-0-jar/334276/3 "2023-05-26T06:05:01Z")

</div>

Hi have jar file in the mentioned path /opt/build/workspace/auth-service-apm/elastic-apm-agent-1.38.0.jar

getting error:  
Error opening zip file or JAR manifest missing : /opt/build/workspace/auth-service-apm/elastic-apm-agent-1.38.0.jar  
Error occurred during initialization of VM  
agent library failed to init: instrument

---

<div class="post-metadata">

**Author:** ![Jack\_Shirazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_shirazi/32/91641_2.png) [@Jack\_Shirazi](https://discuss.elastic.co/u/Jack_Shirazi)\
**Post date:** [May 26, 2023, 1:36pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-opt-build-workspace-elastic-apm-agent-1-38-0-jar/334276/4 "2023-05-26T13:36:28Z")

</div>

I suggest you do an ls -l of that path in the docker command just before then doing the java command

---

<div class="post-metadata">

**Author:** ![nupur\_srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nupur_srivastava/32/121414_2.png) [@nupur\_srivastava](https://discuss.elastic.co/u/nupur_srivastava)\
**Post date:** [May 29, 2023, 5:28am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-opt-build-workspace-elastic-apm-agent-1-38-0-jar/334276/5 "2023-05-29T05:28:43Z")

</div>

Still same error.  
Error opening zip file or JAR manifest missing

---

<div class="post-metadata">

**Author:** ![nupur\_srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nupur_srivastava/32/121414_2.png) [@nupur\_srivastava](https://discuss.elastic.co/u/nupur_srivastava)\
**Post date:** [May 31, 2023, 7:18am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-opt-build-workspace-elastic-apm-agent-1-38-0-jar/334276/6 "2023-05-31T07:18:15Z")

</div>

It worked, issue is with dockerfile I forgot to add "-jar" text into entrypoint

Thanks @Jack_Shirazi

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 28, 2023, 7:19am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-opt-build-workspace-elastic-apm-agent-1-38-0-jar/334276/7 "2023-06-28T07:19:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
