Got "panic: json: cannot unmarshal object into Go struct field msgCreateValidatorJSON.pubkey of type string"
Hi,
I successfully installed the latest version of gaiad and gaia-cli on my 18.04 box, I followed the instructions to join the testnet however gaiad doesn’t seem to start, I got the following message when starting the daemon:
$ gaiad start I[2019-01-27|00:12:23.823] Starting ABCI with Tendermint module=main panic: json: cannot unmarshal object into Go struct field msgCreateValidatorJSON.pubkey of type string goroutine 1 [running]: github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).initFromGenesisState(0xc000b10480, 0x1248f00, 0xc000b45800, 0xc000b36cc0, 0xd, 0xc0009ca000, 0x3d9, 0x3d9, 0x0, 0x0, ...) ...
I can’t find anything in the logs. Any idea what could be missing here?
Thanks
Try setting log_level to “*:debug”, and see if you see anything insightful.
7768: log_level I have now more details: ``` `$ gaiad start I[2019-01-27|12:30:15.035] Starting ABCI with Tendermint module=main I[2019-01-27|12:30:15.387] Starting multiAppConn module=proxy impl=multiAppConn I[2019-01-27|12:30:15.387] Starting localClient module=abci-client connection=query impl=localClient I[2019-01-27|12:30:15.387] Starting localClient module=abci-client connection=mempool impl=localClient I[2019-01-27|12:30:15.387] Starting localClient module=abci-client connection=consensus impl=localClient I[2019-01-27|12:30:15.387] ABCI Handshake App Info module=consensus height=0 hash= software-version= protocol-version=0 I[2019-01-27|12:30:15.424] ABCI Replay Blocks module=consensus appHeight=0 storeHeight=0 stateHeight=0 panic: json: cannot unmarshal object into Go struct field msgCreateValidatorJSON.pubkey of type string goroutine 1 [running]: github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).initFromGenesisState(0xc0009c8d80, 0x1248f00, 0xc0008c96b0, 0xc0004d4e00, 0xd, 0xc001312000, 0x3d9, 0x3d9,…
Excerpt (1196 of 1273 characters). Read the whole post on the forum ↗
This is probably a bug (or at least a desired genesis validation rule); please file an issue on the Cosmos SDK repository with the exact sequence of commands required to reproduce the issue and we’ll take a look.
I was able to move on after resyncing the SDK repository and running $ gaiad unsafe-reset-all
Thanks