Canto-Network / Canto

Layer-1 blockchain powered by Free Public Infrastructure
GNU Lesser General Public License v3.0
82 stars 80 forks source link

Issue when trying to create a validator #26

Closed b10c77 closed 1 year ago

b10c77 commented 2 years ago

I've followed the instructions on how to become a validator: https://docs.canto.io/technical-reference/validators/becoming-a-validator

But upon starting the cantod service I get the following error message: 11:44PM ERR failed init node error="error during handshake: error on replay: validator set is nil in genesis and still empty after InitChain"

Any idea what I'm missing?

kiltum commented 2 years ago

+1 with this error. Happens with auto-generated (after cantod init) and downloaded genesis.json

tkkwon1998 commented 2 years ago

I believe this is an issue with using the wrong genesis.json.

One issue that others have run into is when they wget the genesis, it does not overwrite the old genesis.json. If this is the case, you must either remove the old genesis file before the wget, or you must replace the old genesis.json with the new one, which will likely be called genesis1.json or something along those lines.

kiltum commented 1 year ago

Check twice. It definitely not genesis ;( At this point I thinks I should not use latest git version.

kiltum commented 1 year ago

Ok, now I create absolutely new VM for canto. Now results much better

Try 1, with "release 2.0" sources, not git

cantod simply crushed

Sep 14 12:04:44 node-canto-01 cantod[12782]: 12:04PM INF created new capability module=ibc name=ports/transfer
Sep 14 12:04:44 node-canto-01 cantod[12782]: 12:04PM INF port binded module=x/ibc/port port=transfer
Sep 14 12:04:44 node-canto-01 cantod[12782]: 12:04PM INF claimed capability capability=1 module=transfer name=ports/transfer
Sep 14 12:04:44 node-canto-01 cantod[12782]: panic: unknown field "minInflation" in types.ExponentialCalculation
Sep 14 12:04:44 node-canto-01 cantod[12782]: goroutine 1 [running]:
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/cosmos/cosmos-sdk/codec.(*ProtoCodec).MustUnmarshalJSON(0x1c5a3a8?, {0xc0001bc700?, 0xc0013fab30?, 0xc0013fab40?}, {0x2a033b8?, 0xc00004fc80?})
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/codec/proto_codec.go:176 +0x45
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/Canto-Network/Canto/v2/x/inflation.AppModule.InitGenesis({{}, {{0x29ff980, 0xc000ecc5c0}, {0x2a211e8, 0xc00137c4b0}, {{0x2a211e8, 0xc00137c4b0}, 0xc000011378, {0x29ff980, 0xc000ecc520}, ...}, ...}, ...}, ...)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/Canto-2.0.0/x/inflation/module.go:170 +0xa2
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(_, {{0x2a14d10, 0xc00013a020}, {0x2a22be0, 0xc0001c9dc0}, {{0x0, 0x0}, {0xc0006ac380, 0xc}, 0x0, ...}, ...}, ...)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/types/module/module.go:320 +0x29d
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/Canto-Network/Canto/v2/app.(*Canto).InitChainer(_, {{0x2a14d10, 0xc00013a020}, {0x2a22be0, 0xc0001c9dc0}, {{0x0, 0x0}, {0xc0006ac380, 0xc}, 0x0, ...}, ...}, ...)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/Canto-2.0.0/app/app.go:839 +0x20e
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc00120c9c0, {{0x2092911a, 0xeda5aa369, 0x0}, {0xc0006ac380, 0xc}, 0xc000516c20, {0x3a47738, 0x0, 0x0}, ...})
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/baseapp/abci.go:62 +0x455
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/tendermint/tendermint/abci/client.(*localClient).InitChainSync(0xc000681740, {{0x2092911a, 0xeda5aa369, 0x0}, {0xc0006ac380, 0xc}, 0xc000516c20, {0x3a47738, 0x0, 0x0}, ...})
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.20-0.20220517115723-e6f071164839/abci/client/local_client.go:272 +0x118
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/tendermint/tendermint/proxy.(*appConnConsensus).InitChainSync(0x3?, {{0x2092911a, 0xeda5aa369, 0x0}, {0xc0006ac380, 0xc}, 0xc000516c20, {0x3a47738, 0x0, 0x0}, ...})
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.20-0.20220517115723-e6f071164839/proxy/app_conn.go:77 +0x55
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(_, {{{0xb, 0x0}, {0x1f3d63d, 0x7}}, {0xc0006ac380, 0xc}, 0x1, 0x0, {{0x0, ...}, ...}, ...}, ...)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.20-0.20220517115723-e6f071164839/consensus/replay.go:319 +0xd78
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc0013fd898, {0x2a23878, 0xc000fca410})
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.20-0.20220517115723-e6f071164839/consensus/replay.go:268 +0x3c8
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/tendermint/tendermint/node.doHandshake({_, _}, {{{0xb, 0x0}, {0x1f3d63d, 0x7}}, {0xc0006ac380, 0xc}, 0x1, 0x0, ...}, ...)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.20-0.20220517115723-e6f071164839/node/node.go:325 +0x1b8
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/tendermint/tendermint/node.NewNode(0xc000550640, {0x2a118d8, 0xc0001a54a0}, 0xc0012a87b0, {0x29fa8c0, 0xc000540b28}, 0x0?, 0x0?, 0xc0012a8920, {0x2a15cd0, ...}, ...)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.20-0.20220517115723-e6f071164839/node/node.go:733 +0x577
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/evmos/ethermint/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x2a2b2c0, 0xc00164d620}, {0x1f3edac, 0x7}, {0x2a196c0, 0xc00137c4b0}, ...}, ...)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/evmos/ethermint@v0.18.0/server/start.go:303 +0xc33
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/evmos/ethermint/server.StartCmd.func2(0xc000553b80?, {0xc00165a420?, 0x0?, 0x6?})
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/evmos/ethermint@v0.18.0/server/start.go:117 +0x228
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/spf13/cobra.(*Command).execute(0xc000553b80, {0xc00165a3c0, 0x6, 0x6})
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872 +0x694
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/spf13/cobra.(*Command).ExecuteC(0xc0001b2500)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990 +0x3b4
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/spf13/cobra.(*Command).Execute(...)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/spf13/cobra.(*Command).ExecuteContext(...)
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:911
Sep 14 12:04:44 node-canto-01 cantod[12782]: github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x0?, {0xc00136c160, 0xd})
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/server/cmd/execute.go:36 +0x1eb
Sep 14 12:04:44 node-canto-01 cantod[12782]: main.main()
Sep 14 12:04:44 node-canto-01 cantod[12782]:         /root/Canto-2.0.0/cmd/cantod/main.go:20 +0x38

