# Can not generate keys

**URL:** <https://forum.cardano.org/t/can-not-generate-keys/44614>\
**Category:** Setup a Stake Pool\
**Created:** [13 January 2021 07:13 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614 "2021-01-13T07:13:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [13 January 2021 07:13 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/1 "2021-01-13T07:13:25Z")

</div>

Newbie here! I setup my stake pool with cntools. Stake pool says it is registered even though their is no ticker on [https://pooltool.io/](https://pooltool.io/). I go into cntools pool and show in producer node to see my pools keys to later setup my node, says

_Shelley command failed: stake-pool metadata-hash Error: Error validating stake pool metadata: Error in $: Failed reading: not a valid json value_

I can’t see the keys which are needed to start producing blocks and have a feeling no block was producer to make a key in the first place. What am I doing wrong?

Public Pool id: 823fcd37285cb99491cd4f6cb2db0ac2a1c64bf8c5c603c3db891b2e  
Cheers

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [13 January 2021 08:25 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/2 "2021-01-13T08:25:11Z")

</div>

Hello,

You have an issue with your json file (hash issue) as u can see here:

[https://smash.cardano-mainnet.iohk.io/api/v1/errors/823fcd37285cb99491cd4f6cb2db0ac2a1c64bf8c5c603c3db891b2e](https://smash.cardano-mainnet.iohk.io/api/v1/errors/823fcd37285cb99491cd4f6cb2db0ac2a1c64bf8c5c603c3db891b2e)

you also can see this mismatch also in cntools - pool- show

all u have to do is to upload again the json file, and try to go on cntools to pool - modify…

after you will set the cost, pledge, you will be asked about the json file url… after you put the url link of the json there you should received a message like … json valid, do you want to use it?

complete the registration… restart your node… and check again

PS: url json path should be https… not http!

---

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [13 January 2021 08:42 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/3 "2021-01-13T08:42:34Z")

</div>

Thanks a ton going to try this.

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [13 January 2021 09:03 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/4 "2021-01-13T09:03:21Z")

</div>

and edit your metadata file from site… try to edit like this (without any spaces):

{“name”:“Amarii”,“ticker”:“AMAD”,“description”:“Stake Pool”,“homepage”:“[https://amariiltd.com/amad](https://amariiltd.com/amad)”}

and I recomanded to setup a description… say something about your pool… just stake pool it’s not a cool description… you will want to add delegators right? convince them but setting a nice description

cheers

---

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [13 January 2021 09:33 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/5 "2021-01-13T09:33:32Z")

</div>

> [@Alexd1985](#):
>
> ”}

Hi created a new json file and uploaded it and went through pool - modify added https which I didn’t before thanks for that. It registered okay but still couldn’t get the keys from the modified json file from my website. Tried again with no space in json file as you recommended still doesn’t seem to be working. Thanks for all the help so far.

Is there something else I am doing wrong?  
Cheers

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [13 January 2021 09:38 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/6 "2021-01-13T09:38:43Z")

</div>

did u restart the Producer?  
restart it and show me the gliveview output.

also go to cd $CNODE\_HOME/priv/pool/folder\_name  
ls -l  
here u should have the metadata json file  
try to cat the last file (check the date) and see if it’s looking like file from your site…  
do u edited the file via notepad right and save it like json? then uploaded via ftp? maybe something changed the format/hash

if you go to cntools - pool - show … you will see the hash which should match… I think there it shows different hash … can u check?

also check this:

> **[Stake pool is not shown in Daedalus](https://iohk.zendesk.com/hc/en-us/articles/900004680423-Stake-pool-is-not-shown-in-Daedalus)**
>
>  
> Problem: 
> Stake pool is not shown in Daedalus
>  
> Possible causes:
> 
> Pool has set margin to 100% so it is filtered out. 
> Pool has been retired.
> Pool has been delisted from SMASH 
> Problems with metad...

but I saw in [adapools.org](http://adapools.org) you have the right ticker and also it can be found in daedalus

[https://adapools.org/daedalus](https://adapools.org/daedalus) (Ctrl+f and search AMAD)

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [13 January 2021 10:26 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/7 "2021-01-13T10:26:06Z")

</div>

I recommend (this is how I did) to use a text file editor on your computer; open it and paste {“name”:“Amarii”,“ticker”:“AMAD”,“description”:“Stake Pool”,“homepage”:“[https://amariiltd.com/amad](https://amariiltd.com/amad)”}  
save it as metadata.json and after that upload via ftp to your website

---

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [14 January 2021 05:29 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/8 "2021-01-14T05:29:11Z")

</div>

Thanks I have restarted cnode and update metadata.json just like you mentioned above. I even was able to register with adapools. Thanks again I attached gview screen shows not sure if I am synced and producing blocks. For some reason still can’t see pool-show data in cntools. ![Node](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/8/1/81ea862ac4239bacc3e32fe698dadbe57fccdd95.jpeg)

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [14 January 2021 06:00 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/9 "2021-01-14T06:00:45Z")

</div>

What do u mean u can’t see pool data in cntool? Can u send a screenshot?  
can I see your env output? I know you need to edit your env file.

* * *

- #POOL\_DIR="{CNODE\_HOME}/priv/pool/TEST" # set pool dir to run node as a core node #TOPOLOGY="{CNODE\_HOME}/files/topology.json" # override default topology.json path
- change the TEST name with your folder name where KES/CERTIFICATES are kept (usually your pool name) and make it active by deleting “#” from the beginning of the line:

and still metadata issues, I saw you edited it by adding 8c41978f77a0c20ddb86c0dd3645cbc5 (you should delete it) in the file… can you send me a screenshot from cntools immediately after you configuring URL for the metadata file? (I want to see the message received after you enter the URL)

PS: the above screenshot is from your Producer node? on BP you should not run topologyupdater, only add in your topology file the relays ip address (stay connected only with your relays for security reason)!

---

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [14 January 2021 11:21 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/10 "2021-01-14T11:21:52Z")

</div>

I edit pool priv pool and also edited my topology.json to ride over the defaults.  
Screenshots of ENV

 ![ENV](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/8/c/8c257a85dd82665609201dda8af1828190421f14.jpeg)  
Screenshots of Pool Show  
 ![Pool Show](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/9/c/9c04aca2e4dc77fbfc0c7b842ab68e673bda0fc5.jpeg)  
This is my producer node, I did run an topology update. How do I correct that mistake?

Cheers

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [14 January 2021 11:38 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/11 "2021-01-14T11:38:39Z")

</div>

First…  
turn of your topologyupdater script and delete from crontab.  
if you not set it as a systemd you just need to delete from crontab

if you seted as systemd then:

- check status :  
sudo systemctl status cnode-tu-push.service  
sudo systemctl status cnode-tu-push.timer  
sudo systemctl status cnode-tu-fetch.service

if you are see running then you will need to stop and disable  
sudo systemctl stop cnode-tu-push.service  
sudo systemctl stop cnode-tu-push.timer  
sudo systemctl stop cnode-tu-fetch.service

```
                     sudo systemctl disable cnode-tu-push.service
                     sudo systemctl disable cnode-tu-push.timer
                    sudo systemctl disable cnode-tu-fetch.service

```

check again the status:  
sudo systemctl status cnode-tu-push.service  
sudo systemctl status cnode-tu-push.timer  
sudo systemctl status cnode-tu-fetch.service

Now you should go in topology file and edit your topology file to connect only with your Relay:

{  
“Producers”: [  
{  
“addr”: “x.x.x.x”,  
“port”: relay\_port,  
“valency”: 1  
}  
]  
}

and save the file

now, you will need to edit your env file:  
I made a mark for which line you should delete # from the begining in order to activate the line,  
for pool name you should go to take it from priv/pool and there type ls -l and copy the name of the folder and edit in env between the “” for eg : POOL NAME=“ALEX”

and you need to activate (delete # from the begining) all line below for wallet and pool file

after that restart your Producer  
and tell me how it’s look in gliveview (run the ./gLiveView.sh script)

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/2/1/21aba16a25c89188c172d0785df0bc27b489e247.jpeg)

---

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [14 January 2021 14:10 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/12 "2021-01-14T14:10:29Z")

</div>

Thanks nearly there. Edited the topology again. Edited the env.  
Restarted the node and get  
`Node socket not set in env file and automatic detection failed! [source: gLiveView.sh]`

After trying to run ./gLiveView.sh

 ![ENV2](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/d/8/d83fce5ed034bb5ce1b1e607a53b263119b21f12.png)

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [14 January 2021 14:12 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/13 "2021-01-14T14:12:26Z")

</div>

then activate the line 3, 5,6, and 7, and try again, also in cnode.sh script are u starting the node with host address 0.0.0.0 right?

thx,

---

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [14 January 2021 17:24 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/14 "2021-01-14T17:24:31Z")

</div>

Activated line 3, 5,6, and 7.  
Yes I am running 0.0.0.0 on cnode.sh. Restarted the node but its been a few hours now ./gLiveView.sh isn’t coming up. Thanks

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [14 January 2021 17:25 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/15 "2021-01-14T17:25:58Z")

</div>

What do u mean … can u put a snapshot here?  
What is the error when u run the script ./cnode.sh

also line 17 shod be active in env

can u type cd $CNODE\_HOME/priv/pool  
and then ls -l

Is the file named Amarii\_AMAD\_Stake\_Pool ?

Thx

---

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [14 January 2021 17:40 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/16 "2021-01-14T17:40:05Z")

</div>

I didn’t active line 17, Yes the name of the file is Amarii\_AMAD\_Stake\_Pool.  
I should active that right?

 ![Env4](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/c/5/c5a25e4994c43114be9d2381b05cf88337d946da.jpeg)

Error for glview is

thanks  
Cheers

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [14 January 2021 17:44 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/17 "2021-01-14T17:44:48Z")

</div>

Ok,

Yes please activate it;  
Then type  
sudo systemctl stop cnode

go to scripts folder and run ./cnode.sh and show me the err

And please delete the last picture… do not send pictures with your producer ip/username/etc

Thx

---

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [14 January 2021 17:50 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/18 "2021-01-14T17:50:57Z")

</div>

> [@Alexd1985](#):
>
> ./cnode.sh

Yup ran the code and got this

Invalid argument ` ’

Usage: cardano-node (run | [–help])  
Start node of the Cardano blockchain.  
./cnode.sh: line 42: --shelley-kes-key: command not found

Thanks

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [14 January 2021 17:58 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/19 "2021-01-14T17:58:19Z")

</div>

Ok… in env did u activate all lines with wallet and pool right?

go to priv/pool/Amari…  
and ls -l

what files do u see there?

---

<div class="post-metadata">

**Author:** ![Caradano77](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Caradano77](https://forum.cardano.org/u/Caradano77)\
**Post date:** [14 January 2021 18:12 UTC](https://forum.cardano.org/t/can-not-generate-keys/44614/20 "2021-01-14T18:12:42Z")

</div>

Yes, all wallet and pool entries are activated in the env.

In priv/pool/Amarii  
cold.counter  
cold.skey  
cold.vkey  
hot.skey  
hot.vkey  
kes.start  
metadata.json  
op.cert  
pool.cert  
pool.config  
pool.id  
pool.id-bech32  
poolmeta.json  
vrf.skey  
vrf.vkey

Are the files I see in the directory.  
Thanks

[Next page](https://forum.cardano.org/t/can-not-generate-keys/44614.md?page=2)
