En utilisant AWS re:Post, vous acceptez les AWS re:Post Conditions d’utilisation

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

demandé il y a 5 ans294 vues
2 réponses
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
répondu il y a 5 ans
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

répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions