getamis/eth-indexer

connection refused & database garbled & cannot unmarshal into a *big.Int

xwbijie opened this issue · 1 comments

hello team:
I have some problems when i start eth-indexer docker.And i tried to sovle but it did not work.

  1. dial tcp 172.18.0.4:8546: connect: connection refused.i didn't set geth ws url manually.
    The following are the error message and the ifconfig created by docker compose.

error log:
indexer_1 | Error: dial tcp 172.18.0.4:8546: connect: connection refused
indexer_1 | ERROR[11-19|10:49:33|indexer/root.go:108] Failed to new a eth client err="dial tcp 172.18.0.4:8546: connect: connection refused"
indexer_1 | CRIT [11-19|10:49:33|indexer/root.go:189] ServerCmd Execution failed err="dial tcp 172.18.0.4:8546: connect: connection refused"

ifconfig:
br-6a7db5b70fac: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.18.0.1 netmask 255.255.0.0 broadcast 0.0.0.0

  1. According to above,i can not run the indexer docker.So i run a geth node with your docker image outside then overwrite docker-compose.yml and config.yaml.Now the indexer works,but the mysql database garbled even if with CHARSET=utf8

  2. When the indexer worked for a while,it returned math error as follows
    indexer_1 | ERROR[11-19|08:50:26|indexer/indexer.go:374] Failed to get target TD from=3078 fromHash=0xa306edb93c9bf0cafc2080cdd2555d07bd5e8e4d1ff25e4a6f0b4f08d03de2e8 fromTD=121852662819430 to=28675 toHash=0xbc033ab633a5897303474c7a7e9ef8102c1510eff8168c9d8e1436daf77a1bf1 err="math/big: cannot unmarshal "\"0x46b03afa88153d\"" into a *big.Int"
    indexer_1 | ERROR[11-19|08:50:26|indexer/indexer.go:197] Failed to sync from ethereum number=28675 err="math/big: cannot unmarshal "\"0x46b03afa88153d\"" into a *big.Int"

Can you help me if it is convenient?

Hi @xwbijie
Have you ever check whether geth node is running after docker-compose up ?
Also, we update corresponding geth image in 273c6d4. Please use new geth image and try again.