# API key error multinode

**URL:** <https://forum.storj.io/t/api-key-error-multinode/26136>\
**Category:** troubleshooting\
**Created:** [May 8, 2024, 7:22am UTC](https://forum.storj.io/t/api-key-error-multinode/26136 "2024-05-08T07:22:26Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jammerdan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jammerdan/32/1121_2.png) [@jammerdan](https://forum.storj.io/u/jammerdan)\
**Post date:** [May 8, 2024, 7:22am UTC](https://forum.storj.io/t/api-key-error-multinode/26136/1 "2024-05-08T07:22:26Z")

</div>

My multinode terminal shows API secret errors.  
Is there a way to display the actual API secret of a node without creating a new one?

---

<div class="post-metadata">

**Author:** ![PePeR](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/peper/32/1127_2.png) [@PePeR](https://forum.storj.io/u/PePeR)\
**Post date:** [May 9, 2024, 4:10pm UTC](https://forum.storj.io/t/api-key-error-multinode/26136/2 "2024-05-09T16:10:51Z")

</div>

Run directly in the node directory  
`sudo storagenode info --config-dir "/PATH/TO/NODE" --identity-dir "/PATH/TO/NODE/identity/"`  
It should display the secret for the node

---

<div class="post-metadata">

**Author:** ![jammerdan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jammerdan/32/1121_2.png) [@jammerdan](https://forum.storj.io/u/jammerdan)\
**Post date:** [May 10, 2024, 1:39am UTC](https://forum.storj.io/t/api-key-error-multinode/26136/3 "2024-05-10T01:39:33Z")

</div>

I think in the past even this command created a new API key instead of displaying the existing one. So I am reluctant to run it.  
I remember it from my post here:

> [@Changelog v1.47.3](https://forum.storj.io/t/changelog-v1-47-3/16935/3):
>
> I ran the info command multiple times and every time it will display a different (new) API secret? Is it supposed that way? In that case “info” seems to be misleading. I would expect existing config to be displayed when using an “info” command. Also I am not sure if I am doing that right as I get returned address and name empty and no port. So the info for entering into multinode seems incomplete.

I don’t know if this maybe was a bug and has been changed since then?

---

<div class="post-metadata">

**Author:** ![PePeR](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/peper/32/1127_2.png) [@PePeR](https://forum.storj.io/u/PePeR)\
**Post date:** [May 10, 2024, 6:49am UTC](https://forum.storj.io/t/api-key-error-multinode/26136/4 "2024-05-10T06:49:05Z")

</div>

I just checked… yes it created new secret, I don’t know how to display the old one.

---

<div class="post-metadata">

**Author:** ![jammerdan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jammerdan/32/1121_2.png) [@jammerdan](https://forum.storj.io/u/jammerdan)\
**Post date:** [May 10, 2024, 6:51am UTC](https://forum.storj.io/t/api-key-error-multinode/26136/5 "2024-05-10T06:51:44Z")

</div>

I don’t know if it is even possible. In the database it is only stored as binary.  
Mayba @Alexey has an idea.

---

<div class="post-metadata">

**Author:** ![PePeR](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/peper/32/1127_2.png) [@PePeR](https://forum.storj.io/u/PePeR)\
**Post date:** [May 10, 2024, 6:53am UTC](https://forum.storj.io/t/api-key-error-multinode/26136/6 "2024-05-10T06:53:58Z")

</div>

But if I delete the node on multidashboard and readd it with new API secret, it has the same statistics, nothing really changed. So why u can’t use the new API key?

API Keys are like keys to the same door, so I think it doesn’t matter if u change it or not, as long as they belong to the same entity

---

<div class="post-metadata">

**Author:** ![jammerdan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jammerdan/32/1121_2.png) [@jammerdan](https://forum.storj.io/u/jammerdan)\
**Post date:** [May 10, 2024, 11:10am UTC](https://forum.storj.io/t/api-key-error-multinode/26136/7 "2024-05-10T11:10:22Z")

</div>

Yes, that’s correct. However currently I have an error showing for a node in the multinode dashboard. I would like to check if this is due to an incorrect API key. So I don’t want to generate a new one if it is possible to see the old one first

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 10, 2024, 3:44pm UTC](https://forum.storj.io/t/api-key-error-multinode/26136/8 "2024-05-10T15:44:14Z")

</div>

You are correct, it will generate a new one.

> [@jammerdan](#):
>
> My multinode terminal shows API secret errors.

then likely one of the nodes has changed its port with another one. If you could swap them back, the error likely will be solved. However, you may just re-add them instead: remove the currently broken from the dashboard and add it back with a new API key, do the same for all such nodes.  
I usually generate a json file with the array and use it to re-import.

```auto
storagenode info --config-dir "/PATH/TO/NODE" --identity-dir "/PATH/TO/NODE/identity/" --json > node1.json

```

do the same for all nodes, then join them to an array:

```auto
$ jq '.' -s node1.json node2.json node3.json > nodes.json
$ ./multinode add nodes.json

```

> [@jammerdan](#):
>
> I would like to check if this is due to an incorrect API key.

likely yes. It may also mirror this message from the monitored node(s), so you may check logs of your nodes, maybe someone has corrupted identity or you wrongly forwarded ports (like 28967 to 28967 of the node, but it has advertised on 28968, and you also has a correctly working node behind 28968 port forwarded as 28968 too and has the external address with 28968 too - so two nodes listening their own ports but advertises the same port and address as an external).

---

<div class="post-metadata">

**Author:** ![jammerdan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jammerdan/32/1121_2.png) [@jammerdan](https://forum.storj.io/u/jammerdan)\
**Post date:** [May 10, 2024, 3:52pm UTC](https://forum.storj.io/t/api-key-error-multinode/26136/9 "2024-05-10T15:52:51Z")

</div>

And there is no way to display the currently API secret from the node again?

Only way is to generate a new one?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 10, 2024, 3:54pm UTC](https://forum.storj.io/t/api-key-error-multinode/26136/10 "2024-05-10T15:54:32Z")

</div>

Yes and this is the simplest one.

---

<div class="post-metadata">

**Author:** ![donald.m.motsinger](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/donald.m.motsinger/32/71_2.png) [@donald.m.motsinger](https://forum.storj.io/u/donald.m.motsinger)\
**Post date:** [May 10, 2024, 6:52pm UTC](https://forum.storj.io/t/api-key-error-multinode/26136/11 "2024-05-10T18:52:24Z")

</div>

> [@jammerdan](#):
>
> And there is no way to display the currently API secret from the node again?
> 
> Only way is to generate a new one?

Seriously, in the time you and others spent in this thread you could have added 100 nodes to your MND. Just give it a rest…

---

<div class="post-metadata">

**Author:** ![jammerdan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jammerdan/32/1121_2.png) [@jammerdan](https://forum.storj.io/u/jammerdan)\
**Post date:** [May 11, 2024, 3:59am UTC](https://forum.storj.io/t/api-key-error-multinode/26136/12 "2024-05-11T03:59:31Z")

</div>

> [@donald.m.motsinger](#):
>
> Seriously, in the time you and others spent in this thread you could have added 100 nodes to your MND.

I guess I could have done many other things too. But that was not the point I was looking for.  
I wanted to know if there was a way to display the currently valid API secret for the node to track down an error.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 11, 2024, 4:45am UTC](https://forum.storj.io/t/api-key-error-multinode/26136/13 "2024-05-11T04:45:23Z")

</div>

Unfortunately there is no known easy way. The easiest is to re-add the node.
