[AWS Lambda java Agent] Tool agent requires sharing to be disabled

Kibana version:
7.16.3

Elasticsearch version:
7.16.3

APM Server version:
7.16.3

APM Agent language and version:
elastic-apm-java-aws-lambda-layer-1.28.4.zip

Original install method:

Steps to reproduce:

  1. Create a AWS Lambda with sample handler and version: java8.al2
  2. Instrument this lambda with install method above and put these env vars:
AWS_LAMBDA_EXEC_WRAPPER: /opt/elastic-apm-handler
ELASTIC_APM_APPLICATION_PACKAGES: ttt,fff
ELASTIC_APM_ENVIRONMENT: tst
ELASTIC_APM_LAMBDA_APM_SERVER: https://XXXXXXXX.apm.us-east-1.aws.cloud.es.io:443
ELASTIC_APM_LOG_LEVEL: TRACE
ELASTIC_APM_SECRET_TOKEN: XXXXXXXXXXXX
  1. Install elastic-apm-java-aws-lambda-layer-1.28.4.zip as a lambda layer with runtime java8.al2 and x86_64

  2. Configure your lambda to use this layer

  3. Execute this lambda from console AWS "Test Button"

Log/Output Cloudwatch:

START RequestId: 8f939239-aa2a-4605-bdc6-0ffc7221811f Version: $LATEST
Picked up JAVA_TOOL_OPTIONS: -javaagent:/opt/elastic-apm-agent-1.28.4.jar
2022-01-28T13:56:07.450-03:00	An error has occurred while processing the shared archive file.
2022-01-28T13:56:07.450-03:00	Tool agent requires sharing to be disabled.
2022-01-28T13:56:07.450-03:00	Error occurred during initialization of VM
2022-01-28T13:56:07.450-03:00	Unable to use shared archive.
END RequestId: 8f939239-aa2a-4605-bdc6-0ffc7221811f

Hi @miltonhit ,

thank you for reporting this bug!

We investigated this and started a PR to fix this behavior.
Please, follow this PR for status updates on this issue.

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