Problems Migrating LoRa GW from TTN v2 to TTN v3

Hi,
i just want to migrate my Gateway from v2 to v3 , but it dosnt stop to ask for an GW_KEY . But in V3 Version i should use the TC_KEY.

Dose some one have a Idea why it dosn’t use the TTN_STACK_VERSION Variable ?

Thanks for your Input

Marcel

Restarting service 'main XXXXXccXXXXXXX'
 main  *** Resin Machine Info:
 main  *** Type: None
 main  *** Arch: None
 main  *******************
 main  *** Configuration:
 main  *******************
 main  GW_EUI:  XXXXXXXXXXX
 main  Enabling TTN gateway connector
 main  ERROR: GW_KEY required
 main  See https://www.thethingsnetwork.org/docs/gateways/registration.html#via-gateway-connector
Service exited 'main XXXXXccXXXXXXX'

Hello @m_m_o thanks for reporting your issue here.

Let me see if i can help you! Could you please confirm the balenaOS version and supervisor version? It looks like you are using an old version?

And could you please confirm what version of TTS gateway are you installing?

Just to add more information, did you try this? Deploy a Basics Station The Things Network LoRa gateway with balena @m_m_o ?

Hi @mpous,
thanks for your help.

I go thrgou the whole howto to migrate the gateway so yes i tryed it.

The Gateway is on 2.80.3+rev1 and the supervisor is on 12.8.8

greets

mmo

@m_m_o could you please share more logs? thanks!

hi,

@mpous , there not many more logs aktuall :

*** Resin Machine Info:
 main  *** Type: None
 main  *** Arch: None
 main  *******************
 main  *** Configuration:
 main  *******************
 main  GW_EUI:  XXXXXXXXXXXXXXXXX
 main  Enabling TTN gateway connector
 main  ERROR: GW_KEY required
 main  See https://www.thethingsnetwork.org/docs/gateways/registration.html#via-gateway-connector

I deleted the gw_key variable, in your howto isn’t it set also …

could you please confirm what gateway project you deployed to that balenaCloud application?

@mpous where do i can look it up ?

Go to the Application > Releases and the latest, and maybe you can copy the docker-compose.

Or you can click the Deploy with balena button on the blogpost of the Basics Station here Deploy a Basics Station The Things Network LoRa gateway with balena

Hi @mpous ,

Thats the kick … the release was the old release of the gateway.

But now i have these problem error in the log:

Gateway EUI: b827ebfffeb7f6de
 main  Using MODEL: RAK2245
 main  Server: wss://eu1.cloud.thethings.network:8887
 main  Resetting gateway concentrator on GPIO 17
 main  2021-06-24 12:00:23.572 [SYS:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
 main  2021-06-24 12:00:23.572 [SYS:INFO] Station Ver : 2.0.5(rpi/std) 2021-06-24 11:56:02
 main  2021-06-24 12:00:23.573 [SYS:INFO] Package Ver : 1.0.0
 main  2021-06-24 12:00:23.573 [SYS:INFO] proto EUI   : XXXXXXXXX        (/sys/class/net/eth0/address)
 main  2021-06-24 12:00:23.573 [SYS:INFO] prefix EUI  : ::1     (builtin)
 main  2021-06-24 12:00:23.573 [SYS:INFO] Station EUI : b827:ebff:feb7:f6de
 main  2021-06-24 12:00:23.573 [SYS:INFO] Station home: ./      (builtin)
 main  2021-06-24 12:00:23.573 [SYS:INFO] Station temp: /var/tmp/       (builtin)
 main  2021-06-24 12:00:23.573 [SYS:WARN] Station in NO-CUPS mode
 main  2021-06-24 12:00:23.776 [TCE:INFO] Starting TC engine
 main  2021-06-24 12:00:23.777 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
 main  2021-06-24 12:00:23.777 [AIO:ERRO] tc trust certificates rejected by MBedTLS
 main  2021-06-24 12:00:23.777 [TCE:INFO] INFOS reconnect backoff 0s (retry 0)
 main  2021-06-24 12:00:23.777 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
 main  2021-06-24 12:00:23.777 [AIO:ERRO] tc trust certificates rejected by MBedTLS
 main  2021-06-24 12:00:23.777 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
 main  2021-06-24 12:00:33.779 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
 main  2021-06-24 12:00:33.779 [AIO:ERRO] tc trust certificates rejected by MBedTLS
 main  2021-06-24 12:00:33.779 [TCE:INFO] INFOS reconnect backoff 20s (retry 2)
 main  2021-06-24 12:00:53.781 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
 main  2021-06-24 12:00:53.781 [AIO:ERRO] tc trust certificates rejected by MBedTLS
 main  2021-06-24 12:00:53.781 [TCE:INFO] INFOS reconnect backoff 30s (retry 3)
 main  2021-06-24 12:01:23.782 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
 main  2021-06-24 12:01:23.782 [AIO:ERRO] tc trust certificates rejected by MBedTLS
 main  2021-06-24 12:01:23.783 [TCE:INFO] INFOS reconnect backoff 40s (retry 4)
 main  2021-06-24 12:02:03.784 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
 main  2021-06-24 12:02:03.784 [AIO:ERRO] tc trust certificates rejected by MBedTLS
 main  2021-06-24 12:02:03.784 [TCE:INFO] INFOS reconnect backoff 50s (retry 5)
 main  2021-06-24 12:02:53.786 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
 main  2021-06-24 12:02:53.786 [AIO:ERRO] tc trust certificates rejected by MBedTLS
 main  2021-06-24 12:02:53.786 [TCE:INFO] INFOS reconnect backoff 60s (retry 6)
 main  2021-06-24 12:03:53.787 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
 main  2021-06-24 12:03:53.787 [AIO:ERRO] tc trust certificates rejected by MBedTLS
 main  2021-06-24 12:03:53.787 [TCE:INFO] INFOS reconnect backoff 60s (retry 7)
 main  2021-06-24 12:04:53.789 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input
 main  2021-06-24 12:04:53.789 [AIO:ERRO] tc trust certificates rejected by MBedTLS
 main  2021-06-24 12:04:53.789 [TCE:INFO] INFOS reconnect backoff 60s (retry 8)
 main  2021-06-24 12:05:53.790 [any:ERRO] Parsing trust certificate: PEM - PEM string is not as expected : BASE64 - Invalid character in input


Ok @m_m_o i have seen this error before on other users! Could you please share your environment variables here (like before you did)?

i just commented one line of code, try again to deploy the repository and let me know if that works!

1 Like

Hi @mpous ,

thanks for your help. That fixed the Problem.

1 Like

Thank you for the confirmation @m_m_o we are working in order to solve this :slight_smile:

Let me know if you need more help! Let’s stay connected!