Greengrass Mqtt5 SESSION_TAKEN_OVER

0

I noticed this happening today on my testing GGv2 device. From the greengrass.log file I see the following errors popping up about every two minutes. Here they are grep'd out so the timing can be seen:

./greengrass_2023_12_21_19_0.log:2023-12-21T20:48:25.466Z [WARN] (Thread-4) com.aws.greengrass.mqttclient.AwsIotMqtt5Client: Connection interrupted. {reason=null, clientId=lwc-test-slynch-4, reasonCode=SESSION_TAKEN_OVER, error=Mqtt5 client connection interrupted by server DISCONNECT.}
./greengrass_2023_12_21_19_0.log:2023-12-21T20:50:26.353Z [WARN] (Thread-4) com.aws.greengrass.mqttclient.AwsIotMqtt5Client: Connection interrupted. {reason=null, clientId=lwc-test-slynch-4, reasonCode=SESSION_TAKEN_OVER, error=Mqtt5 client connection interrupted by server DISCONNECT.}
./greengrass_2023_12_21_19_0.log:2023-12-21T20:52:27.607Z [WARN] (Thread-4) com.aws.greengrass.mqttclient.AwsIotMqtt5Client: Connection interrupted. {reason=null, clientId=lwc-test-slynch-4, reasonCode=SESSION_TAKEN_OVER, error=Mqtt5 client connection interrupted by server DISCONNECT.}
./greengrass_2023_12_21_19_0.log:2023-12-21T20:54:28.515Z [WARN] (Thread-4) com.aws.greengrass.mqttclient.AwsIotMqtt5Client: Connection interrupted. {reason=null, clientId=lwc-test-slynch-4, reasonCode=SESSION_TAKEN_OVER, error=Mqtt5 client connection interrupted by server DISCONNECT.}
./greengrass_2023_12_21_19_0.log:2023-12-21T20:56:29.535Z [WARN] (Thread-4) com.aws.greengrass.mqttclient.AwsIotMqtt5Client: Connection interrupted. {reason=null, clientId=lwc-test-slynch-4, reasonCode=SESSION_TAKEN_OVER, error=Mqtt5 client connection interrupted by server DISCONNECT.}
./greengrass_2023_12_21_19_0.log:2023-12-21T20:58:30.561Z [WARN] (Thread-4) com.aws.greengrass.mqttclient.AwsIotMqtt5Client: Connection interrupted. {reason=null, clientId=lwc-test-slynch-4, reasonCode=SESSION_TAKEN_OVER, error=Mqtt5 client connection interrupted by server DISCONNECT.}
./greengrass_2023_12_21_20_0.log:2023-12-21T21:00:30.822Z [WARN] (Thread-4) com.aws.greengrass.mqttclient.AwsIotMqtt5Client: Connection interrupted. {reason=null, clientId=lwc-test-slynch-4, reasonCode=SESSION_TAKEN_OVER, error=Mqtt5 client connection interrupted by server DISCONNECT.}
./greengrass_2023_12_21_20_0.log:2023-12-21T21:02:32.069Z [WARN] (Thread-4) com.aws.greengrass.mqttclient.AwsIotMqtt5Client: Connection interrupted. {reason=null, clientId=lwc-test-slynch-4, reasonCode=SESSION_TAKEN_OVER, error=Mqtt5 client connection interrupted by server DISCONNECT.}

I'm not finding much information regarding the "SESSION_TAKEN_OVER" code.

slynch
已提問 5 個月前檢視次數 205 次
1 個回答
0

Hello,

The error could mean that you have multiple MQTT clients running and supplying the same ClientID or you have multiple Greengrass instances running on the same device.

The message broker uses the client ID to identify each client. The client ID is passed in from the client to the message broker as part of the MQTT payload. Two clients with the same client ID can't be connected concurrently to the message broker. When a client connects to the message broker using a client ID that another client is using, the new client connection is accepted and the previously connected client is disconnected.

已回答 5 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南