Permission denied when exec file in lambda function layer

0

Hi guys

I'm using a java layer in the lambda function (https://github.com/shelfio/java-lambda-layer) that uses tika-python (https://github.com/chrismattmann/tika-python) to extract text (Python runtime 3.9, tika server standard 2.6) with setting
os.environ['TIKA_JAVA'] = '/opt/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.lambda2.0.1.x86_64/jre/bin'
and got this error

"errorMessage": "[Errno 13] Permission denied: '/opt/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.lambda2.0.1.x86_64/jre/bin'",
    "errorType": "PermissionError",

I have already tried to copy to the /tmp/ folder or chmod 775 before uploading to s3 but no luck How can I resolve this? Thank

sonvh
asked 7 months ago58 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions