chain-docs
chain-docs copied to clipboard
Problem: missing instructions for deploying chain-main with Docker image
@CeruleanAtMonaco mentioned this was required by one of external parties
It doesn't sync data, what's wrong with it? I just use this way https://crypto.org/docs/getting-started/croeseid-testnet.html#step-3-run-everything to start node.

Or could you provide the official docker image to run node directly?
It doesn't sync data, what's wrong with it? I just use this way https://crypto.org/docs/getting-started/croeseid-testnet.html#step-3-run-everything to start node.
![]()
it seems you have no peer in the network. For state-sync, you may need to set the persistent peer. Could you check the persistent peer?
You might also try the nix instructions, it'll setup the state-sync configurations automatically. But you need to install nix in advance.
I resolve it. But the height starts from 1092200, how can i make it start from 0?
I resolve it. But the height starts from 1092200, how can i make it start from 0?
disable state-sync, it'll sync block one by one from 0.
How can I can make it disable?
I resolve it. But the height starts from 1092200, how can i make it start from 0?
For archive node, you need to download the binary of v0.8.1-croeseid first.
you need to clean your state-sync data by
chain-maind unsafe-reset-all --home [YOUR_HOME]
Then, like @yihuang said disable state-sync in config.
When you encounter the upgrade message, you need to upgrade the binary to v0.9.1-croeseid
upgrade guide
How can I uninstall the ./chain-maind command?
Just delete it?
I resolve it. But the height starts from 1092200, how can i make it start from 0?
For archive node, you need to download the binary of v0.8.1-croeseid first. you need to clean your state-sync data by
chain-maind unsafe-reset-all --home [YOUR_HOME]Then, like @yihuang said disable state-sync in config. When you encounter the upgrade message, you need to upgrade the binary to v0.9.1-croeseid upgrade guide
I use the v0.9.1-croeseid now.
Now it start from 0. But what's the default position of the sync data?
Now it start from 0. But what's the default position of the sync data?
Now it start from 0. But what's the default position of the sync data?
~/.chain-maind/data
Ok, I find it. How can I stop it?
Now it start from 0. But what's the default position of the sync data?
~/.chain-maind/data
There is not .chain-maind stop command
There is not .chain-maind stop command
ctrl + c will stop the process
Only this way?
There is not .chain-maind stop command
ctrl + c will stop the process
Only this way? If I start it back, how can I stop it? It doesn't have other way to stop?
Now I meet a problem

There is not .chain-maind stop command
ctrl + c will stop the process
Only this way? If I start it back, how can I stop it? It doesn't have other way to stop?
follow this, to create systemd service to start or stop
Now I meet a problem
How can I resolve this problem?
And I do this:

Now I meet a problem
How can I resolve this problem?
what is the binary version?
./chain-maind version
./chain-maind version

I delete data and sync from 0. Now it is normal.
./chain-maind version
if you want a fullnode from block 0 to latest block, you need to run on the binary of v0.8.1-croeseid first and then switch the binary to v0.9.1-croeseid when encountering the upgrade block. Otherwise, you can use v0.9.1-croeseid to set up state-sync node with recent block as a starting point.
./chain-maind version
if you want a fullnode from block 0 to latest block, you need to run on the binary of v0.8.1-croeseid first and then switch the binary to v0.9.1-croeseid when encountering the upgrade block. Otherwise, you can use v0.9.1-croeseid to set up state-sync node with recent block as a starting point.
You mean if I want to start from 0, I must use v0.8.1-croeseid first, then upgrade to v0.9.1-croeseid. If I use v0.9.1-croeseid directly from 0, is not ok?
./chain-maind version
if you want a fullnode from block 0 to latest block, you need to run on the binary of v0.8.1-croeseid first and then switch the binary to v0.9.1-croeseid when encountering the upgrade block. Otherwise, you can use v0.9.1-croeseid to set up state-sync node with recent block as a starting point.
You mean if I want to start from 0, I must use v0.8.1-croeseid first, then upgrade to v0.9.1-croeseid. If I use v0.9.1-croeseid directly from 0, is not ok?
yes, because this binary of v0.9.1-croeseid contains consensus-breaking changes which should not be used to sync the block ahead upgraded block 905532.
./chain-maind version
if you want a fullnode from block 0 to latest block, you need to run on the binary of v0.8.1-croeseid first and then switch the binary to v0.9.1-croeseid when encountering the upgrade block. Otherwise, you can use v0.9.1-croeseid to set up state-sync node with recent block as a starting point.
You mean if I want to start from 0, I must use v0.8.1-croeseid first, then upgrade to v0.9.1-croeseid. If I use v0.9.1-croeseid directly from 0, is not ok?
yes, because this binary of v0.9.1-croeseid contains consensus-breaking changes which should not be used to sync the block ahead upgraded block 905532.
OK, now I use v0.8.1 sync from 0. How can I upgrade it fast? I need delete v0.8.1, then install v0.9.1?