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

diul
已提問 4 年前檢視次數 208 次
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
已回答 4 年前
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

diul
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南