Try 2, with fresh git sources

Sep 14 12:15:28 node-canto-01 cantod[18563]: 12:15PM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=0 numToDial=30 server=node
Sep 14 12:15:28 node-canto-01 cantod[18563]: 12:15PM INF Dialing peer address={"id":"ec770ae4fd0fb4871b9a7c09f61764a0b010b293","ip":"164.90.134.106","port":26656} module=p2p server=node
Sep 14 12:15:30 node-canto-01 cantod[18563]: 12:15PM INF Dialing peer address={"id":"ec770ae4fd0fb4871b9a7c09f61764a0b010b293","ip":"164.90.134.106","port":26656} module=p2p server=node
Sep 14 12:15:31 node-canto-01 cantod[18563]: 12:15PM INF Error reconnecting to peer. Trying again addr={"id":"ec770ae4fd0fb4871b9a7c09f61764a0b010b293","ip":"164.90.134.106","port":26656} err="dial tcp 164.90.134.106:26656: i/o timeout" module=p2p server=node tries=1
Sep 14 12:15:41 node-canto-01 cantod[18563]: 12:15PM INF Dialing peer address={"id":"ec770ae4fd0fb4871b9a7c09f61764a0b010b293","ip":"164.90.134.106","port":26656} module=p2p server=node
Sep 14 12:15:42 node-canto-01 cantod[18563]: 12:15PM INF Error reconnecting to peer. Trying again addr={"id":"ec770ae4fd0fb4871b9a7c09f61764a0b010b293","ip":"164.90.134.106","port":26656} err="dial tcp 164.90.134.106:26656: i/o timeout" module=p2p server=node tries=2

No any sign of No addresses to dial. Falling back to seeds module=pex server=node

So, whats wrong at this time?

Alexander-Herranz commented 1 year ago

I've followed the instructions on how to become a validator: https://docs.canto.io/technical-reference/validators/becoming-a-validator

But upon starting the cantod service I get the following error message: 11:44PM ERR failed init node error="error during handshake: error on replay: validator set is nil in genesis and still empty after InitChain"

Any idea what I'm missing?

+1 Facing the some error.

Anyone in Canto team with an answer? I prefer not experimenting when setting up a validator node, but follow the official instructions.

L2b2n commented 1 year ago

before you do main folder make install in canto you should have this file in this folder bro

Then save the generated public key config in the main Canto directory as .info. It should look like this:

pubkey: { "@type":" ethermint.crypto.v1.ethsecp256k1.PubKey", "key":"############################################" }

Alexander-Herranz commented 1 year ago

I tried the process again, ensuring to have the file already created when doing "make install", but no luck... I think that something is missing in the documentation, or something is broken in the current configuration.