Code Monkey home page Code Monkey logo

docker-compose-files's People

Contributors

akm4 avatar andyalpha avatar dependabot[bot] avatar gymgle avatar hiberabyss avatar icodezjb avatar lafenicecc avatar qiang0723 avatar shuowangnsl avatar swbsin avatar thijsdenbraver avatar wezxll avatar yeasy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-compose-files's Issues

Question on CORE_PEER_GOSSIP_BOOTSTRAP's inconsistency in docker-compose-base.yaml

Hi,
I have been going through the configuration details mentioned in https://github.com/yeasy/docker-compose-files/blob/master/hyperledger/1.0/kafka/docker-compose-base.yaml
I can see inconsist definition for CORE_PEER_GOSSIP_BOOTSTRAP in each peer definition.

peer0 of org1
This does not have CORE_PEER_GOSSIP_BOOTSTRAP definition.
environment: CORE_PEER_ID=peer0.org1.example.com CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_PEER_CHAINCODELISTENADDRESS=peer0.org1.example.com:7052 CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 CORE_PEER_LOCALMSPID=Org1MSP

peer1 of org1
This is pointed to peer0
environment: CORE_PEER_ID=peer1.org1.example.com CORE_PEER_ADDRESS=peer1.org1.example.com:7051 CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.example.com:7051 CORE_PEER_CHAINCODELISTENADDRESS=peer1.org1.example.com:7052 CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 CORE_PEER_LOCALMSPID=Org1MSP

peer0 & peer1 of org2
This points to same peer
environment: CORE_PEER_ID=peer0.org2.example.com CORE_PEER_ADDRESS=peer0.org2.example.com:7051 CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.example.com:7051 CORE_PEER_CHAINCODELISTENADDRESS=peer0.org2.example.com:7052 CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org2.example.com:7051 CORE_PEER_LOCALMSPID=Org2MSP

environment: CORE_PEER_ID=peer1.org2.example.com CORE_PEER_ADDRESS=peer1.org2.example.com:7051 CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org2.example.com:7051 CORE_PEER_CHAINCODELISTENADDRESS=peer1.org2.example.com:7052 CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org2.example.com:7051 CORE_PEER_LOCALMSPID=Org2MSP

Question:
Why is this inconsistency. is it purposely done? if yes, why?

kindly enlighten me! im confused.

docker-compose -f 4-peers-with-membersrvc-explorer.yml up

when exec docker-compose -f 4-peers-with-membersrvc-explorer.yml up, happen
ERROR: for membersrvc0 Cannot create container for service membersrvc0: mkdir /var/lib/docker/overlay/e1e5b9ad4a801fe82ce5b9f32fdff4e1a0c06d9f3cfdd9b7691b5103c5db5f73-init/merged/dev/shm: invalid argument
ERROR: Encountered errors while bringing up the project.

where to view the chaincode log

I write some chaincode and deploy it . but there is some results, which is not my expected. I add some log to chiancode as debug info like "fmt.Println("id:" + args[0] + " - state" + args[1])", after I enter into the docker by "docker exec -it xxxx bash", then can't find where the chaincode log is.

Thank you!

How to switch to PBFT consensus?

Currently only 1 peer is running with NOOPS consensus. How to setup 4 peers and run PBFT consensus. And also how to add peers dynamically after all 4 peers have started running.

last update broke e2e_cli in hyperledger 1.0

docker exec -it fabric-cli bash
root@fabric-cli:/go/src/github.com/hyperledger/fabric/peer# bash scripts/initialize.sh 

 ============================================== 
 ==========initialize businesschannel========== 
 ============================================== 

Channel name : businesschannel
Creating channel...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp
CORE_PEER_ID=fabric-cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2017-06-23 13:39:43.097 UTC [msp] getMspConfig -> WARN 001 Intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts: no such file or directory]
2017-06-23 13:39:43.097 UTC [msp] getMspConfig -> WARN 002 TLS intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/tlsintermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/tlsintermediatecerts: no such file or directory]
2017-06-23 13:39:43.097 UTC [msp] getMspConfig -> WARN 003 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/crls]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/crls: no such file or directory]
2017-06-23 13:39:43.097 UTC [msp] getMspConfig -> INFO 004 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml: no such file or directory]
2017-06-23 13:39:43.114 UTC [main] main -> ERRO 005 Cannot run peer because error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp: err KeyMaterial not found in SigningIdentityInfo
================== ERROR !!! FAILED to execute End-2-End Scenario ==================

default channel list error

Hello,

I am running Virtual Box with Centos 7.x with Docker and Docker-compose. First, thank you very much for having a detailed and comprehensive repo for fabric v1. I'm trying to dockerize a development environment to test chaincode. Working through the example you have in hyperledger/1.0/Readme.md:

bash scripts/setup_Docker.sh 
bash scripts/download_images.sh
bash scripts/start_fabric.sh`

I then do:

$ docker exec -it fabric-cli bash
$ peer channel list  

And I get:

root@cli:/go/src/github.com/hyperledger/fabric# peer channel list
2017-06-06 10:00:14.316 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts: no such file or directory]
2017-06-06 10:00:14.317 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/crls: no such file or directory]
2017-06-06 10:00:14.317 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml: no such file or directory]
2017-06-06 10:00:14.346 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2017-06-06 10:00:14.346 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2017-06-06 10:00:14.348 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AA6070A5C08031A0C08AEFAD9C90510...631A0D0A0B4765744368616E6E656C73
2017-06-06 10:00:14.348 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 20E59E646C53EAAA2A9AA81B1990D1708E4A270D08911C208849645259FEBEF1
Channels peers has joined to:
2017-06-06 10:00:14.356 UTC [main] main -> INFO 008 Exiting.....

If I ignore this, keep going, and try to install chaincode:

root@cli:/go/src/github.com/hyperledger/fabric# peer chaincode install -v 1.0 -n test_cc -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2017-06-06 10:05:56.011 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts: no such file or directory]
2017-06-06 10:05:56.011 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/crls: no such file or directory]
2017-06-06 10:05:56.011 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml: no such file or directory]
2017-06-06 10:05:56.038 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2017-06-06 10:05:56.038 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2017-06-06 10:05:56.039 UTC [golang-platform] collectChaincodeFiles -> DEBU 006 not using input for hash computation for path:"github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" name:"test_cc" version:"1.0"
2017-06-06 10:05:56.039 UTC [golang-platform] getCodeFromFS -> DEBU 007 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2017-06-06 10:05:56.039 UTC [util] HashFilesInDir -> DEBU 008 hashFiles /go/src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2017-06-06 10:05:56.040 UTC [golang-platform] writeGopathSrc -> INFO 009 rootDirectory = /go/src
2017-06-06 10:05:56.040 UTC [container] WriteFolderToTarPackage -> INFO 00a rootDirectory = /go/src
2017-06-06 10:05:57.633 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0AA6070A5C08031A0C0885FDD9C90510...F1CFFF090000FFFF46DBAAE900161702
2017-06-06 10:05:57.633 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 0E94678977ECFC16335033E2D6FA4BC86E698577B95F684FEEC9540C5CA1E3CB
2017-06-06 10:05:58.075 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:<status:200 payload:"OK" >

Instanstiate chaincode:

root@cli:/go/src/github.com/hyperledger/fabric# peer chaincode instantiate -v 1.0 -n test_cc -c '{"Args":["init","a","100","b","200"]}' -o orderer0:7050
2017-06-06 10:07:06.424 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts: no such file or directory]
2017-06-06 10:07:06.424 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/crls: no such file or directory]
2017-06-06 10:07:06.424 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml: no such file or directory]
2017-06-06 10:07:06.451 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2017-06-06 10:07:06.452 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2017-06-06 10:07:06.457 UTC [grpc] Printf -> DEBU 006 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer0 on 127.0.0.11:53: no such host"; Reconnecting to {orderer0:7050 <nil>}
2017-06-06 10:07:07.466 UTC [grpc] Printf -> DEBU 007 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer0 on 127.0.0.11:53: no such host"; Reconnecting to {orderer0:7050 <nil>}
2017-06-06 10:07:09.021 UTC [grpc] Printf -> DEBU 008 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer0 on 127.0.0.11:53: no such host"; Reconnecting to {orderer0:7050 <nil>}
Error: Error getting broadcast client: Error connecting to orderer0:7050 due to context deadline exceeded

exit container bash and run docker ps

CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS                                                                                 NAMES
f9cfbee1b6a1        hyperledger/fabric-peer      "bash -c 'while tr..."   9 minutes ago       Up 9 minutes        7050-7059/tcp                                                                         fabric-cli
8d706014e177        hyperledger/fabric-peer      "peer node start -..."   9 minutes ago       Up 9 minutes        7050/tcp, 0.0.0.0:7051->7051/tcp, 7052/tcp, 7054-7059/tcp, 0.0.0.0:7053->7053/tcp     peer0.org1.example.com
257b08a13c2d        hyperledger/fabric-orderer   "orderer"                9 minutes ago       Up 9 minutes        0.0.0.0:7050->7050/tcp                                                                orderer.example.com
88fb62d42eb6        hyperledger/fabric-peer      "peer node start -..."   9 minutes ago       Up 9 minutes        7050/tcp, 7052/tcp, 7054-7059/tcp, 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp     peer1.org1.example.com
cb6774c7aaf0        hyperledger/fabric-peer      "peer node start -..."   9 minutes ago       Up 9 minutes        7050/tcp, 7052/tcp, 7054-7059/tcp, 0.0.0.0:10051->7051/tcp, 0.0.0.0:10053->7053/tcp   peer1.org2.example.com
a80c2a2b45ab        hyperledger/fabric-ca        "fabric-ca-server ..."   9 minutes ago       Up 9 minutes        0.0.0.0:7054->7054/tcp                                                                fabric-ca
b2cf2c970c80        hyperledger/fabric-peer      "peer node start -..."   9 minutes ago       Up 9 minutes        7050/tcp, 7052/tcp, 7054-7059/tcp, 0.0.0.0:9051->7051/tcp, 0.0.0.0:9053->7053/tcp     peer0.org2.example.com

Thoughts? Thanks in advance.

The CSR subject common name must equal the enrollment ID

Environment

Centos 7.2
Fabric 1.0 (Followed the steps in https://github.com/yeasy/docker-compose-files/tree/master/hyperledger/1.0)

How to repeat the problem?

I built the cluster, as mentioned above, then I try to use fabric-sdk-py to connect to CA and enroll user.
The follow is my code.

import os

from hfc.api.ca.caservice import CAClient

with open(os.path.join(os.path.dirname(__file__),
                       "fixtures/ca/enroll-csr.pem")) as f:
    test_pem = f.read()

ENROLLMENT_ID = "admin"
ENROLLMENT_SECRET = "adminpw"

ca_client = CAClient("http://192.168.53.20:7054")
print(ca_client.get_cainfo())
ca_client.enroll(ENROLLMENT_ID,ENROLLMENT_SECRET,test_pem)

print(ca_client.get_cainfo()) works well,
but ca_client.enroll(ENROLLMENT_ID,ENROLLMENT_SECRET,test_pem) returned error Enrollment failed with errors [{u'message': u'The CSR subject common name must equal the enrollment ID', u'code': 0}] , I checked the log in docker, it recorded the same error. How can I get the correct CSR file? Did I use the sdk in the wrong way?

hyperledger部署chainco de_example02后可以invoke但是不能query

query错误信息如下:

Error: Error querying chaincode: rpc error: code = 2 desc = Error:Failed to launch chaincode spec(premature execution - chaincode (ee5b24a1f17c356dd5f6e37307922e39ddba12e5d2e203ed93401d7d05eb0dd194fb9070549c5dc31eb63f4e654dbd5a1d86cbb30c48e3ab1812590cd0f78539) is being launched)

搭建按照您的blockchain_guide教程进行。

环境:

  • 宿主机是centos 7
  • 4个docker节点
  • 下载的docker是latest版本(0.6版本也是一样)
  • pbtf模式

Error response from daemon: No such container: fabric-cli

when i excute cmd make init then have some problems

root@ubuntu:/opt/hyperledger/docker-compose-files-master/hyperledger/1.0# make init
docker exec -it fabric-cli bash ./scripts/initialize.sh
Error response from daemon: No such container: fabric-cli
Makefile:20: recipe for target 'init' failed
make: *** [init] Error 1

when i excute cmd make start then have some problems

root@ubuntu:/opt/hyperledger/docker-compose-files-master/hyperledger/1.0# make start
docker-compose -f "docker-compose-2orgs-4peers.yaml" up -d # Start a fabric network
Recreating adea231c07c9_adea231c07c9_adea231c07c9_adea231c07c9_peer1.org1.example.com ...
Recreating a9f99d52ad8e_a9f99d52ad8e_a9f99d52ad8e_a9f99d52ad8e_peer0.org2.example.com ...
Recreating adea231c07c9_adea231c07c9_adea231c07c9_adea231c07c9_peer1.org1.example.com
Recreating b92efc7a7dc0_b92efc7a7dc0_b92efc7a7dc0_b92efc7a7dc0_b92efc7a7dc0_fabric-ca ...
Recreating a9f99d52ad8e_a9f99d52ad8e_a9f99d52ad8e_a9f99d52ad8e_peer0.org2.example.com
Recreating 4edfe4ffd1ea_4edfe4ffd1ea_4edfe4ffd1ea_4edfe4ffd1ea_4edfe4ffd1ea_orderer.example.com ...
Recreating b92efc7a7dc0_b92efc7a7dc0_b92efc7a7dc0_b92efc7a7dc0_b92efc7a7dc0_fabric-ca
Recreating 443e8a8a63ee_443e8a8a63ee_443e8a8a63ee_443e8a8a63ee_peer1.org2.example.com ...
Recreating 1c2d29f3db88_1c2d29f3db88_1c2d29f3db88_1c2d29f3db88_peer0.org1.example.com ...
Recreating 4edfe4ffd1ea_4edfe4ffd1ea_4edfe4ffd1ea_4edfe4ffd1ea_4edfe4ffd1ea_orderer.example.com
Recreating 443e8a8a63ee_443e8a8a63ee_443e8a8a63ee_443e8a8a63ee_peer1.org2.example.com
Recreating adea231c07c9_adea231c07c9_adea231c07c9_adea231c07c9_peer1.org1.example.com ... error

Recreating a9f99d52ad8e_a9f99d52ad8e_a9f99d52ad8e_a9f99d52ad8e_peer0.org2.example.com ... error

Recreating b92efc7a7dc0_b92efc7a7dc0_b92efc7a7dc0_b92efc7a7dc0_b92efc7a7dc0_fabric-ca ... error

Recreating 4edfe4ffd1ea_4edfe4ffd1ea_4edfe4ffd1ea_4edfe4ffd1ea_4edfe4ffd1ea_orderer.example.com ... error

Recreating 443e8a8a63ee_443e8a8a63ee_443e8a8a63ee_443e8a8a63ee_peer1.org2.example.com ... error

Recreating 1c2d29f3db88_1c2d29f3db88_1c2d29f3db88_1c2d29f3db88_peer0.org1.example.com ... error

ERROR: for 1c2d29f3db88_1c2d29f3db88_1c2d29f3db88_1c2d29f3db88_peer0.org1.example.com No such image: sha256:2af0ffb2cb1c0f9e358cdccce1c1d29163d47d0a9f0075ba4e5c1d5fac7e215f

ERROR: for orderer.example.com No such image: sha256:0a04ea8bc9c1029ffcc15c0ac9bc30ef3c5ee5bb62cfc255761c4318098660eb

ERROR: for ca No such image: sha256:79d7d93e1bf3f17c2b5af3ba24595bc008919c8452f75bdd1216bfffa54bdc35

ERROR: for peer0.org2.example.com No such image: sha256:2af0ffb2cb1c0f9e358cdccce1c1d29163d47d0a9f0075ba4e5c1d5fac7e215f

ERROR: for peer0.org1.example.com No such image: sha256:2af0ffb2cb1c0f9e358cdccce1c1d29163d47d0a9f0075ba4e5c1d5fac7e215f

ERROR: for peer1.org1.example.com No such image: sha256:2af0ffb2cb1c0f9e358cdccce1c1d29163d47d0a9f0075ba4e5c1d5fac7e215f

ERROR: for peer1.org2.example.com No such image: sha256:2af0ffb2cb1c0f9e358cdccce1c1d29163d47d0a9f0075ba4e5c1d5fac7e215f
ERROR: Encountered errors while bringing up the project.
Makefile:17: recipe for target 'start' failed
make: *** [start] Error 1

please answer my questions . my English is not good ,so some words is not accuracy, Thank you very much

Error when creating an new channel, "Got unexpected status: BAD_REQUEST"

I'm getting one issue trying to create a new channel.
I run this command :
peer channel create -o orderer.example.com:7050 -c ${CHANNEL_NAME} -f ./peer/channel-artifacts/channel.tx
But i got this error "Error: Got unexpected status: BAD_REQUEST"
Do you know where did this come from ?
Thanks a lot !

grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.18.0.5:49656->172.18.0.4:7051: write: broken pipe"; Reconnecting to {peer0.org1.example.com:7051 <nil>} transport: http2Client.notify Error got notified that the client transport was broken read tcp 172.18.0.5:49658->172.18.0.4:7051: read: connection reset by peer.

Environment

Ubuntu,Docker

How to repeat the problem?

Followed the steps to create an Orderer,Peer
using the docker-compose-1peer.yaml,so all the ertificates are mounted on to the conatiner
Then executed docker exec -it fabric-cli bash command to enter CLI and then entered peer channel list command to check the channels .Thenf aced the above error

What solutions have u tried?

Docker has started the conatiners with
-- Orderer with ip 172.18.0.3
-- Peer with ip 172.18.0.4
-- CLI with ip 172.18.0.5

When peer channel list is executed it tries to connect with peer from CLI and at that point the issue occurs

Tried pining peer 172.18.0.4 and telneted successfully ,But with CLI it was not succesful.

Other Information

Other information u think can help to fix the problem.

The write broken error occurs if the connection is not successful and some wrtie job is done on that connection.but in this case ping to the peer is succesful,So let me knwo what actually is the issue

question: what to change in hyperledger 1.0

hello

if I change the names of the containers (the peers and orderer) in the compose files, what other files do I need to change?

the configtx.yaml and that's it or do I need to change more?

thanks!

error when i execute "bash setupPbft.sh"

The error information is:Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compose.pkg
Error response from daemon: Get https://registry-1.docker.io/v2/yeasy/hyperledger-fabric/manifests/latest: net/http: TLS handshake timeout
And i always encountered with "tag latest not found" or TLS timeout error.
My environment is vagrant and the ubuntu virtual machine in it. Can you show me more details about construct the development environment of fabric? Thank you very much for your time and patience!

fabric-sdk-java tls: first record does not look like a TLS handshake

When I ran fabric-sdk-java unit Test End2endIT, I got the following error.

2017-07-10 08:32:42,140 DEBUG HFClient:260 - Setting user context to MSPID: Org1MSP user: peerOrg1Admin
2017-07-10 08:33:38,830 DEBUG Channel:298 - Creating channel: SYSTEM_CHANNEL, client context peerOrg1Admin
2017-07-10 08:33:38,910 DEBUG ProtoUtils:190 - SignatureHeader: nonce: 67d01317e3585c3f7b0761180e3c8ac256b6bf458f74cf9d, User:peerOrg1Admin, MSPID: Org1MSP, idBytes: 9cf4e05a1061cd08f05e5de59f3177756d4cffbdeb1c69b0cc3139292c4eb9f7
2017-07-10 08:33:38,960 DEBUG Channel:2241 - finally done
2017-07-10 08:33:38,961 DEBUG Channel:298 - Creating channel: foo, client context peerOrg1Admin
2017-07-10 08:33:38,961 DEBUG Channel:159 - Creating new channel foo on the Fabric
2017-07-10 08:33:38,988 DEBUG ProtoUtils:190 - SignatureHeader: nonce: da6e5666050a59bc8a38043995a4c6ea68ae5c8c7eab08d3, User:peerOrg1Admin, MSPID: Org1MSP, idBytes: 9cf4e05a1061cd08f05e5de59f3177756d4cffbdeb1c69b0cc3139292c4eb9f7
2017-07-10 08:33:38,996 DEBUG ProtoUtils:63 - ChannelHeader: type: CONFIG_UPDATE, version: 1, Txid: 8b14e187dfc8f136f66588e937f89af3b02f51e025162614200057d27e34d340, channelId: foo, epoch 0
2017-07-10 08:33:39,008 DEBUG Channel:213 - Sending to orderer payloadSignature: 0x304402202396c0cc6ef0b7d5990fe588de2f16729a3c6485619442dac1cad56004d7b002022069a38cf405bf5d4fe1407a50597039a2c7cdd8ae3ddb7f7baedc8d55fe94b86d 
2017-07-10 08:33:39,011 DEBUG Orderer:122 - Order.sendTransaction name: orderer.example.com, url: grpc://192.168.53.20:7050
2017-07-10 08:33:39,840 ERROR OrdererClient:144 - Received error on channel foo, orderer orderer.example.com, url grpc://192.168.53.20:7050, INTERNAL
io.grpc.StatusRuntimeException: INTERNAL
	at io.grpc.Status.asRuntimeException(Status.java:540)
	at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:392)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:426)
	at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:76)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:512)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$700(ClientCallImpl.java:429)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:544)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:117)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

And then I check the log on orderer.example.com:
grpc: Server.Serve failed to complete security handshake from "192.168.54.233:38214": tls: first record does not look like a TLS handshake
I only modify the url on TestConfig.Class to let the code connect to the correct address, and comment the following code on End2endIT, since I only have one CA.

SampleUser user = sampleStore.getMember(TESTUSER_1_NAME, sampleOrg.getName());
                if (!user.isRegistered()) {  // users need to be registered AND enrolled
                    RegistrationRequest rr = new RegistrationRequest(user.getName(), "org1.department1");
                    user.setEnrollmentSecret(ca.register(rr, admin));
                }
                if (!user.isEnrolled()) {
                    user.setEnrollment(ca.enroll(user.getName(), user.getEnrollmentSecret()));
                    user.setMspId(mspid);
                }
                sampleOrg.addUser(user); //Remember user belongs to this Org

Do you have any idea?

Stuck at instantiation

Environment

Ubuntu 17.04 GNOME Shell 3.24.2

Docker

Docker version 17.05.0-ce, build 89658be

REPOSITORY                         TAG                    IMAGE ID            CREATED             SIZE
hyperledger/fabric-orderer         latest                 a3d897ff8008        14 hours ago        980MB
yeasy/hyperledger-fabric-orderer   latest                 a3d897ff8008        14 hours ago        980MB
hyperledger/fabric-ca              latest                 95d627ade856        14 hours ago        845MB
yeasy/hyperledger-fabric-ca        latest                 95d627ade856        14 hours ago        845MB
hyperledger/fabric-baseimage       x86_64-0.3.1           526e08f853d9        14 hours ago        951MB
hyperledger/fabric-baseos          x86_64-1.0.0           526e08f853d9        14 hours ago        951MB
hyperledger/fabric-ccenv           x86_64-1.0.0-preview   526e08f853d9        14 hours ago        951MB
yeasy/hyperledger-fabric-base      latest                 526e08f853d9        14 hours ago        951MB
hyperledger/fabric-peer            latest                 0ee7fcdf943e        20 hours ago        1.02GB
hyperledger/fabric-tools           latest                 0ee7fcdf943e        20 hours ago        1.02GB
yeasy/hyperledger-fabric-peer      latest                 0ee7fcdf943e        20 hours ago        1.02GB
hyperledger/fabric-ccenv           x86_64-1.0.0-beta      7034cca1918d        7 days ago          1.29GB

How to repeat the problem?

bash scripts/setup_Docker.sh 
bash scripts/download_images.sh

sudo docker-compose -f docker-compose-2orgs-4peers.yaml up -d
sudo docker exec -it fabric-cli bash
bash ./scripts/initialize.sh

The initialize.sh script stucks at instantiation.
stuck_instantiation

What solutions have u tried?

I tried to clean everything and reinstall but I got the same error.

sudo docker kill $(sudo docker ps -q)
sudo docker rm $(sudo docker ps -aq)

I also removed the repo and cloned it again..

Thanks in advance,
Dimitris

Instantiate chaincode error

Environment

Mac OS 10.12.5
Docker 17.03
Go 1.8
Hyperledger Fabric x86_64-1.0.0 alpha

How to repeat the problem?

I try the 'docker-compose-dev.yaml' today.
And I get 4 containers:

  • fabric-cli
  • fabric-peer0
  • fabric-order0
  • fabric-ca
    And then I try to deploy my chaincode. I install my chaincode successfully. But then I try to instantiate it. There comes some erros:
    fabric-peer0 | FROM hyperledger/fabric-baseos:x86_64-0.3.0 fabric-peer0 | ADD binpackage.tar /usr/local/bin fabric-peer0 | LABEL org.hyperledger.fabric.chaincode.id.name="test_cc" \ fabric-peer0 | org.hyperledger.fabric.chaincode.id.version="1.0" \ fabric-peer0 | org.hyperledger.fabric.chaincode.type="GOLANG" \ fabric-peer0 | org.hyperledger.fabric.version="1.0.0-preview" \ fabric-peer0 | org.hyperledger.fabric.base.version="0.3.0" fabric-peer0 | ENV CORE_CHAINCODE_BUILDLEVEL=1.0.0-preview fabric-peer0 | 2017-05-24 14:21:58.167 UTC [util] DockerBuild -> DEBU 48d Attempting build with image hyperledger/fabric-ccenv:x86_64-1.0.0-preview fabric-peer0 | 2017-05-24 14:21:58.168 UTC [util] DockerBuild -> DEBU 48e Image hyperledger/fabric-ccenv:x86_64-1.0.0-preview does not exist locally, attempt pull fabric-peer0 | 2017-05-24 14:22:10.093 UTC [chaincode-platform] func1 -> ERRO 48f Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:x86_64-1.0.0-preview: API error (404): {"message":"manifest for hyperledger/fabric-ccenv:x86_64-1.0.0-preview not found"} fabric-peer0 | 2017-05-24 14:22:10.094 UTC [dockercontroller] deployImage -> ERRO 490 Error building images: Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:x86_64-1.0.0-preview: API error (404): {"message":"manifest for hyperledger/fabric-ccenv:x86_64-1.0.0-preview not found"} fabric-peer0 | 2017-05-24 14:22:10.094 UTC [dockercontroller] deployImage -> ERRO 491 Image Output: fabric-peer0 | ******************** fabric-peer0 | fabric-peer0 | ********************

I thinks it beacuse of its fabric version is 1.0.0-preview, but my fabric version is 1.0.0-alpha.
But I don't know how to edit it? Thanks a lot!

What solutions have u tried?

I have searched the keyword '1.0.0-preview' in this repository, but there is only a scripts for download images, I change it but it's still error...

Thanks a lot!! :)

Error creating configtx manager: Disallowed channel group: Consortiums

Environment

macOS Sierra 10.12.3

How to repeat the problem?

I've successfully run the first part of the instructions. When trying to test chaincode with a new created channel ...

docker-compose -f docker-compose-new-channel.yml up

I get the following error ...

fabric-orderer0 | 2017-05-06 20:51:21.257 UTC [orderer/multichain] newLedgerResources -> CRIT 001 Error creating configtx manager and handlers: Error creating group Consortiums: Disallowed channel group: Consortiums

I've also called docker-compose down before starting anew. It seams this is necessary as I've got a lot of other errors otherwise.

A function error occurred when I deploy chaincode through node-sdk

Hi yeasy, I am using fabric v 1.0 and setup fabric-peer, fabric-ca, fabric-orderer in docker container. When I use fabric-sdk-node to deploy the chaincode , there appears an Error message
"[2017-03-16 14:48:55.617] [ERROR] DEPLOY - TypeError: chain.sendInstantiateProposal is not a function at /mypath/fabric-sdk-node/deploy.js:79:16".
Is this a bug ? Or I missed some steps in previous preparation? :-D

Unable to install custom chaincode

Environment

Ubuntu 16.04.2 LTS
Docker version 17.03.1-ce, build c6d412e

How to repeat the problem?

I have pulled all necessary images and used docker-compose-2orgs-4peers.yaml succesfully to run the 4 peers scenario.
After that, I edited the chaincode_example02.go under /go/src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 directory in all containers (fabric-cli, peer1.org2.example.com, peer0.org1.example.com, peer1.org1.example.com, peer0.org2.example.com, orderer.example.com). Despite all this, It seems that the initial chaincode is installed and running. The same thing happens even if I change the path to the chaincode in the peer chaincode install command, and supply a path to my custom chaincode.

Hyperledger Fabric docker-compose-2org-4peers.yaml Error

Environment

Any environment information, e.g., os, tool versions, image version.

`uname -a
Linux greenvm-w11516v1 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@greenvm-w11516v1 1.0]# docker --version
Docker version 17.06.0-ce, build 02c1d87`

[root@greenvm-w11516v1 1.0]# docker images

REPOSITORY TAG IMAGE ID CREATED SIZE
dev-peer0.org1.example.com-mycc-1.0 latest 265ab25b6fa9 6 hours ago 966MB
hyperledger/fabric-peer latest 3ea035438fc2 2 days ago 987MB
hyperledger/fabric-tools latest 3ea035438fc2 2 days ago 987MB
yeasy/hyperledger-fabric-peer latest 3ea035438fc2 2 days ago 987MB
yeasy/hyperledger-fabric-orderer latest 8504e81ca419 2 days ago 976MB
hyperledger/fabric-orderer latest 8504e81ca419 2 days ago 976MB
hyperledger/fabric-baseimage x86_64-0.3.1 0ccecf9a0663 2 days ago 951MB
hyperledger/fabric-baseos x86_64-0.3.1 0ccecf9a0663 2 days ago 951MB
hyperledger/fabric-baseos x86_64-1.0.0 0ccecf9a0663 2 days ago 951MB
hyperledger/fabric-ccenv x86_64-1.0.0-preview 0ccecf9a0663 2 days ago 951MB
hyperledger/fabric-ccenv x86_64-1.0.0-rc1 0ccecf9a0663 2 days ago 951MB
yeasy/hyperledger-fabric-base latest 0ccecf9a0663 2 days ago 951MB
hyperledger/fabric-ca latest 4dde1946860e 3 days ago 845MB
yeasy/hyperledger-fabric-ca latest 4dde1946860e 3 days ago 845MB
hyperledger/fabric-kafka latest dbb5796d915f 13 days ago 1.3GB
hyperledger/fabric-kafka x86_64-1.0.0-rc1 dbb5796d915f 13 days ago 1.3GB
hyperledger/fabric-zookeeper latest d2efbb01a999 13 days ago 1.31GB
hyperledger/fabric-zookeeper x86_64-1.0.0-rc1 d2efbb01a999 13 days ago 1.31GB
hyperledger/fabric-couchdb x86_64-1.0.0-beta 31bbbec3d853 4 weeks ago 1.48GB

How to repeat the problem?

Detailed steps to repeat the problem.

1 the images is newest :
https://hub.docker.com/r/yeasy/hyperledger-fabric-peer/

2
https://github.com/yeasy/docker-compose-files/tree/master/hyperledger/1.0

docker-compose -f docker-compose-2orgs-4peers.yaml up

the error is occur:
`orderer.example.com | 2017-07-07 11:59:53.171 UTC [cauthdsl] func1 -> DEBU 225 0xc42000e008 gate 1499428793170656297 evaluation succeeds
orderer.example.com | 2017-07-07 11:59:53.171 UTC [orderer/common/sigfilter] Apply -> DEBU 226 Forwarding validly signed message for policy &{%!s(*common.ImplicitMetaPolicy=&{Readers 0}) %!s(int=1) [%!s(*policies.implicitMetaPolicy=&{0xc42029efa0 1 [0xc4201a83c0]}) %!s(*policies.implicitMetaPolicy=&{0xc42029f680 1 [0xc4201a84f0 0xc4201a8428]})]}
orderer.example.com | 2017-07-07 11:59:53.171 UTC [orderer/common/deliver] Handle -> DEBU 227 [channel: businesschannel] Received seekInfo (0xc420373140) start:<specified:<number:3 > > stop:<specified:<number:18446744073709551615 > >
peer1.org1.example.com | 2017-07-07 11:59:53.175 UTC [deliveryClient] StopDeliverForChannel -> DEBU 333 This peer will stop pass blocks from orderer service to other peers
peer1.org1.example.com | 2017-07-07 11:59:53.175 UTC [blocksProvider] DeliverBlocks -> WARN 334 [businesschannel] Receive error: Client is closing

3 but docker containers is up : docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0797987ed204 dev-peer0.org1.example.com-mycc-1.0 "chaincode -peer.a..." 6 hours ago Created dev-peer0.org1.example.com-mycc-1.0
93f7d390ff39 hyperledger/fabric-tools "bash -c 'while tr..." 6 hours ago Up 47 seconds 7051/tcp fabric-cli
13126d489428 hyperledger/fabric-peer "peer node start" 6 hours ago Up 48 seconds 7050/tcp, 7054-7059/tcp, 0.0.0.0:7051-7053->7051-7053/tcp peer0.org1.example.com
cf901b3bd8f1 hyperledger/fabric-peer "peer node start" 6 hours ago Up 49 seconds 7050/tcp, 7054-7059/tcp, 0.0.0.0:10051->7051/tcp, 0.0.0.0:10052->7052/tcp, 0.0.0.0:10053->7053/tcp peer1.org2.example.com
828caf0c6427 hyperledger/fabric-ca "fabric-ca-server ..." 6 hours ago Up 48 seconds 0.0.0.0:7054->7054/tcp fabric-ca
1e2a561dd563 hyperledger/fabric-peer "peer node start" 6 hours ago Up 49 seconds 7050/tcp, 7054-7059/tcp, 0.0.0.0:8051->7051/tcp, 0.0.0.0:8052->7052/tcp, 0.0.0.0:8053->7053/tcp peer1.org1.example.com
5d950897ad45 hyperledger/fabric-orderer "orderer start" 6 hours ago Up 48 seconds 0.0.0.0:7050->7050/tcp orderer.example.com
7802ef83abad hyperledger/fabric-peer "peer node start" 6 hours ago Up 49 seconds 7050/tcp, 7054-7059/tcp, 0.0.0.0:9051->7051/tcp, 0.0.0.0:9052->7052/tcp, 0.0.0.0:9053->7053/tcp peer0.org2.example.com
4 docker exec -it fabric-cli bash
peer chaincode install -v 1.0 -n test_cc -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2017-07-07 12:47:53.235 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:<status:200 payload:"OK" > `

but the next action will occur error:

peer chaincode instantiate -v 1.0 -n test_cc -c '{"Args":["init","a","100","b","200"]}' -o orderer0:7050 2017-07-07 12:48:29.439 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-07-07 12:48:29.440 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-07-07 12:48:29.490 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer0 on 127.0.0.11:53: no such host"; Reconnecting to {orderer0:7050 <nil>} 2017-07-07 12:48:30.464 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer0 on 127.0.0.11:53: no such host"; Reconnecting to {orderer0:7050 <nil>} 2017-07-07 12:48:32.013 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer0 on 127.0.0.11:53: no such host"; Reconnecting to {orderer0:7050 <nil>} Error: Error getting broadcast client: Error connecting to orderer0:7050 due to context deadline exceeded

What solutions have u tried?

Potential solutions you have tried, e.g., search Google or restart the computer.
i dont know why,all is the newest,and i do @yeasy @ @qiang0723

Other Information

Other information u think can help to fix the problem.

PBFT LedgerError - ResourceNotFound

Hi Baohua Yang,
Could you plz invest some time and show me a path......

My assumption is chaincode is not running on PBFT mode
When i run docker-compose up I am getting following errer for my 4 peers
�[33mvp0_1 |�[0m Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure
and finally on query i am getting LedgerError - ResourceNotFound

Step to reproduce the error
I didnt run bash setupPbft.sh as I am on windows docker.
-I manually pulled the necessary images of peer, tagged the images like you sayed
-Took docker-compose-with-membersrvc.yml and peer-pbft.yml to run the images
-Rename docker-compose-with-membersrvc.yml to docker-compose.yml and run docker-compose up

  • Then in bash I put three command
    1. peer chaincode deploy -u jim -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode/go/chaincode_example02 -c '{"Function":"init", "Args": ["a","100", "b", "200"]}'
    Result Success
    2. peer chaincode invoke -l golang -u jim -n ee5b24a1f17c356dd5f6e37307922e39ddba12e5d2e203ed93401d7d05eb0dd194fb9070549c5dc31eb63f4e654dbd5a1d86cbb30c48e3ab1812590cd0f78539 -c '{"Function": "invoke", "Args": ["a", "b", "10"]}'
    Result : Success
    3. peer chaincode query -l golang -u jim -n ee5b24a1f17c356dd5f6e37307922e39ddba12e5d2e203ed93401d7d05eb0dd194fb9070549c5dc31eb63f4e654dbd5a1d86cbb30c48e3ab1812590cd0f78539 -c '{"Function": "query", "Args": ["b"]}'
    Result : Error: Error querying chaincode: rpc error: code = 2 desc = Error:Failed to launch chaincode spec(Could not get deployment transaction for ee5b24a1f17c356dd5f6e37307922e39ddba12e5d2e203ed93401d7d05eb0dd194fb9070549c5dc31eb63f4e654dbd5a1d86cbb30c48e3ab1812590cd0f78539 - LedgerError - ResourceNotFound: ledger: resource not found)
    What could be the reason?

.

Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: Post http://unix.sock/containers/create?name=dev-peer0.org1.example.com-mycc-1.0: dial unix /var/run/docker.sock: connect: permission denied

Environment

uname -a
3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/opt/gopath"
GORACE=""
GOROOT="/usr/local/src/go"
GOTOOLDIR="/usr/local/src/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build764740552=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
docker version
Client:
Version: 1.12.6
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/yeasy/hyperledger-fabric-ca 1.0.0 963e8704e9b2 2 weeks ago 846.4 MB
hyperledger/fabric-ca latest 963e8704e9b2 2 weeks ago 846.4 MB
docker.io/yeasy/hyperledger-fabric-peer 1.0.0 c19c5a1ed806 2 weeks ago 1.024 GB
hyperledger/fabric-peer latest c19c5a1ed806 2 weeks ago 1.024 GB
hyperledger/fabric-tools latest c19c5a1ed806 2 weeks ago 1.024 GB
docker.io/yeasy/hyperledger-fabric-orderer 1.0.0 46bbc2cbac2d 2 weeks ago 1.013 GB
hyperledger/fabric-orderer latest 46bbc2cbac2d 2 weeks ago 1.013 GB
hyperledger/fabric-baseos latest 21e9f22bc020 3 weeks ago 987.1 MB
hyperledger/fabric-baseos x86_64-0.3.1 21e9f22bc020 3 weeks ago 987.1 MB
hyperledger/fabric-ccenv x86_64-1.0.0 21e9f22bc020 3 weeks ago 987.1 MB
docker.io/yeasy/hyperledger-fabric-base 1.0.0 21e9f22bc020 3 weeks ago 987.1 MB
hyperledger/fabric-base latest 21e9f22bc020 3 weeks ago 987.1 MB
hyperledger/fabric-baseimage latest 21e9f22bc020 3 weeks ago 987.1 MB
hyperledger/fabric-baseimage x86_64-0.3.1 21e9f22bc020 3 weeks ago 987.1 MB
docker.io/hyperledger/fabric-couchdb x86_64-1.0.0 2fbdbf3ab945 3 weeks ago 1.481 GB
hyperledger/fabric-couchdb latest 2fbdbf3ab945 3 weeks ago 1.481 GB
docker.io/hyperledger/fabric-kafka x86_64-1.0.0 dbd3f94de4b5 3 weeks ago 1.297 GB
hyperledger/fabric-kafka latest dbd3f94de4b5 3 weeks ago 1.297 GB
hyperledger/fabric-zookeeper latest e545dbf1c6af 3 weeks ago 1.312 GB
docker.io/hyperledger/fabric-zookeeper x86_64-1.0.0 e545dbf1c6af 3 weeks ago 1.312 GB

How to repeat the problem?

make start

docker-compose -f "docker-compose-2orgs-4peers.yaml" up -d # Start a fabric network
Creating network "10_default" with the default driver
Creating peer1.org1.example.com ...
Creating peer1.org2.example.com ...
Creating peer0.org2.example.com ...
Creating fabric-ca ...
Creating peer0.org1.example.com ...
Creating orderer.example.com ...
Creating peer0.org2.example.com
Creating peer1.org2.example.com
Creating orderer.example.com
Creating fabric-ca
Creating peer1.org1.example.com
Creating peer0.org1.example.com ... done
Creating fabric-cli ...
Creating fabric-cli ... done
make init
Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: Post http://unix.sock/containers/create?name=dev-peer0.org1.example.com-mycc-1.0: dial unix /var/run/docker.sock: connect: permission denied

Detailed steps to repeat the problem.
make init
Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: Post http://unix.sock/containers/create?name=dev-peer0.org1.example.com-mycc-1.0: dial unix /var/run/docker.sock: connect: permission denied

What solutions have u tried?

Potential solutions you have tried, e.g., search Google or restart the computer.

Other Information

Other information u think can help to fix the problem.

How can I enable REST api service in hyperledger fabric 1.0 preview environment?

Hi, yeasy, thanks for the great job of this project.I followed hyperledger/1.0/README.md, and run go/chaincode_example02 by peer command successfully. But when I tried to access some REST api endpoint, orderer service always refused those http connection immediately.

transport: http2Server.HandleStreams received bogus greeting from client: .....

I am wondering how can share fabric-ca enroll session with peer proccess, sounds like fabric-ca server listenning port 8888, but peer server proccess do not communicate with this port. Is the reason that v1.0 is still on developing, integration part is not implemented yet?

fabric-ccenv镜像问题

成功启动一个noops集群后,当部署chaincode的时候,提示deployimage错误,原因是缺少hyperledger/fabric-ccenv:x86_64-基础镜像,奇怪的是x86_64-后并没有接版本号,按照我的理解,版本号是在fabric下的Makefile中确定的,因此make peer的时候应该会将版本号信息接到x86_64-后,不知为何缺少版本号?官方也并没有提供fabric-ccenv的基础镜像,因此主动去pull也不会成功。
我的解决办法是,从vagrant的开发环境中导出了fabric-ccenv的镜像,并将其标签为fabric-ccenv:x86_64-,因此部署chaincode成功。
是我遗漏了什么?还是您提供的解决方案有遗漏?

rpc error: code = 2 desc = Identity or token does not match

After running

docker pull yeasy/hyperledger-fabric:0.6-dp \
  && docker pull yeasy/hyperledger-fabric-peer:0.6-dp \
  && docker pull yeasy/hyperledger-fabric-base:0.6-dp \
  && docker pull yeasy/blockchain-explorer:latest \
  && docker tag yeasy/hyperledger-fabric-peer:0.6-dp hyperledger/fabric-peer \
  && docker tag yeasy/hyperledger-fabric-base:0.6-dp hyperledger/fabric-baseimage \
  && docker tag yeasy/hyperledger-fabric:0.6-dp hyperledger/fabric-membersrvc

docker-compose -f 4-peers-with-membersrvc-explorer.yml up

I am trying to registrar

curl -X POST --header "Accept: application/json" "http://localhost:7050/registrar" -d'
{
  "enrollId": "test_vp0",
  "enrollSecret": "MwYpmSRjupbT"
}'

and I am getting

vp0_1 | 19:44:48.855 [rest] Register -> INFO 02c REST client login...
vp0_1 | 19:44:48.856 [rest] Register -> INFO 02d Local data store for client loginToken: /var/hyperledger/production/client/
vp0_1 | 19:44:48.856 [rest] Register -> INFO 02e Logging in user 'test_vp0' on REST interface...
vp0_1 | 19:44:48.856 [crypto] RegisterClient -> INFO 02f Registering client [test_vp0] with name [test_vp0]...
vp0_1 | 19:44:48.866 [crypto] Errorf -> ERRO 030 [client.test_vp0] Failed invoking CreateCertficatePair [rpc error: code = 2 desc = Identity or token does not match.].
vp0_1 | 19:44:48.866 [crypto] Errorf -> ERRO 031 [client.test_vp0] Failed getting enrollment certificate [id=test_vp0]: [rpc error: code = 2 desc = Identity or token does not match.]
vp0_1 | 19:44:48.866 [crypto] Errorf -> ERRO 032 [client.test_vp0] Failed retrieving enrollment data [rpc error: code = 2 desc = Identity or token does not match.].
vp0_1 | 19:44:48.866 [crypto] Errorf -> ERRO 033 [client.test_vp0] Failed registering node crypto engine [rpc error: code = 2 desc = Identity or token does not match.].
vp0_1 | 19:44:48.867 [crypto] Errorf -> ERRO 034 [client.test_vp0] Failed registering client [test_vp0]: [rpc error: code = 2 desc = Identity or token does not match.]
vp0_1 | 19:44:48.867 [crypto] RegisterClient -> ERRO 035 Failed registering client [test_vp0] with name [test_vp0] [rpc error: code = 2 desc = Identity or token does not match.].
vp0_1 | 19:44:48.867 [rest] Register -> ERRO 036 Error on client login: rpc error: code = 2 desc = Identity or token does not match.

2017-06-24 08:45:16.049 UTC [main] main -> ERRO 005 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: err KeyMaterial not found in SigningIdentityInfo orderer.example.com exited with code 1

Environment

os :Ubuntu

How to repeat the problem?

After Pulling required Docker images,while executing sudo docker-compose -f docker-compose-2orgs-4peers.yaml up

What solutions have u tried?

Potential solutions you have tried, e.g., search Google or restart the computer.

Other Information

Other information u think can help to fix the problem.

New Keyword version [example: -v 1.0 ] arrived in latest fabric 1.0

Hi Yeasy,

  1. Currently I can run GRPC for sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0. Is there any node SDK available which supports install,instantiate and version
  2. Is there any documentation or link from where I can get the purpose of version and how new version [v 2.0] chaincode access oldversion [v 1.0] chaincode data.

In CLI we use it like----- fabric# peer chaincode install -v 1.0 -n test_cc -p .....

Error while querying and invoking

Environment

Ubuntu OS and Docker version 17.04.0-ce, build 4845c56

How to repeat the problem?

Run docker-compose run and then on the default channel install and instantiate runs fine. At the time of query and invoke getting Error: Error endorsing query: rpc error: code = 2 desc = failed to obtain cds for test_cc - transaction not found test_cc/testchainid and in the peer logs I see this error fabric-peer0 | 2017-04-09 05:46:54.530 UTC [lccc] Invoke -> ERRO b5b ChaincodeId: test_cc does not exist on channel: testchainid(err:chaincode not found test_cc)

What solutions have u tried?

Haven't tried any solutions yet.

Other Information

I can see the docker container dev-peer0-test_cc-1.0 running.

能启动起来,但是访问时,nginx报504错误……不知是何原因???

Environment

Ubuntu16.04,docker-compose version 1.16.1,Docker version 17.06.2-ce

How to repeat the problem?

直接用docker-compose up运行,正常。curl http://localhost,报502错误
以下是返回信息

<title>502 Bad Gateway</title>

502 Bad Gateway


nginx/1.7.12

What solutions have u tried?

我开始怀疑是80端口没有打开,就尝试开启80端口,但是没有用

Other Information

没有其他的信息了

rror: [Errno 32] Broken pipe

Recreating haproxyweb_webb_1
Recreating haproxyweb_webc_1
Recreating haproxyweb_weba_1
Recreating haproxyweb_haproxy_1
Attaching to haproxyweb_webb_1, haproxyweb_weba_1, haproxyweb_webc_1, haproxyweb_haproxy_1
haproxy_1 | <7>haproxy-systemd-wrapper: executing /usr/local/sbin/haproxy -p /run/haproxy.pid -f /usr/local/etc/haproxy/haproxy.cfg -Ds
weba_1 | Traceback (most recent call last):
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
weba_1 | self.process_request(request, client_address)
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 318, in process_request
weba_1 | self.finish_request(request, client_address)
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 331, in finish_request
weba_1 | self.RequestHandlerClass(request, client_address, self)
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 654, in init
weba_1 | self.finish()
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 713, in finish
weba_1 | self.wfile.close()
weba_1 | File "/usr/local/lib/python2.7/socket.py", line 283, in close
weba_1 | self.flush()
weba_1 | File "/usr/local/lib/python2.7/socket.py", line 307, in flush
weba_1 | self._sock.sendall(view[write_offset:write_offset+buffer_size])
weba_1 | error: [Errno 32] Broken pipe
webc_1 | Traceback (most recent call last):
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
webc_1 | self.process_request(request, client_address)
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 318, in process_request
webc_1 | self.finish_request(request, client_address)
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 331, in finish_request
webc_1 | self.RequestHandlerClass(request, client_address, self)
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 654, in init
webc_1 | self.finish()
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 713, in finish
webc_1 | self.wfile.close()
webc_1 | File "/usr/local/lib/python2.7/socket.py", line 283, in close
webc_1 | self.flush()
webc_1 | File "/usr/local/lib/python2.7/socket.py", line 307, in flush
webc_1 | self._sock.sendall(view[write_offset:write_offset+buffer_size])
webc_1 | error: [Errno 32] Broken pipe
weba_1 | Traceback (most recent call last):
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
weba_1 | self.process_request(request, client_address)
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 318, in process_request
weba_1 | self.finish_request(request, client_address)
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 331, in finish_request
weba_1 | self.RequestHandlerClass(request, client_address, self)
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 654, in init
weba_1 | self.finish()
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 713, in finish
weba_1 | self.wfile.close()
weba_1 | File "/usr/local/lib/python2.7/socket.py", line 283, in close
weba_1 | self.flush()
weba_1 | File "/usr/local/lib/python2.7/socket.py", line 307, in flush
weba_1 | self._sock.sendall(view[write_offset:write_offset+buffer_size])
weba_1 | error: [Errno 32] Broken pipe
webc_1 | Traceback (most recent call last):
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
webc_1 | self.process_request(request, client_address)
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 318, in process_request
webc_1 | self.finish_request(request, client_address)
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 331, in finish_request
webc_1 | self.RequestHandlerClass(request, client_address, self)
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 654, in init
webc_1 | self.finish()
webc_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 713, in finish
webc_1 | self.wfile.close()
webc_1 | File "/usr/local/lib/python2.7/socket.py", line 283, in close
webc_1 | self.flush()
webc_1 | File "/usr/local/lib/python2.7/socket.py", line 307, in flush
webc_1 | self._sock.sendall(view[write_offset:write_offset+buffer_size])
webc_1 | error: [Errno 32] Broken pipe
weba_1 | Traceback (most recent call last):
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
weba_1 | self.process_request(request, client_address)
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 318, in process_request
weba_1 | self.finish_request(request, client_address)
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 331, in finish_request
weba_1 | self.RequestHandlerClass(request, client_address, self)
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 654, in init
weba_1 | self.finish()
weba_1 | File "/usr/local/lib/python2.7/SocketServer.py", line 713, in finish
weba_1 | self.wfile.close()
weba_1 | File "/usr/local/lib/python2.7/socket.py", line 283, in close
weba_1 | self.flush()
weba_1 | File "/usr/local/lib/python2.7/socket.py", line 307, in flush
weba_1 | self._sock.sendall(view[write_offset:write_offset+buffer_size])
weba_1 | error: [Errno 32] Broken pipe

Path to Docker-compose.yml in start_fabric.sh

I found two small issues :

  1. In the Readme, setup_fabric.sh is no longer available, should be rename for start_fabric.sh ?
  2. When executing start_fabric.sh, the docker-compose.yml is not found automatically :
    --> "ERROR: .IOError: [Errno 2] No such file or directory: u'./docker-compose.yml'"

Thanks for your work btw !

Error while querying

This is the error in peer node logs:

fabric-peer0 | 2017-04-07 14:48:53.145 UTC [lccc] Invoke -> ERRO 03e ChaincodeId: test_cc does not exist on channel: testchainid(err:chaincode not found test_cc)

And this is the error of the query transaction:

Error: Error endorsing query: rpc error: code = 2 desc = failed to obtain cds for test_cc - transaction not found test_cc/testchainid

Question/suggestion: Membership Releted Operation instruction in Readme.md file would be great

The readme.md instruction is very clear. It works perfectly with me. No issue.
It would be great if I find something there--- related to
-member,organization when creating new channel.
-create/join channel for a peer
-more about policy
-Does cli container works with this fabric ca

  • is there any CLI command for creating new member with role.
    Actually hard to find proper doc :)

why I run ./network_setup.sh up with error?

Environment

Any environment information, 1.0beta

why I run ./network_setup.sh up with error? Can u tell me what's the problem?

2017-07-31 14:59:02.701 UTC [msp/identity] Sign -> DEBU 017 Sign: plaintext: 0ADB060A1508021A0608B68BFDCB0522...6B3B8AA3441A12080A021A0012021A00
2017-07-31 14:59:02.701 UTC [msp/identity] Sign -> DEBU 018 Sign: digest: 11514E010BF54E6969C74B41A1F380B2E998865E8FF95384DF3F5C452803265F
2017-07-31 14:59:02.702 UTC [channelCmd] readBlock -> DEBU 019 Got status:*orderer.DeliverResponse_Status
2017-07-31 14:59:02.703 UTC [msp] GetLocalMSP -> DEBU 01a Returning existing local MSP
2017-07-31 14:59:02.703 UTC [msp] GetDefaultSigningIdentity -> DEBU 01b Obtaining default signing identity
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7fa10f5fb259]

runtime stack:
runtime.throw(0xdb0fad, 0x2a)
/opt/go/src/runtime/panic.go:566 +0x95
runtime.sigpanic()
/opt/go/src/runtime/sigpanic_unix.go:12 +0x2cc

goroutine 38 [syscall, locked to thread]:
runtime.cgocall(0xafa750, 0xc420026df8, 0xc400000000)
/opt/go/src/runtime/cgocall.go:131 +0x110 fp=0xc420026db0 sp=0xc420026d70
net._C2func_getaddrinfo(0x7fa1000008c0, 0x0, 0xc4203a8330, 0xc42011c750, 0x0, 0x0, 0x0)
??:0 +0x68 fp=0xc420026df8 sp=0xc420026db0
net.cgoLookupIPCNAME(0x7ffed3dc3a89, 0x13, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/go/src/net/cgo_unix.go:146 +0x37c fp=0xc420026f18 sp=0xc420026df8
net.cgoIPLookup(0xc4203a6420, 0x7ffed3dc3a89, 0x13)
/opt/go/src/net/cgo_unix.go:198 +0x4d fp=0xc420026fa8 sp=0xc420026f18
runtime.goexit()
/opt/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc420026fb0 sp=0xc420026fa8
created by net.cgoLookupIP
/opt/go/src/net/cgo_unix.go:208 +0xb4

goroutine 1 [select]:
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*addrConn).wait(0xc4201e0a80, 0x7fa11017eec0, 0xc4203a8270, 0xc420180100, 0x7fb9f0, 0x7fa11017eec0, 0xc4203a8270, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:1032 +0x183
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*ClientConn).getTransport(0xc42031c9c0, 0x7fa11017eec0, 0xc4203a8270, 0xc4203a8200, 0x7fa11017eec0, 0xc4203a8240, 0x19, 0x0, 0xc420189908)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:724 +0x2f7
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.newClientStream(0x7fa11017eec0, 0xc4203a8270, 0x13c6f40, 0xc42031c9c0, 0xda5900, 0x20, 0x0, 0x0, 0x0, 0x0, ...)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/stream.go:189 +0x599
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.NewClientStream(0x7fa11017ee40, 0xc420012290, 0x13c6f40, 0xc42031c9c0, 0xda5900, 0x20, 0x0, 0x0, 0x0, 0x18, ...)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/stream.go:105 +0x162
github.com/hyperledger/fabric/protos/orderer.(*atomicBroadcastClient).Deliver(0xc42011c740, 0x7fa11017ee40, 0xc420012290, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc42024d1e0, 0xbd6210)
/opt/gopath/src/github.com/hyperledger/fabric/protos/orderer/ab.pb.go:499 +0xba
github.com/hyperledger/fabric/peer/channel.InitCmdFactory(0xc420320100, 0x0, 0x0, 0x13d3120)
/opt/gopath/src/github.com/hyperledger/fabric/peer/channel/channel.go:155 +0x2c0
github.com/hyperledger/fabric/peer/channel.getGenesisBlock(0xc4202639f0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/peer/channel/deliverclient.go:141 +0x11c
github.com/hyperledger/fabric/peer/channel.executeCreate(0xc4202639f0, 0xc4202639f0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:177 +0x50
github.com/hyperledger/fabric/peer/channel.create(0xc42022fb00, 0xc420231c20, 0x1, 0xa, 0xc4202639f0, 0xd8b511, 0x5)
/opt/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:207 +0x45
github.com/hyperledger/fabric/peer/channel.createCmd.func1(0xc42022fb00, 0xc420231c20, 0x1, 0xa, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:59 +0x52
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0xc42022fb00, 0xc420231720, 0xa, 0xa, 0xc42022fb00, 0xc420231720)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 +0x234
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x13ca8c0, 0xf, 0xc420010035, 0x7)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 +0x367
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x13ca8c0, 0x7d, 0xc420010035)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 +0x2b
main.main()
/opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:117 +0x54e

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/opt/go/src/runtime/asm_amd64.s:2086 +0x1

goroutine 21 [syscall]:
os/signal.signal_recv(0xc420020fa8)
/opt/go/src/runtime/sigqueue.go:116 +0x157
os/signal.loop()
/opt/go/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.1
/opt/go/src/os/signal/signal_unix.go:28 +0x41

goroutine 37 [select]:
net.cgoLookupIP(0x13e1860, 0xc4203a6360, 0x7ffed3dc3a89, 0x13, 0xc420146780, 0xc420025e68, 0x0, 0x0, 0xc420025e00, 0x40505e)
/opt/go/src/net/cgo_unix.go:209 +0x2f5
net.lookupIP(0x13e1860, 0xc4203a6360, 0x7ffed3dc3a89, 0x13, 0xc4200191a0, 0x0, 0xc42007ec30, 0xc42007b040, 0x40005)
/opt/go/src/net/lookup_unix.go:70 +0xf9
net.glob..func11(0x13e1860, 0xc4203a6360, 0xe16680, 0x7ffed3dc3a89, 0x13, 0xc420025ec8, 0x718799, 0xc420025f08, 0xc420025f18, 0x455c30)
/opt/go/src/net/hook.go:19 +0x52
net.lookupIPContext.func1(0xc42031c9c0, 0x7ffed3dc3a89, 0x18, 0x0)
/opt/go/src/net/lookup.go:119 +0x5c
internal/singleflight.(*Group).doCall(0x13fe480, 0xc4203216d0, 0x7ffed3dc3a89, 0x13, 0xc4203a82d0)
/opt/go/src/internal/singleflight/singleflight.go:93 +0x3c
created by internal/singleflight.(*Group).DoChan
/opt/go/src/internal/singleflight/singleflight.go:86 +0x339

goroutine 36 [select]:
net.lookupIPContext(0x13e1860, 0xc4203a6360, 0x7ffed3dc3a89, 0x13, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/go/src/net/lookup.go:122 +0x7bc
net.internetAddrList(0x13e1860, 0xc4203a6360, 0xd8a8ee, 0x3, 0x7ffed3dc3a89, 0x18, 0x0, 0x0, 0x0, 0x0, ...)
/opt/go/src/net/ipsock.go:241 +0x5e0
net.resolveAddrList(0x13e1860, 0xc4203a6360, 0xd8aeee, 0x4, 0xd8a8ee, 0x3, 0x7ffed3dc3a89, 0x18, 0x0, 0x0, ...)
/opt/go/src/net/dial.go:179 +0x106
net.(*Dialer).DialContext(0xc4200496c8, 0x13e1860, 0xc4203a6360, 0xd8a8ee, 0x3, 0x7ffed3dc3a89, 0x18, 0x0, 0x0, 0x0, ...)
/opt/go/src/net/dial.go:329 +0x238
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.dialContext(0x13e1860, 0xc4203a6360, 0xd8a8ee, 0x3, 0x7ffed3dc3a89, 0x18, 0x0, 0x0, 0xc420132690, 0xc420382980)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/go17.go:53 +0xaa
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.DialContext.func1(0x7fa11017ef00, 0xc4203a6360, 0x7ffed3dc3a89, 0x18, 0x1, 0x0, 0x13d3120, 0xc42018c760)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:341 +0x86
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.newProxyDialer.func1(0x7fa11017ef00, 0xc4203a6360, 0x7ffed3dc3a89, 0x18, 0x13, 0x7fa1101b64e8, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/proxy.go:136 +0x143
github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.dial(0x7fa11017ef00, 0xc4203a6360, 0xc42037cfb0, 0x7ffed3dc3a89, 0x18, 0x4109ce, 0xc42037e640, 0xa0, 0x98)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:135 +0x5a
github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.newHTTP2Client(0x7fa11017ef00, 0xc4203a6360, 0x7ffed3dc3a89, 0x18, 0x0, 0x0, 0xd96815, 0x11, 0x0, 0x0, ...)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:173 +0xbf
github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.NewClientTransport(0x7fa11017ef00, 0xc4203a6360, 0x7ffed3dc3a89, 0x18, 0x0, 0x0, 0xd96815, 0x11, 0x0, 0x0, ...)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/transport.go:463 +0xae
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*addrConn).resetTransport(0xc4201e0a80, 0xc42030da00, 0x70670c, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:876 +0x282
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*ClientConn).resetAddrConn.func1(0xc4201e0a80)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:648 +0x34
created by github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*ClientConn).resetAddrConn
/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:657 +0x756
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
================== ERROR !!! FAILED to execute End-2-End Scenario ==================

How can I set up hyperledger fabric with multiple hosts using Docker?

Environment

Any environment information, e.g., os, tool versions, image version.

How to repeat the problem?

Detailed steps to repeat the problem.

What solutions have u tried?

Potential solutions you have tried, e.g., search Google or restart the computer.

Other Information

Other information u think can help to fix the problem.

hyperledger docker-compose.yml for fabric-peer0 invalid command

Environment

OS: Win7 x64 && Ubuntu 17.04
GO: Win7 1.8 && Ubuntu 17.04

How to repeat the problem?

Following https://yeasy.gitbooks.io/blockchain_guide/content/hyperledger/1.0.html

Setting up docker images and trying demo.

In step https://yeasy.gitbooks.io/blockchain_guide/content/hyperledger/1.0.html#启动-fabric-10-网络

docker-compose up

peer docker instance will exit by invalid flags for commond peer

What solutions have u tried?

After update
https://github.com/yeasy/docker-compose-files/blob/master/hyperledger/1.0/docker-compose.yml

line 55, removing -o:

command: peer node start orderer0:7050

it works normally.

Other Information

Error(s) with docker compose hyperledger 1.0

Hi yeasy,

Thanks a lot for all the great docker images you are providing, very helpfull!
I ran into problems though running the docker-compose file for hyperledger 1.0.
https://github.com/yeasy/docker-compose-files/blob/master/hyperledger/1.0/docker-compose.yml

Errors I get for fabric-vp0
2017-02-06 14:21:16.171 UTC [peer/gossip/sa] OrgByPeerIdentity -> ERRO 124 Invalid Peer Identity. It must be different from nil.
2017-02-06 14:21:16.171 UTC [peer/gossip/mcs] GetPKIidOfCert -> ERRO 126 Invalid Peer Identity. It must be different from nil.
2017-02-06 14:21:19.175 UTC [deliveryClient] NewDeliverService -> ERRO 132 Cannot dial to orderer:7050, because of grpc: timed out when dialing

Warnings I get for fabric-vp0
2017-02-06 14:29:37.728 UTC [inproccontroller] getInstance -> WARN 072 chaincode instance exists for cscc-1.0.0-snapshot-preview
2017-02-06 14:29:37.808 UTC [channelState-172.18.0.3:7051] ConfigureChannel -> WARN 125 Cannot extract org identity from certificate, aborting.
2017-02-06 14:29:37.808 UTC [discovery-172.18.0.3:7051] Connect -> WARN 127 Empty PkiID, aborting
2017-02-06 14:29:40.814 UTC [gossipService] InitializeChannel -> WARN 133 Cannot create delivery client, due to grpc: timed out when dialing
2017-02-06 14:29:40.814 UTC [gossipService] InitializeChannel -> WARN 134 Delivery client is down won't be able to pull blocks for chain testchainid
2017-02-06 14:29:40.835 UTC [inproccontroller] getInstance -> WARN 1b4 chaincode instance exists for vscc-1.0.0-snapshot-preview-305216ca522e84d0bf8c2b542b16bd3901dcb1879a970ae7c1eee3a74fbdee583eb8b74ad88edefc3d9647d47663f6b14574734c93a36b3968b077f3870d79cf
2017-02-06 14:29:40.838 UTC [peer] Initialize -> WARN 1e1 Failed to load ledger testchainid(Ledger already opened)

Error I get for orderer
panic: Failed initializing crypto [Could not load a valid ca certificate from directory /etc/hyperledger/msp/sampleconfig/cacerts, err Could not read directory open /etc/hyperledger/msp/sampleconfig/cacerts: no such file or directory, err /etc/hyperledger/msp/sampleconfig/cacerts]
2017-02-06T14:21:14.718993243Z
goroutine 1 [running]:
panic(0xa08f00, 0xc420202740)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
main.main()
/go/src/github.com/hyperledger/fabric/orderer/main.go:89 +0x16df

I am using docker for Mac.
Could you please give some insights in what I should do to fix the problem?
Thanks a lot, Kind regards Koen

运行hyperledger镜像发生错误

hi,yeasy 。用你的方式手动运行四个节点+member。 用java sdk 运行peerClientTest 和memberTest 测试例子。发生如下错误:
12:08:15.147 [crypto] Errorf -> ERRO 03d [client.] Failed loading certificate [eca.cert.chain]: [open /var/hyperledger/production/crypto/client/ks/raw/eca.cert.chain: no such file or directory].
12:08:15.147 [crypto] Errorf -> ERRO 03e [client.] Failed loading ECA certificates chain [open /var/hyperledger/production/crypto/client/ks/raw/eca.cert.chain: no such file or directory].
12:08:15.147 [crypto] Errorf -> ERRO 03f [client.] Failed initiliazing crypto engine [open /var/hyperledger/production/crypto/client/ks/raw/eca.cert.chain: no such file or directory]. Registration to the Membership Service required.
12:08:15.147 [crypto] InitClient -> ERRO 040 Failed client initialization []: [open /var/hyperledger/production/crypto/client/ks/raw/eca.cert.chain: no such file or directory].

请问是什么原因呢。另外你这没有手动启动member的教程。我自己加的:
docker run --name=membersrvc
--net="host"
--restart=unless-stopped
--expose=7054
-it --rm
-p 7054:7054
-v /var/run/docker.sock:/var/run/docker.sock
-v /home/ubuntu/membersrvc.yaml:/opt/gopath/src/github.com/hyperledger/fabric/membersrvc.yaml
hyperledger/fabric-membersrvc:latest membersrvc

Reconfiguring with configtxlator

The environment

  • Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-31-generic x86_64)

  • docker version:
    Client:
    Version: 17.06.0-ce
    API version: 1.30
    Go version: go1.8.3
    Git commit: 02c1d87
    Built: Fri Jun 23 21:19:16 2017
    OS/Arch: linux/amd64
    Server:
    Version: 17.06.0-ce
    API version: 1.30 (minimum version 1.12)
    Go version: go1.8.3
    Git commit: 02c1d87
    Built: Fri Jun 23 21:17:13 2017
    OS/Arch: linux/amd64
    Experimental: false

  • cocker-compose version:
    docker-compose version 1.12.0, build b31ff33
    docker-py version: 2.2.1
    CPython version: 2.7.13
    OpenSSL version: OpenSSL 1.0.1t 3 May 2016

  • images:
    REPOSITORY........................................TAG...............................IMAGE ID..................CREATED..................SIZE
    hyperledger/fabric-tools................latest............................ae6b0f53cb70.........2 months ago........1.32GB
    hyperledger/fabric-tools................x86_64-1.0.0-beta...ae6b0f53cb70.........2 months ago........1.32GB
    hyperledger/fabric-couchdb........latest............................31bbbec3d853........2 months ago........1.48GB
    hyperledger/fabric-couchdb........x86_64-1.0.0-beta...31bbbec3d853........2 months ago........1.48GB
    hyperledger/fabric-kafka...............latest............................c4ac1c9a4797..........2 months ago........1.3GB
    hyperledger/fabric-kafka...............x86_64-1.0.0-beta...c4ac1c9a4797..........2 months ago........1.3GB
    hyperledger/fabric-zookeeper....latest............................2c4ebacb6f00...........2 months ago........1.31GB
    hyperledger/fabric-zookeeper....x86_64-1.0.0-beta...2c4ebacb6f00...........2 months ago........1.31GB
    hyperledger/fabric-orderer..........latest............................11ff350dd297............2 months ago........179MB
    hyperledger/fabric-orderer..........x86_64-1.0.0-beta...11ff350dd297...........2 months ago........179MB
    hyperledger/fabric-peer................latest............................e01c2b645f11...........2 months ago........182MB
    hyperledger/fabric-peer................x86_64-1.0.0-beta...e01c2b645f11...........2 months ago........182MB
    hyperledger/fabric-javaenv..........latest............................61c188dca542...........2 months ago........1.42GB
    hyperledger/fabric-javaenv..........x86_64-1.0.0-beta...61c188dca542...........2 months ago........1.42GB
    hyperledger/fabric-ccenv..............latest............................7034cca1918d...........2 months ago........1.29GB
    hyperledger/fabric-ccenv..............x86_64-1.0.0-beta...7034cca1918d...........2 months ago........1.29GB
    hyperledger/fabric-ca.....................latest............................e549e8c53c2e...........2 months ago........238MB
    hyperledger/fabric-ca.....................x86_64-1.0.0-beta...e549e8c53c2e...........2 months ago........238MB

The problem

I follow the configtxlator.md do reconfigure, When doing Add an organization, I found that I did not have SampleDevModSolo. Is this set in configtx.yaml? How do i set up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.