# Unknown error after creating Devices

**URL:** <https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911>\
**Category:** The Things Stack v3\
**Created:** [July 8, 2022, 9:16am UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911 "2022-07-08T09:16:14Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbney](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rbney/32/35697_2.png) [@rbney](https://www.thethingsnetwork.org/forum/u/rbney)\
**Post date:** [July 8, 2022, 9:16am UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/1 "2022-07-08T09:16:15Z")

</div>

Hello.  
I have an application where i importet a few devices a few weeks ago. Now I wanted to rename them all, but when i try to acces them i get this:  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/2/9/2988de86db421447c99dfdde5ed341eab8184d94.png)

I cant delete them because i cant access them, also i cant replace them/import them again because they already exist.  
Can anyone help me?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 8, 2022, 9:22am UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/2 "2022-07-08T09:22:52Z")

</div>

> [@rbney](#):
>
> Can anyone help me?

Yes, yes I can - search the forum for the answer I give each time which has the letters LIC …

---

<div class="post-metadata">

**Author:** ![rbney](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rbney/32/35697_2.png) [@rbney](https://www.thethingsnetwork.org/forum/u/rbney)\
**Post date:** [July 8, 2022, 9:40am UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/3 "2022-07-08T09:40:24Z")

</div>

I dont know if im stupid right now but i dont understand that answer…

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 8, 2022, 1:02pm UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/4 "2022-07-08T13:02:08Z")

</div>

Search the forum?

---

<div class="post-metadata">

**Author:** ![claudiormrosa](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/claudiormrosa/32/45368_2.png) [@claudiormrosa](https://www.thethingsnetwork.org/forum/u/claudiormrosa)\
**Post date:** [July 8, 2022, 5:44pm UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/5 "2022-07-08T17:44:31Z")

</div>

Good morning,

I am trying to access my endnode but I am receiving a generic error message.

Could you help me?

Regards,

Claudio

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/c/7/c796eefe094e61c3158deaceb274a3f8e8f94d63.png)

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/e/1/e1360dd46f77fa9884a9f7cfed7aa9dcb9c8eb85.png)

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 8, 2022, 7:15pm UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/6 "2022-07-08T19:15:56Z")

</div>

Moved your post to the thread that was at the top of the list so we don’t have two of the same.

The forum is entirely run by volunteers so we ask people to use the forum search to see if something has been answered already - or multiple times.

