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
asked 4 years ago203 views
2 Answers
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
answered 4 years ago
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
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions