为什么在 hyperledger Fabric 2.2 中会出现此错误,无法验证身份 OU:验证者标识符不匹配?

发布于 2025-01-18 03:57:29 字数 2150 浏览 3 评论 0原文

当我尝试使用 docker-compose 启动网络时,对等点退出并显示以下消息。

恐慌:无法将我们自己的身份放入身份映射器:分类身份失败:无法从对等身份中提取 msp.Identity:无法验证身份的 OU:验证者标识符不匹配

这是完整的同行的日志 -

goroutine 1 [running]:
github.com/hyperledger/fabric/gossip/identity.NewIdentityMapper({0x18218e0, 0xc00007d140}, {0xc00012d400, 0x3c7, 0x3c7}, 0xc002a2e410, {0x17f0020, 0xc000070fb0})
    /go/src/github.com/hyperledger/fabric/gossip/identity/identity.go:83 +0x24e
github.com/hyperledger/fabric/gossip/gossip.New(0xc0002a2640, 0x113dba6, {0x17f0020, 0xc000070fb0}, {0x18218e0, 0xc00007d140}, {0xc00012d400, 0x3c7, 0x3c7}, 0xc002a2e120, ...)
    /go/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:98 +0x4f0
github.com/hyperledger/fabric/gossip/service.New({0x7f94b7e4e898, 0xc0003659e0}, 0xc002a2d290, {0xc000042152, 0x20}, 0x0, {0x18218e0, 0xc00007d140}, {0x17f0020, 0xc000070fb0}, ...)
    /go/src/github.com/hyperledger/fabric/gossip/service/gossip_service.go:258 +0x1d0
github.com/hyperledger/fabric/internal/peer/node.initGossipService({0x17f19e0, 0xc0004fdae0}, {0x1802940, 0x21044e0}, 0xc000091f90, {0x182c888, 0xc0003659e0}, 0x0, {0xc000042152, 0x20}, ...)
    /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:1208 +0x827
github.com/hyperledger/fabric/internal/peer/node.serve({0x11dd300, 0xc0001bdd30, 0xc0001bdd08})
    /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:453 +0x2450
github.com/hyperledger/fabric/internal/peer/node.glob..func6(0x1fbcbc0, {0x21044e0, 0x0, 0x0})
    /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:127 +0x56
github.com/spf13/cobra.(*Command).execute(0x1fbcbc0, {0x21044e0, 0x0, 0x0})
    /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:762 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0x1fbd2e0)
    /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:852 +0x2dc
github.com/spf13/cobra.(*Command).Execute(...)
    /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:800
main.main()
    /go/src/github.com/hyperledger/fabric/cmd/peer/main.go:54 +0x347

When I try to up the network,using docker-compose, peer exited with the below mentioned message.

panic: Failed putting our own identity into the identity mapper: failed classifying identity: Unable to extract msp.Identity from peer Identity: could not validate identity's OUs: certifiersIdentifier does not match

Here is the complete log of a peer -

goroutine 1 [running]:
github.com/hyperledger/fabric/gossip/identity.NewIdentityMapper({0x18218e0, 0xc00007d140}, {0xc00012d400, 0x3c7, 0x3c7}, 0xc002a2e410, {0x17f0020, 0xc000070fb0})
    /go/src/github.com/hyperledger/fabric/gossip/identity/identity.go:83 +0x24e
github.com/hyperledger/fabric/gossip/gossip.New(0xc0002a2640, 0x113dba6, {0x17f0020, 0xc000070fb0}, {0x18218e0, 0xc00007d140}, {0xc00012d400, 0x3c7, 0x3c7}, 0xc002a2e120, ...)
    /go/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:98 +0x4f0
github.com/hyperledger/fabric/gossip/service.New({0x7f94b7e4e898, 0xc0003659e0}, 0xc002a2d290, {0xc000042152, 0x20}, 0x0, {0x18218e0, 0xc00007d140}, {0x17f0020, 0xc000070fb0}, ...)
    /go/src/github.com/hyperledger/fabric/gossip/service/gossip_service.go:258 +0x1d0
github.com/hyperledger/fabric/internal/peer/node.initGossipService({0x17f19e0, 0xc0004fdae0}, {0x1802940, 0x21044e0}, 0xc000091f90, {0x182c888, 0xc0003659e0}, 0x0, {0xc000042152, 0x20}, ...)
    /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:1208 +0x827
github.com/hyperledger/fabric/internal/peer/node.serve({0x11dd300, 0xc0001bdd30, 0xc0001bdd08})
    /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:453 +0x2450
github.com/hyperledger/fabric/internal/peer/node.glob..func6(0x1fbcbc0, {0x21044e0, 0x0, 0x0})
    /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:127 +0x56
github.com/spf13/cobra.(*Command).execute(0x1fbcbc0, {0x21044e0, 0x0, 0x0})
    /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:762 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0x1fbd2e0)
    /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:852 +0x2dc
github.com/spf13/cobra.(*Command).Execute(...)
    /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:800
main.main()
    /go/src/github.com/hyperledger/fabric/cmd/peer/main.go:54 +0x347

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

追星践月 2025-01-25 03:57:29

由于config.yaml文件中的nodeou配置不正确,我遇到了这个问题。
证书有不同的OU,在config.yaml中宣布了不同的o。

This issue I was getting due to incorrect NodeOU configuration in config.yaml file.
Certificate had different OU and in config.yaml I was declaring the different one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文