我已经为Hyperledger Fabric安装了示例应用程序Marbles,并希望将Hyperledger Explorer连接到Marbles。 我做到了,它能毫无问题地工作,可以识别出大理石的每一次创作和交易,但只能在有限的时间内进行。
使用kitematic检查net_explorer-client_1的日志,我看到了一堵墙
Successfully loaded member from persistence
但是随后很多错误消息突然弹出
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UKNOWN:
chaincode error(status: 500, message: Authorization for GETINSTALLEDCHAINCODES on
channel getinstalledchaincodes has been denied with
error Failed verifying that proposal's creator satisfies local MSP principal
during channelless check policy with policy [Admins]: [This identity is not an admin])
at new createStatusError(/node_modules/grpc/src/client.js64:15)
at /node_modules/grcp/src/client.js583:15
error: [Client.js]: Failed Installed Chaincodes Query. Error: Error: 2 UKNOWN:
chaincode error (status: 500, message: Authorization for
GETINSTALLEDCHAINCODES on channel getinstalledchaincodes has been denied with
error Failed verifying that proposal's creator satisfies local MSP principal
during channelless check policy with policy [Admins]: [This identity is not an
admin])
at new createStatusError(/node_modules/grpc/src/client.js:64:15)
at /node_modules/grpc/src/client.js:583:15
[2019-04-10 07:50:07.755] [ERROR] Query - Error: chaincode error (status: 500,
message: Authorization for GETINSTALLEDCHAINCODES on channel
getinstalledchaincodes has been denied with error Failed verifying that
proposal's creator satisfies local MSP principal during channelless check
policy with policy [Admins]: [This identity is not an admin])
at new createStatusError(/node_modules/grpc/src/client.js:64:15)
at /node_modules/grpc/src/client.js:583:15
在我的区块之间
Successfully loaded member from persistence
这一直持续到抛出错误为止
Error: No identity has been assigned to this Client
at Client._getSigningIdentity (/node_modules/fabric-client/Client.js:1206:11)
at Channel.queryBlock (/node_modules/grpc/fabric-client/lib/Channel.js:1073:36)
at Object.getBlockByNumber (/app/query.js:52:17)
at saveBlockRange (/service/blockscanner.js:50:31)
at next (native)
at onFulfilled (/node_modules/co/index.js:65:19)
at /node_modules/co/index.js:54:5
at co (/node_modules/co/index.js:50:10)
at Promise.all.then.datas (/service/blockscanner.js:36:9)
然后它将完全停止工作。用户界面仍然存在,但是日志和用户界面更新停止。
编辑:
[这似乎不是使它完全停止的唯一错误。我见过很多实例,它一直在继续。但是有时还会出现第二个错误,有时,如果“未分配身份”错误不会停止更新,则将使Docker容器完全崩溃,甚至UI也将消失。 ]
我什至不知道从哪里开始,因为它在看似完全随机的时间内工作了完全失效。重新启动会有所帮助,但是您不确定何时会再次消失。
我正在使用Hyperledger Fabric 1.1,因为它是一个较旧的设置,我刚刚再次开始。我正在使用Ubuntu,但是那台机器上没有Internet访问。
当我尝试通过客户端的API获取链码时,我得到:
TypeError: NetworkError when attempting to fetch resource.
在本地终端上使用客户端的端口进行卷曲,这可以正常工作,并且可以将大理石上的信息反馈给我。 客户端的UI中显示的内容与之相同,但在本地计算机上起作用的内容似乎不适用于客户端的API。