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
已提问 7 个月前68 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则