In this case, something, somehow, has got in to the database that the web front end can’t cope with. The simplest solution, given there is no SLA or support for the free service, is to use the [CLI](https://www.thethingsindustries.com/docs/getting-started/cli/) tool to delete the devices and re-enter them from either the CLI (preferable) or via the web console which works 99% of the time for me, but just occasionally I manage to confuse the browser enough that I break it all. That said, the CLI is more of an atomic commit to the database, so if I’m doing a fair number of devices I use that.

Sometimes editing a setting can cause this issue.

If I get any form of detail (both EUIs) that can help the TTI developers trace such situations I do pass it on.

---

<div class="post-metadata">

**Author:** ![rbney](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rbney/32/35697_2.png) [@rbney](https://www.thethingsnetwork.org/forum/u/rbney)\
**Post date:** [July 12, 2022, 5:38am UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/7 "2022-07-12T05:38:33Z")

</div>

Hello again.  
I deleted them with cli and created them again but the same error occures again…

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 12, 2022, 8:24am UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/8 "2022-07-12T08:24:55Z")

</div>

> [@rbney](#):
>
> created them again but the same error occures again

Via the web or the CLI?

> [@descartes](#):
>
> If I get any form of detail (both EUIs) that can help the TTI developers trace such situations I do pass it on.

The sparsity of information isn’t going to give anyone much to go on.

Are there any particular settings you are choosing that aren’t the defaults?

---

<div class="post-metadata">

**Author:** ![mkals](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mkals/32/42175_2.png) [@mkals](https://www.thethingsnetwork.org/forum/u/mkals)\
**Post date:** [July 12, 2022, 2:54pm UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/9 "2022-07-12T14:54:32Z")

</div>

Hello,

I have been using the CLI with command `ttn-lw-cli end-devices create` to make new devices with the TTN V3 stack, and it is generally working well. However, the devices I create show in the “End devices” list in the Console, but when I try to click on the devices created through the CLI, I get the error `An unknown error occurred. Please try again later. If the error persists, please contact support.`

Have anyone else encountered this? Are there some properties on the device I need to set for it to display properly in the console? I have tried with the `--lorawan-version` flag, and had problems with the `--frequency-plan-id` if with for [US\_902\_928\_FSB\_2](https://www.thethingsindustries.com/docs/reference/frequency-plans/).

[CLI reference here.](https://www.thethingsindustries.com/docs/ttn-lw-cli/ttn-lw-cli_end-devices_create/)

All advice will be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 12, 2022, 3:30pm UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/10 "2022-07-12T15:30:47Z")

</div>

> [@mkals](#):
>
> All advice will be greatly appreciated!

As above, having merged your topic in to the current thread, if you could share details - the CLI command would be critical to checking this - we can make progress.

The Dev & Join EUI’s are of public record in gateway logs, so NO NEED to redact anything unless your app & device ids are rude or contain privileged information.

I’m particularly interested in the options that you, @rbney or @claudiormrosa are using.

And as we have a collection, I’ll start warming up the TTI team with a shout out to @kschiffer

---

<div class="post-metadata">

**Author:** ![mkals](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mkals/32/42175_2.png) [@mkals](https://www.thethingsnetwork.org/forum/u/mkals)\
**Post date:** [July 12, 2022, 3:56pm UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/11 "2022-07-12T15:56:35Z")

</div>

The exact command I am running (for example) is this: `ttn-lw-cli end-devices create ensemble-dev-nam 935-test-id --request-dev-eui --lorawan-version "1.0.3"`

Gives me the output:

```auto
INFO JoinEUI empty but defaults flag is set, fetch default JoinEUI of the Join Server {"join_server_address": "nam1.cloud.thethings.network:8884"}
INFO Successfully obtained Join Server's default JoinEUI {"default_join_eui": "0000000000000000"}
INFO Successfully obtained DevEUI {"dev_eui": "70B3D57ED00531F1"}
{
  "ids": {
    "device_id": "935-test-id",
    "application_ids": {
      "application_id": "test-dev-nam"
    },
    "dev_eui": "70B3D57ED00531F1",
    "join_eui": "0000000000000000"
  },
  "created_at": "2022-07-12T15:54:40.611Z",
  "updated_at": "2022-07-12T15:54:41.173972986Z",
  "attributes": {},
  "network_server_address": "nam1.cloud.thethings.network",
  "application_server_address": "nam1.cloud.thethings.network",
  "join_server_address": "nam1.cloud.thethings.network",
  "lorawan_version": "MAC_V1_0_3",
  "supports_join": true
}

```

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 12, 2022, 4:35pm UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/12 "2022-07-12T16:35:25Z")

</div>

You’ll need to tell it what frequency band you want it to use and what regional parameters.

Because it’s not specified, using the power of Google Protocol Buffers, the entry for the band is null which isn’t something the web console can use to look up its name. So it falls over.

So you need to add:

> –frequency-plan-id THE\_BAND\_ID\_HERE --lorawan-phy-version PHY\_V1\_0\_3\_REV\_A

You can get a list of the band id’s using `ttn-lw-cli end-devices list-frequency-plans`

You can set these two items for your previously created device.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 12, 2022, 4:38pm UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/13 "2022-07-12T16:38:23Z")

</div>

PS, I’d be wary of using all zeros for the App/JoinEUI - it works on some things and sometimes not at all, just keep that in the back of your mind whilst debugging!

---

<div class="post-metadata">

**Author:** ![mkals](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mkals/32/42175_2.png) [@mkals](https://www.thethingsnetwork.org/forum/u/mkals)\
**Post date:** [July 12, 2022, 4:47pm UTC](https://www.thethingsnetwork.org/forum/t/unknown-error-after-creating-devices/57911/14 "2022-07-12T16:47:44Z")

</div>

Excellent, it works now! Seems that `--frequency-plan-id` and `--lorawan-phy-version` both must be specified at the same time for the command to complete if any of them are used. For others with the same issue, this command worked for me in the end:

```auto
ttn-lw-cli end-devices create YOUR_ORG_ID YOUR_DEVICE_ID --request-dev-eui --lorawan-version "1.0.3" --frequency-plan-id "US_902_928_FSB_2" --lorawan-phy-version "PHY_V1_0_3_REV_A" --join-eui "16_DIGIT_HEX_NUMBER_FOR_JOIN_EUI"

```

Thanks for your help!
