Importing Old Pool-Keys to New Node

Hello all,

So I have been on a quest to get 550 ADA I had sent to my old node wallet back in September of 2020. Little bit of context, I attempted to start my own stake pool and was able to actually send some ADA to my pool wallet. I ended by taking a break from the node operation and backed up my pool-keys directory. The files I backed up were:

Pool:
cold.counter
cold.skey
cold.vkey
vrf.skey
vrf.vkey

Wallet:
payment.addr
payment.skey
payment.vkey
stake.skey
stake.vkey

I set up this new node using CNtools and it appears when I set up my new wallet, that I have the files needed to replace the ones generated in the new wallet. What is the easiest way to copy those pool-key files into the correct directories on my new node so I can attempt to retrieve my ADA.

Thanks in advance.

hello,

sftp from your pc to the node (filezilla)

Cheers,

Awesome, so I got FileZilla set up and connected. usually I use the $ cd $CNODE_HOME command to get to the folder with the code dir.

Where is the CNONE_HOME in the file structure?

hmm should be in /opt/cardano/cnode if I remember well

I was looking for that. I have:
.cabal
.config
.ghcup
.local
.ssh
git
snap
tmp

double click on … twice

image

you should see

image

1 Like

Found it! but…

Error: Directory /opt/cardano/cnode/priv: permission denied
Error: Failed to retrieve directory listing

did u logged with root user?
can u check if you can access other folder like scripts? or logs?

connect to your node and try to change the folder persmision

go on cd $CNODE_HOME and type ls -l

show me the output has a different right?

total 28
drwxr-xr-x 5 tyco tyco 4096 Feb 11 08:08 db
drwxr-xr-x 2 tyco tyco 4096 Feb 11 08:07 files
drwxr-xr-x 2 tyco tyco 4096 Feb 10 17:51 guild-db
drwxr-xr-x 3 tyco tyco 4096 Feb 11 08:20 logs
drwx------ 4 tyco tyco 4096 Feb 11 08:16 priv
drwxr-xr-x 2 tyco tyco 4096 Feb 11 08:20 scripts
drwxr-xr-x 2 tyco tyco 4096 Feb 11 08:09 sockets

you see? you must change the rights for priv folder…
type chmod 755 priv

ls -l again… how is looking now?

Perfect it worked. Now just to copy the files over. Is it safe just to replace them?

yes, the file from your pc will not be deleted… only on server will be replaced

What files is the ADA actually stored on? The payment.skey/.vkey?

I also have the kes.skey and kes.vkey. Do those need to be copied? I haven’t actually registered the pool on my new node

edit: typos

payment.skey

but add all files

Error: /opt/cardano/cnode/priv/wallet/TEST/payment.addr: open for write: permission denied
Error: File transfer failed

Guessing this is something else I need to change in permission

if you unregistere the pool is not necessary… o
and files from wallet folder should be:

  • base.addr
  • delegation.cert
  • payment.addr
  • payment.addr
  • payment.vkey
  • reward.addr
  • stake.cert
    -stake.skey
  • stake.vkey

but I think u need only:
base.addr

  • payment.addr
  • payment.skey
  • payment.vkey

yeah, my bad, we didn’t change the rights for all subfolders
cd $CNODE_HOME/priv/wallet/
ls -l
and change the rights for TEST folder
chmode 755 TEST

ls -l

drwxr-xr-x 2 tyco tyco 4096 Feb 11 08:20 TEST

Error: /opt/cardano/cnode/priv/wallet/TEST/payment.skey: open for write: permission denied
Error: File transfer failed

Could this be because my username is different from my SSH keys and the sudo user in my vm?