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
feita há 7 meses68 visualizações
Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas