我正在关注本教程: https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html
在“node query.js
”命令中,我收到以下错误:
Create a client and set the wallet location
Set wallet path, and associate user PeerAdmin with application
Check user is enrolled, and set a query URL in the network
Make query
Assigning transaction_id: f7d1d9b40c37bb21909bdb6ff24980da33758fb1ea5a85cb67d699f3fcd3ffa2
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown
at /home/user/work/fabric-samples/fabcar/node_modules/grpc/src/node/src/client.js:434:17
returned from query
Query result count = 1
error from query = { [Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown] code: 2, metadata: Metadata { _internal_repr: {} } }
Response is Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown
答案 0 :(得分:1)
遇到与自己相同的问题。
我的解决方案:
sudo apt-get --purge remove docker-ce
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
答案 1 :(得分:0)
我认为这是docker的一个问题。当我遇到同样的问题时,我通过以下命令更新docker来修复它:
sudo apt-get --purge remove docker-ce
sudo apt-get remove docker
sudo apt-get remove docker-ce
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get install docker-ce
docker -v
sudo curl -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
docker-compose -v
sudo reboot

更新泊坞窗后,请再试一次,看看问题是否已解决。
答案 2 :(得分:0)
这似乎是您的Docker版本的问题。版本1.0.1中已更正a bug report in Hyperledger Fabric 1.0.0,与您描述的情况类似。
建议的解决方案是将Docker版本升级到 17.03.0-ce或更高版本,并将Hyperledger Fabric版本升级为 1.0.1或更高版本。