Skip to content

carrepo not working for the chaineconomics task #384

@thattommyhall

Description

@thattommyhall

Describe the bug:

I'm trying the carrepo lens on the repo at https://fil-chain-snapshots-fallback.s3.amazonaws.com/mainnet/minimal_finality_stateroots_latest.car
and I think something is trying to write but failing.

Steps to Reproduce:

$ ./visor --db "" --repo-read-only --lens carrepo --repo /lotus/minimal_finality_stateroots_latest.car walk --tasks chaineconomics
2021-02-15T21:40:37.751Z        WARN    chainstore      store/store.go:578      no heaviest tipset found, using [bafy2bzacedkjqhl46othdltxxhhqarczkkmkhfiezilw2erqyvwj5fknitlse]
2021-02-15T21:40:37.751Z        INFO    chainstore      store/store.go:583      New heaviest tipset! [bafy2bzacedkjqhl46othdltxxhhqarczkkmkhfiezilw2erqyvwj5fknitlse] (height=503621)
2021-02-15T21:40:37.751Z        WARN    visor   commands/walk.go:94     database not specified, data will not be persisted
2021-02-15T21:40:37.751Z        INFO    schedule        schedule/scheduler.go:124       running task    {"task": "Walker"}
2021-02-15T21:40:37.751Z        DEBUG   chain   chain/walker.go:71      found tipset    {"height": "503621"}
2021-02-15T21:40:37.754Z        WARN    bufbs   bufbstore/buf_bstore.go:44      one of the stores is not viewable; running less efficiently
2021-02-15T21:40:37.757Z        WARN    vm      vm/runtime.go:145       VM.Call failure: failed to put cbor object: failed to write data to disk (FATAL): invalid cid version number: 12962 (FATAL):
    github.com/filecoin-project/lotus/chain/vm.(*Runtime).StorePut
        /home/pl/.asdf/installs/golang/1.15.7/packages/pkg/mod/github.com/filecoin-project/lotus@v1.5.0-pre1/chain/vm/runtime.go:133
2021-02-15T21:40:37.757Z        ERROR   chain   chain/economics.go:45   error received while extracting chain economics, closing lens   {"error": "get circulating supply: [from=f3rfurvushzaeeuo5yxtopcsrqtobve2xgae4n7tspgmnlzwowhhwq26xinsfkc7yk27bzclxh35knrp22hyqa,to=f01800,n=459581,m=6,h=503621] fatal error: failed to put cbor object: failed to write data to disk (FATAL): invalid cid version number: 12962 (FATAL)", "errorVerbose": "get circulating supply:\n    github.com/filecoin-project/sentinel-visor/tasks/chain.ExtractChainEconomicsModel\n        /home/pl/sentinel-visor/tasks/chain/economics.go:29\n  - [from=f3rfurvushzaeeuo5yxtopcsrqtobve2xgae4n7tspgmnlzwowhhwq26xinsfkc7yk27bzclxh35knrp22hyqa,to=f01800,n=459581,m=6,h=503621] fatal error:\n    github.com/filecoin-project/lotus/chain/vm.(*VM).ApplyMessage\n        /home/pl/.asdf/installs/golang/1.15.7/packages/pkg/mod/github.com/filecoin-project/lotus@v1.5.0-pre1/chain/vm/vm.go:530\n  - failed to put cbor object: failed to write data to disk (FATAL): invalid cid version number: 12962 (FATAL):\n    github.com/filecoin-project/lotus/chain/vm.(*Runtime).StorePut\n        /home/pl/.asdf/installs/golang/1.15.7/packages/pkg/mod/github.com/filecoin-project/lotus@v1.5.0-pre1/chain/vm/runtime.go:133"}
2021-02-15T21:40:37.757Z        ERROR   chain   chain/indexer.go:223    task returned with error        {"height": 503621, "task": "chaineconomics", "error": "get circulating supply: [from=f3rfurvushzaeeuo5yxtopcsrqtobve2xgae4n7tspgmnlzwowhhwq26xinsfkc7yk27bzclxh35knrp22hyqa,to=f01800,n=459581,m=6,h=503621] fatal error: failed to put cbor object: failed to write data to disk (FATAL): invalid cid version number: 12962 (FATAL)"}
2021-02-15T21:40:37.757Z        ERROR   schedule        schedule/scheduler.go:133       task exited with failure        {"task": "Walker", "error": "walk chain: notify tipset: get circulating supply: [from=f3rfurvushzaeeuo5yxtopcsrqtobve2xgae4n7tspgmnlzwowhhwq26xinsfkc7yk27bzclxh35knrp22hyqa,to=f01800,n=459581,m=6,h=503621] fatal error: failed to put cbor object: failed to write data to disk (FATAL): invalid cid version number: 12962 (FATAL)"}

Visor Version: 11d0ef1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions