Closed alessio closed 4 years ago
Hi, @alessio,
I followed the upgrade procedure but ran into trouble:
[root ~]$ journalctl -u starname.service --no-hostname -S '2020-07-15 07:50:17' --no-pager | grep -v p2p
-- Logs begin at Wed 2020-02-05 13:38:08 UTC, end at Wed 2020-07-15 08:32:34 UTC. --
Jul 15 07:50:17 iovnsd[31520]: I[2020-07-15|07:50:17.524] Executed block module=state height=127699 validTxs=1 invalidTxs=0
Jul 15 07:50:17 iovnsd[31520]: I[2020-07-15|07:50:17.533] Committed state module=state height=127699 txs=1 appHash=49AB519040806C0F7D5A24BA0ACC7B46FA9E4219930FC86D4BCA2ADF63A86A0C
Jul 15 07:50:22 iovnsd[31520]: I[2020-07-15|07:50:22.593] Executed block module=state height=127700 validTxs=1 invalidTxs=0
Jul 15 07:50:22 iovnsd[31520]: I[2020-07-15|07:50:22.601] halting node per configuration module=main height=127700 time=0
Jul 15 07:50:22 iovnsd[31520]: I[2020-07-15|07:50:22.601] Committed state module=state height=127700 txs=1 appHash=DF16AE63196B146F387768A4D619E97EDB78FCF453649D64565A0982D2240FEC
Jul 15 07:50:22 iovnsd[31520]: I[2020-07-15|07:50:22.610] exiting... module=main
Jul 15 07:50:22 systemd[1]: starname.service: Main process exited, code=exited, status=130/n/a
Jul 15 07:50:22 systemd[1]: starname.service: Failed with result 'exit-code'.
Jul 15 07:51:15 systemd[1]: Started IOV Name Service.
Jul 15 07:51:16 iovnsd[31699]: I[2020-07-15|07:51:16.097] starting ABCI with Tendermint module=main
Jul 15 07:51:16 iovnsd[31699]: E[2020-07-15|07:51:16.281] dialing failed (attempts: 1): duplicate CONN<88.4.35.160:46656> module=pex addr=be9e3f0f7574f988f450f61323b2ac90c8342991@88.4.35.160:46656
Jul 15 07:51:16 iovnsd[31699]: E[2020-07-15|07:51:16.376] dialing failed (attempts: 1): auth failure: conn.ID (be9e3f0f7574f988f450f61323b2ac90c8342991) dialed ID (8d8472497c61efe5e0bdfece20e4b14578b8c235) mismatch module=pex addr=8d8472497c61efe5e0bdfece20e4b14578b8c235@88.4.35.160:46656
Jul 15 07:51:16 iovnsd[31699]: I[2020-07-15|07:51:16.787] Executed block module=state height=127701 validTxs=0 invalidTxs=0
Jul 15 07:51:16 iovnsd[31699]: I[2020-07-15|07:51:16.791] Committed state module=state height=127701 txs=0 appHash=FE468A5DB7ECA452E94D2BC3188B4799A2A2AAC9D735194C5E2196E356694205
Jul 15 07:51:16 iovnsd[31699]: I[2020-07-15|07:51:16.827] Executed block module=state height=127702 validTxs=1 invalidTxs=0
Jul 15 07:51:16 iovnsd[31699]: I[2020-07-15|07:51:16.832] Committed state module=state height=127702 txs=1 appHash=AEF28F11F756BF09D38D68925666EC934D2A9526808BFEDE16D5BD675FE900B5
Jul 15 07:51:16 iovnsd[31699]: panic: Failed to process committed block (127703:4C1D29AFB7920F557BA7EBC80A4DE7AF77E92CBA0ACDF0104D240FA59419B86E): wrong Block.Header.AppHash. Expected AEF28F11F756BF09D38D68925666EC934D2A9526808BFEDE16D5BD675FE900B5, got D4DB49D1F55796D8D5C614C67D67F2FDB658DB3EECC23E8CC0037C5F8849D34B
Jul 15 07:51:16 iovnsd[31699]: goroutine 60 [running]:
Jul 15 07:51:16 iovnsd[31699]: github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).poolRoutine(0xc0001791e0)
Jul 15 07:51:16 iovnsd[31699]: /home/dave/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/blockchain/v0/reactor.go:349 +0x12ed
Jul 15 07:51:16 iovnsd[31699]: created by github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).OnStart
Jul 15 07:51:16 iovnsd[31699]: /home/dave/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/blockchain/v0/reactor.go:118 +0x84
Jul 15 07:51:16 systemd[1]: starname.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 15 07:51:16 systemd[1]: starname.service: Failed with result 'exit-code'.
app.toml
before the imposed halt had values
halt-height = 127700
pruning = "syncable"
and after had values
halt-height = 0
pruning = "default"
Here are the app details:
[root ~] iovnsd version --long
name: iovns
server_name: iovnsd
client_name: iovnscli
version: 0.4.5-3-g322489c
commit: 322489c939fc3f75547387f6086842f789f8cd9b
build_tags: ""
go: go version go1.14.4 linux/amd64
Any ideas? Let me know if you need more info.
Even trying to sync from scratch fails:
[root@ ~]$ journalctl -u starname.service --no-hostname -S '2020-07-15 08:47:10' --no-pager | grep -v p2p
-- Logs begin at Wed 2020-02-05 13:38:08 UTC, end at Wed 2020-07-15 08:47:15 UTC. --
Jul 15 08:47:10 systemd[1]: Started IOV Name Service.
Jul 15 08:47:10 iovnsd[32628]: I[2020-07-15|08:47:10.109] starting ABCI with Tendermint module=main
Jul 15 08:47:10 iovnsd[32628]: E[2020-07-15|08:47:10.324] dialing failed (attempts: 1): duplicate CONN<88.4.35.160:46656> module=pex addr=be9e3f0f7574f988f450f61323b2ac90c8342991@88.4.35.160:46656
Jul 15 08:47:10 iovnsd[32628]: E[2020-07-15|08:47:10.420] dialing failed (attempts: 1): auth failure: conn.ID (be9e3f0f7574f988f450f61323b2ac90c8342991) dialed ID (8d8472497c61efe5e0bdfece20e4b14578b8c235) mismatch module=pex addr=8d8472497c61efe5e0bdfece20e4b14578b8c235@88.4.35.160:46656
Jul 15 08:47:11 iovnsd[32628]: I[2020-07-15|08:47:11.591] Executed block module=state height=1 validTxs=0 invalidTxs=0
Jul 15 08:47:11 iovnsd[32628]: I[2020-07-15|08:47:11.663] Committed state module=state height=1 txs=0 appHash=40F1F896F928069ABE49407B3F217C5087B9135E8AF201CC3856A3ACEFE0BF09
Jul 15 08:47:15 iovnsd[32628]: panic: Failed to process committed block (2:BD4FB09A8DB757E831FF28FB1BAA4D4FF97D75583FB6A80E70C8C000015354C8): wrong Block.Header.AppHash. Expected 40F1F896F928069ABE49407B3F217C5087B9135E8AF201CC3856A3ACEFE0BF09, got 8C10740263EF026C0690DB93961712A619BA03070F119EAD6A775486D27408CD
Jul 15 08:47:15 iovnsd[32628]: goroutine 46 [running]:
Jul 15 08:47:15 iovnsd[32628]: github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).poolRoutine(0xc0000889c0)
Jul 15 08:47:15 iovnsd[32628]: /home/dave/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/blockchain/v0/reactor.go:349 +0x12ed
Jul 15 08:47:15 iovnsd[32628]: created by github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).OnStart
Jul 15 08:47:15 iovnsd[32628]: /home/dave/go/pkg/mod/github.com/tendermint/tendermint@v0.33.6/blockchain/v0/reactor.go:118 +0x84
Jul 15 08:47:15 systemd[1]: starname.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 15 08:47:15 systemd[1]: starname.service: Failed with result 'exit-code'.
The problems I had were due to a misunderstanding. This PR will be merged after https://github.com/iov-one/iovns/pull/268 and https://github.com/iov-one/iovns/pull/266.
Use new pruning options.