Connect comms goroutine on state publish

I’m getting errors on state publish- here are the logs

INFO[0000] starting ChirpStack Gateway Bridge            docs="https://www.chirpstack.io/gateway-bridge/" version=3.12.0
WARN[0000] [store]    memorystore wiped                  module=mqtt
INFO[0000] integration/mqtt: connected to mqtt broker   
INFO[0000] backend/basicstation: starting websocket listener  bind="[::]:3001" ca_cert=/etc/chirpstack-gateway-bridge/ChirpstackCA.crt tls_cert=/etc/chirpstack-gateway-bridge/ChirpstackGatewayBridge.pem tls_key=/etc/chirpstack-gateway-bridge/ChirpstackGatewayBridge.pem
INFO[0007] backend/basicstation: router-info request received  gateway_id=xxxx411da4f4xxxx remote_addr="xxx.176.32.xx:14810" router_uri="wss://3.xxx.18.xxx:3001/gateway/xxxx411da4f4xxxx"
INFO[0010] backend/basicstation: gateway connected       gateway_id=xxxx411da4f4xxxx remote_addr="xxx.176.32.xx:14810"
INFO[0010] integration/mqtt: subscribing to topic        qos=0 topic="gateway/xxxx411da4f4xxxx/command/#"
INFO[0010] integration/mqtt: publishing state            gateway_id=xxxx411da4f4xxxx qos=0 state=conn topic=gateway/xxxx411da4f4xxxx/state/conn
ERRO[0010] [client]   Connect comms goroutine - error triggered EOF  module=mqtt
ERRO[0010] mqtt: connection error                        error=EOF
INFO[0010] integration/mqtt: connected to mqtt broker   
INFO[0010] integration/mqtt: subscribing to topic        qos=0 topic="gateway/xxxx411da4f4xxxx/command/#"
INFO[0010] integration/mqtt: publishing state            gateway_id=xxxx411da4f4xxxx qos=0 state=conn topic=gateway/xxxx411da4f4xxxx/state/conn
ERRO[0010] [client]   Connect comms goroutine - error triggered EOF  module=mqtt
ERRO[0010] mqtt: connection error                        error=EOF
INFO[0010] backend/basicstation: gateway version received  firmware= gateway_id=xxxx411da4f4xxxx model=linux package= protocol=2 station=2.0.5
INFO[0010] backend/basicstation: router-config message sent to gateway  gateway_id=xxxx411da4f4xxxx
INFO[0010] integration/mqtt: connected to mqtt broker   
INFO[0010] integration/mqtt: subscribing to topic        qos=0 topic="gateway/xxxx411da4f4xxxx/command/#"
INFO[0010] integration/mqtt: publishing state            gateway_id=xxxx411da4f4xxxx qos=0 state=conn topic=gateway/xxxx411da4f4xxxx/state/conn
ERRO[0010] [client]   Connect comms goroutine - error triggered EOF  module=mqtt
ERRO[0010] mqtt: connection error                        error=EOF
INFO[0010] integration/mqtt: connected to mqtt broker   
INFO[0010] integration/mqtt: subscribing to topic        qos=0 topic="gateway/xxxx411da4f4xxxx/command/#"
INFO[0010] integration/mqtt: publishing state            gateway_id=xxxx411da4f4xxxx qos=0 state=conn topic=gateway/xxxx411da4f4xxxx/state/conn
ERRO[0010] [client]   Connect comms goroutine - error triggered EOF  module=mqtt
ERRO[0010] mqtt: connection error                        error=EOF
INFO[0010] integration/mqtt: connected to mqtt broker   
INFO[0010] integration/mqtt: subscribing to topic        qos=0 topic="gateway/xxxx411da4f4xxxx/command/#"
INFO[0011] integration/mqtt: publishing state            gateway_id=xxxx411da4f4xxxx qos=0 state=conn topic=gateway/xxxx411da4f4xxxx/state/conn
ERRO[0011] [client]   Connect comms goroutine - error triggered EOF  module=mqtt
ERRO[0011] mqtt: connection error                        error=EOF
INFO[0011] integration/mqtt: connected to mqtt broker   
INFO[0011] integration/mqtt: subscribing to topic        qos=0 topic="gateway/xxxx411da4f4xxxx/command/#"
INFO[0011] integration/mqtt: publishing state            gateway_id=xxxx411da4f4xxxx qos=0 state=conn topic=gateway/xxxx411da4f4xxxx/state/conn
ERRO[0011] [client]   Connect comms goroutine - error triggered EOF  module=mqtt
ERRO[0011] mqtt: connection error                        error=EOF
INFO[0011] integration/mqtt: connected to mqtt broker   
INFO[0011] integration/mqtt: subscribing to topic        qos=0 topic="gateway/xxxx411da4f4xxxx/command/#"
INFO[0011] integration/mqtt: publishing state            gateway_id=xxxx411da4f4xxxx qos=0 state=conn topic=gateway/xxxx411da4f4xxxx/state/conn
ERRO[0011] [client]   Connect comms goroutine - error triggered EOF  module=mqtt
ERRO[0011] mqtt: connection error                        error=EOF

The mqtt host is aws iot via ssl but the error does not occur when I’m connecting it to my local mqtt broker over tcp.

Along with this error, join accepts can’t reach the gateway bridge.

I’ve managed to get over all of this by using chirpstack gateway bridge 3.10.0, before the conn topic got introduced.

Does anyone have any idea as to why this happens? The logs came from 3.12.0 by the way

Could it be that the used TLS certificate is not authorized to connect or publish to that topic, and therefore the server-side terminates the connection?

Publishing and subscribing to the same topic is fine via mosquitto

root@xxxx:/etc/chirpstack-gateway-bridge# mosquitto_pub -h xxxx-xxx.iot.us-east-1.amazonaws.com -t gateway/xxxx411da4f4xxxx/state/conn -p 8883 --cafile ./AmazonRootCA1.pem --cert ./ChirpstackGatewayBridge.pem  --key ./ChirpstackGatewayBridge.pem -m "conn" -d
Client (null) sending CONNECT
Client (null) received CONNACK (0)
Client (null) sending PUBLISH (d0, q0, r0, m1, 'gateway/xxxx411da4f4xxxx/state/conn', ... (4 bytes))
Client (null) sending DISCONNECT

Hi!

It seems that Im having the same problem. Did you solve it?

thanks in advance.

Our issue disappeared after we recompiled basicstation.