Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[venus] 节点同步之前,如果miner通过venus获取网络名称的话,会出错 #5247

Closed
1 of 11 tasks
LinZexiao opened this issue Aug 31, 2022 · 4 comments
Closed
1 of 11 tasks
Assignees
Labels
C-Blocked Category: temporarily stuck without a good solution C-bug Category: This is a bug

Comments

@LinZexiao
Copy link
Collaborator

链服务模块 / Chain Service Components

  • venus
  • venus-auth
  • venus-gateway
  • venus-messager
  • venus-miner
  • 文档 / docs

订单服务模块 / Deal Service Components

  • venus-market
  • 文档 / docs

算力服务模块 / Storage Power Service Components

  • venus-sector-manager
  • venus-worker
  • 文档 / docs

版本 / Version

{
        "Version": "1.6.0+git.f3754ad18.dirty"
}

描述 / Describe the Bug

venu节点在 开始同步之前如果miner请求网络名称,就会报错

日志 / Logging Information

2022-08-31T07:46:19.500Z        WARN    rpc     go-jsonrpc@v0.1.4-0.20210731021807-68e5207079bc/handler.go:345  error in RPC call to 'Filecoin.StateNetworkName': cbor input should be of type array
failed to get block bafyreiaqpwbbyjo4a42saasj36kkrpv4tsherf2e7bvezkert2a7dhonoi
github.com/filecoin-project/venus/pkg/chain.(*Store).GetBlock
        /build/pkg/chain/store.go:309
github.com/filecoin-project/venus/pkg/chain.(*Store).GetTipSet
        /build/pkg/chain/store.go:333
github.com/filecoin-project/venus/pkg/statemanger.(*Stmgr).ParentStateView
        /build/pkg/statemanger/state_manger.go:372
github.com/filecoin-project/venus/app/submodule/chain.(*chainInfoAPI).getNetworkName
        /build/app/submodule/chain/chaininfo_api.go:373
github.com/filecoin-project/venus/app/submodule/chain.(*chainInfoAPI).StateNetworkName
        /build/app/submodule/chain/chaininfo_api.go:367
reflect.Value.call
        /usr/local/go/src/reflect/value.go:556
reflect.Value.Call
        /usr/local/go/src/reflect/value.go:339
github.com/filecoin-project/venus/venus-shared/api/permission.PermissionProxy.func1
        /build/venus-shared/api/permission/permission.go:65
github.com/filecoin-project/venus/venus-shared/api/chain/v1.(*IChainInfoStruct).StateNetworkName
        /build/venus-shared/api/chain/v1/proxy_gen.go:361
reflect.Value.call
        /usr/local/go/src/reflect/value.go:556
reflect.Value.Call
        /usr/local/go/src/reflect/value.go:339
github.com/filecoin-project/go-jsonrpc.doCall
        /go/pkg/mod/github.com/ipfs-force-community/go-jsonrpc@v0.1.4-0.20210731021807-68e5207079bc/handler.go:219
github.com/filecoin-project/go-jsonrpc.(*RPCServer).handle
        /go/pkg/mod/github.com/ipfs-force-community/go-jsonrpc@v0.1.4-0.20210731021807-68e5207079bc/handler.go:325
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1581
2022-08-31T07:46:19.550Z        WARN    rpc     go-jsonrpc@v0.1.4-0.20210731021807-68e5207079bc/handler.go:345  error in RPC call to 'Filecoin.StateNetworkName': cbor input should be of type array
failed to get block bafyreiaqpwbbyjo4a42saasj36kkrpv4tsherf2e7bvezkert2a7dhonoi
github.com/filecoin-project/venus/pkg/chain.(*Store).GetBlock
        /build/pkg/chain/store.go:309
github.com/filecoin-project/venus/pkg/chain.(*Store).GetTipSet
        /build/pkg/chain/store.go:333
github.com/filecoin-project/venus/pkg/statemanger.(*Stmgr).ParentStateView
        /build/pkg/statemanger/state_manger.go:372
github.com/filecoin-project/venus/app/submodule/chain.(*chainInfoAPI).getNetworkName
        /build/app/submodule/chain/chaininfo_api.go:373
github.com/filecoin-project/venus/app/submodule/chain.(*chainInfoAPI).StateNetworkName
        /build/app/submodule/chain/chaininfo_api.go:367
reflect.Value.call
        /usr/local/go/src/reflect/value.go:556
reflect.Value.Call
        /usr/local/go/src/reflect/value.go:339
github.com/filecoin-project/venus/venus-shared/api/permission.PermissionProxy.func1
        /build/venus-shared/api/permission/permission.go:65
github.com/filecoin-project/venus/venus-shared/api/chain/v1.(*IChainInfoStruct).StateNetworkName
        /build/venus-shared/api/chain/v1/proxy_gen.go:361
reflect.Value.call
        /usr/local/go/src/reflect/value.go:556
reflect.Value.Call
        /usr/local/go/src/reflect/value.go:339
github.com/filecoin-project/go-jsonrpc.doCall
        /go/pkg/mod/github.com/ipfs-force-community/go-jsonrpc@v0.1.4-0.20210731021807-68e5207079bc/handler.go:219
github.com/filecoin-project/go-jsonrpc.(*RPCServer).handle
        /go/pkg/mod/github.com/ipfs-force-community/go-jsonrpc@v0.1.4-0.20210731021807-68e5207079bc/handler.go:325
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1581

重现步骤 / Repo Steps

No response

@LinZexiao LinZexiao added the C-bug Category: This is a bug label Aug 31, 2022
@LinZexiao LinZexiao self-assigned this Sep 1, 2022
@LinZexiao
Copy link
Collaborator Author

原因是创世节点是以block的形式存储在store中的,而getBolck的接口是以blockhead的形式获取block,所以会失败
已经向lotus提交issue filecoin-project/lotus#9240

@hunjixin
Copy link
Contributor

hunjixin commented Sep 1, 2022

在venus中,暂时采用等待过并检查高度超过1来暂时解决,等待和lotus这边讨论产生一个结论在进行最终的修改。

@LinZexiao
Copy link
Collaborator Author

LinZexiao commented Sep 1, 2022

在venus中,暂时采用等待过并检查高度超过1来暂时解决,等待和lotus这边讨论产生一个结论在进行最终的修改。

@hunjixin
Copy link
Contributor

目按我们的方法来, 他们改的可能性不大。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Blocked Category: temporarily stuck without a good solution C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants