gpt4 book ai didi

amazon-web-services - 是什么导致 AWS Lambda 上出现此 Runtime.ExitError?

转载 作者:行者123 更新时间:2023-12-05 00:58:23 28 4
gpt4 key购买 nike

我正在尝试在 Lambda 上测试一个函数,但是当我测试它时,我得到一个 Runtime.ExitError:

会是什么原因?

{"errorType": "Runtime.ExitError", "errorMessage": "RequestId:
0dfeb7be-012d-43b7-8674-665bfd8b2bc2 Error: Runtime exited with error: exit status 7" }

ask/node_modules/aws-sdk/lib/request.js:364:18)"," atRequest.callListeners(/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)","at Request.emit(/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)","
at Request.emit(/var/task/node_modules/aws-sdk/lib/request.js:683:14)"," atRequest.transition(/var/task/node_modules/aws-sdk/lib/request.js:22:10)"," atAcceptorStateMachine.runTo(/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)"," at/var/task/node_modules/aws-sdk/lib/state_machine.js:26:10"," atRequest.(/var/task/node_modules/aws-sdk/lib/request.js:38:9)"],"message":"Couldnot create table (Meals): User:arn:aws:sts::929545228810:assumed-role/homeAssistTemp-role-rz5qgsmq/homeAssistTempis not authorized to perform: dynamodb:CreateTable on resource:arn:aws:dynamodb:us-east-2:929545228810:table/Meals","time":"2019-09-26T18:02:51.854Z"}2019-09-26T18:02:51.931Z e3d534bb-abd8-4b49-a628-2ec5c6193ec1 INFO Uncaughtexception: AskSdk.DynamoDbPersistenceAdapter Error: Could not createtable (Meals): User:arn:aws:sts::929545228810:assumed-role/homeAssistTemp-role-rz5qgsmq/homeAssistTempis not authorized to perform: dynamodb:CreateTable on resource:arn:aws:dynamodb:us-east-2:929545228810:table/MealsAskSdk.DynamoDbPersistenceAdapter Error: Could not create table(Meals): User:arn:aws:sts::929545228810:assumed-role/homeAssistTemp-role-rz5qgsmq/homeAssistTempis not authorized to perform: dynamodb:CreateTable on resource:arn:aws:dynamodb:us-east-2:929545228810:table/Mealsat Object.createAskSdkError (/var/task/node_modules/ask-sdk-runtime/dist/util/AskSdkUtils.js:22:17)at Response. (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/dist/attributes/persistence/DynamoDbPersistenceAdapter.js:88:42)at Request. (/var/task/node_modules/aws-sdk/lib/request.js:364:18)at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:683:14)at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10at Request. (/var/task/node_modules/aws-sdk/lib/request.js:38:9)/var/task/node_modules/ask-sdk-v1adapter/dist/adapter.js:275throw err;^

AskSdk.DynamoDbPersistenceAdapter Error: Could not create table(Meals): User:arn:aws:sts::929545228810:assumed-role/homeAssistTemp-role-rz5qgsmq/homeAssistTempis not authorized to perform: dynamodb:CreateTable on resource:arn:aws:dynamodb:us-east-2:929545228810:table/Mealsat Object.createAskSdkError (/var/task/node_modules/ask-sdk-runtime/dist/util/AskSdkUtils.js:22:17)at Response. (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/dist/attributes/persistence/DynamoDbPersistenceAdapter.js:88:42)at Request. (/var/task/node_modules/aws-sdk/lib/request.js:364:18)at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:683:14)at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10at Request. (/var/task/node_modules/aws-sdk/lib/request.js:38:9) END RequestId:e3d534bb-abd8-4b49-a628-2ec5c6193ec1 REPORT RequestId:e3d534bb-abd8-4b49-a628-2ec5c6193ec1 Duration: 1013.44 ms BilledDuration: 1100 ms Memory Size: 128 MB Max Memory Used: 97 MB InitDuration: 513.63 ms RequestId: e3d534bb-abd8-4b49-a628-2ec5c6193ec1Error: Runtime exited with error: exit status 7 Runtime.ExitError

最佳答案

我在研究中发现了这个页面,并认为我会发布我的问题/解决方案。没有得到确切的退出代码 7,但具体来说:

Error: Runtime exited with error: signal: killed Runtime.ExitError

没有其他错误、日志等。上一行给出了解决方案:

Memory Size: 1024 MB Max Memory Used: 1024 MB

我的 Lambda 函数执行时内存不足。增加最大内存,问题解决。如果看到 Runtime.ExitError,内存是个好东西。

关于amazon-web-services - 是什么导致 AWS Lambda 上出现此 Runtime.ExitError?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58122026/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com