Hello all, could use a bit of help here…
I’ve got basicstation running on an RPi4 with RAK2245 in the US and have spun up a VM with gateway-bridge, network-server and application-server running.
I’ve got the basicstation TC_URI pointing to that vm’s gateway-bridge websocket port, but the connection keep looping with connect → drop, connect → drop.
13.10.20 23:22:22 (-0400) basicstation 2020-10-14 03:22:22.850 [AIO:DEBU] [3] ws_close reason=1000
13.10.20 23:22:22 (-0400) basicstation 2020-10-14 03:22:22.850 [AIO:DEBU] Echoing close - reason=1000
13.10.20 23:22:22 (-0400) basicstation 2020-10-14 03:22:22.850 [AIO:DEBU] [3] Connection closed unexpectedly
13.10.20 23:22:22 (-0400) basicstation 2020-10-14 03:22:22.850 [AIO:DEBU] [3] WS connection shutdown…
13.10.20 23:22:22 (-0400) basicstation 2020-10-14 03:22:22.879 [TCE:VERB] Connecting to MUXS…
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.910 [TCE:VERB] Connected to MUXS.
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.938 [RAL:ERRO] Unsupported hwspec=sx1301/0
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.938 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.938 [AIO:DEBU] [3] ws_close reason=1000
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.938 [AIO:DEBU] Echoing close - reason=1000
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.958 [AIO:DEBU] [3|WS] Server sent close: reason=1000
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.958 [AIO:DEBU] [3] WS connection shutdown…
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.958 [TCE:VERB] Connection to MUXS closed in state -1
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.958 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
The three important lines seem to be:
[RAL:ERRO] Unsupported hwspec=sx1301/0
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.938 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
13.10.20 23:22:23 (-0400) basicstation 2020-10-14 03:22:22.938 [AIO:DEBU] [3] ws_close reason=1000
Any ideas? I believe a close reason of 1000 is a normal close, so perhaps my problem is with Unsupported hwspec and the s2e error, but I can’t figure out what they mean.
Here are the logs from gatewa-bridge:
Oct 14 03:28:46 dev-chirpstack-nginx chirpstack-gateway-bridge[5597]: time=“2020-10-14T03:28:46Z” level=info msg=“backend/basicstation: router-info request received” gateway_id=0242acfffe110002 remote_addr=“[[REDACTED]]:36490” router_uri=“ws://[[REDACTED]]:3001/gateway/0242acfffe110002”
Oct 14 03:28:46 dev-chirpstack-nginx chirpstack-gateway-bridge[5597]: time=“2020-10-14T03:28:46Z” level=info msg=“backend/basicstation: gateway connected” gateway_id=0242acfffe110002 remote_addr=“[[REDACTED]]:36492”
Oct 14 03:28:46 dev-chirpstack-nginx chirpstack-gateway-bridge[5597]: time=“2020-10-14T03:28:46Z” level=info msg=“integration/mqtt: subscribing to topic” qos=0 topic=“gateway/0242acfffe110002/command/#”
Oct 14 03:28:46 dev-chirpstack-nginx chirpstack-gateway-bridge[5597]: time=“2020-10-14T03:28:46Z” level=info msg=“backend/basicstation: gateway version received” firmware=1.0.0 gateway_id=0242acfffe110002 model=rpi package=1.0.0 protocol=2 station=“2.0.5(rpi/std)”
Oct 14 03:28:46 dev-chirpstack-nginx chirpstack-gateway-bridge[5597]: time=“2020-10-14T03:28:46Z” level=info msg=“backend/basicstation: router-config message sent to gateway” gateway_id=0242acfffe110002
Oct 14 03:28:46 dev-chirpstack-nginx chirpstack-gateway-bridge[5597]: time=“2020-10-14T03:28:46Z” level=info msg=“backend/basicstation: gateway disconnected” gateway_id=0242acfffe110002 remote_addr=“[[REDACTED]]:36492”
Oct 14 03:28:46 dev-chirpstack-nginx chirpstack-gateway-bridge[5597]: time=“2020-10-14T03:28:46Z” level=info msg=“integration/mqtt: unsubscribing from topic” topic=“gateway/0242acfffe110002/command/#”
Also strangely that gateway id seems to be randomly generated - it doesn’t match my actual hardware.
Thanks!