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ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