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
.
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 :(?
Hello @Bra1nsen welcome to the balena community!
Could you please try this basicstation
repository on your device?
Let me know if this works better!
worked after inserting the full api key, this thread confused me, sorry. but it works now!!!
Thanks for confirming that it works. The problem was that you didnât copy properly the TC_KEY
?
yes exactly, currently pretty happy with my setup. iam excited to test the 5dbi lora antenna with the rak2245.
I would like to implement the following application (https://www.waveshare.com/wiki/Pico-LoRa-SX1262) with the bme280 (envirnm-sensor). Unlucky it did not send the data as expected, I was wondering that no information of the gateway was requested for setting up the ttn device (only AppEUI, DevEUI and AppKey) =)
Hello @Bra1nsen thanks for sharing your set up! Are you using a POE hat there? Really nice! is this for an outdoor gateway? what enclosure are you going to use?
on the LoRa node, what problem do you have?
Yea using a waveshare poe (c) hat with an integrated fan:)
Now I will try to add some nodes
Thanks Marc for offering help, I will come back to that:)!
happy greetings
Paul
Nice installation @Bra1nsen i see a Nebra hotspot! what else do you have there if you can disclose?