olegabu / fabric-starter Goto Github PK
View Code? Open in Web Editor NEWStarter Application and Deployment Scripts for Hyperledger Fabric
License: Apache License 2.0
Starter Application and Deployment Scripts for Hyperledger Fabric
License: Apache License 2.0
When adding the Organisation to the consortium I get this error.
Here is the response for the command
ubuntu@ip-172-31-6-193:/starter$ export DOMAIN=revledger.com/starter$ ./consortium-add-org.sh revtech ldhtech
ubuntu@ip-172-31-6-193:
Add revtech to consortium ldhtech
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/revtech.revledger.com/msp/admincerts http://www.revtech.revledger.com/msp/admincerts/[email protected]
--2018-12-04 12:20:08-- http://www.revtech.revledger.com/msp/admincerts/[email protected]
Resolving www.revtech.revledger.com (www.revtech.revledger.com)... 69.172.201.153
Connecting to www.revtech.revledger.com (www.revtech.revledger.com)|69.172.201.153|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'crypto-config/peerOrganizations/revtech.revledger.com/msp/admincerts/[email protected]'
[email protected] [ <=> ] 1.52K --.-KB/s in 0.04s
Last-modified header missing -- time-stamps turned off.
2018-12-04 12:20:09 (36.8 KB/s) - 'crypto-config/peerOrganizations/revtech.revledger.com/msp/admincerts/[email protected]' saved [1557]
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/revtech.revledger.com/msp/cacerts http://www.revtech.revledger.com/msp/cacerts/ca.revtech.revledger.com-cert.pem
--2018-12-04 12:20:09-- http://www.revtech.revledger.com/msp/cacerts/ca.revtech.revledger.com-cert.pem
Resolving www.revtech.revledger.com (www.revtech.revledger.com)... 69.172.201.153
Connecting to www.revtech.revledger.com (www.revtech.revledger.com)|69.172.201.153|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'crypto-config/peerOrganizations/revtech.revledger.com/msp/cacerts/ca.revtech.revledger.com-cert.pem'
ca.revtech.revledger.com-cert.pem [ <=> ] 1.52K --.-KB/s in 0.04s
Last-modified header missing -- time-stamps turned off.
2018-12-04 12:20:10 (37.0 KB/s) - 'crypto-config/peerOrganizations/revtech.revledger.com/msp/cacerts/ca.revtech.revledger.com-cert.pem' saved [1557]
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/revtech.revledger.com/msp/tlscacerts http://www.revtech.revledger.com/msp/tlscacerts/tlsca.revtech.revledger.com-cert.pem
--2018-12-04 12:20:10-- http://www.revtech.revledger.com/msp/tlscacerts/tlsca.revtech.revledger.com-cert.pem
Resolving www.revtech.revledger.com (www.revtech.revledger.com)... 69.172.201.153
Connecting to www.revtech.revledger.com (www.revtech.revledger.com)|69.172.201.153|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'crypto-config/peerOrganizations/revtech.revledger.com/msp/tlscacerts/tlsca.revtech.revledger.com-cert.pem'
tlsca.revtech.revledger.com-cert.pem [ <=> ] 1.52K --.-KB/s in 0.04s
Last-modified header missing -- time-stamps turned off.
2018-12-04 12:20:10 (36.7 KB/s) - 'crypto-config/peerOrganizations/revtech.revledger.com/msp/tlscacerts/tlsca.revtech.revledger.com-cert.pem' saved [1557]
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c mkdir -p crypto-config/configtx && peer channel fetch config crypto-config/configtx/orderer-system-channel.pb -o orderer.revledger.com:7050 -c orderer-system-channel --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt && chown 1000 -R crypto-config/
2018-12-04 12:20:11.659 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2018-12-04 12:20:11.664 UTC [cli/common] readBlock -> INFO 002 Received block: 0
2018-12-04 12:20:11.669 UTC [cli/common] readBlock -> INFO 003 Received block: 0
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c configtxlator proto_decode --type 'common.Block' --input=crypto-config/configtx/orderer-system-channel.pb --output=crypto-config/configtx/orderer-system-channel.json && chown 1000 crypto-config/configtx/orderer-system-channel.json && jq .data.data[0].payload.data.config crypto-config/configtx/orderer-system-channel.json > crypto-config/configtx/config.json
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c export NEWORG=revtech && export CONSORTIUM_NAME=SampleConsortium && export ORG_ADMIN_CERT=cat crypto-config/peerOrganizations/revtech.revledger.com/msp/admincerts/[email protected] | base64 -w 0
&& export ORG_ROOT_CERT=cat crypto-config/peerOrganizations/revtech.revledger.com/msp/cacerts/ca.revtech.revledger.com-cert.pem | base64 -w 0
&& export ORG_TLS_ROOT_CERT=cat crypto-config/peerOrganizations/revtech.revledger.com/msp/tlscacerts/tlsca.revtech.revledger.com-cert.pem | base64 -w 0
&& envsubst <./templates/Consortium.json >crypto-config/configtx/new_config_revtech.json && chown 1000 crypto-config/configtx/new_config_revtech.json
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c jq -s '.[0] * {"channel_group":{"groups":.[1]}}' crypto-config/configtx/config.json crypto-config/configtx/new_config_revtech.json > crypto-config/configtx/updated_config.json
Prepare config update from revtech for channel orderer-system-channel
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c configtxlator proto_encode --type 'common.Config' --input=crypto-config/configtx/config.json --output=config.pb && configtxlator proto_encode --type 'common.Config' --input=crypto-config/configtx/updated_config.json --output=updated_config.pb && configtxlator compute_update --channel_id=orderer-system-channel --original=config.pb --updated=updated_config.pb --output=update.pb && configtxlator proto_decode --type 'common.ConfigUpdate' --input=update.pb --output=crypto-config/configtx/update.json && chown 1000 crypto-config/configtx/update.json
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c echo '{"payload":{"header":{"channel_header":{"channel_id":"orderer-system-channel","type":2}},"data":{"config_update":'cat crypto-config/configtx/update.json
'}}}' | jq . > crypto-config/configtx/update_in_envelope.json
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c configtxlator proto_encode --type 'common.Envelope' --input=crypto-config/configtx/update_in_envelope.json --output=update_in_envelope.pb
revtech is sending channel update update_in_envelope.pb with by
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c peer channel update -f update_in_envelope.pb -c orderer-system-channel -o orderer.revledger.com:7050 --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt
2018-12-04 12:20:16.963 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: getCertFromPem error: could not decode pem bytes [[60 33 68 79 67 84 89 80 69 32 72 84 77 76 32 80 85 66 76 73 67 32 34 45 47 47 87 51 67 47 47 68 84 68 32 72 84 77 76 32 52 46 48 49 47 47 69 78 34 32 34 104 116 116 112 58 47 47 119 119 119 46 119 51 46 111 114 103 47 84 82 47 104 116 109 108 52 47 115 116 114 105 99 116 46 100 116 100 34 62 10 60 104 116 109 108 62 10 60 104 101 97 100 62 10 60 109 101 116 97 32 104 116 116 112 45 101 113 117 105 118 61 34 67 111 110 116 101 110 116 45 84 121 112 101 34 32 99 111 110 116 101 110 116 61 34 116 101 120 116 47 104 116 109 108 59 32 99 104 97 114 115 101 116 61 105 115 111 45 56 56 53 57 45 49 34 62 10 60 109 101 116 97 32 104 116 116 112 45 101 113 117 105 118 61 34 67 111 110 116 101 110 116 45 83 99 114 105 112 116 45 84 121 112 101 34 32 99 111 110 116 101 110 116 61 34 116 101 120 116 47 106 97 118 97 115 99 114 105 112 116 34 62 10 60 115 99 114 105 112 116 32 116 121 112 101 61 34 116 101 120 116 47 106 97 118 97 115 99 114 105 112 116 34 62 10 102 117 110 99 116 105 111 110 32 103 101 116 67 111 111 107 105 101 40 99 95 110 97 109 101 41 32 123 32 47 47 32 76 111 99 97 108 32 102 117 110 99 116 105 111 110 32 102 111 114 32 103 101 116 116 105 110 103 32 97 32 99 111 111 107 105 101 32 118 97 108 117 101 10 32 32 32 32 105 102 32 40 100 111 99 117 109 101 110 116 46 99 111 111 107 105 101 46 108 101 110 103 116 104 32 62 32 48 41 32 123 10 32 32 32 32 32 32 32 32 99 95 115 116 97 114 116 32 61 32 100 111 99 117 109 101 110 116 46 99 111 111 107 105 101 46 105 110 100 101 120 79 102 40 99 95 110 97 109 101 32 43 32 34 61 34 41 59 10 32 32 32 32 32 32 32 32 105 102 32 40 99 95 115 116 97 114 116 33 61 45 49 41 32 123 10 32 32 32 32 32 32 32 32 99 95 115 116 97 114 116 61 99 95 115 116 97 114 116 32 43 32 99 95 110 97 109 101 46 108 101 110 103 116 104 32 43 32 49 59 10 32 32 32 32 32 32 32 32 99 95 101 110 100 61 100 111 99 117 109 101 110 116 46 99 111 111 107 105 101 46 105 110 100 101 120 79 102 40 34 59 34 44 32 99 95 115 116 97 114 116 41 59 10 10 32 32 32 32 32 32 32 32 105 102 32 40 99 95 101 110 100 61 61 45 49 41 32 10 32 32 32 32 32 32 32 32 32 32 32 32 99 95 101 110 100 32 61 32 100 111 99 117 109 101 110 116 46 99 111 111 107 105 101 46 108 101 110 103 116 104 59 10 10 32 32 32 32 32 32 32 32 114 101 116 117 114 110 32 117 110 101 115 99 97 112 101 40 100 111 99 117 109 101 110 116 46 99 111 111 107 105 101 46 115 117 98 115 116 114 105 110 103 40 99 95 115 116 97 114 116 44 99 95 101 110 100 41 41 59 10 32 32 32 32 32 32 32 32 125 10 32 32 32 32 125 10 32 32 32 32 114 101 116 117 114 110 32 34 34 59 10 125 10 102 117 110 99 116 105 111 110 32 115 101 116 67 111 111 107 105 101 40 99 95 110 97 109 101 44 32 118 97 108 117 101 44 32 101 120 112 105 114 101 100 97 121 115 41 32 123 32 47 47 32 76 111 99 97 108 32 102 117 110 99 116 105 111 110 32 102 111 114 32 115 101 116 116 105 110 103 32 97 32 118 97 108 117 101 32 111 102 32 97 32 99 111 111 107 105 101 10 32 32 32 32 118 97 114 32 101 120 100 97 116 101 32 61 32 110 101 119 32 68 97 116 101 40 41 59 10 32 32 32 32 101 120 100 97 116 101 46 115 101 116 68 97 116 101 40 101 120 100 97 116 101 46 103 101 116 68 97 116 101 40 41 43 101 120 112 105 114 101 100 97 121 115 41 59 10 32 32 32 32 100 111 99 117 109 101 110 116 46 99 111 111 107 105 101 32 61 32 99 95 110 97 109 101 32 43 32 34 61 34 32 43 32 101 115 99 97 112 101 40 118 97 108 117 101 41 32 43 32 40 40 101 120 112 105 114 101 100 97 121 115 61 61 110 117 108 108 41 32 63 32 34 34 32 58 32 34 59 101 120 112 105 114 101 115 61 34 32 43 32 101 120 100 97 116 101 46 116 111 71 77 84 83 116 114 105 110 103 40 41 41 32 43 32 34 59 112 97 116 104 61 47 34 59 10 125 10 102 117 110 99 116 105 111 110 32 103 101 116 72 111 115 116 85 114 105 40 41 32 123 10 32 32 32 32 118 97 114 32 108 111 99 32 61 32 100 111 99 117 109 101 110 116 46 108 111 99 97 116 105 111 110 59 10 32 32 32 32 114 101 116 117 114 110 32 108 111 99 46 116 111 83 116 114 105 110 103 40 41 59 10 125 10 115 101 116 67 111 111 107 105 101 40 39 89 80 70 56 56 50 55 51 52 48 50 56 50 74 100 115 107 106 104 102 105 119 95 57 50 56 57 51 55 52 53 57 49 56 50 74 65 88 54 54 54 39 44 32 39 53 52 46 49 56 54 46 49 53 56 46 50 57 39 44 32 49 48 41 59 10 116 114 121 32 123 32 32 10 32 32 32 32 108 111 99 97 116 105 111 110 46 114 101 108 111 97 100 40 116 114 117 101 41 59 32 32 10 125 32 99 97 116 99 104 32 40 101 114 114 49 41 32 123 32 32 10 32 32 32 32 116 114 121 32 123 32 32 10 32 32 32 32 32 32 32 32 108 111 99 97 116 105 111 110 46 114 101 108 111 97 100 40 41 59 32 32 10 32 32 32 32 125 32 99 97 116 99 104 32 40 101 114 114 50 41 32 123 32 32 10 32 32 32 32 9 108 111 99 97 116 105 111 110 46 104 114 101 102 32 61 32 103 101 116 72 111 115 116 85 114 105 40 41 59 32 32 10 32 32 32 32 125 32 32 10 125 10 60 47 115 99 114 105 112 116 62 10 60 47 104 101 97 100 62 10 60 98 111 100 121 62 10 60 110 111 115 99 114 105 112 116 62 84 104 105 115 32 115 105 116 101 32 114 101 113 117 105 114 101 115 32 74 97 118 97 83 99 114 105 112 116 32 97 110 100 32 67 111 111 107 105 101 115 32 116 111 32 98 101 32 101 110 97 98 108 101 100 46 32 80 108 101 97 115 101 32 99 104 97 110 103 101 32 121 111 117 114 32 98 114 111 119 115 101 114 32 115 101 116 116 105 110 103 115 32 111 114 32 117 112 103 114 97 100 101 32 121 111 117 114 32 98 114 111 119 115 101 114 46 60 47 110 111 115 99 114 105 112 116 62 10 60 47 98 111 100 121 62 10 60 47 104 116 109 108 62 10]]
when I'm trying out the decentralised deployment steps I am running into the following issue when I am trying to bring up the orderer, following is the log from the orderer docker container -
ubuntu@ip-172-31-7-2:~/fabric-samples/fabric-starter$ docker logs orderer.example.com
2018-06-18 11:14:21.509 UTC [bccsp_sw] openKeyStore -> DEBU 001 KeyStore opened at [/etc/hyperledger/crypto/orderer/msp/keystore]...done
2018-06-18 11:14:21.509 UTC [bccsp] initBCCSP -> DEBU 002 Initialize BCCSP [SW]
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 003 Reading directory /etc/hyperledger/crypto/orderer/msp/signcerts
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 004 Inspecting file /etc/hyperledger/crypto/orderer/msp/signcerts/orderer.example.com-cert.pem
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 005 Reading directory /etc/hyperledger/crypto/orderer/msp/cacerts
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 006 Inspecting file /etc/hyperledger/crypto/orderer/msp/cacerts/ca.example.com-cert.pem
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 007 Reading directory /etc/hyperledger/crypto/orderer/msp/admincerts
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 008 Inspecting file /etc/hyperledger/crypto/orderer/msp/admincerts/[email protected]
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 009 Reading directory /etc/hyperledger/crypto/orderer/msp/intermediatecerts
2018-06-18 11:14:21.509 UTC [msp] getMspConfig -> DEBU 00a Intermediate certs folder not found at [/etc/hyperledger/crypto/orderer/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/crypto/orderer/msp/intermediatecerts: no such file or directory]
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 00b Reading directory /etc/hyperledger/crypto/orderer/msp/tlscacerts
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 00c Inspecting file /etc/hyperledger/crypto/orderer/msp/tlscacerts/tlsca.example.com-cert.pem
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 00d Reading directory /etc/hyperledger/crypto/orderer/msp/tlsintermediatecerts
2018-06-18 11:14:21.509 UTC [msp] getMspConfig -> DEBU 00e TLS intermediate certs folder not found at [/etc/hyperledger/crypto/orderer/msp/tlsintermediatecerts]. Skipping. [stat /etc/hyperledger/crypto/orderer/msp/tlsintermediatecerts: no such file or directory]
2018-06-18 11:14:21.509 UTC [msp] getPemMaterialFromDir -> DEBU 00f Reading directory /etc/hyperledger/crypto/orderer/msp/crls
2018-06-18 11:14:21.509 UTC [msp] getMspConfig -> DEBU 010 crls folder not found at [/etc/hyperledger/crypto/orderer/msp/crls]. Skipping. [stat /etc/hyperledger/crypto/orderer/msp/crls: no such file or directory]
2018-06-18 11:14:21.509 UTC [msp] getMspConfig -> DEBU 011 MSP configuration file not found at [/etc/hyperledger/crypto/orderer/msp/config.yaml]: [stat /etc/hyperledger/crypto/orderer/msp/config.yaml: no such file or directory]
2018-06-18 11:14:21.509 UTC [msp] newBccspMsp -> DEBU 012 Creating BCCSP-based MSP instance
2018-06-18 11:14:21.509 UTC [msp] New -> DEBU 013 Creating Cache-MSP instance
2018-06-18 11:14:21.510 UTC [msp] GetLocalMSP -> DEBU 014 Created new local MSP
2018-06-18 11:14:21.510 UTC [msp] Setup -> DEBU 015 Setting up MSP instance OrdererMSP
2018-06-18 11:14:21.510 UTC [msp/identity] newIdentity -> DEBU 016 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICLzCCAdWgAwIBAgIQeLHsxXIi709nhddx0KljYTAKBggqhkjOPQQDAjBpMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xFzAVBgNVBAMTDmNhLmV4YW1w
bGUuY29tMB4XDTE4MDYxODA4MDgyMFoXDTI4MDYxNTA4MDgyMFowaTELMAkGA1UE
BhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lz
Y28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRcwFQYDVQQDEw5jYS5leGFtcGxlLmNv
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABDzQkg58tAu924A40v/QydEk1e11
+jYQbFfKhOcGc44uv4qRQQrV7ktPzu4Q4+FiGTzhjuF4ZMUKaf6KNNQafPSjXzBd
MA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMB
Af8wKQYDVR0OBCIEIHhCOEbO7jXCBF++TmOB6NrLdFQ2LyiOIJQEMo9TRj9oMAoG
CCqGSM49BAMCA0gAMEUCIQCdubSODCmNEOkuwDxQifJvIBB8WPNHMdIYt/b5FtnR
qgIgJAd6XM6aR8+UWCCuVbf43fGDln+fOC95O7N/RvSY+kg=
-----END CERTIFICATE-----
2018-06-18 11:14:21.510 UTC [msp/identity] newIdentity -> DEBU 017 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICCzCCAbGgAwIBAgIRAIoykOer3a2O5XEirgu1PrkwCgYIKoZIzj0EAwIwaTEL
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
cmFuY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRcwFQYDVQQDEw5jYS5leGFt
cGxlLmNvbTAeFw0xODA2MTgwODA4MjBaFw0yODA2MTUwODA4MjBaMFYxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNp
c2NvMRowGAYDVQQDDBFBZG1pbkBleGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqG
SM49AwEHA0IABH3ELOqA6Dksb3C+j1cDzBxGpeb6JJNMVdbvbGxD2YGluSMR5NkN
ELZc99bxb5vCxIaOB0b4zEvo2vEuRRBdTKejTTBLMA4GA1UdDwEB/wQEAwIHgDAM
BgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIHhCOEbO7jXCBF++TmOB6NrLdFQ2LyiO
IJQEMo9TRj9oMAoGCCqGSM49BAMCA0gAMEUCIQDUT7DmpaFA8uh4Kl/rjClIPQU8
V/tgrqEOkK+34PxWLAIgcd9MJ5vytJDy15zE7O6B1zQ1P77b1MAO8pq2z6XWaRU=
-----END CERTIFICATE-----
2018-06-18 11:14:21.534 UTC [msp/identity] newIdentity -> DEBU 018 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICCzCCAbKgAwIBAgIQLhGukNXBfpHolpNq9A67nzAKBggqhkjOPQQDAjBpMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xFzAVBgNVBAMTDmNhLmV4YW1w
bGUuY29tMB4XDTE4MDYxODA4MDgyMFoXDTI4MDYxNTA4MDgyMFowWDELMAkGA1UE
BhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lz
Y28xHDAaBgNVBAMTE29yZGVyZXIuZXhhbXBsZS5jb20wWTATBgcqhkjOPQIBBggq
hkjOPQMBBwNCAAQv4hMPRQjgyGf5T9Y8Hx5X+6Mz0Vm9s/6zoWQpf0Kh8yGJq32S
oIywNKBJ3PCr/5XJS5CKdU277RpP1ckVA6s0o00wSzAOBgNVHQ8BAf8EBAMCB4Aw
DAYDVR0TAQH/BAIwADArBgNVHSMEJDAigCB4QjhGzu41wgRfvk5jgejay3RUNi8o
jiCUBDKPU0Y/aDAKBggqhkjOPQQDAgNHADBEAiBUVNDhzduHwVOFAZwrQlajnuXX
yjW4N1QEdxFuYEVLVgIgOSL++T0Sc9TFQKbq8LETAC9IOl742PsGh6+2v6ang6g=
-----END CERTIFICATE-----
2018-06-18 11:14:21.534 UTC [bccsp_sw] loadPrivateKey -> DEBU 019 Loading private key [1e11dbaad62181654191a7e09e34ba84c9a8098a163cd467a9bd5570206172df] at [/etc/hyperledger/crypto/orderer/msp/keystore/1e11dbaad62181654191a7e09e34ba84c9a8098a163cd467a9bd5570206172df_sk]...
2018-06-18 11:14:21.535 UTC [msp/identity] newIdentity -> DEBU 01a Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICCzCCAbKgAwIBAgIQLhGukNXBfpHolpNq9A67nzAKBggqhkjOPQQDAjBpMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xFzAVBgNVBAMTDmNhLmV4YW1w
bGUuY29tMB4XDTE4MDYxODA4MDgyMFoXDTI4MDYxNTA4MDgyMFowWDELMAkGA1UE
BhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lz
Y28xHDAaBgNVBAMTE29yZGVyZXIuZXhhbXBsZS5jb20wWTATBgcqhkjOPQIBBggq
hkjOPQMBBwNCAAQv4hMPRQjgyGf5T9Y8Hx5X+6Mz0Vm9s/6zoWQpf0Kh8yGJq32S
oIywNKBJ3PCr/5XJS5CKdU277RpP1ckVA6s0o00wSzAOBgNVHQ8BAf8EBAMCB4Aw
DAYDVR0TAQH/BAIwADArBgNVHSMEJDAigCB4QjhGzu41wgRfvk5jgejay3RUNi8o
jiCUBDKPU0Y/aDAKBggqhkjOPQQDAgNHADBEAiBUVNDhzduHwVOFAZwrQlajnuXX
yjW4N1QEdxFuYEVLVgIgOSL++T0Sc9TFQKbq8LETAC9IOl742PsGh6+2v6ang6g=
-----END CERTIFICATE-----
2018-06-18 11:14:21.535 UTC [msp] setupSigningIdentity -> DEBU 01b Signing identity expires at 2028-06-15 08:08:20 +0000 UTC
2018-06-18 11:14:21.535 UTC [msp] Validate -> DEBU 01c MSP OrdererMSP validating identity
2018-06-18 11:14:21.535 UTC [orderer/common/server] prettyPrintStruct -> INFO 01d Orderer config values:
General.LedgerType = "file"
General.ListenAddress = "0.0.0.0"
General.ListenPort = 7050
General.TLS.Enabled = true
General.TLS.PrivateKey = "/etc/hyperledger/crypto/orderer/tls/server.key"
General.TLS.Certificate = "/etc/hyperledger/crypto/orderer/tls/server.crt"
General.TLS.RootCAs = [/etc/hyperledger/crypto/orderer/tls/ca.crt]
General.TLS.ClientAuthRequired = false
General.TLS.ClientRootCAs = []
General.Keepalive.ServerMinInterval = 1m0s
General.Keepalive.ServerInterval = 2h0m0s
General.Keepalive.ServerTimeout = 20s
General.GenesisMethod = "file"
General.GenesisProfile = "SampleInsecureSolo"
General.SystemChannel = "testchainid"
General.GenesisFile = "/etc/hyperledger/configtx/genesis.block"
General.Profile.Enabled = false
General.Profile.Address = "0.0.0.0:6060"
General.LogLevel = "debug"
General.LogFormat = "%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}"
General.LocalMSPDir = "/etc/hyperledger/crypto/orderer/msp"
General.LocalMSPID = "OrdererMSP"
General.BCCSP.ProviderName = "SW"
General.BCCSP.SwOpts.SecLevel = 256
General.BCCSP.SwOpts.HashFamily = "SHA2"
General.BCCSP.SwOpts.Ephemeral = false
General.BCCSP.SwOpts.FileKeystore.KeyStorePath = "/etc/hyperledger/crypto/orderer/msp/keystore"
General.BCCSP.SwOpts.DummyKeystore =
General.BCCSP.PluginOpts =
General.BCCSP.Pkcs11Opts =
General.Authentication.TimeWindow = 15m0s
FileLedger.Location = "/var/hyperledger/production/orderer"
FileLedger.Prefix = "hyperledger-fabric-ordererledger"
RAMLedger.HistorySize = 1000
Kafka.Retry.ShortInterval = 5s
Kafka.Retry.ShortTotal = 10m0s
Kafka.Retry.LongInterval = 5m0s
Kafka.Retry.LongTotal = 12h0m0s
Kafka.Retry.NetworkTimeouts.DialTimeout = 10s
Kafka.Retry.NetworkTimeouts.ReadTimeout = 10s
Kafka.Retry.NetworkTimeouts.WriteTimeout = 10s
Kafka.Retry.Metadata.RetryMax = 3
Kafka.Retry.Metadata.RetryBackoff = 250ms
Kafka.Retry.Producer.RetryMax = 3
Kafka.Retry.Producer.RetryBackoff = 100ms
Kafka.Retry.Consumer.RetryBackoff = 2s
Kafka.Verbose = false
Kafka.Version = 0.10.2.0
Kafka.TLS.Enabled = false
Kafka.TLS.PrivateKey = ""
Kafka.TLS.Certificate = ""
Kafka.TLS.RootCAs = []
Kafka.TLS.ClientAuthRequired = false
Kafka.TLS.ClientRootCAs = []
Debug.BroadcastTraceDir = ""
Debug.DeliverTraceDir = ""
2018-06-18 11:14:21.535 UTC [orderer/common/server] initializeServerConfig -> INFO 01e Starting orderer with TLS enabled
2018-06-18 11:14:21.535 UTC [orderer/common/server] createLedgerFactory -> DEBU 01f Ledger dir: /var/hyperledger/production/orderer
2018-06-18 11:14:21.535 UTC [kvledger.util] CreateDirIfMissing -> DEBU 020 CreateDirIfMissing [/var/hyperledger/production/orderer/index/]
2018-06-18 11:14:21.535 UTC [kvledger.util] logDirStatus -> DEBU 021 Before creating dir - [/var/hyperledger/production/orderer/index/] exists
2018-06-18 11:14:21.535 UTC [kvledger.util] logDirStatus -> DEBU 022 After creating dir - [/var/hyperledger/production/orderer/index/] exists
2018-06-18 11:14:21.546 UTC [orderer/common/server] createSubDir -> DEBU 023 Found chains sub-dir and using it
2018-06-18 11:14:21.546 UTC [orderer/common/server] initializeMultichannelRegistrar -> INFO 024 Not bootstrapping because of existing chains
2018-06-18 11:14:21.546 UTC [fsblkstorage] newBlockfileMgr -> DEBU 025 newBlockfileMgr() initializing file-based block storage for ledger: testchainid
2018-06-18 11:14:21.546 UTC [kvledger.util] CreateDirIfMissing -> DEBU 026 CreateDirIfMissing [/var/hyperledger/production/orderer/chains/testchainid/]
2018-06-18 11:14:21.546 UTC [kvledger.util] logDirStatus -> DEBU 027 Before creating dir - [/var/hyperledger/production/orderer/chains/testchainid/] exists
2018-06-18 11:14:21.546 UTC [kvledger.util] logDirStatus -> DEBU 028 After creating dir - [/var/hyperledger/production/orderer/chains/testchainid/] exists
2018-06-18 11:14:21.546 UTC [fsblkstorage] loadCurrentInfo -> DEBU 029 loaded checkpointInfo:latestFileChunkSuffixNum=[0], latestFileChunksize=[11614], isChainEmpty=[false], lastBlockNumber=[0]
2018-06-18 11:14:21.546 UTC [fsblkstorage] newBlockfileMgr -> DEBU 02a Synching block information from block storage (if needed)
2018-06-18 11:14:21.546 UTC [fsblkstorage] syncCPInfoFromFS -> DEBU 02b Starting checkpoint=latestFileChunkSuffixNum=[0], latestFileChunksize=[11614], isChainEmpty=[false], lastBlockNumber=[0]
2018-06-18 11:14:21.546 UTC [fsblkstorage] syncCPInfoFromFS -> DEBU 02c status of file [/var/hyperledger/production/orderer/chains/testchainid/blockfile_000000]: exists=[true], size=[11614]
2018-06-18 11:14:21.548 UTC [fsblkstorage] newBlockIndex -> DEBU 02d newBlockIndex() - indexItems:[[BlockNum]]
2018-06-18 11:14:21.548 UTC [fsblkstorage] syncIndex -> DEBU 02e Both the block files and indices are in sync.
2018-06-18 11:14:21.548 UTC [fsblkstorage] retrieveBlockHeaderByNumber -> DEBU 02f retrieveBlockHeaderByNumber() - blockNum = [0]
2018-06-18 11:14:21.548 UTC [fsblkstorage] newBlockfileStream -> DEBU 030 newBlockfileStream(): filePath=[/var/hyperledger/production/orderer/chains/testchainid/blockfile_000000], startOffset=[0]
2018-06-18 11:14:21.548 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 031 Remaining bytes=[11614], Going to peek [8] bytes
2018-06-18 11:14:21.548 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 032 Returning blockbytes - length=[11612], placementInfo={fileNum=[0], startOffset=[0], bytesOffset=[2]}
2018-06-18 11:14:21.548 UTC [fsblkstorage] Next -> DEBU 033 Initializing block stream for iterator. itr.maxBlockNumAvailable=0
2018-06-18 11:14:21.548 UTC [fsblkstorage] newBlockfileStream -> DEBU 034 newBlockfileStream(): filePath=[/var/hyperledger/production/orderer/chains/testchainid/blockfile_000000], startOffset=[0]
2018-06-18 11:14:21.549 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 035 Remaining bytes=[11614], Going to peek [8] bytes
2018-06-18 11:14:21.549 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 036 Returning blockbytes - length=[11612], placementInfo={fileNum=[0], startOffset=[0], bytesOffset=[2]}
2018-06-18 11:14:21.549 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 037 blockbytes [11612] read from file [0]
2018-06-18 11:14:21.549 UTC [fsblkstorage] Next -> DEBU 038 Initializing block stream for iterator. itr.maxBlockNumAvailable=0
2018-06-18 11:14:21.549 UTC [fsblkstorage] newBlockfileStream -> DEBU 039 newBlockfileStream(): filePath=[/var/hyperledger/production/orderer/chains/testchainid/blockfile_000000], startOffset=[0]
2018-06-18 11:14:21.549 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 03a Remaining bytes=[11614], Going to peek [8] bytes
2018-06-18 11:14:21.549 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 03b Returning blockbytes - length=[11612], placementInfo={fileNum=[0], startOffset=[0], bytesOffset=[2]}
2018-06-18 11:14:21.549 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 03c blockbytes [11612] read from file [0]
2018-06-18 11:14:21.549 UTC [common/channelconfig] NewStandardValues -> DEBU 03d Initializing protos for *channelconfig.ChannelProtos
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 03e Processing field: HashingAlgorithm
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 03f Processing field: BlockDataHashingStructure
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 040 Processing field: OrdererAddresses
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 041 Processing field: Consortium
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 042 Processing field: Capabilities
2018-06-18 11:14:21.549 UTC [common/channelconfig] NewStandardValues -> DEBU 043 Initializing protos for *channelconfig.OrdererProtos
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 044 Processing field: ConsensusType
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 045 Processing field: BatchSize
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 046 Processing field: BatchTimeout
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 047 Processing field: KafkaBrokers
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 048 Processing field: ChannelRestrictions
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 049 Processing field: Capabilities
2018-06-18 11:14:21.549 UTC [common/channelconfig] NewStandardValues -> DEBU 04a Initializing protos for *channelconfig.OrganizationProtos
2018-06-18 11:14:21.549 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04b Processing field: MSP
2018-06-18 11:14:21.549 UTC [common/channelconfig] validateMSP -> DEBU 04c Setting up MSP for org OrdererMSP
2018-06-18 11:14:21.549 UTC [msp] newBccspMsp -> DEBU 04d Creating BCCSP-based MSP instance
2018-06-18 11:14:21.549 UTC [msp] New -> DEBU 04e Creating Cache-MSP instance
2018-06-18 11:14:21.549 UTC [msp] Setup -> DEBU 04f Setting up MSP instance OrdererMSP
2018-06-18 11:14:21.549 UTC [msp/identity] newIdentity -> DEBU 050 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICMDCCAdagAwIBAgIRAJNA3QcvDcm/dvS1mXpWpfwwCgYIKoZIzj0EAwIwaTEL
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
cmFuY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRcwFQYDVQQDEw5jYS5leGFt
cGxlLmNvbTAeFw0xODA2MTgwNjQyMzRaFw0yODA2MTUwNjQyMzRaMGkxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNp
c2NvMRQwEgYDVQQKEwtleGFtcGxlLmNvbTEXMBUGA1UEAxMOY2EuZXhhbXBsZS5j
b20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASalKMPl5GwnZ/9pFSkNnUzbHX3
rPQ1GJw5vc8c3oW5zavK2AFuTxx1YhudPRqwGVwXUOqfNo2wvoGDdu9sB8Juo18w
XTAOBgNVHQ8BAf8EBAMCAaYwDwYDVR0lBAgwBgYEVR0lADAPBgNVHRMBAf8EBTAD
AQH/MCkGA1UdDgQiBCCW+ZUwSBjUoMH3fWK6wNWVw7+3w07WCkXmeQsQyDg1DzAK
BggqhkjOPQQDAgNIADBFAiEAx/dPO0o8IlkaCxiMs5ADGv3EfLeRdA+CEp4A9Xt0
AmACICXUZl9526pe+7psaH0CqQtdy50j6Nv55vdQP+eXe3wm
-----END CERTIFICATE-----
2018-06-18 11:14:21.550 UTC [msp/identity] newIdentity -> DEBU 051 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICCjCCAbGgAwIBAgIRANaD4LWwP9seebMymK2kBmEwCgYIKoZIzj0EAwIwaTEL
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
cmFuY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRcwFQYDVQQDEw5jYS5leGFt
cGxlLmNvbTAeFw0xODA2MTgwNjQyMzRaFw0yODA2MTUwNjQyMzRaMFYxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNp
c2NvMRowGAYDVQQDDBFBZG1pbkBleGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqG
SM49AwEHA0IABOUGY/Yhb+WG0hxUG8lcVBrKmGVl5xM6thdv8cR7130oQ7Hj8bmh
VUbxxsW+/yVv6BaRTHAObNvDvBjHkVfT9C2jTTBLMA4GA1UdDwEB/wQEAwIHgDAM
BgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIJb5lTBIGNSgwfd9YrrA1ZXDv7fDTtYK
ReZ5CxDIODUPMAoGCCqGSM49BAMCA0cAMEQCIH3mTzi3bsuUh/3LVY2tLE+asAwA
V2z/Yui4byFS9wrbAiAs5oFvLfisGFA0ewbJDFqmVhdeBl9YpdzOzFHDF+iNHQ==
-----END CERTIFICATE-----
2018-06-18 11:14:21.550 UTC [msp] Validate -> DEBU 052 MSP OrdererMSP validating identity
2018-06-18 11:14:21.550 UTC [common/channelconfig] NewStandardValues -> DEBU 053 Initializing protos for *channelconfig.ConsortiumProtos
2018-06-18 11:14:21.550 UTC [common/channelconfig] initializeProtosStruct -> DEBU 054 Processing field: ChannelCreationPolicy
2018-06-18 11:14:21.550 UTC [common/channelconfig] NewStandardValues -> DEBU 055 Initializing protos for *channelconfig.OrganizationProtos
2018-06-18 11:14:21.550 UTC [common/channelconfig] initializeProtosStruct -> DEBU 056 Processing field: MSP
2018-06-18 11:14:21.550 UTC [common/channelconfig] validateMSP -> DEBU 057 Setting up MSP for org cMSP
2018-06-18 11:14:21.550 UTC [msp] newBccspMsp -> DEBU 058 Creating BCCSP-based MSP instance
2018-06-18 11:14:21.550 UTC [msp] New -> DEBU 059 Creating Cache-MSP instance
2018-06-18 11:14:21.550 UTC [msp] Setup -> DEBU 05a Setting up MSP instance cMSP
2018-06-18 11:14:21.550 UTC [msp/identity] newIdentity -> DEBU 05b Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIQBjR++oHGgckfIgmjhyXjtzAKBggqhkjOPQQDAjBtMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEWMBQGA1UEChMNYy5leGFtcGxlLmNvbTEZMBcGA1UEAxMQY2EuYy5l
eGFtcGxlLmNvbTAeFw0xODA2MTgwNjQwNTZaFw0yODA2MTUwNjQwNTZaMG0xCzAJ
BgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJh
bmNpc2NvMRYwFAYDVQQKEw1jLmV4YW1wbGUuY29tMRkwFwYDVQQDExBjYS5jLmV4
YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEu2Cn2mlIlPX7cmJD
JgWudWTkl3vRfZDv+zau0xp2dFHX7WEleHPCyLvZlu9rEIAAkMcuNrx77oC8MzqF
+jlu76NfMF0wDgYDVR0PAQH/BAQDAgGmMA8GA1UdJQQIMAYGBFUdJQAwDwYDVR0T
AQH/BAUwAwEB/zApBgNVHQ4EIgQg4K57JLAWFB7ftcJcvfJwBW47y4FEb9ZCUoUu
06kRDfEwCgYIKoZIzj0EAwIDRwAwRAIgcEeeXfLyaqewJcadLUELn1hvYu99AZah
+16c3UZNxAcCIEj8YMl9Of2VsgPtLhq7ytU921iE7EHNc9jVGlyqQL1x
-----END CERTIFICATE-----
2018-06-18 11:14:21.550 UTC [msp/identity] newIdentity -> DEBU 05c Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICEDCCAbagAwIBAgIQec49Z4DvM5q5n8qqjdqwVzAKBggqhkjOPQQDAjBtMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEWMBQGA1UEChMNYy5leGFtcGxlLmNvbTEZMBcGA1UEAxMQY2EuYy5l
eGFtcGxlLmNvbTAeFw0xODA1MjYxMzI3MzdaFw0yODA1MjMxMzI3MzdaMFgxCzAJ
BgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJh
bmNpc2NvMRwwGgYDVQQDDBNBZG1pbkBjLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0C
AQYIKoZIzj0DAQcDQgAE7zZ2RtnkcFuEYdzxB80T/gOidxFzwglsFw8uNQ5OeNv3
OMm9aHVjUtPHAXDiamy6DpHjcjnx67v39TtAZhI0pKNNMEswDgYDVR0PAQH/BAQD
AgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAgYhTJVgZYwwQldp2C+Jfqvs7W
K+MmOWE01/yiFJb6fw4wCgYIKoZIzj0EAwIDSAAwRQIhAJQGW1H9/PxgmZrulxBx
BrUkEIu8p76i1S80/xEm5Mt7AiBPtTzC4k0cu67ezQkKGaseqpLtS7Q96VirSz+X
VO67rQ==
-----END CERTIFICATE-----
2018-06-18 11:14:21.551 UTC [orderer/commmon/multichannel] newLedgerResources -> CRIT 05d Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.c.example.com")
panic: Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.c.example.com")
goroutine 1 [running]:
github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc4201abd70, 0xd15b3b, 0x27, 0xc4202f93e0, 0x1, 0x1)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x134
github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc42012a380, 0xc420164cf0, 0xc420164cf0)
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:253 +0x391
github.com/hyperledger/fabric/orderer/common/multichannel.NewRegistrar(0x1393300, 0xc4200e43c0, 0xc42014ae10, 0x138fd80, 0x13f3e20, 0xc420082a18, 0x1, 0x1, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:144 +0x352
github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc420203680, 0x138fd80, 0x13f3e20, 0xc420082a18, 0x1, 0x1, 0xc4203b0110)
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:262 +0x277
github.com/hyperledger/fabric/orderer/common/server.Start(0xcfa0bc, 0x5, 0xc420203680)
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:103 +0x24c
github.com/hyperledger/fabric/orderer/common/server.Main()
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:82 +0x20f
main.main()
/opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20
I have modified the application to attempt to use the nodejs chaincode. This was done by changing the lines in network.sh from
l=golang
#l=node
to
#l=golang
l=node
Now I am receiving this error. No other changes have been made.
Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode reference:1.0(networkid:dev,peerid:peer0.
After it continues to run then provides the error several more times once per node instantiating.
It looks like if you are trying to use node it defaults to the dev networkid.
Please assist
Hi - Is this new versions applicable only for Ubuntu 18.04 ?, please confirm. if it can be installed in Ubuntu 16.04, please advise the "installation instructions".
thanks,
Lokesh
Use-case: invite a new network participant just by specifying her IP address, so that API node could get the organization name from certificate subject "field"
One of the best practices is to do such discovery service possible is to serve a well-known URI
To do:
I am following the deployment steps for adding new org dynamically. I have replaed the IP address in the env-common and respective files. When I am trying to bring up the main org it appears there is problem with writing the config to update envelope which says permission denied - below is the complete log from the run - It would be great if you help me resolve this ,
ubuntu@ip-10-0-1-134:~/fabric-samples/fabric-starter/deployments/one-main-org$ ./main-start-node.sh
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
e169c8e20741
e073b1689aaf
Removing docker images: 5eddb5b5cade
cb6de0cb4a38
Untagged: dev-peer1.dtcc.example.com-chaincode_example02-1.0-0ac64a84fd72f8bbf668b9ec34dbcf5e7534af0b01e1fb01f7486038b3bb1ffb:latest
Deleted: sha256:5eddb5b5cade3830baff53a7dfd4616418b004e540cfa8171ac0310fc28f484c
Deleted: sha256:43746595aa0b9aff00a961a0c6bd3b06b36c7dd1ab15a3868ff90e87fb6a7475
Deleted: sha256:758276a741498d9cf8426bdf745281b249624f0762e075dca8a827451c1cb96b
Deleted: sha256:3dda4395a6f5ffc47a87e5616fd6e824719d5d88a7bbafa506a72628cd0fd200
Untagged: dev-peer0.dtcc.example.com-chaincode_example02-1.0-35a5677ba84d24b3928a5023e5de7aecbf85afc73f46a907c776e642c8add7c9:latest
Deleted: sha256:cb6de0cb4a38e9895ae3954771e48ad54c56fd6e3d66ed0300f87b66feb03b09
Deleted: sha256:c622279f64d59c6e86c5742e018a696717e014e6ad88ec4e34a0bf8f2d83b29f
Deleted: sha256:b7e5207189f917cccf0c1f335b5689c89bd5813af25899ab246614d3f445aed5
Deleted: sha256:a048bb7edc68a2b783fe1e92d6c5951ab16564311b843662685f6218cc741074
Finished in 1 seconds
a4baa7411835
825ced86a938
7e2a24fa3a27
1428645e9ef2
92671eb1cd27
7ebaeb0b32ad
4fddb3565568
bbc748a477d6
65fec79f114c
c18d6603baa5
dockercompose_orderer.example.com
dockercompose_peer0.dtcc.example.com
dockercompose_peer1.dtcc.example.com
Deleted Volumes:
f6a52e53042f159df03b691051361d82d702c0561808c8791eb7b83316ceb1b2
a8d34a0673787c40e3eb4bde3df5a8c5dad11791dd4953c058f55a2c748634d7
06337ab86cb658df66c8ae90ca9b4fca9fd968b4fa4bbc5b4d01bb786a1dca29
Total reclaimed space: 174.3kB
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Removinf old artifacts
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
Removing generated and downloaded artifacts from: ./dockercompose, ./artifacts
Finished in 0 seconds
THIS_ORG: a
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
Creating peer yaml files with example.com, a, 4000, 8081, 7054, 7051, 7053, 7056, 7058
Generating crypto material with cryptogen
docker-compose --file ./dockercompose/docker-compose-a.yaml run --rm "cli.a.example.com" bash -c "cryptogen generate --config=cryptogen-a.yaml --output=crypto-temp "
Creating volume "dockercompose_peer1.a.example.com" with default driver
Creating volume "dockercompose_peer0.a.example.com" with default driver
a.example.com
Changing artifacts ownership
Adding generated CA private keys filenames to ./dockercompose/docker-compose-a.yaml
Generating aConfig.json
docker-compose --file ./dockercompose/docker-compose-a.yaml run --rm "cli.a.example.com" bash -c "FABRIC_CFG_PATH=./ configtxgen -printOrg aMSP > aConfig.json"
2018-07-16 16:14:15.813 UTC [common/tools/configtxgen] main -> INFO 001 Loading configuration
Copying generated TLS cert files from ./artifacts/crypto-config/peerOrganizations/a.example.com/peers/peer0.a.example.com/tls to be served by www.a.example.com
cp -r ./artifacts/crypto-config/peerOrganizations/a.example.com/peers/peer0.a.example.com/tls/ca.crt www/./artifacts/crypto-config/peerOrganizations/a.example.com/peers/peer0.a.example.com/tls
Copying generated TLS cert files from ./artifacts/crypto-config/peerOrganizations/a.example.com to be served by www.a.example.com
cp -r ./artifacts/crypto-config/peerOrganizations/a.example.com/msp www/./artifacts/crypto-config/peerOrganizations/a.example.com
Copying generated aConfig.json files from ./artifacts to be served by www.a.example.com
cp -r ./artifacts/aConfig.json www/./artifacts
Creating www.a.example.com ...
Creating www.a.example.com ... done
Finished in 6 seconds
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
Creating orderer docker compose yaml file with example.com, a, b, c, 7050, 8080
Creating orderer yaml files with example.com, a, b, c, 7050, 8080
Generating network-config.json for a, a
Generating channel config transaction for common
Creating volume "dockercompose_orderer.example.com" with default driver
2018-07-16 16:14:17.682 UTC [common/tools/configtxgen] main -> INFO 001 Loading configuration
2018-07-16 16:14:17.688 UTC [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx
2018-07-16 16:14:17.709 UTC [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 003 Writing new channel tx
Generating crypto material with cryptogen
docker-compose --file ./dockercompose/docker-compose-example.com.yaml run --rm "cli.example.com" bash -c "sleep 2 && cryptogen generate --output=crypto --config=cryptogen-example.com.yaml"
Generating orderer genesis block with configtxgen
2018-07-16 16:14:22.612 UTC [common/tools/configtxgen] main -> INFO 001 Loading configuration
2018-07-16 16:14:22.619 UTC [common/tools/configtxgen] doOutputBlock -> INFO 002 Generating genesis block
2018-07-16 16:14:22.619 UTC [common/tools/configtxgen] doOutputBlock -> INFO 003 Writing genesis block
Changing artifacts file ownership
Finished in 7 seconds
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
starting docker instances from ./dockercompose/docker-compose-example.com.yaml
WARNING: Found orphan containers (www.a.example.com) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Creating cli.example.com ...
Creating www.example.com ...
Creating orderer.example.com ...
Creating cli.example.com
Creating www.example.com
Creating orderer.example.com ... done
Copying generated orderer TLS cert files from ./artifacts/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls to be served by www..example.com
cp -r ./artifacts/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt www/./artifacts/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls
Copying generated orderer MSP cert files from ./artifacts/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts to be served by www..example.com
cp -r ./artifacts/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem www/./artifacts/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts
Copying channel transaction config files from ./artifacts/channel to be served by www..example.com
cp -r ./artifacts/channel/*.tx www/./artifacts/channel
Copying generated network config files from ./artifacts to be served by www..example.com
cp -r ./artifacts/network-config.json www/./artifacts
WARNING: Found orphan containers (www.a.example.com) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
www.example.com is up-to-date
Finished in 3 seconds
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
mkdir -p ./artifacts/crypto-config/peerOrganizations/a.example.com/peers/peer0.a.example.com/tls
mkdir -p ./artifacts/crypto-config/peerOrganizations/b.example.com/peers/peer0.b.example.com/tls
mkdir -p ./artifacts/crypto-config/peerOrganizations/c.example.com/peers/peer0.c.example.com/tls
downloading all channel config transaction files using ./dockercompose/docker-compose-a.yaml
wget --verbose -N --directory-prefix channel http://www.example.com:8080/channel/a.tx && chown -R 1000:1000 .
--2018-07-16 16:14:27-- http://www.example.com:8080/channel/a.tx
Resolving www.example.com (www.example.com)... 172.18.0.3
Connecting to www.example.com (www.example.com)|172.18.0.3|:8080... failed: Connection refused.
wget --verbose -N --directory-prefix channel http://www.example.com:8080/channel/a.tx && chown -R 1000:1000 .
--2018-07-16 16:14:28-- http://www.example.com:8080/channel/a.tx
Resolving www.example.com (www.example.com)... 172.18.0.3
Connecting to www.example.com (www.example.com)|172.18.0.3|:8080... failed: Connection refused.
wget --verbose -N --directory-prefix channel http://www.example.com:8080/channel/common.tx && chown -R 1000:1000 .
--2018-07-16 16:14:29-- http://www.example.com:8080/channel/common.tx
Resolving www.example.com (www.example.com)... 172.18.0.3
Connecting to www.example.com (www.example.com)|172.18.0.3|:8080... failed: Connection refused.
downloading network config file using ./dockercompose/docker-compose-a.yaml
wget --verbose -N http://www.a.example.com:8080/network-config.json && chown -R 1000:1000 .
--2018-07-16 16:14:30-- http://www.a.example.com:8080/network-config.json
Resolving www.a.example.com (www.a.example.com)... 172.18.0.2
Connecting to www.a.example.com (www.a.example.com)|172.18.0.2|:8080... failed: Connection refused.
downloading orderer cert file using ./dockercompose/docker-compose-a.yaml
wget --verbose -N --directory-prefix crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls http://www.example.com:8080/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt
--2018-07-16 16:14:31-- http://www.example.com:8080/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt
Resolving www.example.com (www.example.com)... 172.18.0.3
Connecting to www.example.com (www.example.com)|172.18.0.3|:8080... failed: Connection refused.
downloading member cert files using ./dockercompose/docker-compose-a.yaml
for ORG in a b c; do wget --verbose -N --directory-prefix crypto-config/peerOrganizations/${ORG}.example.com/peers/peer0.${ORG}.example.com/tls http://www.${ORG}.example.com:8080/crypto-config/peerOrganizations/${ORG}.example.com/peers/peer0.${ORG}.example.com/tls/ca.crt; done
--2018-07-16 16:14:32-- http://www.a.example.com:8080/crypto-config/peerOrganizations/a.example.com/peers/peer0.a.example.com/tls/ca.crt
Resolving www.a.example.com (www.a.example.com)... 172.18.0.2
Connecting to www.a.example.com (www.a.example.com)|172.18.0.2|:8080... failed: Connection refused.
--2018-07-16 16:14:32-- http://www.b.example.com:8080/crypto-config/peerOrganizations/b.example.com/peers/peer0.b.example.com/tls/ca.crt
Resolving www.b.example.com (www.b.example.com)... failed: Name or service not known.
wget: unable to resolve host address 'www.b.example.com'
--2018-07-16 16:14:32-- http://www.c.example.com:8080/crypto-config/peerOrganizations/c.example.com/peers/peer0.c.example.com/tls/ca.crt
Resolving www.c.example.com (www.c.example.com)... failed: Name or service not known.
wget: unable to resolve host address 'www.c.example.com'
starting docker instances from ./dockercompose/docker-compose-a.yaml
WARNING: Found orphan containers (orderer.example.com, www.example.com) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
www.a.example.com is up-to-date
Creating ca.a.example.com ...
Recreating cli.example.com ...
Recreating cli.example.com
Creating cli.a.example.com ...
Creating ca.a.example.com
Creating ca.a.example.com ... done
Creating peer0.a.example.com ...
Creating peer1.a.example.com ...
Creating peer1.a.example.com
Creating peer1.a.example.com ... done
Creating api.a.example.com ...
Creating api.a.example.com ... done
creating channel common by a using ./dockercompose/docker-compose-a.yaml
docker-compose --file ./dockercompose/docker-compose-a.yaml run --rm "cli.a.example.com" bash -c "peer channel create -o orderer.example.com:7050 -c common -f /etc/hyperledger/artifacts/channel/common.tx --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt"
2018-07-16 16:14:37.521 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:37.521 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:37.524 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-07-16 16:14:37.524 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2018-07-16 16:14:37.524 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2018-07-16 16:14:37.525 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2018-07-16 16:14:37.525 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2018-07-16 16:14:37.525 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A93060A04614D5350128A062D2D2D2D...53616D706C65436F6E736F727469756D
2018-07-16 16:14:37.525 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: F224310C640F1A0EEC7BD22C0D9B86EF60B883ABBF70222696044944653EA44A
2018-07-16 16:14:37.527 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP
2018-07-16 16:14:37.527 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity
2018-07-16 16:14:37.527 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2018-07-16 16:14:37.527 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2018-07-16 16:14:37.527 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC7060A1208021A0608ED88B3DA0522...03B0560CCE0B4EC4D137AF16614767CB
2018-07-16 16:14:37.527 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: B64F3FAAEADA197059AA5DEBAEEEED8733F1A4C981DFC3EBF968E8E443F14D69
2018-07-16 16:14:37.553 UTC [msp] GetLocalMSP -> DEBU 010 Returning existing local MSP
2018-07-16 16:14:37.553 UTC [msp] GetDefaultSigningIdentity -> DEBU 011 Obtaining default signing identity
2018-07-16 16:14:37.554 UTC [msp] GetLocalMSP -> DEBU 012 Returning existing local MSP
2018-07-16 16:14:37.554 UTC [msp] GetDefaultSigningIdentity -> DEBU 013 Obtaining default signing identity
2018-07-16 16:14:37.554 UTC [msp/identity] Sign -> DEBU 014 Sign: plaintext: 0AC7060A1208021A0608ED88B3DA0522...96EFD14E588912080A021A0012021A00
2018-07-16 16:14:37.554 UTC [msp/identity] Sign -> DEBU 015 Sign: digest: 0B192A68D6350E1D472BE83771677D0EEDEE5A121BB62170F9F315C1A799D3AA
2018-07-16 16:14:37.556 UTC [channelCmd] readBlock -> DEBU 016 Got status: &{NOT_FOUND}
2018-07-16 16:14:37.556 UTC [msp] GetLocalMSP -> DEBU 017 Returning existing local MSP
2018-07-16 16:14:37.556 UTC [msp] GetDefaultSigningIdentity -> DEBU 018 Obtaining default signing identity
2018-07-16 16:14:37.562 UTC [channelCmd] InitCmdFactory -> INFO 019 Endorser and orderer connections initialized
2018-07-16 16:14:37.762 UTC [msp] GetLocalMSP -> DEBU 01a Returning existing local MSP
2018-07-16 16:14:37.763 UTC [msp] GetDefaultSigningIdentity -> DEBU 01b Obtaining default signing identity
2018-07-16 16:14:37.763 UTC [msp] GetLocalMSP -> DEBU 01c Returning existing local MSP
2018-07-16 16:14:37.763 UTC [msp] GetDefaultSigningIdentity -> DEBU 01d Obtaining default signing identity
2018-07-16 16:14:37.763 UTC [msp/identity] Sign -> DEBU 01e Sign: plaintext: 0AC7060A1208021A0608ED88B3DA0522...7C50942C8C5D12080A021A0012021A00
2018-07-16 16:14:37.763 UTC [msp/identity] Sign -> DEBU 01f Sign: digest: 6CE38909659BE810525177A5368C3B6F38442BB8E74C21A45304173639A7A5FF
2018-07-16 16:14:37.765 UTC [channelCmd] readBlock -> DEBU 020 Received block: 0
2018-07-16 16:14:37.766 UTC [main] main -> INFO 021 Exiting.....
changing ownership of channel block files
copying channel block file from ./artifacts to be served by www.a.example.com
joining channel common by all peers of a using ./dockercompose/docker-compose-a.yaml
2018-07-16 16:14:39.872 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:39.872 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:39.875 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-07-16 16:14:39.875 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A91070A5C08011A0C08EF88B3DA0510...992F92F4ABB41A080A000A000A000A00
2018-07-16 16:14:39.875 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 199A8F242124A8CB15227DCF9948FB851A902E4B7237E03940917E07B33895E5
2018-07-16 16:14:39.923 UTC [channelCmd] executeJoin -> INFO 006 Successfully submitted proposal to join channel
2018-07-16 16:14:39.923 UTC [main] main -> INFO 007 Exiting.....
2018-07-16 16:14:41.012 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:41.012 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:41.014 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-07-16 16:14:41.015 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A90070A5B08011A0B08F188B3DA0510...992F92F4ABB41A080A000A000A000A00
2018-07-16 16:14:41.015 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: CDF86D7770299E48C730DAFCC35DCD2A8E69AB6FB075EAF06923DF43DFF4E739
2018-07-16 16:14:41.063 UTC [channelCmd] executeJoin -> INFO 006 Successfully submitted proposal to join channel
2018-07-16 16:14:41.063 UTC [main] main -> INFO 007 Exiting.....
Finished in 15 seconds
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
configReplacementScript: '.[0] * {"channel_group":{"groups":{"Application":{"mod_policy": "aOnly", "policies":.[1]}}}}' config.json new_policy.json ...
peer channel fetch config config_block.pb -o orderer.example.com:7050 -c common --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt
2018-07-16 16:14:41.486 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:41.486 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:41.488 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-07-16 16:14:41.488 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2018-07-16 16:14:41.489 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2018-07-16 16:14:41.489 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2018-07-16 16:14:41.489 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2018-07-16 16:14:41.489 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0AC7060A1208021A0608F188B3DA0522...24F15ECA065312080A020A0012020A00
2018-07-16 16:14:41.489 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 5207141D1ED66B22F3C0CFC1B5E3FA5077E71BE9838B79CF960E623D7DB4A7B0
2018-07-16 16:14:41.490 UTC [channelCmd] readBlock -> DEBU 00a Received block: 0
2018-07-16 16:14:41.491 UTC [msp] GetLocalMSP -> DEBU 00b Returning existing local MSP
2018-07-16 16:14:41.491 UTC [msp] GetDefaultSigningIdentity -> DEBU 00c Obtaining default signing identity
2018-07-16 16:14:41.491 UTC [msp] GetLocalMSP -> DEBU 00d Returning existing local MSP
2018-07-16 16:14:41.491 UTC [msp] GetDefaultSigningIdentity -> DEBU 00e Obtaining default signing identity
2018-07-16 16:14:41.491 UTC [msp/identity] Sign -> DEBU 00f Sign: plaintext: 0AC7060A1208021A0608F188B3DA0522...2470C663407812080A021A0012021A00
2018-07-16 16:14:41.491 UTC [msp/identity] Sign -> DEBU 010 Sign: digest: C0F66EE25F901B86FC66E41095E8DC7957B25B7CACCE87BCFE10847EEFEF0EE8
2018-07-16 16:14:41.493 UTC [channelCmd] readBlock -> DEBU 011 Received block: 0
2018-07-16 16:14:41.493 UTC [main] main -> INFO 012 Exiting.....
configtxlator proto_decode --type 'common.Block' --input=config_block.pb --output=config_block.json
jq .data.data[0].payload.data.config config_block.json > config.json
jq: error: Could not open file config_block.json: Permission denied
configtxlator proto_encode --type 'common.Config' --input=config.json --output=config.pb && configtxlator proto_encode --type 'common.Config' --input=updated_config.json --output=updated_config.pb && configtxlator compute_update --channel_id=common --original=config.pb --updated=updated_config.pb --output=update.pb && configtxlator proto_decode --type 'common.ConfigUpdate' --input=update.pb --output=update.json
configtxlator: error: Error decoding: error decoding input: error unmarshaling intermediate JSON: EOF
echo '{"payload":{"header":{"channel_header":{"channel_id":"common","type":2}},"data":{"config_update":'cat update.json
'}}}' | jq . > update_in_envelope.json
cat: update.json: No such file or directory
parse error: Unmatched '}' at line 1, column 98
configtxlator proto_encode --type 'common.Envelope' --input=update_in_envelope.json --output=update_in_envelope.pb
configtxlator: error: Error decoding: error decoding input: error unmarshaling intermediate JSON: EOF
Finished update_in_envelope.pb preparation!
a is sending channel update update_in_envelope.pb with cli.a.example.com by peer channel update -f update_in_envelope.pb -c common -o orderer.example.com:7050 --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt
2018-07-16 16:14:42.046 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:42.046 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:42.049 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
Error: Invalid channel create transaction : bad header
Usage:
peer channel update [flags]
Flags:
-c, --channelID string In case of a newChain command, the channel ID to create.
-f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer
Global Flags:
--cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint
--certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint
--clientauth Use mutual TLS when communicating with the orderer endpoint
--keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint
--logging-level string Default logging level and overrides, see core.yaml for full syntax
-o, --orderer string Ordering service endpoint
--ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer.
--tls Use TLS when communicating with the orderer endpoint
-v, --version Display current version of fabric peer server
Finished in 1 seconds
Org 'a' is created and registered in channel 'common'.
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
Install chaincode: a chaincode_example02 1.0
installing chaincode chaincode_example02 to peers of a from ./chaincode/go/chaincode_example02 1.0 using ./dockercompose/docker-compose-a.yaml
docker-compose --file ./dockercompose/docker-compose-a.yaml run --rm "cli.a.example.com" bash -c "CORE_PEER_ADDRESS=peer0.a.example.com:7051 peer chaincode install -n chaincode_example02 -v 1.0 -p chaincode_example02 -l golang
&& CORE_PEER_ADDRESS=peer1.a.example.com:7051 peer chaincode install -n chaincode_example02 -v 1.0 -p chaincode_example02 -l golang"
2018-07-16 16:14:43.884 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:43.884 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:43.884 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-07-16 16:14:43.884 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-07-16 16:14:43.884 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled
2018-07-16 16:14:43.913 UTC [golang-platform] getCodeFromFS -> DEBU 006 getCodeFromFS chaincode_example02
2018-07-16 16:14:44.005 UTC [golang-platform] func1 -> DEBU 007 Discarding GOROOT package fmt
2018-07-16 16:14:44.005 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2018-07-16 16:14:44.005 UTC [golang-platform] func1 -> DEBU 009 Discarding provided package github.com/hyperledger/fabric/protos/peer
2018-07-16 16:14:44.005 UTC [golang-platform] func1 -> DEBU 00a Discarding GOROOT package strconv
2018-07-16 16:14:44.005 UTC [golang-platform] GetDeploymentPayload -> DEBU 00b done
2018-07-16 16:14:44.005 UTC [container] WriteFileToPackage -> DEBU 00c Writing file to tarball: src/chaincode_example02/chaincode_example02.go
2018-07-16 16:14:44.006 UTC [msp/identity] Sign -> DEBU 00d Sign: plaintext: 0A90070A5B08031A0B08F488B3DA0510...438C7F050000FFFFD4154E66001C0000
2018-07-16 16:14:44.006 UTC [msp/identity] Sign -> DEBU 00e Sign: digest: DFFB447FBDB1A4A83D8BE70D9F2C4AE4E4785E6960C7C05BF45DD75C1B03A570
2018-07-16 16:14:44.009 UTC [chaincodeCmd] install -> DEBU 00f Installed remotely response:<status:200 payload:"OK" >
2018-07-16 16:14:44.009 UTC [main] main -> INFO 010 Exiting.....
2018-07-16 16:14:44.048 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:44.048 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:44.048 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-07-16 16:14:44.048 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-07-16 16:14:44.048 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled
2018-07-16 16:14:44.078 UTC [golang-platform] getCodeFromFS -> DEBU 006 getCodeFromFS chaincode_example02
2018-07-16 16:14:44.165 UTC [golang-platform] func1 -> DEBU 007 Discarding GOROOT package fmt
2018-07-16 16:14:44.165 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2018-07-16 16:14:44.165 UTC [golang-platform] func1 -> DEBU 009 Discarding provided package github.com/hyperledger/fabric/protos/peer
2018-07-16 16:14:44.165 UTC [golang-platform] func1 -> DEBU 00a Discarding GOROOT package strconv
2018-07-16 16:14:44.165 UTC [golang-platform] GetDeploymentPayload -> DEBU 00b done
2018-07-16 16:14:44.165 UTC [container] WriteFileToPackage -> DEBU 00c Writing file to tarball: src/chaincode_example02/chaincode_example02.go
2018-07-16 16:14:44.166 UTC [msp/identity] Sign -> DEBU 00d Sign: plaintext: 0A90070A5B08031A0B08F488B3DA0510...438C7F050000FFFFD4154E66001C0000
2018-07-16 16:14:44.166 UTC [msp/identity] Sign -> DEBU 00e Sign: digest: 662EB8918E86EBF95E76A2B2F7D58D90A19E2685467B2B6316125F14E3EA87A9
2018-07-16 16:14:44.169 UTC [chaincodeCmd] install -> DEBU 00f Installed remotely response:<status:200 payload:"OK" >
2018-07-16 16:14:44.169 UTC [main] main -> INFO 010 Exiting.....
Finished in 2 seconds
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
instantiating chaincode chaincode_example02 on common by a using ./dockercompose/docker-compose-a.yaml with {"Args":["init","a","100","b","100"]}
instantiating with cli.a.example.com by CORE_PEER_ADDRESS=peer0.a.example.com:7051 peer chaincode instantiate -n chaincode_example02 -v 1.0 -c '{"Args":["init","a","100","b","100"]}' -o orderer.example.com:7050 -C common --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt
2018-07-16 16:14:46.266 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:46.266 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:46.268 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-07-16 16:14:46.268 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-07-16 16:14:46.269 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled
2018-07-16 16:14:46.269 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0A99070A6408031A0C08F688B3DA0510...30300A000A04657363630A0476736363
2018-07-16 16:14:46.269 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 52A3043E252E72B165667F6F6CBFB2958BE3FF2A59E5D7A248E077AB641BB6F7
2018-07-16 16:14:55.113 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A99070A6408031A0C08F688B3DA0510...B21B2F5FE0136C6CC98A82606D902987
2018-07-16 16:14:55.113 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 298200104B35D21D265DBB0C31B790264B15CB879C75B5A98E4CC508A503D8A2
2018-07-16 16:14:55.114 UTC [main] main -> INFO 00a Exiting.....
Finished in 11 seconds
Warm up chaincode
Use Fabric-Starter home: ../..
Use docker compose template folder: ../../docker-compose-templates
Use target artifact folder: ./artifacts
Use target docker-compose folder: ./dockercompose
warming up chaincode chaincode_example02 on common on all peers of a with query using ./dockercompose/docker-compose-a.yaml
warming up with cli.a.example.com by CORE_PEER_ADDRESS=peer0.a.example.com:7051 peer chaincode query -n chaincode_example02 -v 1.0 -c '{"Args":["query","a"]}' -C common && CORE_PEER_ADDRESS=peer1.a.example.com:7051 peer chaincode query -n chaincode_example02 -v 1.0 -c '{"Args":["query","a"]}' -C common
2018-07-16 16:14:59.159 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:59.159 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:59.159 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-07-16 16:14:59.159 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-07-16 16:14:59.159 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled
2018-07-16 16:14:59.159 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AA7070A7208031A0B088389B3DA0510...6C6530321A0A0A0571756572790A0161
2018-07-16 16:14:59.159 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 75B9C3272D26E5CED311FEE224057C66E0BE48E2B7841948A3C40A39528C4607
Query Result: 100
2018-07-16 16:14:59.164 UTC [main] main -> INFO 008 Exiting.....
2018-07-16 16:14:59.198 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-16 16:14:59.198 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-16 16:14:59.198 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-07-16 16:14:59.198 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-07-16 16:14:59.198 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled
2018-07-16 16:14:59.199 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AA7070A7208031A0B088389B3DA0510...6C6530321A0A0A0571756572790A0161
2018-07-16 16:14:59.199 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: B1FB1839ACC5931E5F8D6F19F5A115475FB638CD405A5B2F375D0104459D91D5
Query Result: 100
2018-07-16 16:15:08.102 UTC [main] main -> INFO 008 Exiting.....
Finished in 13 seconds
Main org 'a' is up. New organizations may be added by using 'main-register-new-org.sh'
Policy used for Invite Consortium have to be checked \updated to ensure orgs don't have access to other channels.
Note that any member with read access to the ordering system channel may see all channel creations, so this channel’s access should be restricted
from: https://hyperledger-fabric.readthedocs.io/en/release-1.4/configtx.html
Keep domain name to ip resolution on chain in common channel. When a new org is added to the consortium or channel names of its containers and ips can be stored in a chaincode. Another listener component can query these data and write into /etc/hosts file on the host machine.
Subsequent attempts to log in are not actually executed against CA
Hi,
Getting error
Error: "Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded" when i am trying to create a channel in the peer network , when checking the container logs for the Container orderer.example.com
I could find an error with the error code PANI 005
Error: "2019-03-28 05:11:01.424 UTC [orderer.common.server] initializeServerConfig -> INFO 003 Starting orderer with TLS enabled
2019-03-28 05:11:01.434 UTC [orderer.common.server] initializeMultichannelRegistrar -> INFO 004 Not bootstrapping because of existing chains
2019-03-28 05:11:01.636 UTC [orderer.commmon.multichannel] newLedgerResources -> PANI 005 Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com")
panic: Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com")"
i have tried deleting the current set of certificates and re generated the artefacts through the cryptogen generate command.
Note : trying to follow the Steps on the site : https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#createchanneltx
,Please let me know in the comment if logs are required
Add domain to docker machine names to be able to run separate sets of machines in one virtual box or cloud account. Machine names should change from
to
Peer0 is anchor peer. Usually only anchor peer should be open to internet. Will use port 80.
Move also Orderer to port 80.
I have got the network to work properly with leveldb configuration, however when I changed the dockercomposetemplate-peer yaml file to include couchdb isntances, I was able to run the couchdb setup and notices there are no errors, however the api(fabric-rest) is exiting saying Failed to connect, can you please help how can I debug this issue ? Following is the log after we do helper.newEventHub(peer, _username, orgID) and the object that is getting returned as -
[2018-06-06 05:22:54.618] [DEBUG] peer-listener - Connected Event hub data ----EventHub {
_chaincodeRegistrants: {},
_block_registrant_count: 1,
_blockOnEvents: {},
_blockOnErrors: {},
_transactionOnEvents: {},
_transactionOnErrors: {},
_ep:
Remote {
_options:
{ 'grpc.ssl_target_name_override': 'peer0.a.example.com',
'grpc.default_authority': 'peer0.a.example.com' },
_url: 'grpcs://peer0.a.example.com:7053',
_endpoint:
Endpoint {
addr: 'peer0.a.example.com:7053',
creds: ChannelCredentials {} },
_request_timeout: 45000 },
_event_client: null,
_stream: null,
_connect_called: false,
_connected: false,
_connect_running: false,
_force_reconnect: true,
_current_stream: 0,
_clientContext:
Client {
_cryptoSuite:
CryptoSuite_ECDSA_AES {
_hashAlgo: 'SHA2',
_keySize: 256,
_cryptoKeyStore: [Object],
_curveName: 'secp256r1',
_ecdsaCurve: [Object],
_hashFunction: [Function],
_hashFunctionKeyDerivation: [Object],
_hashOutputSize: 32,
_ecdsa: [Object] },
_channels: {},
_stateStore: FileKeyValueStore { _dir: '.storage/fabric-client-kvs/peeraAdmin_a' },
_userContext:
User {
_name: 'peeraAdmin',
_roles: null,
_affiliation: '',
_enrollmentSecret: '',
_identity: [Object],
_signingIdentity: [Object],
_mspId: 'aMSP',
_cryptoSuite: [Object] },
_msps: Map {},
_devMode: false } }
Hello.
Could you please add some king of tags or versioning system to be able to add fabric-starter as dependency on other projects?
Thank you.
Note, the current node address have to be excluded from the /etc/hosts
Documentation is out of date.
I cannot properly set up fabric-starter. Some things is not clear and it leads to difficult project set up.
Hello, excellent resource to get Fabric up and running.
I am able to stand up all nodes and chaincode is deployed however I am unable to access the admin ports on the peers. I get the Nginx welcome with localhost::80 but localhost:4000/admin fails. Is there an extra step I have to take to expose these ports? Do I have to expose them from Docker to my host or is did something change in Fabric 1.1?
org1 http://localhost:4000/admin
org2 http://localhost:4001/admin
org3 http://localhost:4002/admin
docker inspect api.a.example.com returns Port 4000 for API api.a.example.com
"NetworkMode": "dockercompose_default",
"PortBindings": {
"4000/tcp": [
{
"HostIp": "",
"HostPort": "4000"
}
]
Any thoughts?
While running command ./byfn.sh -m up -s couchdb -a each time I am getting Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded.
Can anyone help me in resolving this issue please.I have tried many times.Each and every time I am getting same error.
Clouds can reallocate virtual machines so crypto-information stored on local VM's host can be lost
Move certificates serving from www to api container along with rest-api, web-admin, and custom web-UI endpoints. Use single port - 443.
images with label master are not refreshed automatically which breaks deployment
Hi,
After I executed the network.sh up script the orderer crashed and below are the logs, can you please help me resolve it ? -
2018-05-26 07:15:45.491 UTC [msp] Validate -> DEBU 06d MSP sending_entityMSP validating identity
2018-05-26 07:15:45.491 UTC [msp] Setup -> DEBU 06e Setting up the MSP manager (4 msps)
2018-05-26 07:15:45.491 UTC [msp] Setup -> DEBU 06f MSP manager setup complete, setup 4 msps
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 070 Proposed new policy Writers for Channel/Orderer/OrdererMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 071 Proposed new policy Admins for Channel/Orderer/OrdererMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 072 Proposed new policy Readers for Channel/Orderer/OrdererMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 073 Proposed new policy Writers for Channel/Orderer
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 074 Proposed new policy BlockValidation for Channel/Orderer
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 075 Proposed new policy Admins for Channel/Orderer
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 076 Proposed new policy Readers for Channel/Orderer
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 077 Proposed new policy Admins for Channel/Consortiums/SampleConsortium/dtccMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 078 Proposed new policy Readers for Channel/Consortiums/SampleConsortium/dtccMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 079 Proposed new policy Writers for Channel/Consortiums/SampleConsortium/dtccMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 07a Proposed new policy Writers for Channel/Consortiums/SampleConsortium/sending_entityMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 07b Proposed new policy Admins for Channel/Consortiums/SampleConsortium/sending_entityMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 07c Proposed new policy Readers for Channel/Consortiums/SampleConsortium/sending_entityMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 07d Proposed new policy Admins for Channel/Consortiums/SampleConsortium/brokerMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 07e Proposed new policy Readers for Channel/Consortiums/SampleConsortium/brokerMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 07f Proposed new policy Writers for Channel/Consortiums/SampleConsortium/brokerMSP
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 080 Proposed new policy Admins for Channel/Consortiums
2018-05-26 07:15:45.491 UTC [policies] NewManagerImpl -> DEBU 081 Proposed new policy Admins for Channel
2018-05-26 07:15:45.492 UTC [policies] GetPolicy -> DEBU 082 Returning dummy reject all policy because Readers could not be found in Channel/Consortiums/Readers
2018-05-26 07:15:45.492 UTC [policies] NewManagerImpl -> DEBU 083 Proposed new policy Readers for Channel
2018-05-26 07:15:45.492 UTC [policies] GetPolicy -> DEBU 084 Returning dummy reject all policy because Writers could not be found in Channel/Consortiums/Writers
2018-05-26 07:15:45.492 UTC [policies] NewManagerImpl -> DEBU 085 Proposed new policy Writers for Channel
2018-05-26 07:15:45.492 UTC [common/configtx] addToMap -> DEBU 086 Adding to config map: [Group] /Channel
2018-05-26 07:15:45.492 UTC [common/configtx] addToMap -> DEBU 087 Adding to config map: [Group] /Channel/Orderer
2018-05-26 07:15:45.492 UTC [common/configtx] addToMap -> DEBU 088 Adding to config map: [Group] /Channel/Orderer/OrdererMSP
2018-05-26 07:15:45.492 UTC [common/configtx] addToMap -> DEBU 089 Adding to config map: [Value] /Channel/Orderer/OrdererMSP/MSP
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 08a Adding to config map: [Policy] /Channel/Orderer/OrdererMSP/Admins
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 08b Adding to config map: [Policy] /Channel/Orderer/OrdererMSP/Readers
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 08c Adding to config map: [Policy] /Channel/Orderer/OrdererMSP/Writers
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 08d Adding to config map: [Value] /Channel/Orderer/ChannelRestrictions
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 08e Adding to config map: [Value] /Channel/Orderer/ConsensusType
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 08f Adding to config map: [Value] /Channel/Orderer/BatchSize
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 090 Adding to config map: [Value] /Channel/Orderer/BatchTimeout
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 091 Adding to config map: [Policy] /Channel/Orderer/Writers
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 092 Adding to config map: [Policy] /Channel/Orderer/BlockValidation
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 093 Adding to config map: [Policy] /Channel/Orderer/Admins
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 094 Adding to config map: [Policy] /Channel/Orderer/Readers
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 095 Adding to config map: [Group] /Channel/Consortiums
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 096 Adding to config map: [Group] /Channel/Consortiums/SampleConsortium
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 097 Adding to config map: [Group] /Channel/Consortiums/SampleConsortium/dtccMSP
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 098 Adding to config map: [Value] /Channel/Consortiums/SampleConsortium/dtccMSP/MSP
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 099 Adding to config map: [Policy] /Channel/Consortiums/SampleConsortium/dtccMSP/Admins
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 09a Adding to config map: [Policy] /Channel/Consortiums/SampleConsortium/dtccMSP/Readers
2018-05-26 07:15:45.493 UTC [common/configtx] addToMap -> DEBU 09b Adding to config map: [Policy] /Channel/Consortiums/SampleConsortium/dtccMSP/Writers
2018-05-26 07:15:45.493 UTC [orderer/commmon/multichannel] newLedgerResources -> CRIT 09c Error creating channelconfig bundle: initializing configtx manager failed: error converting config to map: Illegal characters in key: [Group]
panic: Error creating channelconfig bundle: initializing configtx manager failed: error converting config to map: Illegal characters in key: [Group]
goroutine 1 [running]:
github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc4201ccdb0, 0xd15b3b, 0x27, 0xc4203beb40, 0x1, 0x1)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x134
github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc420113ea0, 0xc420164780, 0xc420164780)
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:253 +0x391
github.com/hyperledger/fabric/orderer/common/multichannel.NewRegistrar(0x1393300, 0xc42000c120, 0xc420136120, 0x138fd80, 0x13f3e20, 0xc42000e9c0, 0x1, 0x1, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:144 +0x352
github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc420203680, 0x138fd80, 0x13f3e20, 0xc42000e9c0, 0x1, 0x1, 0xc4202f9e30)
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:262 +0x277
github.com/hyperledger/fabric/orderer/common/server.Start(0xcfa0bc, 0x5, 0xc420203680)
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:103 +0x24c
github.com/hyperledger/fabric/orderer/common/server.Main()
/opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:82 +0x20f
main.main()
/opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20
Thanks for sharing this mate, I have one question which is if I have to expand this setup for Kafka how should I do it ? Cheers
as we now can deploy on hosts without Internet access, we need to have node_modules inside the docker image.
update build scripts also.
As of now there is no way to invoke a chaincode with params inside of transient map, which means that invocation params are sent to orderer in plain text
./generate-peer.sh exits with
bash: crypto-config/fabric-ca-server-config-org1.yaml: Is a directory
Seems that
envSubst "templates/fabric-ca-server-template.yaml" "crypto-config/fabric-ca-server-config-$ORG.yaml" "export LDAP_BASE_DN=${LDAP_BASE_DN}"
expects the crypto-config/fabric-ca-server-config-$ORG.yaml to be a file, but when the ca serice is started, scripts try to mount it as a directory.
May be the $DOMAIN var is missing?
envSubst "templates/fabric-ca-server-template.yaml" "crypto-config/fabric-ca-server-config-$ORG.$DOMAIN.yaml" "export LDAP_BASE_DN=${LDAP_BASE_DN}"
if targets are specified for query or invoke requests then the targets should be used.
If no targets specified the discover functionality of fabric sdk should be used, and not local peer
External ports for peer and nginx should be configurable to suite various security policies and restrictions. As an administrator i need to be able to provide custom values to those parameters, and furthermore the rest of the net must use them also when addressing me.
Tried to setup fresh network today, facing forbidden issue..
I removed (Crypto-config) folder generated before, started fresh.. Again same issue. Then I cloned the repo fresh, ensured no containers are running before. ..
Below is the LOG.
./consortium-add-org.sh org1
Add org1 to consortium SampleConsortium
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/admincerts http://www.org1.example.com/msp/admincerts/[email protected]
--2018-10-15 04:15:38-- http://www.org1.example.com/msp/admincerts/[email protected]
Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5
Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/admincerts/[email protected]' not modified on server. Omitting download.
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/cacerts http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem
--2018-10-15 04:15:38-- http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem
Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5
Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem' not modified on server. Omitting download.
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/tlscacerts http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem
--2018-10-15 04:15:39-- http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem
Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5
Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem' not modified on server. Omitting download.
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c peer channel fetch config crypto-config/configtx/orderer-system-channel.pb -o orderer.example.com:7050 -c orderer-system-channel --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt && chown 1000 -R crypto-config/
2018-10-15 04:15:40.672 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2018-10-15 04:15:40.675 UTC [cli/common] readBlock -> INFO 002 Got status: &{FORBIDDEN}
Error: can't read the block: &{FORBIDDEN}
Execute a command in a running container
Usage: exec [options] [-e KEY=VAL...] SERVICE COMMAND [ARGS...]
Options:
-d, --detach Detached mode: Run command in the background.
--privileged Give extended privileges to the process.
-u, --user USER Run the command as this user.
-T Disable pseudo-tty allocation. By default docker-compose exec
allocates a TTY.
--index=index index of the container if there are multiple
instances of a service [default: 1]
-e, --env KEY=VAL Set environment variables (can be used multiple times,
not supported in API < 1.25)
-w, --workdir DIR Path to workdir directory for this command.
Error occurred. See console output above.
zuiver@zuiver-Latitude-E5430-non-vPro:~/Blockchain-POC/Fabric-Generic/fabric-starter$ ./consortium-add-org.sh org1
Add org1 to consortium SampleConsortium
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/admincerts http://www.org1.example.com/msp/admincerts/[email protected]
--2018-10-15 04:16:00-- http://www.org1.example.com/msp/admincerts/[email protected]
Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5
Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/admincerts/[email protected]' not modified on server. Omitting download.
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/cacerts http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem
--2018-10-15 04:16:01-- http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem
Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5
Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem' not modified on server. Omitting download.
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/tlscacerts http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem
--2018-10-15 04:16:02-- http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem
Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5
Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem' not modified on server. Omitting download.
Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c peer channel fetch config crypto-config/configtx/orderer-system-channel.pb -o orderer.example.com:7050 -c orderer-system-channel --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt && chown 1000 -R crypto-config/
2018-10-15 04:16:03.480 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2018-10-15 04:16:03.493 UTC [cli/common] readBlock -> INFO 002 Got status: &{FORBIDDEN}
Error: can't read the block: &{FORBIDDEN}
Execute a command in a running container
Usage: exec [options] [-e KEY=VAL...] SERVICE COMMAND [ARGS...]
Options:
-d, --detach Detached mode: Run command in the background.
--privileged Give extended privileges to the process.
-u, --user USER Run the command as this user.
-T Disable pseudo-tty allocation. By default docker-compose exec
allocates a TTY.
--index=index index of the container if there are multiple
instances of a service [default: 1]
-e, --env KEY=VAL Set environment variables (can be used multiple times,
not supported in API < 1.25)
-w, --workdir DIR Path to workdir directory for this command.
Error occurred. See console output above.
Whenever I run
./network-create-local.sh org1 org2 org3
I got this issue
Internal Server Error Failed to connect before the deadline URL:grpcs://peer0.org2.example.com:8051. Status: 500
when I access the common channel in org2 using the api admin gateway (localhost:4001/admin)
Hi,
Thank you for this great repo for running fabric, nice job.
I want to know how should I config consensus algorithm (PBFT) for my peers?
I don't know if I'm right but I think when I'm bringing down more than 50 percent of network or in this case all of peers except one I should not be able to execute my chaincode but I can. I think PBFT is not enabled by default. Can you please help?
Add listener that can react to events with either custom application logic or infrastructure updates.
Could you please provide a LICENSE file for this project just like in fabric-starter-rest ?
Hi, I followed the tutorial and I was doing what "Generate and start member organization" told me to do, when finished running "./generate-peer.sh", the terminal jumped into the container, I guess it wants me to run "docker-compose up" in that container, but as soon as I ran, I couldn't find docker-compose in that container, so plz tell me how to solve it. Thanks!
localRegistryStarted var is empty when docker-registry container not running and fails sed, killContainers is empty and none are removed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.