archway icon indicating copy to clipboard operation
archway copied to clipboard

Bug: Unable to prune wasm state

Open kinrokinro opened this issue 1 year ago • 0 comments

System Information Archway Version: 9.0.0 Commit Hash: 5eb8a3062e1b457b6732d681f742e54facbf8b18 OS & Version:

NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"

Expected behavior The node shouldn't stop when pruning anything

Actual behavior The node stops at all (except the p2p, only p2p logs are available during the halt)

Steps to reproduce You should have a node which you would be able to prune for height 6836449 (according to the logs)

Trace

8:35PM DBG SAVE TREE module=server version=7199330
8:35PM DBG SAVE TREE module=server version=7199330
8:35PM DBG SAVE TREE module=server version=7199330
8:35PM DBG SAVE TREE module=server version=7199330
8:35PM DBG prune start height=7199330 module=server
8:35PM DBG pruning store heights=6836449 module=server
8:35PM DBG pruning store key="KVStoreKey{0xc0038d1ee0, consensus}" module=server
8:35PM DBG pruning store key="KVStoreKey{0xc0038d1e50, params}" module=server
8:35PM DBG pruning store key="KVStoreKey{0xc0038d1ed0, wasm}" module=server <<<< The node itself halts there
Stopping ARCHWAY Daemon...
8:40PM INF caught signal module=server signal=terminated
8:40PM DBG pruning store key="KVStoreKey{0xc0038d1f10, icahost}" module=server
8:40PM DBG pruning store key="MemoryStoreKey{0xc003a80070, memory:capability}" module=server
8:40PM DBG pruning store key="KVStoreKey{0xc0038d1de0, acc}" module=server
8:40PM ERR Error deleting legacy versions err="Value missing for key [201 153 12 210 160 114 241 175 1 237 188 1 156 1 202 132 36 42 165 148 65 8 19 112 167 201 67 199 240 165 242 240] corresponding to nodeKey 6ec9990cd2a072f1af01edbc019c01ca84242aa59441081370a7c943c7f0a5f2f0" module=server
8:40PM DBG pruning store key="TransientStoreKey{0xc003a80050, t_cwerrors}" module=server
8:40PM DBG pruning store key="KVStoreKey{0xc0038d1ea0, capability}" module=server
8:40PM DBG pruning store key="KVStoreKey{0xc0038d1f60, cwica}" module=server
8:40PM DBG pruning store key="KVStoreKey{0xc0038d1f40, group}" module=server
8:41PM DBG pruning store key="KVStoreKey{0xc0038d1ec0, authz}" module=server
8:41PM DBG pruning store key="KVStoreKey{0xc0038d1e40, gov}" module=server
8:41PM DBG pruning store key="KVStoreKey{0xc0038d1e60, ibc}" module=server
archwayd.service: State 'stop-sigterm' timed out. Killing.

Workaround Disable pruning with pruning = nothing in ~/.archway/config/app.toml

kinrokinro avatar Nov 07 '24 21:11 kinrokinro