Problems running `createStakePool.sh`

I am getting the error

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?

1 Like

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.

1 Like

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?

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).

1 Like

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.

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

1 Like

This worked after it was funded.

2 Likes

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.

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

1 Like

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
failed to make a REST request
|-> node rejected request because of invalid parameters
|-> http://127.0.0.1:3100/api/v0/account/xxxx: Client Error: 404 Not Found

Did Daedalus say the transaction completed?

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

1 Like

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/

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

I’m glad to hear that.

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.

1 Like

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

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.

1 Like

Hi dbwest,

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

Once again, Thank you!

Hi adatainment,

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

1 Like

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

1 Like

@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

@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.

1 Like