nRF9160 AWS IoT Sample: Repeated "Socket error: POLLERR" and Disconnection (NCS v2.7.0)

Hi all,

I'm working with the nRF9160 DK and running the AWS IoT sample from the nRF Connect SDK v2.7.0 (5cb85570ca43). The device connects to the network and AWS IoT Core successfully, publishes a message to the shadow, and receives a PUBACK. However, immediately after, I get a socket error (POLLERR) and the MQTT connection is closed. The device then reconnects and the cycle repeats.

Let me know if any additonal details are required
Please help me to resolve the issue. Thanks in advance.

Below are the entire logs:


*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 *** *** Using Zephyr OS v3.6.99-100befc70c74 *** [00:00:00.251,953] <inf> aws_iot_sample: The AWS IoT sample started, version: v1.0.0 [00:00:00.251,983] <inf> aws_iot_sample: Bringing network interface up and connecting to the network [00:00:00.510,284] <inf> nrf_modem_lib_trace: Trace thread ready [00:00:00.518,432] <inf> nrf_modem_lib_trace: Trace level override: 2 +CGEV: EXCE STATUS 0 +CEREG: 2,"7406","0817D311",7 +CSCON: 1 +CGEV: ME PDN ACT 0,0 +CNEC_ESM: 50,0 +CEREG: 5,"7406","0817D311",7,,,"11100000","11100000" [00:00:07.545,776] <inf> aws_iot_sample: Network connectivity established +CSCON: 0 +CEREG: 5,"7406","08185110",7,,,"11100000","11100000" [00:00:12.545,867] <inf> aws_iot_sample: Connecting to AWS IoT +CSCON: 1 [00:00:19.726,165] <inf> aws_iot_sample: AWS_IOT_EVT_CONNECTED [00:00:19.727,203] <inf> aws_iot_sample: Publishing message: {"state":{"reported":{"uptime":19726,"app_version":"v1.0.0","modem_version":"nrf91x1_2.0.1"}}} to AWS IoT shadow [00:00:20.348,602] <inf> aws_iot_sample: AWS_IOT_EVT_PUBACK, message ID: 34937 [00:00:21.002,471] <err> mqtt_helper: Socket error: POLLERR [00:00:21.002,502] <err> mqtt_helper: Connection was unexpectedly closed [00:00:21.003,356] <inf> aws_iot_sample: AWS_IOT_EVT_DISCONNECTED +CSCON: 0 [00:00:26.003,479] <inf> aws_iot_sample: Connecting to AWS IoT +CSCON: 1 [00:00:32.294,097] <inf> aws_iot_sample: AWS_IOT_EVT_CONNECTED [00:00:32.295,288] <inf> aws_iot_sample: Publishing message: {"state":{"reported":{"uptime":32294,"app_version":"v1.0.0","modem_version":"nrf91x1_2.0.1"}}} to AWS IoT shadow [00:00:32.911,804] <inf> aws_iot_sample: AWS_IOT_EVT_PUBACK, message ID: 52852 [00:00:33.646,942] <err> mqtt_helper: Socket error: POLLERR [00:00:33.646,972] <err> mqtt_helper: Connection was unexpectedly closed [00:00:33.647,857] <inf> aws_iot_sample: AWS_IOT_EVT_DISCONNECTED +CSCON: 0 [00:00:38.647,949] <inf> aws_iot_sample: Connecting to AWS IoT +CSCON: 1 [00:00:44.691,070] <inf> aws_iot_sample: AWS_IOT_EVT_CONNECTED [00:00:44.692,138] <inf> aws_iot_sample: Publishing message: {"state":{"reported":{"uptime":44691,"app_version":"v1.0.0","modem_version":"nrf91x1_2.0.1"}}} to AWS IoT shadow [00:00:45.311,523] <inf> aws_iot_sample: AWS_IOT_EVT_PUBACK, message ID: 1195 [00:00:45.898,193] <err> mqtt_helper: Socket error: POLLERR [00:00:45.898,223] <err> mqtt_helper: Connection was unexpectedly closed [00:00:45.899,047] <inf> aws_iot_sample: AWS_IOT_EVT_DISCONNECTED +CSCON: 0 [00:00:50.899,169] <inf> aws_iot_sample: Connecting to AWS IoT +CSCON: 1 [00:00:58.298,614] <inf> aws_iot_sample: AWS_IOT_EVT_CONNECTED [00:00:58.299,652] <inf> aws_iot_sample: Publishing message: {"state":{"reported":{"uptime":58298,"app_version":"v1.0.0","modem_version":"nrf91x1_2.0.1"}}} to AWS IoT shadow [00:00:58.920,623] <inf> aws_iot_sample: AWS_IOT_EVT_PUBACK, message ID: 53999 [00:00:59.421,112] <err> mqtt_helper: Socket error: POLLERR [00:00:59.421,142] <err> mqtt_helper: Connection was unexpectedly closed [00:00:59.421,936] <inf> aws_iot_sample: AWS_IOT_EVT_DISCONNECTED +CSCON: 0 [00:01:04.422,058] <inf> aws_iot_sample: Connecting to AWS IoT +CSCON: 1 [00:01:10.343,017] <inf> aws_iot_sample: AWS_IOT_EVT_CONNECTED [00:01:10.344,116] <inf> aws_iot_sample: Publishing message: {"state":{"reported":{"uptime":70343,"app_version":"v1.0.0","modem_version":"nrf91x1_2.0.1"}}} to AWS IoT shadow [00:01:10.835,083] <inf> aws_iot_sample: AWS_IOT_EVT_PUBACK, message ID: 61387 [00:01:11.537,353] <err> mqtt_helper: Socket error: POLLERR [00:01:11.537,384] <err> mqtt_helper: Connection was unexpectedly closed [00:01:11.538,421] <inf> aws_iot_sample: AWS_IOT_EVT_DISCONNECTED

Related