AWS re:Post을(를) 사용하면 다음에 동의하게 됩니다. AWS re:Post 이용 약관

Deploy HelloWorld successful but no message in console

0

Hi guys,
I used the greengrass dev guide for Raspberry Pi. It looked everything ok until the helloworld test. From console no message arrives on hello/world topic
The deploy of lambda function is successful, so I have to assume there is no connection problem.
The runtime.log says

]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGCloudSpooler:1", "workerId": edited, "pid": 1469}
[2020-03-01T21:12:55.553Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGShadowService", "workerId": edited, "pid": 1506}
[2020-03-01T21:12:55.555Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGShadowSyncManager", "workerId": edited, "pid": 1489}
[2020-03-01T21:12:55.563Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGIPDetector:1", "workerId": edited, "pid": 1513}
[2020-03-01T21:12:55.633Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGSecretManager:1", "workerId": edited, "pid": 1537}
[2020-03-01T21:12:55.863Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGDeviceCertificateManager", "workerId": edited, "pid": 1592}
[2020-03-01T21:12:55.903Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGTES", "workerId": edited, "pid": 1594}
[2020-03-01T21:13:01.736Z][INFO]-Handled functions request.     {"functionName": "arn:aws:lambda:::function:GGStreamManager:1", "invocationId": ""}
[2020-03-01T21:13:01.736Z][INFO]-Started all system components.
[2020-03-01T21:13:01.953Z][INFO]-Created worker.        {"functionArn": "edited:function:Greengrass_HelloWorld:2", "workerId": "edited", "pid": 1643}

Can you help me to understand where to look for at this point? How can I understand from the RPi the lambda python function is executed and messages sent?

Thank you in advance

질문됨 5년 전294회 조회
2개 답변
0

Hi diul,

Can you review your subscription settings to make sure they are correct? This would be one of the reasons your deploy is succeeding but the messages are not making it to the cloud. Make sure the topics are written without extra spaces or characters and they are from your HelloWorld lambda to the IoT Cloud. (You can re-read the instructions on this here, starting at section 9: https://docs.aws.amazon.com/greengrass/latest/developerguide/config-lambda.html )

Let me know if this helps and have a nice day,

davidpAWS

AWS
답변함 5년 전
0

Sorry David, don't know why, but never received notification for your answer.
Btw, Once I set log to "Fatal exception logs", I saw from logs that even if the deployment was fine the lambda function was missing. The real problem was the way I zipped ".py" and "greengrasssdk".
The correct way is:

filename.zip
..|_ Lambdafunction.py
..|_ greengrasssdk

But initially I did

filename.zip
..|_ filename_folder
......|_ Lambdafunction.py
......|_ greengrasssdk

Edited by: diul on Mar 18, 2020 8:27 AM

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