Problems connecting LoRa basics station to TTN V3

Hi all,

I’m putting together a prototype board based around a Raspberry Pi CM4 and CM4 baseboard.

It’s got a RAK Wireless RAK2245 on it acting as the LoRa gateway.

So I set everything up going through the helpful piece here

I also used some of the information in the git repo

I had a few problems but cutting a long story short I have the gateway registered up and connected onto the TTN V2 portal

Variables

Working Logs

TTN V2 Console

When I try to move over to TTN V3 I get problems.

Following the instructions I went to the V3 portal

https://eu1.cloud.thethings.network/console/

I added a gateway with my EUI and then created an API token as described

I then

  • added TC_KEY to my variables with this created token
  • changed the stack from 2 to 3
  • changed the region from eu to eu1

These are the variables

This is the log of it failing to connect

One thing I have noted is that my registered gateway seems to be on a different URL from the one in the instructions

eu1.cloud.thethings.network

As you can imagine I have been all around the houses trying different things. Looking at changing the TC_URL and the letsencrypt certs that are used.

Others seem to be having similar troubles. Can anybody advise?

1 Like

@mpous :slight_smile:

1 Like

I also tried various combinations of changing TC_URL, to no avail

Logs

Could you please grant me support access @ajlennon ? i cant’ reproduce!

Done @mpous

https://dashboard.balena-cloud.com/devices/145175f182bf295a98f2d52bd507a7d1/actions

1 Like

Thanks @ajlennon

could you please delete the Variable TC_URI or just modify the port from 443 to 8887?

The URL to connect with The Things Stack in your case is wss://eu1.cloud.thethings.network:8887 and i see on your logs that the port is 443. That’s odd!

Let me know if that works!

1 Like

I have tried that in the past - one of the confusing thing about the docs / portal is the port numbers don’t seem to be documented. Trying again…

BY JOVE! I think you’ve cracked it @mpous !!!

Any ideas what the time-sync rejected business is all about @mpous ?

1 Like

@ajlennon i guess the clock synchronization among the LoRa module and the server differs too much. I read about this here on the lora repo.

Does it work for you to send data? show more :slight_smile:

Will need to get some kit set up. WIll to and will show and tell here :slight_smile:

1 Like

Looking forward to see results :slight_smile:

1 Like

Oh dear. Now I am getting this

@ajlennon could you please paste all the logs since the starting services until there? Thanks!

Been back through… the API key had “disappeared” from TTNv3 for some reason. I recreated that and am now getting this. This TTN stuff isn’t imho as reliable as it needs to be…

