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회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