Problems connecting LoRa basics station to TTN V3

Here the other 5 log files.
6.txt (9.4 KB)
7.txt (9.4 KB)
8.txt (9.4 KB)
9.txt (6.3 KB)
10.txt (6.3 KB)

First, the Mode: STATIC parameter suggests that an existing station.conf file is taking precedence over the variables you might be setting in the balena dashboard. This means you might be mounting a config folder in your project, right? If that’s the case I’d suggest not to do it until you have a working configuration, otherwise it will mess with your tests.

Second, the error below suggests a connection problem to the LNS. The CUPS server worked fine thou. This could have been a temporary issue.

1 Like

Hi,

I have no idea why the log 1 says STATIC. All other 9 logs say DYNAMIC. I am not mounting a config folder; I do not even know how to do that. Perhaps I did not properly restarted the service in Balena?

About the second issue, I am now testing if port 8887 is open in the university net.

Hi again,

I got it working! The port 8887 was closed. Now seems to work nicely. Sorry if I caused inconvenience with such a silly issue. Still, thanks @xoseperez for having a look.

15.06.22 11:55:24 (-0500) Started service 'basicstation sha256:a76a088b1dccc08c11601bf6d9758f5e254cb95e496d9ef2cb9d365f07ee4778'
15.06.22 11:55:24 (-0500)  basicstation  GATEWAY_EUI: DCA632FFFEDF31F7
15.06.22 11:55:25 (-0500)  basicstation  parse error: Invalid numeric literal at EOF at line 1, column 12
15.06.22 11:55:25 (-0500)  basicstation  
15.06.22 11:55:25 (-0500)  basicstation  ------------------------------------------------------------------
15.06.22 11:55:25 (-0500)  basicstation  Protocol
15.06.22 11:55:25 (-0500)  basicstation  ------------------------------------------------------------------
15.06.22 11:55:25 (-0500)  basicstation  Mode:          DYNAMIC
15.06.22 11:55:25 (-0500)  basicstation  Protocol:      CUPS
15.06.22 11:55:25 (-0500)  basicstation  CUPS Server:   https://nam1.cloud.thethings.network:443
15.06.22 11:55:25 (-0500)  basicstation  Main NIC:      eth0
15.06.22 11:55:25 (-0500)  basicstation  Gateway EUI:   DCA632FFFEDF31F7
15.06.22 11:55:25 (-0500)  basicstation  ------------------------------------------------------------------
15.06.22 11:55:25 (-0500)  basicstation  Radio
15.06.22 11:55:25 (-0500)  basicstation  ------------------------------------------------------------------
15.06.22 11:55:25 (-0500)  basicstation  Model:         RAK2245
15.06.22 11:55:25 (-0500)  basicstation  Concentrator:  SX1301
15.06.22 11:55:25 (-0500)  basicstation  Design:        V2
15.06.22 11:55:25 (-0500)  basicstation  Radio Device:  /dev/spidev0.0
15.06.22 11:55:25 (-0500)  basicstation  Interface:     SPI
15.06.22 11:55:25 (-0500)  basicstation  SPI Speed:     2000000
15.06.22 11:55:25 (-0500)  basicstation  Reset GPIO:    17
15.06.22 11:55:25 (-0500)  basicstation  Enable GPIO:   0
15.06.22 11:55:25 (-0500)  basicstation  ------------------------------------------------------------------
15.06.22 11:55:25 (-0500)  basicstation  
15.06.22 11:55:25 (-0500)  basicstation  Concentrator reset through GPIO17
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.104 [SYS:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.104 [SYS:INFO] Station Ver : 2.0.6(rpi/stdn) 2022-05-31 17:06:34
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.104 [SYS:INFO] Package Ver : (null)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.104 [SYS:INFO] mbedTLS Ver : 2.28.0
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.104 [SYS:INFO] proto EUI   : dca6:32ff:fedf:31f7   (station.conf)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.104 [SYS:INFO] prefix EUI  : ::1   (builtin)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.104 [SYS:INFO] Station EUI : dca6:32ff:fedf:31f7
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.105 [SYS:INFO] Station home: ./    (builtin)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.105 [SYS:INFO] Station temp: /var/tmp/     (builtin)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.109 [RAL:DEBU] execvp argv[0]: </proc/self/exe>
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.109 [RAL:DEBU]        argv[1]: <-S>
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.109 [RAL:DEBU]        argv[2]: <(null)>
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.116 [S00:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.116 [S00:INFO] Station Ver : 2.0.6(rpi/stdn) 2022-05-31 17:06:34
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.118 [S00:INFO] Package Ver : (null)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.118 [S00:INFO] mbedTLS Ver : 2.28.0
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.118 [S00:INFO] proto EUI   : dca6:32ff:fedf:31f7   (station.conf)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.118 [S00:INFO] prefix EUI  : ::1   (builtin)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.119 [S00:INFO] Station EUI : dca6:32ff:fedf:31f7
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.120 [S00:INFO] Station home: ./    (builtin)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.120 [S00:INFO] Station temp: /var/tmp/     (builtin)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.121 [S00:INFO] Station slave: 0
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.122 [S00:INFO] Slave LGW (0) - started.
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.108 [RAL:INFO] Master has started slave: pid=44 idx=0 (attempt 1)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.308 [TCE:INFO] Starting TC engine
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.309 [TCE:ERRO] No TC URI configured
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.309 [CUP:INFO] Starting a CUPS session in 0 seconds.
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.309 [TCE:INFO] Router rejected or retry limit reached. Invoking CUPS.
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.309 [TCE:INFO] Terminating TC engine
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.309 [CUP:INFO] Starting a CUPS session now.
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.309 [CUP:INFO] Connecting to CUPS ... https://nam1.cloud.thethings.network:443 (try #1)
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.377 [AIO:INFO] ./cups.trust: 
15.06.22 11:55:26 (-0500)  basicstation  cert. version     : 3
15.06.22 11:55:26 (-0500)  basicstation  serial number     : 04:00:00:00:00:01:15:4B:5A:C3:94
15.06.22 11:55:26 (-0500)  basicstation  issuer name       : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
15.06.22 11:55:26 (-0500)  basicstation  subject name      : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
15.06.22 11:55:26 (-0500)  basicstation  issued  on        : 1998-09-01 12:00:00
15.06.22 11:55:26 (-0500)  basicstation  expires on        : 2028-01-28 12:00:00
15.06.22 11:55:26 (-0500)  basicstation  signed using      : RSA with SHA1
15.06.22 11:55:26 (-0500)  basicstation  RSA key size      : 2048 bits
15.06.22 11:55:26 (-0500)  basicstation  basic constraints : CA=true
15.06.22 11:55:26 (-0500)  basicstation  key usage         : Key Cert Sign, CRL Sign
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.431 [CUP:VERB] Retrieving update-info from CUPS https://nam1.cloud.thethings.network:443...
15.06.22 11:55:26 (-0500)  basicstation  2022-06-15 16:55:26.435 [CUP:DEBU] CUPS Request: {"router":"dca6:32ff:fedf:31f7","cupsUri":"https://nam1.cloud.thethings.network:443","tcUri":null,"cupsCredCrc":3424366189,"tcCredCrc":2077607535,"station":"2.0.6(rpi/stdn) 2022-05-31 17:06:10","model":"rpi","package":null,"keys":[]}
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.349 [CUP:INFO] [Segment] TC URI: wss://nam1.cloud.thethings.network:8887
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.349 [CUP:INFO] [Segment] TC Credentials (1510 bytes)
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.349 [SYS:INFO]  credComplete - trust_off=   0, trust_len=1391               30 82 05 6b  30 82 03 53
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.349 [SYS:INFO]  credComplete - cert_off =1391, cert_len =   0  da de 18 27  00 00 00 00  41 75 74 68
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.349 [SYS:INFO]  credComplete - key_off  =1395, key_len  = 115  00 00 00 00  41 75 74 68  6f 72 69 7a
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.350 [CUP:INFO] [Segment] TC Credentials update completed (1510 bytes)
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.365 [AIO:DEBU] [4] HTTP connection shutdown...
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.366 [CUP:INFO] CUPS provided TC updates (uri) - restarting TC engine
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.366 [CUP:INFO] Interaction with CUPS done - next regular check in 1d
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.366 [TCE:INFO] Starting TC engine
15.06.22 11:55:27 (-0500)  basicstation  2022-06-15 16:55:27.367 [AIO:INFO] ./tc.trust: 
15.06.22 11:55:27 (-0500)  basicstation  cert. version     : 3
15.06.22 11:55:27 (-0500)  basicstation  serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
15.06.22 11:55:27 (-0500)  basicstation  issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
15.06.22 11:55:27 (-0500)  basicstation  subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
15.06.22 11:55:27 (-0500)  basicstation  issued  on        : 2015-06-04 11:04:38
15.06.22 11:55:27 (-0500)  basicstation  expires on        : 2035-06-04 11:04:38
15.06.22 11:55:27 (-0500)  basicstation  signed using      : RSA with SHA-256
15.06.22 11:55:27 (-0500)  basicstation  RSA key size      : 4096 bits
15.06.22 11:55:27 (-0500)  basicstation  basic constraints : CA=true
15.06.22 11:55:27 (-0500)  basicstation  key usage         : Key Cert Sign, CRL Sig2022-06-15 16:55:27.367 [TCE:INFO] Connecting to INFOS: wss://nam1.cloud.thethings.network:8887
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.043 [TCE:INFO] Infos: dca6:32ff:fedf:31f7 muxs-::0 wss://nam1.cloud.thethings.network:8887/traffic/eui-DCA632FFFEDF31F7
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.043 [AIO:DEBU] [4] ws_close reason=1000
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.043 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.043 [AIO:DEBU] [4] WS connection shutdown...
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.044 [AIO:INFO] ./tc.trust: 
15.06.22 11:55:28 (-0500)  basicstation  cert. version     : 3
15.06.22 11:55:28 (-0500)  basicstation  serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
15.06.22 11:55:28 (-0500)  basicstation  issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
15.06.22 11:55:28 (-0500)  basicstation  subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
15.06.22 11:55:28 (-0500)  basicstation  issued  on        : 2015-06-04 11:04:38
15.06.22 11:55:28 (-0500)  basicstation  expires on        : 2035-06-04 11:04:38
15.06.22 11:55:28 (-0500)  basicstation  signed using      : RSA with SHA-256
15.06.22 11:55:28 (-0500)  basicstation  RSA key size      : 4096 bits
15.06.22 11:55:28 (-0500)  basicstation  basic constraints : CA=true
15.06.22 11:55:28 (-0500)  basicstation  key usage         : Key Cert Sign, CRL Sig2022-06-15 16:55:28.044 [TCE:VERB] Connecting to MUXS...
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.858 [S00:INFO] Lora gateway library version: Version: 5.0.1;
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.859 [S00:INFO] [LGW lgw1] clksrc=1 lorawan_public=1
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.859 [S00:INFO]  RX/TX RF0:    904.3MHz rssi_offset=-166.0 type=2 tx_notch_freq=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  RX    RF1:    905.0MHz rssi_offset=-166.0 type=2 tx_notch_freq=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  [mSF]   0:    903.9MHz rf=0 freq=-400.0 datarate=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  [mSF]   1:    904.1MHz rf=0 freq=-200.0 datarate=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  [mSF]   2:    904.3MHz rf=0 freq=  +0.0 datarate=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  [mSF]   3:    904.5MHz rf=0 freq=+200.0 datarate=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  [mSF]   4:    904.7MHz rf=1 freq=-300.0 datarate=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  [mSF]   5:    904.9MHz rf=1 freq=-100.0 datarate=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  [mSF]   6:    905.1MHz rf=1 freq=+100.0 datarate=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  [mSF]   7:    905.3MHz rf=1 freq=+300.0 datarate=0
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.860 [S00:INFO]  [STD]   8:    904.6MHz rf=0 freq=+300.0 datarate=4 bw=1 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.861 [S00:INFO]  channel 9 disabled
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.861 [S00:INFO] SX130x LBT not enabled
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.861 [S00:INFO] Station device: /dev/spidev0.0 (PPS capture disabled)
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.861 [S00:INFO] [lgw_spi_open:101] Setting SPI speed to 2000000
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.861 [S00:INFO] [lgw_spi_open:135] Note: SPI port opened and configured ok
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.773 [TCE:VERB] Connected to MUXS.
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [RAL:INFO] Region plan hwspec 'sx1301/1' mapped to 1 slaves 'sx1301/1'
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [RAL:INFO] Master sending 645 bytes of JSON sx1301conf to slave (0)
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO] Configuring for region: US915 -- 923.0MHz..928.0MHz
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR0  SF10/BW125 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR1  SF9/BW125 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR2  SF8/BW125 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR3  SF7/BW125 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR4  SF8/BW500 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR5  FSK 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR6  FSK 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR7  FSK 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR8  SF12/BW500 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR9  SF11/BW500 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR10 SF10/BW500 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR11 SF9/BW500 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR12 SF8/BW500 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR13 SF7/BW500 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR14 FSK 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   DR15 FSK 
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   TX power: 26.0 dBm EIRP
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   JoinEui list: 0 entries
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
15.06.22 11:55:28 (-0500)  basicstation  2022-06-15 16:55:28.831 [S2E:INFO]   Dev/test settings: nocca=1 nodc=1 nodwell=1
15.06.22 11:55:32 (-0500)  basicstation  2022-06-15 16:55:32.183 [S00:INFO] Concentrator started (3s322ms)
15.06.22 11:56:14 (-0500)  basicstation  2022-06-15 16:56:14.169 [SYN:INFO] MCU/SX130X drift stats: min: +0.0ppm  q50: +7.6ppm  q80: -8.6ppm  max: -16.2ppm - threshold q90: -11.4ppm
15.06.22 11:56:14 (-0500)  basicstation  2022-06-15 16:56:14.169 [SYN:INFO] Mean MCU drift vs SX130X#0: 0.4ppm
15.06.22 11:56:33 (-0500)  basicstation  2022-06-15 16:56:33.074 [SYN:INFO] Time sync qualities: min=81 q90=167 max=169 (previous q90=2147483647)
15.06.22 11:56:56 (-0500)  basicstation  2022-06-15 16:56:56.181 [SYN:INFO] MCU/SX130X drift stats: min: +0.0ppm  q50: +0.5ppm  q80: -7.6ppm  max: +9.0ppm - threshold q90: -8.6ppm
15.06.22 11:56:56 (-0500)  basicstation  2022-06-15 16:56:56.181 [SYN:INFO] Mean MCU drift vs SX130X#0: 0.0ppm
15.06.22 11:57:11 (-0500)  basicstation  2022-06-15 16:57:10.885 [SYN:VERB] Time sync rejected: quality=170 threshold=167
2 Likes

Great!
Enjoy your gateway :grinning:

3 Likes

Hi, I’m setting a basic station using the banana example fleet with Fin v1.0 and Nebra LoRa concentrator (sx1301 based).

For the device variables, I copied the TC_Key from API and rebooted, but still getting error

 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-10-11 04:20:08.815 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
 basicstation  2022-10-11 04:20:08.817 [AIO:ERRO] [-1] WS connect failed: NET - Failed to get an IP address for the given hostname
 basicstation  2022-10-11 04:20:08.817 [AIO:DEBU] [-1] WS connection shutdown...
 basicstation  2022-10-11 04:20:08.817 [TCE:ERRO] TC connect failed - URI: wss://in.cloud.thethings.network:8887
 basicstation  2022-10-11 04:20:08.817 [TCE:INFO] INFOS reconnect backoff 60s (retry 17)
 basicstation  2022-10-11 04:21:08.819 [any:INFO] ./tc.trust:

Thanks :slightly_smiling_face:

Issued fixed, When we select IN865 in balena it’s trying to connect to the wss://in.cloud.thethings.network:8887 but it’s actually not correct on the TTN server side as it’s already listed as “eu1.cloud.thethings.network” even if we select the IN and selected TTN_REGION in device variable as “in” .

So in order to fix the issue, I just changed the TTN_REGION as “eu1:slightly_smiling_face:

1 Like

Thank you @salmanfarisvp for confirming that it worked once you changed the TTN_REGION :slight_smile:

1 Like

I have the log saying

[AIO:INFO] tc has no key+cert configured - running server auth only
[TCE:VERB] Connecting to MUXS...
[AIO:ERRO] [3] WS upgrade failed with HTTP status code: 401
[AIO:DEBU] [3] WS connection shutdown...
[TCE:INFO] INFOS reconnect backoff 10s (retry 1)

i have created every thing with default settings
My TTN gateway have no API keys
the full log is attached
thanks for help
basicstation_fierce-time-22.11.22_06_13_59_(+0200).txt (73.9 KB)

1 Like

I generated an API key in TTN and use it as TC_key variable in Device variables
now it connects and send gateway status to TTN and disconnect again
basicstation_fierce-time-22.11.22_06_43_06_(+0200).txt (90.6 KB)

1 Like

@besco1998 did you try to deploy this basicstation? GitHub - xoseperez/basicstation: Basics™ Station Packet Forward protocol using Docker