Runtime.ExitError: Cannot create directory ‘/var/task/var’: Read-only file system
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với entry point /var/task/bootstrap và ví dụ hello_world_lambda.ex, sau đó thực hiện lại lệnh aws lambda invoke trong khi xem xét các lệnh khởi động được ghi log. Theo dõi bước khởi động nào cố gắng tạo /var/task/var; hoàn thành có nghĩa là runtime có thể được gọi mà không gặp lỗi hệ thống tệp chỉ đọc và hàm đi đến đường dẫn phản hồi bình thường.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I've deployed this to Lambda, but I get an error when invoking the function.
It looks like the issue is mkdir. How can I change the path.
CloudWatch
START RequestId: aa29cf83-7b5f-47a4-947d-4f3db5fdf179 Version: $LATEST
++ dirname /var/task/bootstrap
+ BASE=/var/task
+ EXE=/var/task/bin/hello_world_lambda
+ 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_lambda foreground
mkdir: cannot create directory ‘/var/task/var’: Read-only file system
END RequestId: aa29cf83-7b5f-47a4-947d-4f3db5fdf179
REPORT RequestId: aa29cf83-7b5f-47a4-947d-4f3db5fdf179 Duration: 315.32 ms Billed Duration: 400 ms Memory Size: 128 MB Max Memory Used: 13 MB
RequestId: aa29cf83-7b5f-47a4-947d-4f3db5fdf179 Error: Runtime exited with error: exit status 1
Runtime.ExitError
Invoking from CLI
aws lambda invoke \
--function-name HelloWorld \
--region eu-north-1 \
--log-type Tail \
--payload '{"msg": "a fake request"}' \
outputfile.txt
output.txt
> cat outputfile.txt
{"errorType":"Runtime.ExitError","errorMessage":"RequestId: 403e99d9-896d-4541-a913-0c45ac7debac Error: Runtime exited with error: exit status 1"}%
hello_world_lambda.ex
defmodule HelloWorldLambda do
@moduledoc """
Documentation for HelloWorldLambda.
"""
@doc """
Hello world.
## Examples
iex> HelloWorldLambda.hello()
:world
"""
def hello(request, context) do
"""
Hello World!
Request: #{Kernel.inspect(request)}
Context: #{Kernel.inspect(context)}
"""
|> IO.puts()
:ok
end
end
- Ngôn ngữ chính
- Elixir
- Star
- 129
- Fork
- 31
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws-samples/aws-lambda-elixir-runtime
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
-
missing dependencies Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
cannot execute binary file Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
aws-samples/aws-lambda-elixir-runtime#11 · 1 bình luận ·
Tất cả issue của aws-samples/aws-lambda-elixir-runtime
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
carverauto/serviceradar#4596 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
agentjido/jido_harness#80 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
sevenseacat/cinder#235 ·