Closed miteshkoradia-amazon closed 1 year ago
@jmklix Do we have any more insight into this?
The handshake failed with error error reported during SSLRead. OSStatus code -9805
. The error code indicates the connection was closed by the server due to issues during connection establish.
There are couple things you can try:
AmazonRootCA1
for RSA encoded keys.There are multiple reasons why we are seeing it and it is hard to identify the root cause. It would be helpful if you could provide the full log. (Please make sure remove any confidential information from the log)
Full log.
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [event-loop] - id=0x600001b68050: Initializing edge-triggered kqueue
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [event-loop] - id=0x600001b68050: starting event-loop thread.
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [event-loop] - id=0x600001b680a0: Initializing edge-triggered kqueue
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [event-loop] - id=0x600001b680a0: starting event-loop thread.
[INFO] [2023-10-10T14:46:07Z] [000070000be24000] [event-loop] - id=0x600001b68050: main loop started
[INFO] [2023-10-10T14:46:07Z] [000070000be24000] [event-loop] - id=0x600001b68050: default timeout 100s, and max events to process per tick 100
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [event-loop] - id=0x600001b600a0: Initializing edge-triggered kqueue
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [event-loop] - id=0x600001b600a0: starting event-loop thread.
[INFO] [2023-10-10T14:46:07Z] [000070000bea7000] [event-loop] - id=0x600001b680a0: main loop started
[INFO] [2023-10-10T14:46:07Z] [000070000bea7000] [event-loop] - id=0x600001b680a0: default timeout 100s, and max events to process per tick 100
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [event-loop] - id=0x600001b60190: Initializing edge-triggered kqueue
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [event-loop] - id=0x600001b60190: starting event-loop thread.
[INFO] [2023-10-10T14:46:07Z] [000070000bf2a000] [event-loop] - id=0x600001b600a0: main loop started
[INFO] [2023-10-10T14:46:07Z] [000070000bf2a000] [event-loop] - id=0x600001b600a0: default timeout 100s, and max events to process per tick 100
[INFO] [2023-10-10T14:46:07Z] [000070000bfad000] [event-loop] - id=0x600001b60190: main loop started
[INFO] [2023-10-10T14:46:07Z] [000070000bfad000] [event-loop] - id=0x600001b60190: default timeout 100s, and max events to process per tick 100
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [dns] - id=0x600000d60000: Initializing default host resolver with 16 max host entries.
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [channel-bootstrap] - id=0x600001360850: Initializing client bootstrap with event-loop group 0x600001c680c0
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [tls-handler] - static: certificate and key have been set, setting them up now.
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [pki-utils] - static: certificate has an existing certificate-key pair that was previously imported into the Keychain. Using key from Keychain instead of the one provided.
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [tls-handler] - static: loading custom CA file.
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [mqtt-client] - client=0x6000036484e0: Initalizing MQTT client
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [channel-bootstrap] - id=0x600001360850: acquiring bootstrap reference
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [mqtt-client] - id=0x7fdd15009600: Creating new mqtt 311 connection
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [mqtt-topic-tree] - tree=0x7fdd15009918: Creating new topic tree
Connecting to a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com with client ID 'test-df0ec640-9fd7-40bc-99cb-487479800990'...
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [mqtt-client] - id=0x7fdd15009600: Begin connecting process, switch state to CONNECTING.
[INFO] [2023-10-10T14:46:07Z] [00007ff8514d1640] [mqtt-client] - id=0x7fdd15009600: using ping timeout of 3000000000 ns
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [channel-bootstrap] - id=0x600001360850: acquiring bootstrap reference
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [dns] - id=0x600000d60000: Host resolution requested for a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com
[DEBUG] [2023-10-10T14:46:07Z] [00007ff8514d1640] [dns] - id=0x600000d60000: No cached entries found for a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com starting new resolver thread.
[DEBUG] [2023-10-10T14:46:07Z] [000070000c136000] [dns] - static: resolving host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 50.19.147.165
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 52.87.126.58
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 54.152.50.254
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 52.87.99.188
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 54.84.180.129
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 52.203.212.80
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 52.205.114.236
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 52.1.233.53
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 2406:da00:ff00::36d2:f213
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 2406:da00:ff00::3211:30a6
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 2406:da00:ff00::22e9:ad4a
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 2406:da00:ff00::3416:4aa5
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 2406:da00:ff00::34cc:fe6
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 2406:da00:ff00::3698:90a4
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 2406:da00:ff00::3692:633b
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: resolved record: 2406:da00:ff00::3693:e89f
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static, resolving host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com successful, returned 16 addresses
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 50.19.147.165 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 52.87.126.58 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 54.152.50.254 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 52.87.99.188 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 54.84.180.129 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 52.203.212.80 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 52.205.114.236 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 52.1.233.53 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 2406:da00:ff00::36d2:f213 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 2406:da00:ff00::3211:30a6 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 2406:da00:ff00::22e9:ad4a for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 2406:da00:ff00::3416:4aa5 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 2406:da00:ff00::34cc:fe6 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 2406:da00:ff00::3698:90a4 for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 2406:da00:ff00::3692:633b for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static: new address resolved 2406:da00:ff00::3693:e89f for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com caching
[DEBUG] [2023-10-10T14:46:08Z] [000070000c136000] [dns] - static, invoking resolution callback for host a3rqcuaiy7ojvt-ats.iot.us-east-1.amazonaws.com with 2 addresses
[DEBUG] [2023-10-10T14:46:08Z] [000070000be24000] [task-scheduler] - id=0x7fdd13d2d560: Scheduling attempt_connection task for immediate execution
[DEBUG] [2023-10-10T14:46:08Z] [000070000be24000] [task-scheduler] - id=0x7fdd13d1be30: Scheduling attempt_connection task for immediate execution
[DEBUG] [2023-10-10T14:46:08Z] [000070000be24000] [task-scheduler] - id=0x7fdd13d2d560: Running attempt_connection task with
1) I created Things from Console and downloaded Certs and used AmazonRootCA1
2) Tried restart and collected full logs as attached above.
3) There is no specific config to block package.
Update: Mitesh shared policy with us. And it turns out to be an issue with the policy setup. The issue is gone after fixing the policy. Closed the issue.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
I am following steps mentioned on https://docs.aws.amazon.com/iot/latest/developerguide/using-laptop-as-device.html When I try to run pubsub sample, it give me following error
Expected Behavior
Expected behaviour is to publish message/receive message.
Current Behavior
Error as added in Description
Reproduction Steps
https://docs.aws.amazon.com/iot/latest/developerguide/using-laptop-as-device.html -- steps as per this guide for GGV2
Possible Solution
No response
Additional Information/Context
No response
SDK version used
GGSDKV2
Environment details (OS name and version, etc.)
Mac Ventura 13.4.1