17.06.21 16:49:29 (+0100)  main  Gateway EUI: e45f01fffe302a87
17.06.21 16:49:29 (+0100)  main  Gateway EUI: e45f01fffe302a87
17.06.21 16:49:31 (+0100)  main  Using MODEL: SX1301
17.06.21 16:49:31 (+0100)  main  Server: wss://eu1.cloud.thethings.network:8887
17.06.21 16:49:31 (+0100)  main  ONE
17.06.21 16:49:31 (+0100)  main  TWO
17.06.21 16:49:31 (+0100)  main  Authorization: Bearer NNSXS.VQCXBGH73GIIFXATBJPUN4R65G5334TYJAUTGOA.J6XQLVAPVMQAGDC5M2MW3YMF3U3GUE7L57NW23FYR6MPUE37LEIQ
17.06.21 16:49:31 (+0100)  main  THREE
17.06.21 16:49:31 (+0100)  main  Resetting gateway concentrator on GPIO 17
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.575 [SYS:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.575 [SYS:INFO] Station Ver : 2.0.5(rpi/std) 2021-05-15 16:41:30
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.575 [SYS:INFO] Package Ver : 1.0.0
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.575 [SYS:INFO] proto EUI   : 0:e45f:130:2a87     (/sys/class/net/eth0/address)
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.575 [SYS:INFO] prefix EUI  : ::1   (builtin)
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.575 [SYS:INFO] Station EUI : e45f:1ff:fe30:2a87
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.576 [SYS:INFO] Station home: ./    (builtin)
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.576 [SYS:INFO] Station temp: /var/tmp/  (builtin)
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.576 [SYS:WARN] Station in NO-CUPS mode
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.779 [TCE:INFO] Starting TC engine
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.780 [any:INFO] ./tc.trust: 
17.06.21 16:49:34 (+0100)  main  cert. version     : 3
17.06.21 16:49:34 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:49:34 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:34 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:34 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:49:34 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:49:34 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:49:34 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:49:34 (+0100)  main  basic constraints : CA=true
17.06.21 16:49:34 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.780 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:49:34 (+0100)  main  2021-06-17 15:49:34.912 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.249 [TCE:INFO] Infos: e45f:1ff:fe30:2a87 muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE302A87
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.249 [AIO:DEBU] [3] ws_close reason=1000
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.249 [AIO:DEBU] Echoing close - reason=1000
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.250 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.250 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.251 [any:INFO] ./tc.trust: 
17.06.21 16:49:35 (+0100)  main  cert. version     : 3
17.06.21 16:49:35 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:49:35 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:35 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:35 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:49:35 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:49:35 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:49:35 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:49:35 (+0100)  main  basic constraints : CA=true
17.06.21 16:49:35 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.251 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.296 [TCE:VERB] Connecting to MUXS...
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.501 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 401
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.501 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.501 [TCE:VERB] Connection to MUXS closed in state 3
17.06.21 16:49:35 (+0100)  main  2021-06-17 15:49:35.501 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.503 [any:INFO] ./tc.trust: 
17.06.21 16:49:45 (+0100)  main  cert. version     : 3
17.06.21 16:49:45 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:49:45 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:45 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:45 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:49:45 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:49:45 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:49:45 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:49:45 (+0100)  main  basic constraints : CA=true
17.06.21 16:49:45 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.503 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.559 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.869 [TCE:INFO] Infos: e45f:1ff:fe30:2a87 muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE302A87
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.869 [AIO:DEBU] [3] ws_close reason=1000
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.869 [AIO:DEBU] Echoing close - reason=1000
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.873 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.873 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.874 [any:INFO] ./tc.trust: 
17.06.21 16:49:45 (+0100)  main  cert. version     : 3
17.06.21 16:49:45 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:49:45 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:45 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:45 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:49:45 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:49:45 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:49:45 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:49:45 (+0100)  main  basic constraints : CA=true
17.06.21 16:49:45 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.874 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:49:45 (+0100)  main  2021-06-17 15:49:45.914 [TCE:VERB] Connecting to MUXS...
17.06.21 16:49:46 (+0100)  main  2021-06-17 15:49:46.204 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 401
17.06.21 16:49:46 (+0100)  main  2021-06-17 15:49:46.204 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:49:46 (+0100)  main  2021-06-17 15:49:46.205 [TCE:VERB] Connection to MUXS closed in state 3
17.06.21 16:49:46 (+0100)  main  2021-06-17 15:49:46.205 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.206 [any:INFO] ./tc.trust: 
17.06.21 16:49:56 (+0100)  main  cert. version     : 3
17.06.21 16:49:56 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:49:56 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:56 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:56 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:49:56 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:49:56 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:49:56 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:49:56 (+0100)  main  basic constraints : CA=true
17.06.21 16:49:56 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.206 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.278 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.569 [TCE:INFO] Infos: e45f:1ff:fe30:2a87 muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE302A87
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.569 [AIO:DEBU] [3] ws_close reason=1000
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.570 [AIO:DEBU] Echoing close - reason=1000
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.570 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.570 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.570 [any:INFO] ./tc.trust: 
17.06.21 16:49:56 (+0100)  main  cert. version     : 3
17.06.21 16:49:56 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:49:56 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:56 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:49:56 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:49:56 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:49:56 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:49:56 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:49:56 (+0100)  main  basic constraints : CA=true
17.06.21 16:49:56 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.570 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.627 [TCE:VERB] Connecting to MUXS...
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.827 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 401
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.827 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.827 [TCE:VERB] Connection to MUXS closed in state 3
17.06.21 16:49:56 (+0100)  main  2021-06-17 15:49:56.827 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
17.06.21 16:50:06 (+0100)  main  2021-06-17 15:50:06.828 [any:INFO] ./tc.trust: 
17.06.21 16:50:06 (+0100)  main  cert. version     : 3
17.06.21 16:50:06 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:50:06 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:06 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:06 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:50:06 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:50:06 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:50:06 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:50:06 (+0100)  main  basic constraints : CA=true
17.06.21 16:50:06 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:50:06 (+0100)  main  2021-06-17 15:50:06.828 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:50:06 (+0100)  main  2021-06-17 15:50:06.893 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.293 [TCE:INFO] Infos: e45f:1ff:fe30:2a87 muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE302A87
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.293 [AIO:DEBU] [3] ws_close reason=1000
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.293 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.293 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.294 [any:INFO] ./tc.trust: 
17.06.21 16:50:07 (+0100)  main  cert. version     : 3
17.06.21 16:50:07 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:50:07 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:07 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:07 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:50:07 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:50:07 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:50:07 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:50:07 (+0100)  main  basic constraints : CA=true
17.06.21 16:50:07 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.294 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.345 [TCE:VERB] Connecting to MUXS...
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.628 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 401
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.628 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.628 [TCE:VERB] Connection to MUXS closed in state 3
17.06.21 16:50:07 (+0100)  main  2021-06-17 15:50:07.628 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.630 [any:INFO] ./tc.trust: 
17.06.21 16:50:17 (+0100)  main  cert. version     : 3
17.06.21 16:50:17 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:50:17 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:17 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:17 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:50:17 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:50:17 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:50:17 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:50:17 (+0100)  main  basic constraints : CA=true
17.06.21 16:50:17 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.630 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.678 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.896 [TCE:INFO] Infos: e45f:1ff:fe30:2a87 muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE302A87
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.896 [AIO:DEBU] [3] ws_close reason=1000
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.896 [AIO:DEBU] Echoing close - reason=1000
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.897 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.897 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.897 [any:INFO] ./tc.trust: 
17.06.21 16:50:17 (+0100)  main  cert. version     : 3
17.06.21 16:50:17 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:50:17 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:17 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:17 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:50:17 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:50:17 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:50:17 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:50:17 (+0100)  main  basic constraints : CA=true
17.06.21 16:50:17 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.898 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:50:17 (+0100)  main  2021-06-17 15:50:17.934 [TCE:VERB] Connecting to MUXS...
17.06.21 16:50:18 (+0100)  main  2021-06-17 15:50:18.326 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 401
17.06.21 16:50:18 (+0100)  main  2021-06-17 15:50:18.326 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:50:18 (+0100)  main  2021-06-17 15:50:18.326 [TCE:VERB] Connection to MUXS closed in state 3
17.06.21 16:50:18 (+0100)  main  2021-06-17 15:50:18.326 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.327 [any:INFO] ./tc.trust: 
17.06.21 16:50:28 (+0100)  main  cert. version     : 3
17.06.21 16:50:28 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:50:28 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:28 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:28 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:50:28 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:50:28 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:50:28 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:50:28 (+0100)  main  basic constraints : CA=true
17.06.21 16:50:28 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.328 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.371 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.734 [TCE:INFO] Infos: e45f:1ff:fe30:2a87 muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE302A87
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.734 [AIO:DEBU] [3] ws_close reason=1000
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.734 [AIO:DEBU] Echoing close - reason=1000
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.736 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.736 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.736 [any:INFO] ./tc.trust: 
17.06.21 16:50:28 (+0100)  main  cert. version     : 3
17.06.21 16:50:28 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:50:28 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:28 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:28 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:50:28 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:50:28 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:50:28 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:50:28 (+0100)  main  basic constraints : CA=true
17.06.21 16:50:28 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.736 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:50:28 (+0100)  main  2021-06-17 15:50:28.776 [TCE:VERB] Connecting to MUXS...
17.06.21 16:50:29 (+0100)  main  2021-06-17 15:50:28.987 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 401
17.06.21 16:50:29 (+0100)  main  2021-06-17 15:50:28.987 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:50:29 (+0100)  main  2021-06-17 15:50:28.987 [TCE:VERB] Connection to MUXS closed in state 3
17.06.21 16:50:29 (+0100)  main  2021-06-17 15:50:28.987 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:38.988 [any:INFO] ./tc.trust: 
17.06.21 16:50:39 (+0100)  main  cert. version     : 3
17.06.21 16:50:39 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:50:39 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:39 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:39 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:50:39 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:50:39 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:50:39 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:50:39 (+0100)  main  basic constraints : CA=true
17.06.21 16:50:39 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:38.988 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.065 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.294 [TCE:INFO] Infos: e45f:1ff:fe30:2a87 muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE302A87
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.294 [AIO:DEBU] [3] ws_close reason=1000
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.294 [AIO:DEBU] Echoing close - reason=1000
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.296 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.296 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.297 [any:INFO] ./tc.trust: 
17.06.21 16:50:39 (+0100)  main  cert. version     : 3
17.06.21 16:50:39 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:50:39 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:39 (+0100)  main  subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
17.06.21 16:50:39 (+0100)  main  issued  on        : 2000-09-30 21:12:19
17.06.21 16:50:39 (+0100)  main  expires on        : 2021-09-30 14:01:15
17.06.21 16:50:39 (+0100)  main  signed using      : RSA with SHA1
17.06.21 16:50:39 (+0100)  main  RSA key size      : 2048 bits
17.06.21 16:50:39 (+0100)  main  basic constraints : CA=true
17.06.21 16:50:39 (+0100)  main  key usage         : Key Cert Sign, CRL Sign
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.297 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.331 [TCE:VERB] Connecting to MUXS...
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.504 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 401
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.504 [AIO:DEBU] [3] WS connection shutdown...
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.504 [TCE:VERB] Connection to MUXS closed in state 3
17.06.21 16:50:39 (+0100)  main  2021-06-17 15:50:39.504 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
17.06.21 16:50:49 (+0100)  main  2021-06-17 15:50:49.506 [any:INFO] ./tc.trust: 
17.06.21 16:50:49 (+0100)  main  cert. version     : 3
17.06.21 16:50:49 (+0100)  main  serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
17.06.21 16:50:49 (+0100)  main  issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
...

I updated to the latest container from the repo and I am getting a slightly different set of errors now

17.06.21 17:03:58 (+0100) Installing service 'main sha256:48de26b1c0d4bd699bc249aaf745866320c4f39716c8d658459997353118daab'
17.06.21 17:03:58 (+0100) Installed service 'main sha256:48de26b1c0d4bd699bc249aaf745866320c4f39716c8d658459997353118daab'
17.06.21 17:03:58 (+0100) Starting service 'main sha256:48de26b1c0d4bd699bc249aaf745866320c4f39716c8d658459997353118daab'
17.06.21 17:03:59 (+0100) Started service 'main sha256:48de26b1c0d4bd699bc249aaf745866320c4f39716c8d658459997353118daab'
17.06.21 17:03:59 (+0100)  main  Gateway EUI: e45f01fffe302a87
17.06.21 17:03:59 (+0100)  main  Gateway EUI: e45f01fffe302a87
17.06.21 17:04:00 (+0100)  main  Using MODEL: SX1301
17.06.21 17:04:00 (+0100)  main  Server: wss://eu1.cloud.thethings.network:8887
17.06.21 17:04:00 (+0100)  main  Resetting gateway concentrator on GPIO 17
17.06.21 17:04:03 (+0100)  main  2021-06-17 16:04:03.935 [SYS:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
17.06.21 17:04:03 (+0100)  main  2021-06-17 16:04:03.935 [SYS:INFO] Station Ver : 2.0.5(rpi/std) 2021-06-17 16:01:01
17.06.21 17:04:03 (+0100)  main  2021-06-17 16:04:03.935 [SYS:INFO] Package Ver : 1.0.0
17.06.21 17:04:03 (+0100)  main  2021-06-17 16:04:03.935 [SYS:INFO] proto EUI   : 0:e45f:130:2a87     (/sys/class/net/eth0/address)
17.06.21 17:04:03 (+0100)  main  2021-06-17 16:04:03.935 [SYS:INFO] prefix EUI  : ::1   (builtin)
17.06.21 17:04:03 (+0100)  main  2021-06-17 16:04:03.935 [SYS:INFO] Station EUI : e45f:1ff:fe30:2a87
17.06.21 17:04:03 (+0100)  main  2021-06-17 16:04:03.936 [SYS:INFO] Station home: ./    (builtin)
17.06.21 17:04:03 (+0100)  main  2021-06-17 16:04:03.936 [SYS:INFO] Station temp: /var/tmp/  (builtin)
17.06.21 17:04:03 (+0100)  main  2021-06-17 16:04:03.936 [SYS:WARN] Station in NO-CUPS mode
17.06.21 17:04:04 (+0100)  main  2021-06-17 16:04:04.138 [TCE:INFO] Starting TC engine
17.06.21 17:04:04 (+0100)  main  2021-06-17 16:04:04.139 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
17.06.21 17:04:04 (+0100)  main  2021-06-17 16:04:04.139 [AIO:ERRO] tc trust certificates rejected by MBedTLS
17.06.21 17:04:04 (+0100)  main  2021-06-17 16:04:04.140 [TCE:INFO] INFOS reconnect backoff 0s (retry 0)
17.06.21 17:04:04 (+0100)  main  2021-06-17 16:04:04.140 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
17.06.21 17:04:04 (+0100)  main  2021-06-17 16:04:04.140 [AIO:ERRO] tc trust certificates rejected by MBedTLS
17.06.21 17:04:04 (+0100)  main  2021-06-17 16:04:04.140 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
17.06.21 17:04:14 (+0100)  main  2021-06-17 16:04:14.141 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
17.06.21 17:04:14 (+0100)  main  2021-06-17 16:04:14.141 [AIO:ERRO] tc trust certificates rejected by MBedTLS
17.06.21 17:04:14 (+0100)  main  2021-06-17 16:04:14.141 [TCE:INFO] INFOS reconnect backoff 20s (retry 2)
17.06.21 17:04:34 (+0100)  main  2021-06-17 16:04:34.143 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
17.06.21 17:04:34 (+0100)  main  2021-06-17 16:04:34.143 [AIO:ERRO] tc trust certificates rejected by MBedTLS
17.06.21 17:04:34 (+0100)  main  2021-06-17 16:04:34.143 [TCE:INFO] INFOS reconnect backoff 30s (retry 3)
17.06.21 17:05:04 (+0100)  main  2021-06-17 16:05:04.144 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
17.06.21 17:05:04 (+0100)  main  2021-06-17 16:05:04.144 [AIO:ERRO] tc trust certificates rejected by MBedTLS
17.06.21 17:05:04 (+0100)  main  2021-06-17 16:05:04.144 [TCE:INFO] INFOS reconnect backoff 40s (retry 4)

This is odd! Question from previous logs, did you register the gateway on TTS?

Yeah I did - I left it all working on V3, packed it up, just unpacked it and this is what is happening. Haven’t changed anything around

Never saw this error before! Let me check!

Are you using TC_TRUST variable?

No not using TC_TRUST