ran into several issues while trying to install hyperldger fabric on a fresh mac following the instructions at https://hyperledger-fabric.readthedocs.io/en/release-1.2/install.html. writing this post to remember how to fix the errors in future.
$ curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0 bash: line 181: [: too many arguments Installing hyperledger/fabric-samples repo ===> Cloning hyperledger/fabric-samples repo and checkout v1.2.0 xcode-select: note: <b>no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.</b> Installing Hyperledger Fabric binaries ===> Downloading version 1.2.0 platform specific fabric binaries ===> Downloading:<span class="Apple-converted-space"> </span>https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/darwin-amd64-1.2.0/hyperledger-fabric-darwin-amd64-1.2.0.tar.gz <span class="Apple-converted-space"> </span>% Total<span class="Apple-converted-space"> </span>% Received % Xferd<span class="Apple-converted-space"> </span>Average Speed <span class="Apple-converted-space"> </span>Time<span class="Apple-converted-space"> </span>Time <span class="Apple-converted-space"> </span>Time<span class="Apple-converted-space"> </span>Current <span class="Apple-converted-space"> </span>Dload<span class="Apple-converted-space"> </span>Upload <span class="Apple-converted-space"> </span>Total <span class="Apple-converted-space"> </span>Spent<span class="Apple-converted-space"> </span>Left<span class="Apple-converted-space"> </span>Speed 100 29.7M<span class="Apple-converted-space"> </span>100 29.7M<span class="Apple-converted-space"> </span>0 <span class="Apple-converted-space"> </span>0<span class="Apple-converted-space"> </span>6695k<span class="Apple-converted-space"> </span>0<span class="Apple-converted-space"> </span>0:00:04<span class="Apple-converted-space"> </span>0:00:04 --:--:-- 7282k ==> Done. ===> Downloading version 1.2.0 platform specific fabric-ca-client binary ===> Downloading:<span class="Apple-converted-space"> </span>https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-ca/hyperledger-fabric-ca/darwin-amd64-1.2.0/hyperledger-fabric-ca-darwin-amd64-1.2.0.tar.gz <span class="Apple-converted-space"> </span>% Total<span class="Apple-converted-space"> </span>% Received % Xferd<span class="Apple-converted-space"> </span>Average Speed <span class="Apple-converted-space"> </span>Time<span class="Apple-converted-space"> </span>Time <span class="Apple-converted-space"> </span>Time<span class="Apple-converted-space"> </span>Current <span class="Apple-converted-space"> </span>Dload<span class="Apple-converted-space"> </span>Upload <span class="Apple-converted-space"> </span>Total <span class="Apple-converted-space"> </span>Spent<span class="Apple-converted-space"> </span>Left<span class="Apple-converted-space"> </span>Speed 100 3864k<span class="Apple-converted-space"> </span>100 3864k<span class="Apple-converted-space"> </span>0 <span class="Apple-converted-space"> </span>0<span class="Apple-converted-space"> </span>2309k<span class="Apple-converted-space"> </span>0<span class="Apple-converted-space"> </span>0:00:01<span class="Apple-converted-space"> </span>0:00:01 --:--:-- 2310k ==> Done. Installing Hyperledger Fabric docker images ===> Pulling fabric Images ==> FABRIC IMAGE: peer Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-peer/manifests/1.2.0: unauthorized: incorrect username or password Error response from daemon: No such image: hyperledger/fabric-peer:1.2.0 ==> FABRIC IMAGE: orderer Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-orderer/manifests/1.2.0: unauthorized: incorrect username or password Error response from daemon: No such image: hyperledger/fabric-orderer:1.2.0 ==> FABRIC IMAGE: ccenv Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-ccenv/manifests/1.2.0: unauthorized: incorrect username or password Error response from daemon: No such image: hyperledger/fabric-ccenv:1.2.0 ==> FABRIC IMAGE: tools Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-tools/manifests/1.2.0: unauthorized: incorrect username or password Error response from daemon: No such image: hyperledger/fabric-tools:1.2.0 ===> Pulling fabric ca Image ==> FABRIC CA IMAGE Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-ca/manifests/1.2.0: unauthorized: incorrect username or password Error response from daemon: No such image: hyperledger/fabric-ca:1.2.0 ===> Pulling thirdparty docker images ==> THIRDPARTY DOCKER IMAGE: couchdb Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-couchdb/manifests/0.4.10: unauthorized: incorrect username or password Error response from daemon: No such image: hyperledger/fabric-couchdb:0.4.10 ==> THIRDPARTY DOCKER IMAGE: kafka Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-kafka/manifests/0.4.10: unauthorized: incorrect username or password Error response from daemon: No such image: hyperledger/fabric-kafka:0.4.10 ==> THIRDPARTY DOCKER IMAGE: zookeeper Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-zookeeper/manifests/0.4.10: unauthorized: incorrect username or password Error response from daemon: No such image: hyperledger/fabric-zookeeper:0.4.10 ===> List out hyperledger docker images
There are two issues in above:
- git is not installed on the machine and that is what below error is about
xcode-select: note: no developer tools were found at ‘/Applications/Xcode.app’, requesting install. Choose an option in the dialog to download the command line developer tools.
You don’t have to install XCode to get git. You could try running
xcode-select --install
to install xcode CLI tools (git comes as part of it) but changes are you get this error https://apple.stackexchange.com/questions/309461/unable-to-run-xcode-select-install/309469#309469. If so just follow the steps described in the answer: https://apple.stackexchange.com/a/309469/139331
- The second issue is this error: Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-zookeeper/manifests/0.4.10: unauthorized: incorrect username or password. To fix this you need to login with a docker username before running the hyperledger install script. Log in to docker by running
docker login
The username will be the username without the email suffix.