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

手动组网执行到给Org1安装sacc fabricInstall payment.fabric.sacc Org1 contracts/chaincode/sacc 1.0 GO_LANG报错 #581

Open
wxl0357 opened this issue Jul 18, 2023 · 1 comment

Comments

@wxl0357
Copy link

wxl0357 commented Jul 18, 2023

BUG描述
手动组网部分,已经设置Org1为默认账户,接着执行sacc fabricInstall payment.fabric.sacc Org1 contracts/chaincode/sacc 1.0 GO_LANG命令时报错,报错内容如下:
Error: code(10000), message(Query to orgPeers:[Peer{ id: 2, name: peer1, channelName: mychannel, url: grpcs://localhost:9051}] endorser failed: Success endorser: 0 Failed endorser: 1["peer: peer1 status: FAILURE message: Channel Channel{id: 4, name: mychannel} Sending proposal with transaction: a5dc8720c84a0dc25aab5374556d7348090bf08ae45591e5daac579697ee5058 to Peer{ id: 2, name: peer1, channelName: mychannel, url: grpcs://localhost:9051} failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [mychannel] creator org [Org2MSP], cause=null}", ] payloads:size: 0 [] proposal response consistency: proposalResponses collection is empty)

重现方式

  1. 在控制台中执行 setDefaultAccount Fabric1.4 1 命令,设置Fabric1.4的默认账户为Org1MSP
  2. 接着按照文档执行 fabricInstall payment.fabric.sacc Org1 contracts/chaincode/sacc 1.0 GO_LANG 命令
  3. 出现报错
  4. 又将Org2MSP设为默认账户
  5. 执行 fabricInstall payment.fabric.sacc Org2 contracts/chaincode/sacc 1.0 GO_LANG 同样报错

预期结果
预期应该和文档中的结果一样,但是不知道为什么出现这个错误

截图
image

image

环境

  • 操作系统: [Ubuntu22.04]
  • 运行库 [java1.8_271]

更多信息
关于该 BUG 的更多信息

@kyonRay
Copy link
Contributor

kyonRay commented Jul 18, 2023

确定一下这两个帐号是admin的帐号。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants