# Problems running \`createStakePool.sh\`

**URL:** <https://forum.cardano.org/t/problems-running-createstakepool-sh/30469>\
**Category:** Operate a Stake Pool\
**Created:** [2 February 2020 19:00 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469 "2020-02-02T19:00:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbwest](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@dbwest](https://forum.cardano.org/u/dbwest)\
**Post date:** [2 February 2020 19:00 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/1 "2020-02-02T19:00:15Z")

</div>

I am getting the error

```auto
error: Invalid value for '--account-spending-counter <account-spending-counter>': cannot parse integer from empty string

```

My command is  
`export PRIVATE_KEY_SK=a_secret_key`  
`./createStakePool.sh 3100 1000 1/100 $PRIVATE_KEY_SK | tee createStakePool_output.txt`

What do I do to address this error?

---

<div class="post-metadata">

**Author:** ![adatainment](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adatainment/32/81481_2.png) [@adatainment](https://forum.cardano.org/u/adatainment)\
**Post date:** [3 February 2020 05:47 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/2 "2020-02-03T05:47:00Z")

</div>

> [@dbwest](#):
>
> cannot parse integer from empty string

I’m not 100% sure on this but, do you have funds in the address? You need 500 ada for the registration and some for the transaction itself. 510 ada should be enough.

---

<div class="post-metadata">

**Author:** ![csa86](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@csa86](https://forum.cardano.org/u/csa86)\
**Post date:** [3 February 2020 06:36 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/3 "2020-02-03T06:36:00Z")

</div>

Hi adatainment,  
I submitted registering staking pool yesterday.(I did pull request) But I’m in the same situation.

You mean do I need to send 510ADA to my address made by createAddress.sh?  
If I don’t have any Ada now, What should I do? I need to get ADA from someone?

---

<div class="post-metadata">

**Author:** ![adatainment](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adatainment/32/81481_2.png) [@adatainment](https://forum.cardano.org/u/adatainment)\
**Post date:** [3 February 2020 06:52 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/4 "2020-02-03T06:52:50Z")

</div>

Please note, when people talk about “registering a stake pool” they can mean two different things:

1… stake pool registration on the Cardano blockchain. So basically what the createStakePool.sh script is for. It costs the 500 + x ada and registers your pool so people can delegate. (this process actually creates the pool)

2… “registering” pool metadata for wallets, currently handled in the GitHub of the Cardano Foundation. This is done by a pull request, it’s free and has nothing to do with the creation of a stake pool.

It connects your pool id with human-readable, metadata like pool name, description, website address etc, which would make no sense to store on the blockchain. (of course still important to get listed into the wallets)

To get back to your question, @csa86: it’s unlikely that you are in the same situation because you need to do step (1) to be able to submit a pull request for step (2).

---

<div class="post-metadata">

**Author:** ![csa86](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@csa86](https://forum.cardano.org/u/csa86)\
**Post date:** [3 February 2020 07:15 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/5 "2020-02-03T07:15:01Z")

</div>

Hi adatainment,

Thank you for your quick response!  
I understand the above information very much.  
But, Actually I didn’t send 500+α ADA to my address…  
Also, I had same error which dbwest said at 3.3 and 4.4 .  
But, I continued the procedure.So, will 500+α ADA make it in time if I send it?

■I did the below procedure.

> <https://github.com/input-output-hk/shelley-testnet/blob/master/docs/stake_pool_operator_how_to.md#org88eff96>

---

<div class="post-metadata">

**Author:** ![dbwest](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@dbwest](https://forum.cardano.org/u/dbwest)\
**Post date:** [3 February 2020 16:57 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/6 "2020-02-03T16:57:49Z")

</div>

I sent funds to the address AFAIK. I have a separate thread open because when I tried to check the funds were sent it did not work. I sent funds from a rewards wallet to the ADDRESS in stakepool\_owner.txt

---

<div class="post-metadata">

**Author:** ![dbwest](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@dbwest](https://forum.cardano.org/u/dbwest)\
**Post date:** [4 February 2020 01:34 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/7 "2020-02-04T01:34:49Z")

</div>

This worked after it was funded.

---

<div class="post-metadata">

**Author:** ![csa86](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@csa86](https://forum.cardano.org/u/csa86)\
**Post date:** [4 February 2020 01:59 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/8 "2020-02-04T01:59:33Z")

</div>

Hi dbwest,  
Thank you for your information!  
you mean you sent about 500ADA to your address which is made by createAddress.sh?  
and a reward wallet is reward Daidalos wallet you have?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![dbwest](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@dbwest](https://forum.cardano.org/u/dbwest)\
**Post date:** [4 February 2020 02:33 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/9 "2020-02-04T02:33:20Z")

</div>

I did send the ADA from the rewards wallet in Daedalus to ADDRESS in `stakepool_owner.txt`. Checking with jcli confirmed that it made it there.

The address was made with the following  
`./createAddress.sh account | tee stakepool_owner_account.txt`

---

<div class="post-metadata">

**Author:** ![csa86](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@csa86](https://forum.cardano.org/u/csa86)\
**Post date:** [4 February 2020 14:40 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/10 "2020-02-04T14:40:20Z")

</div>

Hi dbwest,  
Thank you for your quick response.  
I sent 600ADA to my Address made with `/createAddress.sh account | tee stakepool_owner_account.txt`.  
But, I didn.t work. I need to wait for a few hours?

xxxxx@xxxxx-desktop:~/xxxxx$ ./jcli rest v0 account get $ADDRESS -h [http://127.0.0.1:3100/api](http://127.0.0.1:3100/api)  
failed to make a REST request  
|-\> node rejected request because of invalid parameters  
|-\> [http://127.0.0.1:3100/api/v0/account/xxxx:](http://127.0.0.1:3100/api/v0/account/xxxx:) Client Error: 404 Not Found

---

<div class="post-metadata">

**Author:** ![dbwest](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@dbwest](https://forum.cardano.org/u/dbwest)\
**Post date:** [4 February 2020 14:43 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/11 "2020-02-04T14:43:31Z")

</div>

Did Daedalus say the transaction completed?

That error you posted from jcli indicates that you need to sync your jormungandr node.

---

<div class="post-metadata">

**Author:** ![csa86](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@csa86](https://forum.cardano.org/u/csa86)\
**Post date:** [4 February 2020 15:14 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/12 "2020-02-04T15:14:33Z")

</div>

Yes, actucally I send it to my address 10 hours ago.  
and then I restarted my jormungandr node.But, I still doesn’t work this command.  
Of course I can check my balance in Cardabi explorer.  
[https://shelleyexplorer.cardano.org/en/blocks/](https://shelleyexplorer.cardano.org/en/blocks/)

Or Do I need to do the below command before?  
`./createStakePool.sh 3100 1000 1/100 $PRIVATE_KEY_SK | tee createStakePool_output.txt`

---

<div class="post-metadata">

**Author:** ![adatainment](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adatainment/32/81481_2.png) [@adatainment](https://forum.cardano.org/u/adatainment)\
**Post date:** [4 February 2020 15:17 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/13 "2020-02-04T15:17:38Z")

</div>

I’m glad to hear that.

---

<div class="post-metadata">

**Author:** ![adatainment](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adatainment/32/81481_2.png) [@adatainment](https://forum.cardano.org/u/adatainment)\
**Post date:** [4 February 2020 15:20 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/14 "2020-02-04T15:20:06Z")

</div>

> [@csa86](#):
>
> But, I still doesn’t work this command.

If a command does not work, please post the error message that is thrown. Like @dbwest indicated the balance maybe is not shown because your node is not in sync with the rest of the network.

---

<div class="post-metadata">

**Author:** ![dbwest](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@dbwest](https://forum.cardano.org/u/dbwest)\
**Post date:** [4 February 2020 17:56 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/15 "2020-02-04T17:56:44Z")

</div>

Because jormungandr can be finicky getting started I recommend the following

Create a script  
`touch start_node.sh`  
edit `start_node.sh` and add the following

```auto
RET=1
until [${RET} -eq 0]; do
  ./jormungandr --genesis-block-hash $(cat genesis-hash.txt) --config ./config.yaml
  RET=$?
  sleep 10
done

```

`chmod +x start_node.sh`

And run it

`./start_node.sh`

Good luck.

---

<div class="post-metadata">

**Author:** ![csa86](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@csa86](https://forum.cardano.org/u/csa86)\
**Post date:** [5 February 2020 02:44 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/16 "2020-02-05T02:44:48Z")

</div>

Hi dbwest,

Thank you for your support!!!  
It works well!!!

Once again, Thank you!

---

<div class="post-metadata">

**Author:** ![csa86](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@csa86](https://forum.cardano.org/u/csa86)\
**Post date:** [5 February 2020 02:46 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/17 "2020-02-05T02:46:09Z")

</div>

Hi adatainment,

Thank you for your support as always,  
It works well! My node wasn’t in sync with the rest of the network.

---

<div class="post-metadata">

**Author:** ![dbwest](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@dbwest](https://forum.cardano.org/u/dbwest)\
**Post date:** [5 February 2020 03:01 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/18 "2020-02-05T03:01:58Z")

</div>

@csa86 no problem. Did your node sync? Mine has been having a lot of trouble bootstrapping all of today and most of yesterday.

---

<div class="post-metadata">

**Author:** ![csa86](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@csa86](https://forum.cardano.org/u/csa86)\
**Post date:** [5 February 2020 11:32 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/19 "2020-02-05T11:32:36Z")

</div>

@dbwest  
I’m the same situation now…I can’t connect to peer like the below…

> Blockquote  
> Feb 05 19:44:18.546 INFO fetching block 8e4d2a343f3dcf9330ad9035b3e8d168e6728904262f2c434a4f8f934ec7b676, peer\_address: 3.125.75.156:3000, block: 8e4d2a343f3dcf9330ad9035b3e8d168e6728904262f2c434a4f8f934ec7b676, task: init  
> Feb 05 19:44:18.971 WARN failed to download block, error: GetBlocks { source: Error { code: Unknown, source: Status { code: Unknown, message: “connection error: broken pipe” } } }, peer\_address: 3.125.75.156:3000, block: 8e4d2a343f3dcf9330ad9035b3e8d168e6728904262f2c434a4f8f934ec7b676, task: init  
> Feb 05 20:30:09.032 INFO connection to peer failed, reason: protocol handshake failed: unknown error (grpc-status: Unknown, grpc-message: “connection error: broken pipe”), node\_id: 97d04238a55a182211355d4dcecbdbc193323d53a5b0b8ca, peer\_addr: 52.196.133.35:3000, task: network  
> Feb 05 20:30:09.107 INFO failed to connect to peer, reason: Connection refused (os error 111), node\_id: feedc0defeedc0defeedc0defeedc0defeedc0deee999999, peer\_addr: 140.82.21.193:3009, task: network  
> Feb 05 20:30:09.208 INFO failed to connect to peer, reason: Connection refused (os error 111), node\_id: c5fa479a77252ebab886c0c721fc6f5ba38da23ff8377ea8, peer\_addr: 139.162.195.205:3498, task: network

---

<div class="post-metadata">

**Author:** ![dbwest](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@dbwest](https://forum.cardano.org/u/dbwest)\
**Post date:** [5 February 2020 12:30 UTC](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469/20 "2020-02-05T12:30:23Z")

</div>

@csa86 Mine is similar. Left it to go all today while I’m at work. If it starts working the block chain will be synced by the time I’m home. Regardless I’ll send another message when I find out if it is working. Let me know if yours works.

[Next page](https://forum.cardano.org/t/problems-running-createstakepool-sh/30469.md?page=2)
