Permission denied error
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
Research direction
Reproduce the failure from the terminal or the AWS Lambda TEST button, then inspect the runtime entry point at bootstrap and the packaged /var/task/bin/hello_world path. Compare the generated package with the project instructions and verify the invocation no longer ends with permission denied or exit status 126.
Written by the indexing model from the issue text.
Description
Hi,
I followed the instructions, got everything added to a lambda function, however when I call it from the terminal I get:
{
"StatusCode": 200,
"FunctionError": "Unhandled",
"LogResult": "U1RBUlQgUmVxdWVzdE...",
"ExecutedVersion": "$LATEST"
}
Or directly via the "TEST" button in AWS Lambda, I get the error message:
`START RequestId: a46f2842-4561-46aa-8b81-a5284bcdc0ed Version: $LATEST
dirname /var/task/bootstrap
BASE=/var/task
EXE=/var/task/bin/hello_world
HOME=/tmp
export HOME
export RELEASE_READ_ONLY=true
RELEASE_READ_ONLY=true
export LD_LIBRARY_PATH=/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib:/var/task/lib/elixir_runtime-0.1.0/priv LD_LIBRARY_PATH=/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib:/var/task/lib/elixir_runtime-0.1.0/priv
/var/task/bin/hello_world foreground
/var/task/bootstrap: line 16: /var/task/bin/hello_world: Permission denied
END RequestId: a46f2842-4561-46aa-8b81-a5284bcdc0ed
REPORT RequestId: a46f2842-4561-46aa-8b81-a5284bcdc0ed Duration: 84.94 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 6 MB
RequestId: a46f2842-4561-46aa-8b81-a5284bcdc0ed Error: Runtime exited with error: exit status 126
Runtime.ExitError`
(emphasis mine)
Any idea what I'm doing wrong?
- Dominant language
- Elixir
- Stars
- 129
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws-samples/aws-lambda-elixir-runtime
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
missing dependencies Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
aws-samples/aws-lambda-elixir-runtime#11 · 1 comment ·
All issues in aws-samples/aws-lambda-elixir-runtime
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
phoenixframework/phoenix#6847 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
moderation
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
beyond-all-reason/teiserver#1584 · 1 comment ·