Tutorial: How to manually download latest pruned ChainDB [GOOGLE CLOUD]

wget -O - “https://nkn.org/ChainDB_pruned_latest.tar.gz” -q --show-progress | tar -xzf -

There’s a problem with double quotes if you just copy paste the link. Delete and retype the quotes

1 Like

I’m sure I’m an idiot, but what exactly am I supposed to type on Step #5? Thank you.

username@nkn-full-node-1-vm-1:~$ sudo su
root@nkn-full-node-1-vm-1:/home/username# cd
root@nkn-full-node-1-vm-1:~# cd nkn/nkn-commercial/services/nkn-node/
bash: cd: nkn/nkn-commercial/services/nkn-node/: No such file or directory
root@nkn-full-node-1-vm-1:~# rm -r ChainDB
rm: cannot remove ‘ChainDB’: No such file or directory
root@nkn-full-node-1-vm-1:~# cd username@nkn-full-node-1-vm-1
bash: cd: username@nkn-full-node-1-vm-1: No such file or directory

1 Like

How would you do this on a windows node?

1 Like

I am having a similar issue. Did you figure it out?

1 Like

Same issue here, anyone figured it out yet??

1 Like

how can i download chaindb your link everytime say 404 not found , i waiting 4 days and never find answer about this waiting db syncing and only %2 :slight_smile: this so boring and need a help

2 Likes

I will ping technical team for a solution

3 Likes

We no longer provide ChainDB after we introduced light sync in v2.1.7 (NKN MainNet v2.1.7 Release). Light sync takes much less storage space than ChainDB. Here is the quote about how to enable light sync:

How to enable fast sync and light sync

Please note that fast sync and light sync can only be enabled when node has NO local ChainDB directory (i.e. a fresh sync). You need to remove the ChainDB directory and let node do a fresh sync if you want to enable them.

There are two ways to enable fast sync and light sync:

  • Add --sync fast argument when starting nknd to enable fast sync, or add --sync light argument when starting nknd to enable light sync.

  • Add "SyncMode": "fast" to config.json to enable fast sync, or add "SyncMode": "light" to config.json to enable light sync.

You should only choose one sync mode, not both.

1 Like

thx for answers i started fast sync and wait , Should I delete it from the line after synchronization? "–sync fast
"

1 Like

If you want to try light sync, you should change config from fast to light, stop nknd, remove ChainDB directory, and start nknd again

2 Likes

The program closes after a certain period of time during synchronization. I am using a restarter. Is there a different solution?

1 Like