# RAK7258 does always disconnect in TTN V3

**URL:** <https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554>\
**Category:** RAK Gateways\
**Created:** [September 15, 2021, 12:52pm UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554 "2021-09-15T12:52:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![htshusum](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/htshusum/32/39625_2.png) [@htshusum](https://www.thethingsnetwork.org/forum/u/htshusum)\
**Post date:** [September 15, 2021, 12:52pm UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/1 "2021-09-15T12:52:00Z")

</div>

Hello,  
I tried to connect my RAK7258 exactly as described in the documentation: [RAK7258 Supported LoRa Network Servers | RAKwireless Documentation Center](https://docs.rakwireless.com/Product-Categories/WisGate/RAK7258/Supported-LoRa-Network-Servers/#connecting-to-ttnv3)  
But it always disconnects within a second:  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/9/a/9a545974b00fca44a8f50579cce06d3529c98087.png)  
In the Gateway-System-Log it always says:  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/e/2/e234dfae46805768188feb7156903909e661ed53.png)

Could somebody help me with this error? I tried my best but didn’t find any mistake…  
Thank you!

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [September 15, 2021, 5:37pm UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/2 "2021-09-15T17:37:02Z")

</div>

Does your gateway have an active and working connection to the Internet?

If you momentarily run it with the built-in server instead, does it stay up? That would validate that it isn’t an internal hardware problem.

You could try to get a larger view of the gateway log, what you’ve captured doesn’t show any reason for failure.

---

<div class="post-metadata">

**Author:** ![htshusum](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/htshusum/32/39625_2.png) [@htshusum](https://www.thethingsnetwork.org/forum/u/htshusum)\
**Post date:** [September 16, 2021, 4:27am UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/5 "2021-09-16T04:27:18Z")

</div>

Yes it has active connection to the internet.

How can I run the built-in server?

Here is a larger view of the gateway log:

\<Image of text removed as per forum guidelines - OP previously asked not to\>

---

<div class="post-metadata">

**Author:** ![Jeff-UK](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jeff-uk/32/35697_2.png) [@Jeff-UK](https://www.thethingsnetwork.org/forum/u/Jeff-UK)\
**Post date:** [September 16, 2021, 8:08am UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/6 "2021-09-16T08:08:15Z")

</div>

> [@htshusum](#):
>
> How can I run the built-in server?

If a RAK gw has a built in NS this is simply enabled from the RAK web gui… and would place your gateway outside TTN and therefore out of scope for this forum. We are happy to help setting up on TTN, but if running stand alone you would then need to take questions to the RAK forum…

---

<div class="post-metadata">

**Author:** ![tobiaslinkwitz](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tobiaslinkwitz/32/44716_2.png) [@tobiaslinkwitz](https://www.thethingsnetwork.org/forum/u/tobiaslinkwitz)\
**Post date:** [September 16, 2021, 12:18pm UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/7 "2021-09-16T12:18:07Z")

</div>

Hey htshusum,

Make sure in the Basic Station configuration that there are no hidden spaces before and after port number, URI etc - as this will through it off, also make sure you have wss:// at the beginning of the URI, such as wss://au1.cloud.thethings.network OR wss://eu1.cloud.thethings.network for example.

Also I am not sure if this is an error in the RAK guide but the the section for the Client Token looks wrong to me - but I am not sure of the consequence of the difference, I’ve seen it mentioned on another post (that spans few years for RAK):

I believe the Client Token section should be formatted like:  
Authorization: **Bearer** NNSXS.xxxxxxxxxx//  
instead of just:  
Authorization: NNSXS.xxxxxxxxxx//

See if that helps, by pressing save/update I believe the Basics Station restarts - see what it then says in the TTN console after making this change.

Regards

Toby

---

<div class="post-metadata">

**Author:** ![KanyonKris](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kanyonkris/32/39943_2.png) [@KanyonKris](https://www.thethingsnetwork.org/forum/u/KanyonKris)\
**Post date:** [October 12, 2021, 4:51am UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/8 "2021-10-12T04:51:31Z")

</div>

I’m seeing the same errors as @htshusum on my RAK7258. Months ago I moved my RAK7258 from TTN v2 to v3 (also switched from packet forwarder to basic station) and everything was working. Today I logged into TTN v3 to see my gateway disconnected with the same errors on the TTN console and the RAK7258 logs. Did TTN change something?

---

<div class="post-metadata">

**Author:** ![KanyonKris](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kanyonkris/32/39943_2.png) [@KanyonKris](https://www.thethingsnetwork.org/forum/u/KanyonKris)\
**Post date:** [October 12, 2021, 5:55am UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/9 "2021-10-12T05:55:27Z")

</div>

I tried switching from LNS to CUPS, same errors.  
Switched to Packet Forwarder, now my RAK7258 connects to TTN v3.  
No idea what broke with TTN Basic Station. Temporary outage? Certificate expired/changed?

---

<div class="post-metadata">

**Author:** ![KanyonKris](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kanyonkris/32/39943_2.png) [@KanyonKris](https://www.thethingsnetwork.org/forum/u/KanyonKris)\
**Post date:** [October 12, 2021, 6:21am UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/10 "2021-10-12T06:21:06Z")

</div>

Found the problem, I had the wrong URI (server address). I was using `nam1.cloud.thethings.network` since I’m in North America. But it appears that currently the only server for authenticating Basic Station is `eu1.cloud.thethings.network`. I found this by looking at the TTN Console Overview webpage, at the bottom it lists all the servers you should use for your region and the Identity Server is `eu1.cloud.thethings.network`.

---

<div class="post-metadata">

**Author:** ![KanyonKris](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kanyonkris/32/39943_2.png) [@KanyonKris](https://www.thethingsnetwork.org/forum/u/KanyonKris)\
**Post date:** [October 12, 2021, 6:50am UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/11 "2021-10-12T06:50:27Z")

</div>

CUPS works too. Just change the port to 443 and generate a new key for CUPS - [Configuration and Update Server (CUPS) | The Things Stack for LoRaWAN](https://www.thethingsindustries.com/docs/gateways/lora-basics-station/cups/)

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [October 13, 2021, 6:51am UTC](https://www.thethingsnetwork.org/forum/t/rak7258-does-always-disconnect-in-ttn-v3/51554/12 "2021-10-13T06:51:07Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
