2

I am following docs given at: https://docs.aws.amazon.com/greengrass/latest/developerguide/module4.html

Following I have tried:

    1. Created a group
    2. Created a core
    3. Created 2 devices as per the above docs
    4. Created subscription
    5. Run the greengrass core on my linux machine. Just modified the config.json to use 443 port for MQTT and HTTP
    6. Deployed the group to core device. till now it is successful.
  • On another linux machine downloaded all certificates and trying to run the basicdiscovery.py as per the guide.

But getting following error while doing discovery:

2019-12-24 13:22:35,232 - AWSIoTPythonSDK.core.greengrass.discovery.providers - INFO - Starting discover request...
2019-12-24 13:22:35,232 - AWSIoTPythonSDK.core.greengrass.discovery.providers - INFO - Endpoint: xyz-ats.iot.us-east-1.amazonaws.com:443
2019-12-24 13:22:35,232 - AWSIoTPythonSDK.core.greengrass.discovery.providers - INFO - Target thing: pub
2019-12-24 13:22:35,232 - AWSIoTPythonSDK.core.greengrass.discovery.providers - DEBUG - Creating tcp connection...
2019-12-24 13:22:35,275 - AWSIoTPythonSDK.core.greengrass.discovery.providers - DEBUG - Creating ssl connection...
2019-12-24 13:22:36,090 - AWSIoTPythonSDK.core.greengrass.discovery.providers - DEBUG - Matching host name...
2019-12-24 13:22:36,090 - AWSIoTPythonSDK.core.greengrass.discovery.providers - DEBUG - Sending discover request: GET /greengrass/discover/thing/pub HTTP/1.1
Host: xyz-ats.iot.us-east-1.amazonaws.com:443
2019-12-24 13:22:36,091 - AWSIoTPythonSDK.core.greengrass.discovery.providers - DEBUG - Receiving discover response header...
2019-12-24 13:22:36,540 - AWSIoTPythonSDK.core.greengrass.discovery.providers - DEBUG - Receiving discover response body...

Error in discovery!

Type: <class 'AWSIoTPythonSDK.exception.AWSIoTExceptions.DiscoveryDataNotFoundException'>

Error message: No discovery data found


9/10 retries left
Backing off...
2019-12-24 13:22:36,541 - AWSIoTPythonSDK.core.protocol.connection.cores - DEBUG - backOff: current backoff time is: 1 sec.

I did not find similar issue on web, that is why seeking help on stack overflow.

Thanks in advance.

4

1 回答 1

0

尝试将端口号从 443 更改为 8883

于 2020-12-12T06:46:20.310 回答