Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build archive node starting from genesis or v1.0.0 source #79

Closed
okanisis opened this issue Jan 29, 2023 · 4 comments
Closed

cannot build archive node starting from genesis or v1.0.0 source #79

okanisis opened this issue Jan 29, 2023 · 4 comments

Comments

@okanisis
Copy link

Docs say to build from checkout genesis but it doesn't work, results in error:

go: downloading github.com/tklauser/numcpus v0.2.3
app/app.go:95:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/ante/ante.go:8:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
client/docs/statik/init.go:6:8: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
types/utils.go:6:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/app.go:96:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
x/erc20/keeper/evm.go:7:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/app.go:97:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
cmd/config/config.go:6:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/app.go:99:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/app.go:100:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/app.go:101:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
x/erc20/types/interfaces.go:13:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/ante/handler_options.go:15:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/app.go:103:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/app.go:104:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
app/app.go:105:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
cmd/cantod/root.go:20:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
cmd/cantod/root.go:21:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
crypto/keyring/options.go:6:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
testutil/network/util.go:31:2: github.com/Canto-Network/[email protected]: reading github.com/Canto-Network/ethermint-v2/go.mod at revision v0.2.0: git ls-remote -q origin in /home/cryptdon/go/pkg/mod/cache/vcs/aaddcbd58979f5a4b6307010a382d9e153c999df17ff33be0c66d151a95bc4b1: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
@okanisis
Copy link
Author

see discord discussion for additional info

https://discord.com/channels/993968517906960445/995469213080752159/1069073439614320661

@okanisis
Copy link
Author

My patch back-ports the needed changes.

Node upgrade from v1 to v2 worked as expected no cantod rollback needed.

Blocks 1-218224 sync'd with cantod v1.0.0/genesis (patches applied):

2:53AM INF executed block height=218224 module=state num_invalid_txs=0 num_valid_txs=0 server=node
2:53AM INF commit synced commit=436F6D6D697449447B5B313130203736203132302034342031333520313030203234203137372039352031373320383820363720313239203131332031393820313832203134332031373320353220313132203132342031383720353020393920313931203430203136203338203731203920313436203137335D3A33353437307D
2:53AM INF committed state app_hash=6E4C782C876418B15FAD58438171C6B68FAD34707CBB3263BF281026470992AD height=218224 module=state num_txs=0 server=node
2:53AM INF indexed block height=218224 module=txindex server=node
2:53AM ERR UPGRADE "v2.0.0" NEEDED at height: 218225: 
panic: UPGRADE "v2.0.0" NEEDED at height: 218225: 

goroutine 150 [running]:
github.com/cosmos/cosmos-sdk/x/upgrade.BeginBlocker({{0x7ffff5296b64, 0x16}, 0xc00024e180, {0x556b09f84340, 0xc0016da500}, {0x556b09fa7de0, 0xc000003450}, 0xc001892ed0, {0x556b09f7dfe0, 0xc0001caea0}, ...}, ...)
        github.com/cosmos/[email protected]/x/upgrade/abci.go:71 +0xf9f
github.com/cosmos/cosmos-sdk/x/upgrade.AppModule.BeginBlock(...)
        github.com/cosmos/[email protected]/x/upgrade/module.go:130
github.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_, {{0x556b09f99940, 0xc000132020}, {0x556b09fa9b00, 0xc0519bf680}, {{0xb, 0x0}, {0xc03b1791b0, 0xc}, 0x35471, ...}, ...}, ...)
        github.com/cosmos/[email protected]/types/module/module.go:479 +0x3a2
github.com/Canto-Network/Canto/v1/app.(*Canto).BeginBlocker(_, {{0x556b09f99940, 0xc000132020}, {0x556b09fa9b00, 0xc0519bf680}, {{0xb, 0x0}, {0xc03b1791b0, 0xc}, 0x35471, ...}, ...}, ...)
        github.com/Canto-Network/Canto/v1/app/app.go:803 +0x85
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).BeginBlock(_, {{0xc012102100, 0x20, 0x20}, {{0xb, 0x0}, {0xc03b1791b0, 0xc}, 0x35471, {0x1faf4b44, ...}, ...}, ...})
        github.com/cosmos/[email protected]/baseapp/abci.go:194 +0x97b
github.com/tendermint/tendermint/abci/client.(*localClient).BeginBlockSync(_, {{0xc012102100, 0x20, 0x20}, {{0xb, 0x0}, {0xc03b1791b0, 0xc}, 0x35471, {0x1faf4b44, ...}, ...}, ...})
        github.com/tendermint/[email protected]/abci/client/local_client.go:280 +0x118
github.com/tendermint/tendermint/proxy.(*appConnConsensus).BeginBlockSync(_, {{0xc012102100, 0x20, 0x20}, {{0xb, 0x0}, {0xc03b1791b0, 0xc}, 0x35471, {0x1faf4b44, ...}, ...}, ...})
        github.com/tendermint/[email protected]/proxy/app_conn.go:81 +0x55
github.com/tendermint/tendermint/state.execBlockOnProxyApp({0x556b09f9a900?, 0xc001340120}, {0x556b09fa1ca0, 0xc000149c30}, 0xc00392e780, {0x556b09fa8710, 0xc0013a8650}, 0x35470?)
        github.com/tendermint/[email protected]/state/execution.go:307 +0x3dd
github.com/tendermint/tendermint/state.(*BlockExecutor).ApplyBlock(_, {{{0xb, 0x0}, {0xc000466b58, 0x7}}, {0xc000466b70, 0xc}, 0x1, 0x35470, {{0xc02d0b8f40, ...}, ...}, ...}, ...)
        github.com/tendermint/[email protected]/state/execution.go:140 +0x171
github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).poolRoutine(0xc000e94000, 0x0)
        github.com/tendermint/[email protected]/blockchain/v0/reactor.go:404 +0xbda
created by github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).OnStart
        github.com/tendermint/[email protected]/blockchain/v0/reactor.go:110 +0x7a

Beginning sync from block 218225 cantod v2.0.0:

3:00AM INF ABCI Handshake App Info hash="nLx,�d\x18�_�XC�qƶ��4p|�2c�(\x10&G\t��" height=218224 module=consensus protocol-version=0 server=node software-version=
3:00AM INF ABCI Replay Blocks appHeight=218224 module=consensus server=node stateHeight=218224 storeHeight=218225
3:00AM INF Replay last block using real app module=consensus server=node
3:00AM INF applying upgrade "v2.0.0" at height: 218225
3:00AM INF executed block height=218225 module=consensus num_invalid_txs=0 num_valid_txs=0 server=node
3:00AM INF commit synced commit=436F6D6D697449447B5B313633203135362035312031313620323338203232382032303720323131203531203739203233392032303120383320323338203130362031313420393920323237203130352032343920313533203132382032333920313820313836203132372031323220313937203233322031313020323535203133345D3A33353437317D
3:00AM INF halting node per configuration height=218225

@tster
Copy link

tster commented Jan 30, 2023

I believe this was caused by the visibility of the ethermint-v2 repository being private. It's since been made public, so building should work now without any changes.

@okanisis
Copy link
Author

okanisis commented Feb 3, 2023

fixed, by opening private repo to public, see

I believe this was caused by the visibility of the ethermint-v2 repository being private. It's since been made public, so building should work now without any changes.

@okanisis okanisis closed this as completed Feb 3, 2023
tkkwon1998 pushed a commit that referenced this issue Aug 2, 2024
feat: bump up cosmos-sdk v0.50.8, cometbft v0.38.9, ibc-go v8.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants