chain-docs icon indicating copy to clipboard operation
chain-docs copied to clipboard

Problem: missing instructions for deploying chain-main with Docker image

Open tomtau opened this issue 4 years ago • 42 comments

@CeruleanAtMonaco mentioned this was required by one of external parties

tomtau avatar Mar 15 '21 01:03 tomtau

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.

image image

Victoryfan avatar Mar 15 '21 02:03 Victoryfan

Or could you provide the official docker image to run node directly?

Victoryfan avatar Mar 15 '21 02:03 Victoryfan

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.

image image

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?

allthatjazzleo avatar Mar 15 '21 02:03 allthatjazzleo

You might also try the nix instructions, it'll setup the state-sync configurations automatically. But you need to install nix in advance.

yihuang avatar Mar 15 '21 03:03 yihuang

I resolve it. But the height starts from 1092200, how can i make it start from 0?

Victoryfan avatar Mar 15 '21 03:03 Victoryfan

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.

yihuang avatar Mar 15 '21 03:03 yihuang

How can I can make it disable?

Victoryfan avatar Mar 15 '21 03:03 Victoryfan

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

allthatjazzleo avatar Mar 15 '21 03:03 allthatjazzleo

How can I uninstall the ./chain-maind command?

Victoryfan avatar Mar 15 '21 03:03 Victoryfan

Just delete it?

Victoryfan avatar Mar 15 '21 03:03 Victoryfan

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.

Victoryfan avatar Mar 15 '21 03:03 Victoryfan

Now it start from 0. But what's the default position of the sync data?

Victoryfan avatar Mar 15 '21 03:03 Victoryfan

Now it start from 0. But what's the default position of the sync data?

Victoryfan avatar Mar 15 '21 03:03 Victoryfan

Now it start from 0. But what's the default position of the sync data?

~/.chain-maind/data

allthatjazzleo avatar Mar 15 '21 03:03 allthatjazzleo

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

Victoryfan avatar Mar 15 '21 03:03 Victoryfan

There is not .chain-maind stop command

Victoryfan avatar Mar 15 '21 04:03 Victoryfan

There is not .chain-maind stop command

ctrl + c will stop the process

allthatjazzleo avatar Mar 15 '21 04:03 allthatjazzleo

Only this way?

Victoryfan avatar Mar 15 '21 04:03 Victoryfan

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?

Victoryfan avatar Mar 15 '21 04:03 Victoryfan

Now I meet a problem

image

Victoryfan avatar Mar 15 '21 04:03 Victoryfan

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

allthatjazzleo avatar Mar 15 '21 04:03 allthatjazzleo

Now I meet a problem

image

How can I resolve this problem?

Victoryfan avatar Mar 15 '21 06:03 Victoryfan

And I do this: image

Victoryfan avatar Mar 15 '21 06:03 Victoryfan

Now I meet a problem image

How can I resolve this problem?

what is the binary version? ./chain-maind version

allthatjazzleo avatar Mar 15 '21 07:03 allthatjazzleo

./chain-maind version

image

Victoryfan avatar Mar 15 '21 07:03 Victoryfan

I delete data and sync from 0. Now it is normal.

Victoryfan avatar Mar 15 '21 07:03 Victoryfan

./chain-maind version

image

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.

allthatjazzleo avatar Mar 15 '21 07:03 allthatjazzleo

./chain-maind version

image

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?

Victoryfan avatar Mar 15 '21 07:03 Victoryfan

./chain-maind version

image

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.

allthatjazzleo avatar Mar 15 '21 07:03 allthatjazzleo

./chain-maind version

image

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?

Victoryfan avatar Mar 15 '21 07:03 Victoryfan