This post talks about various development stuff related to Hyperledger Fabric e.g. marble demo, updating fabric docker images, CouchDB image
Marble Demo
https://github.com/IBM-Blockchain/marbles
Upgrade Fabric Images e.g. 1.1
Errors
Focus on GoLANG PATH, Packages Paths on such issues
# github.com/AssetChainCode/client-program/chaincode
chaincode/chaincode.go:83:56: cannot use “github.com/AssetChainCode/client-program/vendor/github.com/hyperledger/fabric-sdk-go/pkg/client/channel”.Request literal (type “github.com/AssetChainCode/client-program/vendor/github.com/hyperledger/fabric-sdk-go/pkg/client/channel”.Request) as type “github.com/hyperledger/fabric-sdk-go/pkg/client/channel”.Request in argument to instance.Client.Query
chaincode/chaincode.go:150:58: cannot use “github.com/AssetChainCode/client-program/vendor/github.com/hyperledger/fabric-sdk-go/pkg/client/channel”.Request literal (type “github.com/AssetChainCode/client-program/vendor/github.com/hyperledger/fabric-sdk-go/pkg/client/channel”.Request) as type “github.com/hyperledger/fabric-sdk-go/pkg/client/channel”.Request in argument to instance.Client.Execute
Pulled V-1.1 Docker Images on such Issues
ERROR! Local Fabric binary version of 1.0.6 does not match this newer version of BYFN and is unsupported. Either move to a later version of Fabric or checkout an earlier version of fabric-samples
http://hyperledger-fabric.readthedocs.io/en/release-1.1/upgrading_your_network_tutorial.html
esumits-MacBook-Pro:first-network esumit$ ./byfn.sh up -s couchdb -c myc =i 1.1.0
Starting with channel ‘myc’ and CLI timeout of ’10’ seconds and CLI delay of ‘3’ seconds and using database ‘couchdb’
Continue? [Y/n] Y
proceeding …
2018-06-10 07:22:37.514 UTC [main] main -> INFO 001 Exiting…..
LOCAL_VERSION=1.0.6
DOCKER_IMAGE_VERSION=1.1.0
[ Versions are not mathicng]
=================== WARNING ===================
Local fabric binaries and docker images are
out of sync. This may cause problems.
===============================================
ERROR! Local Fabric binary version of 1.0.6 does not match this newer version of BYFN and is unsupported. Either move to a later version of Fabric or checkout an earlier version of fabric-samples.
esumits-MacBook-Pro:first-network esumit$
esumits-MacBook-Pro:first-network esumit$ ./byfn.sh up -s couchdb -c myc
Starting with channel ‘myc’ and CLI timeout of ’10’ seconds and CLI delay of ‘3’ seconds and using database ‘couchdb’
Continue? [Y/n] Y
proceeding …
2018-06-10 07:34:31.371 UTC [main] main -> INFO 001 Exiting…..
LOCAL_VERSION=1.1.0
DOCKER_IMAGE_VERSION=1.1.0
[Versions are matching , and it works ]
Update Hyperledger Fabric Docker Images to Version 1.1
esumits-MacBook-Pro:first-network esumit$ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.1.0
Installing hyperledger/fabric-samples repo
===> Cloning hyperledger/fabric-samples repo and checkout v1.1.0
Cloning into ‘fabric-samples’…
remote: Counting objects: 1626, done.
remote: Total 1626 (delta 0), reused 0 (delta 0), pack-reused 1625
Receiving objects: 100% (1626/1626), 576.37 KiB | 279.00 KiB/s, done.
Resolving deltas: 100% (790/790), done.
Note: checking out ‘v1.1.0’.
You are in ‘detached HEAD’ state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 1252c7a… [FAB-8920] Pin fabric-samples to node.js “~1.1.0”
Installing Hyperledger Fabric binaries
===> Downloading version x86_64-1.1.0 platform specific fabric binaries
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
34 28.3M 34 9.8M 0 0 486k 0 0:00:59 0:00:20 0:00:39 587k
==> Done.
===> Downloading version x86_64-1.1.0 platform specific fabric-ca-client binary
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4990k 100 4990k 0 0 328k 0 0:00:15 0:00:15 –:–:– 544k
==> Done.
Installing Hyperledger Fabric docker images
===> Pulling fabric Images
==> FABRIC IMAGE: peer
x86_64-1.1.0: Pulling from hyperledger/fabric-peer
1be7f2b886e8: Already exists
6fbc4a21b806: Already exists
c71a6f8e1378: Already exists
4be3072e5a37: Already exists
06c6d2f59700: Already exists
4d536120d8a5: Pull complete
0baaf9ec263e: Pull complete
770563795186: Pull complete
15763b7bd14b: Pull complete
62f2823da7f3: Pull complete
Digest: sha256:57417699ddf50c5ebd47a9a2cc74c0324fbba0281eb1104b9ddd05a67776b01f
Status: Downloaded newer image for hyperledger/fabric-peer:x86_64-1.1.0
==> FABRIC IMAGE: orderer
x86_64-1.1.0: Pulling from hyperledger/fabric-orderer
1be7f2b886e8: Already exists
6fbc4a21b806: Already exists
c71a6f8e1378: Already exists
4be3072e5a37: Already exists
06c6d2f59700: Already exists
4d536120d8a5: Already exists
0baaf9ec263e: Already exists
770563795186: Already exists
61d33418a569: Pull complete
b1b98004e7c6: Pull complete
Digest: sha256:0c3a3b5ecfd24b513da22bbb77da7b3f5bca9c121cc0ac5c46ba04c97c163654
Status: Downloaded newer image for hyperledger/fabric-orderer:x86_64-1.1.0
==> FABRIC IMAGE: ccenv
x86_64-1.1.0: Pulling from hyperledger/fabric-ccenv
1be7f2b886e8: Already exists
6fbc4a21b806: Already exists
c71a6f8e1378: Already exists
4be3072e5a37: Already exists
06c6d2f59700: Already exists
4d536120d8a5: Already exists
0baaf9ec263e: Already exists
3ea9b6cc6f21: Pull complete
6173b9a5fe5e: Pull complete
e73719e0bcbe: Pull complete
b55408c6ced5: Pull complete
e1267c65ed62: Pull complete
2839c20999d1: Pull complete
444429f2833f: Pull complete
Digest: sha256:07818367dc6d4264472d24b21819f9dc4e16e890d81ddfacee0341a22d72050b
Status: Downloaded newer image for hyperledger/fabric-ccenv:x86_64-1.1.0
==> FABRIC IMAGE: javaenv
x86_64-1.1.0: Pulling from hyperledger/fabric-javaenv
1be7f2b886e8: Already exists
6fbc4a21b806: Already exists
c71a6f8e1378: Already exists
4be3072e5a37: Already exists
06c6d2f59700: Already exists
4d536120d8a5: Already exists
0baaf9ec263e: Already exists
3ea9b6cc6f21: Already exists
6173b9a5fe5e: Already exists
e73719e0bcbe: Already exists
b55408c6ced5: Already exists
d72e92165d22: Pull complete
bbb7025c0883: Pull complete
8fa39f27c772: Pull complete
5187f67cb3f8: Pull complete
05488c815030: Pull complete
3bd91626e779: Pull complete
47aa3719a5d6: Pull complete
cd3dc7bf95ff: Pull complete
Digest: sha256:d2588c0556b6fc79131f638b02a7a77337363e2c2f38a9c47798a6d99bd2f20e
Status: Downloaded newer image for hyperledger/fabric-javaenv:x86_64-1.1.0
==> FABRIC IMAGE: tools
x86_64-1.1.0: Pulling from hyperledger/fabric-tools
1be7f2b886e8: Already exists
6fbc4a21b806: Already exists
c71a6f8e1378: Already exists
4be3072e5a37: Already exists
06c6d2f59700: Already exists
4d536120d8a5: Already exists
0baaf9ec263e: Already exists
3ea9b6cc6f21: Already exists
6173b9a5fe5e: Already exists
e73719e0bcbe: Already exists
b55408c6ced5: Already exists
1a8bca84adfa: Pull complete
b54c1992cc9c: Pull complete
68093aff3e84: Pull complete
3827dc0ff46d: Pull complete
1e22360bf4e7: Pull complete
Digest: sha256:36d7fa8e8ddcc19fed8e1c3c06bc6ae1dac18c35e8a884188d2c08df3e5a4472
Status: Downloaded newer image for hyperledger/fabric-tools:x86_64-1.1.0
===> Pulling fabric ca Image
==> FABRIC CA IMAGE
x86_64-1.1.0: Pulling from hyperledger/fabric-ca
1be7f2b886e8: Already exists
6fbc4a21b806: Already exists
c71a6f8e1378: Already exists
4be3072e5a37: Already exists
06c6d2f59700: Already exists
4d536120d8a5: Already exists
0baaf9ec263e: Already exists
ab27f0b1192c: Pull complete
7e1142a727eb: Pull complete
a7624c188c44: Pull complete
0c8524afd242: Pull complete
23e14758f709: Pull complete
Digest: sha256:92f44d0811cddb0d335f7879f7e3b3c4b631f31740c76f3e7b85438c244b03f4
Status: Downloaded newer image for hyperledger/fabric-ca:x86_64-1.1.0
===> Pulling thirdparty docker images
==> THIRDPARTY DOCKER IMAGE: couchdb
x86_64-0.4.6: Pulling from hyperledger/fabric-couchdb
8f7c85c2269a: Pull complete
9e72e494a6dd: Pull complete
3009ec50c887: Pull complete
9d5ffccbec91: Pull complete
e872a2642ce1: Pull complete
9b84958a26b3: Pull complete
68d4ced7ec19: Pull complete
ff1d2b44d88d: Pull complete
99e6a41c35bd: Pull complete
87b2e4a0b9d2: Pull complete
55f108d3ee4a: Pull complete
9e76f6c2c001: Pull complete
368be4b23f81: Pull complete
581042703e1f: Pull complete
18c50435ee69: Pull complete
70dbffc27ecb: Pull complete
31c35dd1bd00: Pull complete
7571e6af230f: Pull complete
9ef1e88f8344: Pull complete
Digest: sha256:4278269b115cfd0f24251b5381407be9ccdf396c1470c69e1ee2ff16917ac882
Status: Downloaded newer image for hyperledger/fabric-couchdb:x86_64-0.4.6
==> THIRDPARTY DOCKER IMAGE: kafka
x86_64-0.4.6: Pulling from hyperledger/fabric-kafka
8f7c85c2269a: Already exists
9e72e494a6dd: Already exists
3009ec50c887: Already exists
9d5ffccbec91: Already exists
e872a2642ce1: Already exists
9b84958a26b3: Already exists
68d4ced7ec19: Already exists
ff1d2b44d88d: Already exists
99e6a41c35bd: Already exists
87b2e4a0b9d2: Already exists
55f108d3ee4a: Already exists
76d29739374b: Pull complete
8e29d2dddc78: Pull complete
6bb3eb1b6cb1: Pull complete
Digest: sha256:738bb79f02aa505a9ab0553a865122605ffba91d1b5de6eb0429f7287e83ac7c
Status: Downloaded newer image for hyperledger/fabric-kafka:x86_64-0.4.6
==> THIRDPARTY DOCKER IMAGE: zookeeper
x86_64-0.4.6: Pulling from hyperledger/fabric-zookeeper
8f7c85c2269a: Already exists
9e72e494a6dd: Already exists
3009ec50c887: Already exists
9d5ffccbec91: Already exists
e872a2642ce1: Already exists
9b84958a26b3: Already exists
68d4ced7ec19: Already exists
ff1d2b44d88d: Already exists
99e6a41c35bd: Already exists
87b2e4a0b9d2: Already exists
55f108d3ee4a: Already exists
f876628e022b: Pull complete
5e8448f14014: Pull complete
c1ddd9fcc9fe: Pull complete
cae637096fa7: Pull complete
Digest: sha256:7fda667f6c39d6cb87125c132962fc3e434a8e6b2b16ee798d6fa94f970531a2
Status: Downloaded newer image for hyperledger/fabric-zookeeper:x86_64-0.4.6
===> List out hyperledger docker images
hyperledger/fabric-ca latest 72617b4fa9b4 2 months ago 299MB
hyperledger/fabric-ca x86_64-1.1.0 72617b4fa9b4 2 months ago 299MB
hyperledger/fabric-tools latest b7bfddf508bc 2 months ago 1.46GB
hyperledger/fabric-tools x86_64-1.1.0 b7bfddf508bc 2 months ago 1.46GB
hyperledger/fabric-orderer latest ce0c810df36a 2 months ago 180MB
hyperledger/fabric-orderer x86_64-1.1.0 ce0c810df36a 2 months ago 180MB
hyperledger/fabric-peer latest b023f9be0771 2 months ago 187MB
hyperledger/fabric-peer x86_64-1.1.0 b023f9be0771 2 months ago 187MB
hyperledger/fabric-javaenv latest 82098abb1a17 2 months ago 1.52GB
hyperledger/fabric-javaenv x86_64-1.1.0 82098abb1a17 2 months ago 1.52GB
hyperledger/fabric-ccenv latest c8b4909d8d46 2 months ago 1.39GB
hyperledger/fabric-ccenv x86_64-1.1.0 c8b4909d8d46 2 months ago 1.39GB
hyperledger/fabric-couchdb x86_64-1.0.6 380446aa57b6 3 months ago 1.5GB
hyperledger/fabric-kafka x86_64-1.0.6 4e726a9527ec 3 months ago 1.29GB
hyperledger/fabric-zookeeper x86_64-1.0.6 205a873eee5d 3 months ago 1.32GB
hyperledger/fabric-tools x86_64-1.0.6 322eaa2b8786 3 months ago 1.33GB
hyperledger/fabric-orderer x86_64-1.0.6 659d92c1be85 3 months ago 151MB
hyperledger/fabric-peer x86_64-1.0.6 28c7c07db540 3 months ago 154MB
hyperledger/fabric-javaenv x86_64-1.0.6 b39e5e521f2a 3 months ago 1.41GB
hyperledger/fabric-ca x86_64-1.0.6 fe3c9b6542cf 3 months ago 238MB
hyperledger/fabric-ccenv x86_64-1.0.6 2e695012bcff 3 months ago 1.28GB
hyperledger/fabric-zookeeper latest 92cbb952b6f8 3 months ago 1.39GB
hyperledger/fabric-zookeeper x86_64-0.4.6 92cbb952b6f8 3 months ago 1.39GB
hyperledger/fabric-kafka latest 554c591b86a8 3 months ago 1.4GB
hyperledger/fabric-kafka x86_64-0.4.6 554c591b86a8 3 months ago 1.4GB
hyperledger/fabric-couchdb latest 7e73c828fc5b 3 months ago 1.56GB
hyperledger/fabric-couchdb x86_64-0.4.6 7e73c828fc5b 3 months ago 1.56GB
hyperledger/fabric-tools x86_64-1.0.0 0403fd1c72c7 11 months ago 1.32GB
hyperledger/fabric-couchdb x86_64-1.0.0 2fbdbf3ab945 11 months ago 1.48GB
hyperledger/fabric-orderer x86_64-1.0.0 e317ca5638ba 11 months ago 179MB
hyperledger/fabric-peer x86_64-1.0.0 6830dcd7b9b5 11 months ago 182MB
hyperledger/fabric-ccenv x86_64-1.0.0 7182c260a5ca 11 months ago 1.29GB
hyperledger/fabric-ca x86_64-1.0.0 a15c59ecda5b 11 months ago 238MB
hyperledger/fabric-baseos x86_64-0.3.1 4b0cab202084 13 months ago 157MB