Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

cannot execute binary file

未关闭
#11 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
aws, docker, elixir
领域
cloud

调研方向

从报告的 Elixir.Playground:playground_handler 调用开始,并在 SAM 模拟容器中使用 lambda.zip 重现它。阅读 bootstrap、bin/playground,以及所引用的 erts-13.0.4/bin/erl 和 erlexec 路径。当提供的示例能够在没有“cannot execute binary file”错误的情况下启动,并且可以在报告的运行时中运行时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Does anyone has a running example?

Invoking Elixir.Playground:playground_handler (provided)
Decompressing /Users/ben/development/github.com/benkeil/elixir_lambda/lambda.zip
Skip pulling image and use local one: public.ecr.aws/sam/emulation-provided:rapid-1.55.0-x86_64.

Mounting /private/var/folders/mv/ntn0l4dx77d5hhqtwgmcrg0h0000gn/T/tmpskuus7j6 as /var/task:ro,delegated inside runtime container
START RequestId: 9216089f-f446-4509-a326-07f73253b4be Version: $LATEST
++ dirname /var/task/bootstrap
+ BASE=/var/task
+ EXE=/var/task/bin/playground
+ HOME=/tmp
+ export HOME
+ export RELEASE_READ_ONLY=true
+ RELEASE_READ_ONLY=true
+ export LD_LIBRARY_PATH=/var/lang/lib:/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=/var/lang/lib:/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/playground start
/var/task/releases/0.1.0/../../erts-13.0.4/bin/erl: line 12: /var/task/erts-13.0.4/bin/erlexec: cannot execute binary file
/var/task/releases/0.1.0/../../erts-13.0.4/bin/erl: line 12: /var/task/erts-13.0.4/bin/erlexec: Success
10 Sep 2022 22:00:38,419 [ERROR] (rapid) Init failed error=Runtime exited with error: exit status 126 InvokeID=
++ dirname /var/task/bootstrap
+ BASE=/var/task
+ EXE=/var/task/bin/playground
+ HOME=/tmp
+ export HOME
+ export RELEASE_READ_ONLY=true
+ RELEASE_READ_ONLY=true
+ export LD_LIBRARY_PATH=/var/lang/lib:/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=/var/lang/lib:/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/playground start
/var/task/releases/0.1.0/../../erts-13.0.4/bin/erl: line 12: /var/task/erts-13.0.4/bin/erlexec: cannot execute binary file
/var/task/releases/0.1.0/../../erts-13.0.4/bin/erl: line 12: /var/task/erts-13.0.4/bin/erlexec: Success
END RequestId: 094fd9fe-e205-4ad9-9751-fb087d2098f5
REPORT RequestId: 094fd9fe-e205-4ad9-9751-fb087d2098f5	Init Duration: 1.05 ms	Duration: 1271.60 ms	Billed Duration: 1272 ms	Memory Size: 256 MB	Max Memory Used: 256 MB
主要语言
Elixir
星标
129
派生
31
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws-samples/aws-lambda-elixir-runtime 的其他 Issue

查看 aws-samples/aws-lambda-elixir-runtime 的全部 Issue

相似的 Issue

更多 Elixir Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。