@cGf if you are running RAK2245 you must introduce as a MODEL
SX1301
. Could you please change that?
Could you please share the other variables? TTN_VERSION
, etc?
@cGf if you are running RAK2245 you must introduce as a MODEL
SX1301
. Could you please change that?
Could you please share the other variables? TTN_VERSION
, etc?
I understand that this is not working yet?
Correct, still disconnected.
could you please delete the gateway on TTS and try to set it up again? remember to change the TC_KEY
.
Deleted the gateway and created a new one from scratch. No success.
By the way, when you copy the API key in TTS and paste it on Balena it puts this: NNSXS.K6QTAL3U4JL3P24HJP3S64WT7EF2Q7LAFVO3GNQ.HPSRUZL663BF3LU3GUIJ2GEL47CT7SHPR7W3XJIVAKCPEKQRM5YQ. This is very problematic if you dont notice it.
So, you need to cut it and leave: K6QTAL3U4JL3P24HJP3S64WT7EF2Q7LAFVO3GNQ.
Variables attached again.
Glad to hear that copying and pasting the TC_KEY
solved your problems @cGf
Do you have a LoRa node to test if the gateway works properly?
Hi Marc, thank you very much for your help!
I have tested the gateway with a lora node (Cube Cell HTCC-AB01 board) with a simple counter and it is working properly, see screenshot attached. So, congratulations for the great tool you have created! It makes things much easier!
Hello all,
After working properly during the last 2 days, suddenly the RAK2245 gateway appears as disconnected in TTN v3. I didn’t change anything in the configuration myself. I just noticed an error in the Balena log saying “Missing configuration, define either TTN_STACK_VERSION or TC_URI and TC_TRUST.” Maybe there is an update in the software made by Balena team or maybe an update made by TTS requiring reconfiguration of gateways? Although I have a Mirkotik gateway working perfectly with no shutdowns during the last days.
Any ideas about how to solve this?
Thanks!
Hello @cGf googling about your error i found this Problem with certificates while building a TTN gateway with Balena cloud - #2 by Tallestxxl
which said that the issue was on the TC_KEY
.
I tried with a new API Key generated by TTN, but unfortunately still disconnected and the same error showing up in Balena log.
@cGf This is odd. Could you please delete the value of the variable TTN_STACK_VERSION
? and leave the variable set up by the fleet?
Hi Marc, miraculous after doing a RESTART SERVICES the gateway is connected again to TTS and sending the messages from the nodes properly!!
exactly the same issue, tried alot, nothing worked
Installing service 'basicstation sha256:f8c5921294fc023e78ece0ee9ef0d0d33f72bc5af55d103d2fb666578444a852'
Installed service 'basicstation sha256:f8c5921294fc023e78ece0ee9ef0d0d33f72bc5af55d103d2fb666578444a852'
Starting service 'basicstation sha256:f8c5921294fc023e78ece0ee9ef0d0d33f72bc5af55d103d2fb666578444a852'
Started service 'basicstation sha256:f8c5921294fc023e78ece0ee9ef0d0d33f72bc5af55d103d2fb666578444a852'
basicstation Gateway EUI: e45f01fffe797b6e
basicstation Gateway EUI: e45f01fffe797b6e
basicstation Using MODEL: SX1301
basicstation Server: wss://eu1.cloud.thethings.network:8887
basicstation Resetting gateway concentrator on GPIO 17
basicstation 2022-09-01 10:28:51.148 [SYS:INFO] findDefaultEui -> protoEuiSrc /sys/class/net/eth0/address - protoEUI 251096697764718
basicstation 2022-09-01 10:28:51.149 [SYS:INFO] Logging : stderr (maxsize=10000000, rotate=3)
basicstation 2022-09-01 10:28:51.149 [SYS:INFO] Station Ver : 2.0.5(rpi/std) 2022-09-01 05:36:10
basicstation 2022-09-01 10:28:51.150 [SYS:INFO] Package Ver : 1.0.0
basicstation 2022-09-01 10:28:51.150 [SYS:INFO] proto EUI(x) : 0:e45f:179:7b6e (/sys/class/net/eth0/address)
basicstation 2022-09-01 10:28:51.150 [SYS:INFO] prefix EUI : ::1 (builtin)
basicstation 2022-09-01 10:28:51.150 [SYS:INFO] Station EUI : e45f:1ff:fe79:7b6e
basicstation 2022-09-01 10:28:51.150 [SYS:INFO] Station home: ./ (builtin)
basicstation 2022-09-01 10:28:51.151 [SYS:INFO] Station temp: /var/tmp/(builtin)
basicstation 2022-09-01 10:28:51.151 [SYS:WARN] Station in NO-CUPS mode
basicstation 2022-09-01 10:28:51.354 [TCE:INFO] Starting TC engine
basicstation 2022-09-01 10:28:51.355 [any:INFO] ./tc.trust:
basicstation cert. version : 3
basicstation serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
basicstation issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation issued on : 2000-09-30 21:12:19
basicstation expires on : 2021-09-30 14:01:15
basicstation signed using : RSA with SHA1
basicstation RSA key size : 2048 bits
basicstation basic constraints : CA=true
basicstation key usage : Key Cert Sign, CRL Sign
basicstation 2022-09-01 10:28:51.356 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
basicstation 2022-09-01 10:28:51.399 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
basicstation 2022-09-01 10:28:51.615 [TCE:INFO] Infos: e45f:1ff:fe79:7b6e muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE797B6E
basicstation 2022-09-01 10:28:51.615 [AIO:DEBU] [3] ws_close reason=1000
basicstation 2022-09-01 10:28:51.615 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
basicstation 2022-09-01 10:28:51.615 [AIO:DEBU] [3] WS connection shutdown...
basicstation 2022-09-01 10:28:51.616 [any:INFO] ./tc.trust:
basicstation cert. version : 3
basicstation serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
basicstation issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation issued on : 2000-09-30 21:12:19
basicstation expires on : 2021-09-30 14:01:15
basicstation signed using : RSA with SHA1
basicstation RSA key size : 2048 bits
basicstation basic constraints : CA=true
basicstation key usage : Key Cert Sign, CRL Sign
basicstation 2022-09-01 10:28:51.616 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
basicstation 2022-09-01 10:28:51.659 [TCE:VERB] Connecting to MUXS...
basicstation 2022-09-01 10:28:51.847 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 400
basicstation 2022-09-01 10:28:51.847 [AIO:DEBU] [3] WS connection shutdown...
basicstation 2022-09-01 10:28:51.848 [TCE:VERB] Connection to MUXS closed in state 3
basicstation 2022-09-01 10:28:51.848 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
basicstation 2022-09-01 10:29:01.849 [any:INFO] ./tc.trust:
basicstation cert. version : 3
basicstation serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
basicstation issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation issued on : 2000-09-30 21:12:19
basicstation expires on : 2021-09-30 14:01:15
basicstation signed using : RSA with SHA1
basicstation RSA key size : 2048 bits
basicstation basic constraints : CA=true
basicstation key usage : Key Cert Sign, CRL Sign
basicstation 2022-09-01 10:29:01.849 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
basicstation 2022-09-01 10:29:01.891 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
basicstation 2022-09-01 10:29:02.122 [TCE:INFO] Infos: e45f:1ff:fe79:7b6e muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE797B6E
basicstation 2022-09-01 10:29:02.122 [AIO:DEBU] [3] ws_close reason=1000
basicstation 2022-09-01 10:29:02.122 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
basicstation 2022-09-01 10:29:02.122 [AIO:DEBU] [3] WS connection shutdown...
basicstation 2022-09-01 10:29:02.123 [any:INFO] ./tc.trust:
basicstation cert. version : 3
basicstation serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
basicstation issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation issued on : 2000-09-30 21:12:19
basicstation expires on : 2021-09-30 14:01:15
basicstation signed using : RSA with SHA1
basicstation RSA key size : 2048 bits
basicstation basic constraints : CA=true
basicstation key usage : Key Cert Sign, CRL Sign
basicstation 2022-09-01 10:29:02.123 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
basicstation 2022-09-01 10:29:02.166 [TCE:VERB] Connecting to MUXS...
basicstation 2022-09-01 10:29:02.357 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 400
basicstation 2022-09-01 10:29:02.358 [AIO:DEBU] [3] WS connection shutdown...
basicstation 2022-09-01 10:29:02.358 [TCE:VERB] Connection to MUXS closed in state 3
basicstation 2022-09-01 10:29:02.358 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
basicstation 2022-09-01 10:29:12.360 [any:INFO] ./tc.trust:
basicstation cert. version : 3
basicstation serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
basicstation issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation issued on : 2000-09-30 21:12:19
basicstation expires on : 2021-09-30 14:01:15
basicstation signed using : RSA with SHA1
basicstation RSA key size : 2048 bits
basicstation basic constraints : CA=true
basicstation key usage : Key Cert Sign, CRL Sign
basicstation 2022-09-01 10:29:12.360 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
basicstation 2022-09-01 10:29:12.402 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
basicstation 2022-09-01 10:29:12.626 [TCE:INFO] Infos: e45f:1ff:fe79:7b6e muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE797B6E
basicstation 2022-09-01 10:29:12.626 [AIO:DEBU] [3] ws_close reason=1000
basicstation 2022-09-01 10:29:12.626 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
basicstation 2022-09-01 10:29:12.626 [AIO:DEBU] [3] WS connection shutdown...
basicstation 2022-09-01 10:29:12.627 [any:INFO] ./tc.trust:
basicstation cert. version : 3
basicstation serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
basicstation issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation issued on : 2000-09-30 21:12:19
basicstation expires on : 2021-09-30 14:01:15
basicstation signed using : RSA with SHA1
basicstation RSA key size : 2048 bits
basicstation basic constraints : CA=true
basicstation key usage : Key Cert Sign, CRL Sign
basicstation 2022-09-01 10:29:12.627 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
basicstation 2022-09-01 10:29:12.671 [TCE:VERB] Connecting to MUXS...
basicstation 2022-09-01 10:29:12.866 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 400
basicstation 2022-09-01 10:29:12.866 [AIO:DEBU] [3] WS connection shutdown...
basicstation 2022-09-01 10:29:12.867 [TCE:VERB] Connection to MUXS closed in state 3
basicstation 2022-09-01 10:29:12.867 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
basicstation 2022-09-01 10:29:22.868 [any:INFO] ./tc.trust:
basicstation cert. version : 3
basicstation serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
basicstation issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation issued on : 2000-09-30 21:12:19
basicstation expires on : 2021-09-30 14:01:15
basicstation signed using : RSA with SHA1
basicstation RSA key size : 2048 bits
basicstation basic constraints : CA=true
basicstation key usage : Key Cert Sign, CRL Sign
basicstation 2022-09-01 10:29:22.868 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
basicstation 2022-09-01 10:29:22.908 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
basicstation 2022-09-01 10:29:23.128 [TCE:INFO] Infos: e45f:1ff:fe79:7b6e muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE797B6E
basicstation 2022-09-01 10:29:23.128 [AIO:DEBU] [3] ws_close reason=1000
basicstation 2022-09-01 10:29:23.128 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
basicstation 2022-09-01 10:29:23.128 [AIO:DEBU] [3] WS connection shutdown...
basicstation 2022-09-01 10:29:23.129 [any:INFO] ./tc.trust:
basicstation cert. version : 3
basicstation serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
basicstation issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
basicstation issued on : 2000-09-30 21:12:19
basicstation expires on : 2021-09-30 14:01:15
basicstation signed using : RSA with SHA1
basicstation RSA key size : 2048 bits
basicstation basic constraints : CA=true
basicstation key usage : Key Cert Sign, CRL Sign
basicstation 2022-09-01 10:29:23.129 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
basicstation 2022-09-01 10:29:23.171 [TCE:VERB] Connecting to MUXS...
basicstation 2022-09-01 10:29:23.358 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 400
basicstation 2022-09-01 10:29:23.358 [AIO:DEBU] [3] WS connection shutdown...
basicstation 2022-09-01 10:29:23.358 [TCE:VERB] Connection to MUXS closed in state 3
basicstation 2022-09-01 10:29:23.358 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
What Iam missing here :(?