Hi, i’m trying to replace mosquitto broker with AWS IoT.
With Lora Gateway Bridge everything is ok but with lora-app-server there is some problems. I have this infrastrucute: gateway-bridge on gateway that communicate with AWS IoT and it’s ok. I install lora-app-server and lora-server on EC2 and i connect both on AWS IoT.
Lora App Server Logs
Mar 13 16:38:29 ip-172-31-29-175 lora-app-server[4495]: time="2018-03-13T16:38:29Z" level=error msg="handler/mqtt: subscribe error: Connection lost before Subscribe completed" topic=application/+/node/+/tx
Mar 13 16:38:29 ip-172-31-29-175 lora-app-server[4495]: time="2018-03-13T16:38:29Z" level=error msg="handler/mqtt: subscribe error: Connection lost before Subscribe completed" topic=application/+/node/+/tx
Mar 13 16:38:29 ip-172-31-29-175 lora-app-server[4495]: time="2018-03-13T16:38:29Z" level=error msg="handler/mqtt: subscribe error: Connection lost before Subscribe completed" topic=application/+/node/+/tx
Mar 13 16:38:29 ip-172-31-29-175 lora-app-server[4495]: time="2018-03-13T16:38:29Z" level=info msg="handler/mqtt: subscribling to tx topic" topic=application/+/node/+/tx
Mar 13 16:38:29 ip-172-31-29-175 lora-app-server[4495]: time="2018-03-13T16:38:29Z" level=info msg="handler/mqtt: subscribling to tx topic" topic=application/+/node/+/tx
Lora Server Log
Mar 13 16:37:29 ip-172-31-29-175 systemd[1]: Started LoRa Server.
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="starting LoRa Server" band=EU_863_870 doc
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="setup redis connection pool" url="redis:/
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="connecting to postgresql"
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="backend/gateway: connecting to mqtt broke
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="configuring join-server client" ca_cert=
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="no network-controller configured"
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="applying database migrations"
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="backend/gateway: connected to mqtt server
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="backend/gateway: subscribing to rx topic"
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="migrations applied" count=0
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="starting api server" bind="0.0.0.0:8000"
Mar 13 16:37:29 ip-172-31-29-175 loraserver[4493]: time="2018-03-13T16:37:29Z" level=info msg="starting gateway api server" bind="0.0.0.0"
Version
Lora app server: 0.18.1
Lora server: 0.25.0
Lora gateway bridge: 2.3.2
So the app-server try to connect to application topic on AWS IoT but the connection is not stable and then i cannot see the packet. I set up the things and certificate in app-server but this error continue. Only few times i can see the application packet decrypted but this event is random.
Thanks.