IBM / fabric-contract-attribute-based-access-control

A repo to demonstrate how to implement attribute-based-access-control in Hyperledger Fabric for a supply-chain use case using IBM Blockchain Platform VSCode extension.
https://developer.ibm.com/technologies/blockchain/patterns/fabric-contract-attribute-based-access-control
Apache License 2.0
76 stars 40 forks source link

[ERROR] Failed to start 1 Org Local Fabric: Error: Failed to execute command "/bin/sh" with arguments "generate.sh" return code 2 #6

Closed AjeethT closed 4 years ago

horeaporutiu commented 4 years ago

@AjeethT are you on version vscode 1.39?

pratikspatil024 commented 4 years ago

Hello @horeaporutiu, I am getting the same error after I start the local fabric by clicking on 1 Org Local Fabric in the FABRIC ENVIRONMENTS pane. I am on vscode version 1.39 Node.js: 10.12.0 npm: 6.4.1 Docker: 19.3.8 Docker Compose: 1.17.1 Can you please help me out?

FYI, I am following this tutorial: https://github.com/IBM/evote/blob/master/docs/run-local.md (I got error on step 2).

horeaporutiu commented 4 years ago

@pratikpatil024 try using node version 8.9.0

Screen Shot 2020-05-14 at 2 28 27 PM
pratikspatil024 commented 4 years ago

@horeaporutiu when I use node 8.9.0, npm is changed to 5.5.1. But the IBM Blockchain Platform extension for VS Code requires npm version >= 6.0.0. So because of this I cannot proceed further this time. Thank You.

horeaporutiu commented 4 years ago

Try and use npm v6. I am using npn 6.11.3 and node 8.9.0 and all works fine

Screen Shot 2020-05-14 at 2 57 54 PM

On Thu, May 14, 2020 at 2:41 PM Pratik Patil notifications@github.com wrote:

@horeaporutiu https://github.com/horeaporutiu when I use node 8.9.0, npm is changed to 5.5.1. But the IBM Blockchain Platform extension for VS Code requires npm version >= 6.0.0. So because of this I cannot proceed further this time. Thank You.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/fabric-contract-attribute-based-access-control/issues/6#issuecomment-628901222, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPSAZNXAQFCWQVRPGRVKVTRRRQPNANCNFSM4LQZD4HA .

-- Thanks in advance, Horea Porutiu

Univ. of California, San Diego 2017 B.S. Computer Science B.S. Management Science (310) 707-6864 horeaporutiu@gmail.com

pratikspatil024 commented 4 years ago

Now I am using node: 8.9.0 and npm: 6.11.13 as told by you. But getting the same error. Below is the complete output of the terminal:

[15/5/2020 3:37:12 AM] [IMPORTANT] Log files can be found by running theDeveloper: Open Logs Folder` command from the palette

[15/5/2020 3:37:12 AM] [INFO] Starting IBM Blockchain Platform Extension [15/5/2020 3:37:13 AM] [INFO] Attempting to require dependency: grpc [15/5/2020 3:37:13 AM] [INFO] Restoring command registry [15/5/2020 3:37:13 AM] [INFO] Registering commands [15/5/2020 3:37:13 AM] [INFO] Execute stored commands in the registry [15/5/2020 3:37:13 AM] [INFO] IBM Blockchain Platform Extension activated [15/5/2020 3:37:20 AM] [INFO] connecting to fabric environment [15/5/2020 3:37:20 AM] [INFO] startFabricRuntime [15/5/2020 3:37:20 AM] [INFO] fix_permissions () { [15/5/2020 3:37:20 AM] [INFO] docker run --rm -v "$PWD":/network ibmblockchain/vscode-prereqs:0.0.16 chown -R $(id -u):$(id -g) /network [15/5/2020 3:37:20 AM] [INFO] } [15/5/2020 3:37:20 AM] [INFO] trap fix_permissions EXIT [15/5/2020 3:37:20 AM] [INFO] docker run --rm -v "$PWD":/network -v /var/run/docker.sock:/var/run/docker.sock --network host ibmblockchain/vscode-prereqs:0.0.16 ansible-playbook /network/playbook.yml [15/5/2020 3:37:22 AM] [INFO] [WARNING]: No inventory was parsed, only implicit localhost is available [15/5/2020 3:37:22 AM] [INFO] [WARNING]: provided hosts list is empty, only localhost is available. Note that [15/5/2020 3:37:22 AM] [INFO] the implicit localhost does not match 'all' [15/5/2020 3:37:22 AM] [INFO] PLAY [Deploy blockchain infrastructure] **** [15/5/2020 3:37:22 AM] [INFO] TASK [Gathering Facts] ***** [15/5/2020 3:37:22 AM] [INFO] /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna/FortunaGenerator.py:28: SyntaxWarning: "is" with a literal. Did you mean "=="? [15/5/2020 3:37:22 AM] [INFO] if sys.version_info[0] is 2 and sys.version_info[1] is 1: [15/5/2020 3:37:22 AM] [INFO] /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna/FortunaGenerator.py:28: SyntaxWarning: "is" with a literal. Did you mean "=="? [15/5/2020 3:37:22 AM] [INFO] if sys.version_info[0] is 2 and sys.version_info[1] is 1: [15/5/2020 3:37:23 AM] [INFO] ok: [localhost] [15/5/2020 3:37:23 AM] [INFO] TASK [ibm.blockchain_platform_manager : Set facts] * [15/5/2020 3:37:23 AM] [INFO] ok: [localhost] [15/5/2020 3:37:23 AM] [INFO] TASK [ibm.blockchain_platform_manager : Create temporary directory] **** [15/5/2020 3:37:24 AM] [INFO] ok: [localhost] [15/5/2020 3:37:24 AM] [INFO] TASK [ibm.blockchain_platform_manager : Initialize infrastructure] * [15/5/2020 3:37:24 AM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/init.yml for localhost [15/5/2020 3:37:24 AM] [INFO] TASK [ibm.blockchain_platform_manager : Create all organisations] ** [15/5/2020 3:37:24 AM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/create-organisation.yml for localhost [15/5/2020 3:37:24 AM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/create-organisation.yml for localhost [15/5/2020 3:37:24 AM] [INFO] TASK [ibm.blockchain_platform_manager : Create nodes directory] **** [15/5/2020 3:37:24 AM] [INFO] ok: [localhost] [15/5/2020 3:37:24 AM] [INFO] TASK [ibm.blockchain_platform_manager : Create wallet directory] *** [15/5/2020 3:37:25 AM] [INFO] ok: [localhost] [15/5/2020 3:37:25 AM] [INFO] TASK [ibm.blockchain_platform_manager : Create gateways directory] *** [15/5/2020 3:37:25 AM] [INFO] ok: [localhost] [15/5/2020 3:37:25 AM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority] ** [15/5/2020 3:37:25 AM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/create-ca.yml for localhost [15/5/2020 3:37:25 AM] [INFO] TASK [ibm.blockchain_platform_manager : Ensure Docker network exists] ** [15/5/2020 3:37:26 AM] [INFO] ok: [localhost] [15/5/2020 3:37:26 AM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority volume] * [15/5/2020 3:37:26 AM] [INFO] ok: [localhost] [15/5/2020 3:37:26 AM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority container] * [15/5/2020 3:37:27 AM] [INFO] An exception occurred during task execution. To see the full traceback, use -vvv. The error was: docker.errors.APIError: 400 Client Error: Bad Request ("2 matches found based on name: network 1OrgLocalFabric_network is ambiguous") [15/5/2020 3:37:27 AM] [INFO] fatal: [localhost]: FAILED! => {"changed": false, "msg": "An unexpected docker error occurred: 400 Client Error: Bad Request (\"2 matches found based on name: network 1OrgLocalFabric_network is ambiguous\")"} [15/5/2020 3:37:27 AM] [INFO] PLAY RECAP *** [15/5/2020 3:37:27 AM] [INFO] localhost : ok=12 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
[15/5/2020 3:37:31 AM] [ERROR] Failed to start 1 Org Local Fabric: Error: Failed to execute command "/bin/sh" with arguments "generate.sh" return code 2 `

Thank You Pratik

pratikspatil024 commented 4 years ago

Hello @horeaporutiu , actually the problem was I already had a docker network called 1orglocalfabric. So I removed it by: $ docker network rm 1OrgLocalFabric_network and then it worked.

Thanks for your help Pratik

horeaporutiu commented 4 years ago

@pratikpatil024 Thanks for the update - i haven't seen that problem before. Good to know, and thanks for updating the docs!

pratikspatil024 commented 4 years ago

@horeaporutiu my pleasure sir.

pavanbhat1999 commented 4 years ago

@pratikpatil024 Sorry but ** $ docker network rm 1OrgLocalFabric_network ***

still has not solved this problem for me

pratikspatil024 commented 4 years ago

@pavanbhat1999 try doing "docker network ls" if you have more than one 1OrgLocalFabric_network running, then remove all of them by passing the id

root-99 commented 4 years ago

[21/5/2020 6:08:49 PM] [SUCCESS] Successfully generated Smart Contract Project [21/5/2020 6:10:34 PM] [INFO] connecting to fabric environment [21/5/2020 6:10:34 PM] [INFO] startFabricRuntime [21/5/2020 6:10:34 PM] [INFO] fix_permissions () { [21/5/2020 6:10:34 PM] [INFO] docker run --rm -v "$PWD":/network ibmblockchain/vscode-prereqs:0.0.16 chown -R $(id -u):$(id -g) /network [21/5/2020 6:10:34 PM] [INFO] } [21/5/2020 6:10:34 PM] [INFO] trap fix_permissions EXIT [21/5/2020 6:10:34 PM] [INFO] docker run --rm -v "$PWD":/network -v /var/run/docker.sock:/var/run/docker.sock --network host ibmblockchain/vscode-prereqs:0.0.16 ansible-playbook /network/playbook.yml [21/5/2020 6:10:38 PM] [INFO] [WARNING]: No inventory was parsed, only implicit localhost is available [21/5/2020 6:10:38 PM] [INFO] [WARNING]: provided hosts list is empty, only localhost is available. Note that [21/5/2020 6:10:38 PM] [INFO] the implicit localhost does not match 'all' [21/5/2020 6:10:39 PM] [INFO] PLAY [Deploy blockchain infrastructure] **** [21/5/2020 6:10:40 PM] [INFO] TASK [Gathering Facts] ***** [21/5/2020 6:10:40 PM] [INFO] /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna/FortunaGenerator.py:28: SyntaxWarning: "is" with a literal. Did you mean "=="? [21/5/2020 6:10:40 PM] [INFO] if sys.version_info[0] is 2 and sys.version_info[1] is 1: [21/5/2020 6:10:40 PM] [INFO] /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna/FortunaGenerator.py:28: SyntaxWarning: "is" with a literal. Did you mean "=="? [21/5/2020 6:10:40 PM] [INFO] if sys.version_info[0] is 2 and sys.version_info[1] is 1: [21/5/2020 6:10:42 PM] [INFO] ok: [localhost] [21/5/2020 6:10:42 PM] [INFO] TASK [ibm.blockchain_platform_manager : Set facts] * [21/5/2020 6:10:42 PM] [INFO] ok: [localhost] [21/5/2020 6:10:42 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create temporary directory] **** [21/5/2020 6:10:43 PM] [INFO] ok: [localhost] [21/5/2020 6:10:43 PM] [INFO] TASK [ibm.blockchain_platform_manager : Initialize infrastructure] * [21/5/2020 6:10:43 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/init.yml for localhost [21/5/2020 6:10:43 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create all organisations] ** [21/5/2020 6:10:43 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/create-organisation.yml for localhost [21/5/2020 6:10:43 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/create-organisation.yml for localhost [21/5/2020 6:10:43 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create nodes directory] **** [21/5/2020 6:10:44 PM] [INFO] changed: [localhost] [21/5/2020 6:10:44 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create wallet directory] *** [21/5/2020 6:10:45 PM] [INFO] changed: [localhost] [21/5/2020 6:10:45 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create gateways directory] *** [21/5/2020 6:10:45 PM] [INFO] changed: [localhost] [21/5/2020 6:10:45 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority] ** [21/5/2020 6:10:46 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/create-ca.yml for localhost [21/5/2020 6:10:46 PM] [INFO] TASK [ibm.blockchain_platform_manager : Ensure Docker network exists] ** [21/5/2020 6:10:47 PM] [INFO] ok: [localhost] [21/5/2020 6:10:47 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority volume] * [21/5/2020 6:10:49 PM] [INFO] changed: [localhost] [21/5/2020 6:10:49 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority container] [21/5/2020 6:10:54 PM] [INFO] changed: [localhost] [21/5/2020 6:10:54 PM] [INFO] TASK [ibm.blockchain_platform_manager : Wait for certificate authority to start] [21/5/2020 6:10:55 PM] [INFO] ok: [localhost] [21/5/2020 6:10:55 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the CA root certificate] ** [21/5/2020 6:10:58 PM] [INFO] changed: [localhost] [21/5/2020 6:10:58 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the TLS CA root certificate (for all components)] [21/5/2020 6:10:58 PM] [INFO] skipping: [localhost] [21/5/2020 6:10:58 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the TLS CA root certificate (for the certificate authority component)] [21/5/2020 6:10:58 PM] [INFO] skipping: [localhost] [21/5/2020 6:10:58 PM] [INFO] TASK [ibm.blockchain_platform_manager : Update certificate authority facts] ** [21/5/2020 6:10:58 PM] [INFO] ok: [localhost] [21/5/2020 6:10:58 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create node JSON file] ***** [21/5/2020 6:10:59 PM] [INFO] changed: [localhost] [21/5/2020 6:10:59 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create MSP] **** [21/5/2020 6:10:59 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/create-msp.yml for localhost [21/5/2020 6:10:59 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the admin user for the certificate authority] * [21/5/2020 6:10:59 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/enroll-user.yml for localhost [21/5/2020 6:10:59 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine identity directory] ** [21/5/2020 6:11:00 PM] [INFO] ok: [localhost] [21/5/2020 6:11:00 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been enrolled] * [21/5/2020 6:11:00 PM] [INFO] ok: [localhost] [21/5/2020 6:11:00 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user] ***** [21/5/2020 6:11:07 PM] [INFO] changed: [localhost] [21/5/2020 6:11:07 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user certificate] [21/5/2020 6:11:07 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/admin/signcerts/cert.pem) [21/5/2020 6:11:07 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user private key] [21/5/2020 6:11:07 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/admin/keystore/877692997a5f877af82b3b6ee9db68b4dd7962b25467702075b634c46531bb0e_sk) [21/5/2020 6:11:07 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create identity JSON file] *** [21/5/2020 6:11:08 PM] [INFO] changed: [localhost] [21/5/2020 6:11:09 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the admin user for the TLS certificate authority] * [21/5/2020 6:11:09 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/enroll-user.yml for localhost [21/5/2020 6:11:09 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine identity directory] ** [21/5/2020 6:11:09 PM] [INFO] ok: [localhost] [21/5/2020 6:11:09 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been enrolled] * [21/5/2020 6:11:09 PM] [INFO] ok: [localhost] [21/5/2020 6:11:09 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user] ***** [21/5/2020 6:11:09 PM] [INFO] skipping: [localhost] [21/5/2020 6:11:09 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user certificate] [21/5/2020 6:11:10 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/admin/signcerts/cert.pem) [21/5/2020 6:11:10 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user private key] [21/5/2020 6:11:10 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/admin/keystore/877692997a5f877af82b3b6ee9db68b4dd7962b25467702075b634c46531bb0e_sk) [21/5/2020 6:11:10 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create identity JSON file] *** [21/5/2020 6:11:11 PM] [INFO] ok: [localhost] [21/5/2020 6:11:11 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the admin user for the MSP] * [21/5/2020 6:11:11 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/register-user.yml for localhost [21/5/2020 6:11:11 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine registrar directory] *** [21/5/2020 6:11:11 PM] [INFO] ok: [localhost] [21/5/2020 6:11:11 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been registered] * [21/5/2020 6:11:12 PM] [INFO] ok: [localhost] [21/5/2020 6:11:12 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the user] ***** [21/5/2020 6:11:13 PM] [INFO] changed: [localhost] [21/5/2020 6:11:13 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the admin user for the MSP] * [21/5/2020 6:11:13 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/enroll-user.yml for localhost [21/5/2020 6:11:13 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine identity directory] ** [21/5/2020 6:11:14 PM] [INFO] ok: [localhost] [21/5/2020 6:11:14 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been enrolled] * [21/5/2020 6:11:14 PM] [INFO] ok: [localhost] [21/5/2020 6:11:14 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user] ***** [21/5/2020 6:11:15 PM] [INFO] changed: [localhost] [21/5/2020 6:11:15 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user certificate] [21/5/2020 6:11:15 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/org1Admin/signcerts/cert.pem) [21/5/2020 6:11:15 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user private key] [21/5/2020 6:11:16 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/org1Admin/keystore/0acee01eaaf17c1dd3b7a3068dffae126cd5d44cfbeb141b3d401dee0f33b0be_sk) [21/5/2020 6:11:16 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create identity JSON file] *** [21/5/2020 6:11:17 PM] [INFO] changed: [localhost] [21/5/2020 6:11:17 PM] [INFO] TASK [ibm.blockchain_platform_manager : Ensure admin certificate directory exists] * [21/5/2020 6:11:17 PM] [INFO] changed: [localhost] [21/5/2020 6:11:17 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy admin user certificate into admin certificate directory] * [21/5/2020 6:11:18 PM] [INFO] changed: [localhost] => (item=/network/wallets/Org1/org1Admin/signcerts/cert.pem) [21/5/2020 6:11:18 PM] [INFO] TASK [ibm.blockchain_platform_manager : Gather root certificates] ** [21/5/2020 6:11:19 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/root.pem) [21/5/2020 6:11:19 PM] [INFO] TASK [ibm.blockchain_platform_manager : Gather TLS root certificates] ** [21/5/2020 6:11:19 PM] [INFO] TASK [ibm.blockchain_platform_manager : Gather admin user certificates] **** [21/5/2020 6:11:19 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/org1Admin/signcerts/cert.pem) [21/5/2020 6:11:19 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create MSP in infrastructure] ** [21/5/2020 6:11:19 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/create-msp.yml for localhost [21/5/2020 6:11:19 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create all peers] ** [21/5/2020 6:11:19 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/create-peer.yml for localhost [21/5/2020 6:11:19 PM] [INFO] TASK [ibm.blockchain_platform_manager : Ensure Docker network exists] ** [21/5/2020 6:11:21 PM] [INFO] ok: [localhost] [21/5/2020 6:11:21 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the user for the peer] **** [21/5/2020 6:11:21 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/register-user.yml for localhost [21/5/2020 6:11:21 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine registrar directory] *** [21/5/2020 6:11:21 PM] [INFO] ok: [localhost] [21/5/2020 6:11:21 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been registered] * [21/5/2020 6:11:22 PM] [INFO] ok: [localhost] [21/5/2020 6:11:22 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the user] *** [21/5/2020 6:11:23 PM] [INFO] changed: [localhost] [21/5/2020 6:11:23 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user for the peer] ** [21/5/2020 6:11:23 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/enroll-user.yml for localhost [21/5/2020 6:11:23 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine identity directory] ** [21/5/2020 6:11:23 PM] [INFO] ok: [localhost] [21/5/2020 6:11:23 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been enrolled] * [21/5/2020 6:11:24 PM] [INFO] ok: [localhost] [21/5/2020 6:11:24 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user] ***** [21/5/2020 6:11:26 PM] [INFO] changed: [localhost] [21/5/2020 6:11:26 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user certificate] [21/5/2020 6:11:26 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/org1peer1/signcerts/cert.pem) [21/5/2020 6:11:26 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user private key] [21/5/2020 6:11:26 PM] [INFO] ok: [localhost] => (item=/network/wallets/Org1/org1peer1/keystore/c4371ffaf8740b7e35ca2ad140e4499e8c3d7425ad2d19872f3c47132e537e45_sk) [21/5/2020 6:11:26 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create identity JSON file] *** [21/5/2020 6:11:26 PM] [INFO] skipping: [localhost] [21/5/2020 6:11:26 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the TLS user for the peer] [21/5/2020 6:11:26 PM] [INFO] skipping: [localhost] [21/5/2020 6:11:26 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the TLS user for the peer] ** [21/5/2020 6:11:26 PM] [INFO] skipping: [localhost] [21/5/2020 6:11:26 PM] [INFO] TASK [ibm.blockchain_platform_manager : Add admin user for the MSP to the peer] * [21/5/2020 6:11:27 PM] [INFO] changed: [localhost] [21/5/2020 6:11:27 PM] [INFO] TASK [ibm.blockchain_platform_manager : Add configuration for the MSP to the peer] * [21/5/2020 6:11:28 PM] [INFO] changed: [localhost] [21/5/2020 6:11:28 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create peer MSP volume] **** [21/5/2020 6:11:30 PM] [INFO] changed: [localhost] [21/5/2020 6:11:30 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create peer TLS volume] **** [21/5/2020 6:11:30 PM] [INFO] skipping: [localhost] [21/5/2020 6:11:30 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create peer data volume] ***** [21/5/2020 6:11:32 PM] [INFO] changed: [localhost] [21/5/2020 6:11:32 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create CouchDB data volume] **** [21/5/2020 6:11:33 PM] [INFO] changed: [localhost] [21/5/2020 6:11:33 PM] [INFO] TASK [ibm.blockchain_platform_manager : Start CouchDB container] ***** [21/5/2020 6:11:38 PM] [INFO] changed: [localhost] [21/5/2020 6:11:38 PM] [INFO] TASK [ibm.blockchain_platform_manager : Wait for CouchDB container to start] * [21/5/2020 6:11:39 PM] [INFO] FAILED - RETRYING: Wait for CouchDB container to start (60 retries left). [21/5/2020 6:11:41 PM] [INFO] FAILED - RETRYING: Wait for CouchDB container to start (59 retries left). [21/5/2020 6:11:43 PM] [INFO] FAILED - RETRYING: Wait for CouchDB container to start (58 retries left). [21/5/2020 6:11:45 PM] [INFO] ok: [localhost] [21/5/2020 6:11:45 PM] [INFO] TASK [ibm.blockchain_platform_manager : Start peer container] ** [21/5/2020 6:11:50 PM] [INFO] changed: [localhost] [21/5/2020 6:11:50 PM] [INFO] TASK [ibm.blockchain_platform_manager : Compare the peer user enrollment with peer container] [21/5/2020 6:11:52 PM] [INFO] ok: [localhost] [21/5/2020 6:11:53 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the peer user enrollment into peer container] [21/5/2020 6:11:54 PM] [INFO] changed: [localhost] [21/5/2020 6:11:54 PM] [INFO] TASK [ibm.blockchain_platform_manager : Compare the peer TLS user enrollment with peer container] [21/5/2020 6:11:54 PM] [INFO] skipping: [localhost] [21/5/2020 6:11:54 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the peer TLS user enrollment into peer container] [21/5/2020 6:11:54 PM] [INFO] skipping: [localhost] [21/5/2020 6:11:54 PM] [INFO] TASK [ibm.blockchain_platform_manager : Restart peer container] **** [21/5/2020 6:11:59 PM] [INFO] changed: [localhost] [21/5/2020 6:11:59 PM] [INFO] TASK [ibm.blockchain_platform_manager : Wait for peer to start] **** [21/5/2020 6:12:00 PM] [INFO] ok: [localhost] [21/5/2020 6:12:00 PM] [INFO] TASK [ibm.blockchain_platform_manager : Update peer facts] **** [21/5/2020 6:12:00 PM] [INFO] ok: [localhost] [21/5/2020 6:12:00 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create node JSON file] [21/5/2020 6:12:02 PM] [INFO] changed: [localhost] [21/5/2020 6:12:02 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create orderer] **** [21/5/2020 6:12:02 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:02 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create nodes directory] **** [21/5/2020 6:12:02 PM] [INFO] changed: [localhost] [21/5/2020 6:12:02 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create wallet directory] ** [21/5/2020 6:12:03 PM] [INFO] changed: [localhost] [21/5/2020 6:12:03 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create gateways directory] [21/5/2020 6:12:04 PM] [INFO] changed: [localhost] [21/5/2020 6:12:04 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority] ** [21/5/2020 6:12:04 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/create-ca.yml for localhost [21/5/2020 6:12:04 PM] [INFO] TASK [ibm.blockchain_platform_manager : Ensure Docker network exists] ** [21/5/2020 6:12:05 PM] [INFO] ok: [localhost] [21/5/2020 6:12:05 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority volume] [21/5/2020 6:12:07 PM] [INFO] changed: [localhost] [21/5/2020 6:12:07 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority container] [21/5/2020 6:12:12 PM] [INFO] changed: [localhost] [21/5/2020 6:12:12 PM] [INFO] TASK [ibm.blockchain_platform_manager : Wait for certificate authority to start] * [21/5/2020 6:12:13 PM] [INFO] ok: [localhost] [21/5/2020 6:12:13 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the CA root certificate] ** [21/5/2020 6:12:14 PM] [INFO] changed: [localhost] [21/5/2020 6:12:14 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the TLS CA root certificate (for all components)] * [21/5/2020 6:12:14 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:14 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the TLS CA root certificate (for the certificate authority component)] * [21/5/2020 6:12:14 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:14 PM] [INFO] TASK [ibm.blockchain_platform_manager : Update certificate authority facts] ** [21/5/2020 6:12:14 PM] [INFO] ok: [localhost] [21/5/2020 6:12:15 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create node JSON file] ***** [21/5/2020 6:12:16 PM] [INFO] changed: [localhost] [21/5/2020 6:12:16 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create MSP] **** [21/5/2020 6:12:16 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/create-msp.yml for localhost [21/5/2020 6:12:16 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the admin user for the certificate authority] * [21/5/2020 6:12:16 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/enroll-user.yml for localhost [21/5/2020 6:12:16 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine identity directory] ** [21/5/2020 6:12:16 PM] [INFO] ok: [localhost] [21/5/2020 6:12:16 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been enrolled] * [21/5/2020 6:12:17 PM] [INFO] ok: [localhost] [21/5/2020 6:12:17 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user] *** [21/5/2020 6:12:18 PM] [INFO] changed: [localhost] [21/5/2020 6:12:18 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user certificate] * [21/5/2020 6:12:18 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/admin/signcerts/cert.pem) [21/5/2020 6:12:18 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user private key] **** [21/5/2020 6:12:18 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/admin/keystore/beb6a51e6e2ce82cf7de2c2092e792db14bc7383bbd14f5b358cb1bd006f0c45_sk) [21/5/2020 6:12:18 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create identity JSON file] [21/5/2020 6:12:19 PM] [INFO] changed: [localhost] [21/5/2020 6:12:19 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the admin user for the TLS certificate authority] * [21/5/2020 6:12:20 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/enroll-user.yml for localhost [21/5/2020 6:12:20 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine identity directory] ** [21/5/2020 6:12:20 PM] [INFO] ok: [localhost] [21/5/2020 6:12:20 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been enrolled] * [21/5/2020 6:12:20 PM] [INFO] ok: [localhost] [21/5/2020 6:12:20 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user] *** [21/5/2020 6:12:20 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:20 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user certificate] * [21/5/2020 6:12:20 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/admin/signcerts/cert.pem) [21/5/2020 6:12:21 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user private key] **** [21/5/2020 6:12:21 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/admin/keystore/beb6a51e6e2ce82cf7de2c2092e792db14bc7383bbd14f5b358cb1bd006f0c45_sk) [21/5/2020 6:12:21 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create identity JSON file] [21/5/2020 6:12:22 PM] [INFO] ok: [localhost] [21/5/2020 6:12:22 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the admin user for the MSP] * [21/5/2020 6:12:22 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/register-user.yml for localhost [21/5/2020 6:12:22 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine registrar directory] *** [21/5/2020 6:12:22 PM] [INFO] ok: [localhost] [21/5/2020 6:12:22 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been registered] * [21/5/2020 6:12:28 PM] [INFO] ok: [localhost] [21/5/2020 6:12:28 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the user] *** [21/5/2020 6:12:29 PM] [INFO] changed: [localhost] [21/5/2020 6:12:29 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the admin user for the MSP] * [21/5/2020 6:12:29 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/enroll-user.yml for localhost [21/5/2020 6:12:29 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine identity directory] **** [21/5/2020 6:12:29 PM] [INFO] ok: [localhost] [21/5/2020 6:12:29 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been enrolled] * [21/5/2020 6:12:30 PM] [INFO] ok: [localhost] [21/5/2020 6:12:30 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user] *** [21/5/2020 6:12:31 PM] [INFO] changed: [localhost] [21/5/2020 6:12:31 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user certificate] * [21/5/2020 6:12:32 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/ordererAdmin/signcerts/cert.pem) [21/5/2020 6:12:32 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user private key] **** [21/5/2020 6:12:32 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/ordererAdmin/keystore/13f35c3c7faf8fd1bc15cb26ddfbb29ca5873b7509f6de5b907bd25532dcf960_sk) [21/5/2020 6:12:32 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create identity JSON file] [21/5/2020 6:12:33 PM] [INFO] changed: [localhost] [21/5/2020 6:12:33 PM] [INFO] TASK [ibm.blockchain_platform_manager : Ensure admin certificate directory exists] [21/5/2020 6:12:34 PM] [INFO] changed: [localhost] [21/5/2020 6:12:34 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy admin user certificate into admin certificate directory] [21/5/2020 6:12:35 PM] [INFO] changed: [localhost] => (item=/network/wallets/Orderer/ordererAdmin/signcerts/cert.pem) [21/5/2020 6:12:35 PM] [INFO] TASK [ibm.blockchain_platform_manager : Gather root certificates] ** [21/5/2020 6:12:35 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/root.pem) [21/5/2020 6:12:35 PM] [INFO] TASK [ibm.blockchain_platform_manager : Gather TLS root certificates] ** [21/5/2020 6:12:35 PM] [INFO] TASK [ibm.blockchain_platform_manager : Gather admin user certificates] **** [21/5/2020 6:12:35 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/ordererAdmin/signcerts/cert.pem) [21/5/2020 6:12:35 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create MSP in infrastructure] ** [21/5/2020 6:12:35 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/create-msp.yml for localhost [21/5/2020 6:12:35 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create all peers] ** [21/5/2020 6:12:35 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:35 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create orderer] **** [21/5/2020 6:12:36 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/create-orderer.yml for localhost [21/5/2020 6:12:36 PM] [INFO] TASK [ibm.blockchain_platform_manager : Ensure Docker network exists] ** [21/5/2020 6:12:37 PM] [INFO] ok: [localhost] [21/5/2020 6:12:37 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the user for the orderer] * [21/5/2020 6:12:37 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/register-user.yml for localhost [21/5/2020 6:12:37 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine registrar directory] ***** [21/5/2020 6:12:37 PM] [INFO] ok: [localhost] [21/5/2020 6:12:37 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been registered] * [21/5/2020 6:12:38 PM] [INFO] ok: [localhost] [21/5/2020 6:12:38 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the user] *** [21/5/2020 6:12:39 PM] [INFO] changed: [localhost] [21/5/2020 6:12:39 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user for the orderer] * [21/5/2020 6:12:39 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/enroll-user.yml for localhost [21/5/2020 6:12:39 PM] [INFO] TASK [ibm.blockchain_platform_manager : Determine identity directory] ** [21/5/2020 6:12:39 PM] [INFO] ok: [localhost] [21/5/2020 6:12:39 PM] [INFO] TASK [ibm.blockchain_platform_manager : Check to see if the user has been enrolled] * [21/5/2020 6:12:40 PM] [INFO] ok: [localhost] [21/5/2020 6:12:40 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the user] *** [21/5/2020 6:12:41 PM] [INFO] changed: [localhost] [21/5/2020 6:12:41 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user certificate] * [21/5/2020 6:12:41 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/orderer/signcerts/cert.pem) [21/5/2020 6:12:41 PM] [INFO] TASK [ibm.blockchain_platform_manager : Load user private key] **** [21/5/2020 6:12:41 PM] [INFO] ok: [localhost] => (item=/network/wallets/Orderer/orderer/keystore/deabf4c27cac87dac13e6bdd0c625b2185a28822771eb0fd12b383787ada2b5b_sk) [21/5/2020 6:12:41 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create identity JSON file] [21/5/2020 6:12:41 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:41 PM] [INFO] TASK [ibm.blockchain_platform_manager : Register the TLS user for the orderer] [21/5/2020 6:12:41 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:41 PM] [INFO] TASK [ibm.blockchain_platform_manager : Enroll the TLS user for the orderer] [21/5/2020 6:12:41 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:41 PM] [INFO] TASK [ibm.blockchain_platform_manager : Add admin user for the MSP to the orderer] [21/5/2020 6:12:42 PM] [INFO] changed: [localhost] [21/5/2020 6:12:43 PM] [INFO] TASK [ibm.blockchain_platform_manager : Add TLS CA root certificates for the MSP to the orderer] [21/5/2020 6:12:43 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:43 PM] [INFO] TASK [ibm.blockchain_platform_manager : Add configuration for the MSP to the orderer] * [21/5/2020 6:12:44 PM] [INFO] changed: [localhost] [21/5/2020 6:12:44 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create orderer MSP volume] *** [21/5/2020 6:12:45 PM] [INFO] changed: [localhost] [21/5/2020 6:12:45 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create orderer TLS volume] * [21/5/2020 6:12:47 PM] [INFO] changed: [localhost] [21/5/2020 6:12:47 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create orderer data volume] **** [21/5/2020 6:12:48 PM] [INFO] changed: [localhost] [21/5/2020 6:12:48 PM] [INFO] TASK [ibm.blockchain_platform_manager : Start orderer container] *** [21/5/2020 6:12:53 PM] [INFO] changed: [localhost] [21/5/2020 6:12:53 PM] [INFO] TASK [ibm.blockchain_platform_manager : Compare the orderer user enrollment with orderer container] [21/5/2020 6:12:54 PM] [INFO] ok: [localhost] [21/5/2020 6:12:54 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the orderer user enrollment into orderer container] [21/5/2020 6:12:56 PM] [INFO] changed: [localhost] [21/5/2020 6:12:56 PM] [INFO] TASK [ibm.blockchain_platform_manager : Compare the orderer TLS user enrollment with orderer container] [21/5/2020 6:12:56 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:56 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the orderer TLS user enrollment into orderer container] [21/5/2020 6:12:56 PM] [INFO] skipping: [localhost] [21/5/2020 6:12:56 PM] [INFO] TASK [ibm.blockchain_platform_manager : Test for orderer genesis block in orderer container] [21/5/2020 6:12:57 PM] [INFO] ok: [localhost] [21/5/2020 6:12:57 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create orderer genesis block configuration file] [21/5/2020 6:12:58 PM] [INFO] changed: [localhost] [21/5/2020 6:12:58 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create orderer genesis block] ** [21/5/2020 6:12:59 PM] [INFO] changed: [localhost] [21/5/2020 6:12:59 PM] [INFO] TASK [ibm.blockchain_platform_manager : Copy the orderer genesis block into orderer container] * [21/5/2020 6:13:00 PM] [INFO] changed: [localhost] [21/5/2020 6:13:00 PM] [INFO] TASK [ibm.blockchain_platform_manager : Restart orderer container] *** [21/5/2020 6:13:04 PM] [INFO] changed: [localhost] [21/5/2020 6:13:04 PM] [INFO] TASK [ibm.blockchain_platform_manager : Wait for orderer to start] * [21/5/2020 6:13:05 PM] [INFO] ok: [localhost] [21/5/2020 6:13:05 PM] [INFO] TASK [ibm.blockchain_platform_manager : Update orderer facts] ** [21/5/2020 6:13:05 PM] [INFO] ok: [localhost] [21/5/2020 6:13:05 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create node JSON file] ***** [21/5/2020 6:13:06 PM] [INFO] changed: [localhost] [21/5/2020 6:13:07 PM] [INFO] TASK [ibm.blockchain_platform_manager : Delete all organisations] ** [21/5/2020 6:13:07 PM] [INFO] skipping: [localhost] => (item={'msp': {'id': 'Org1MSP', 'admin': {'identity': 'org1Admin', 'secret': 'org1Adminpw'}}, 'ca': {'id': 'Org1CA', 'admin_identity': 'admin', 'admin_secret': 'adminpw', 'tls': {'enabled': False}, 'docker': {'name': '1OrgLocalFabric_ca.org1.example.com', 'hostname': 'ca.org1.example.com', 'port': 17050}}, 'peers': [{'id': 'Org1Peer1', 'identity': 'org1peer1', 'secret': 'org1peer1pw', 'database_type': 'couchdb', 'tls': {'enabled': False}, 'docker': {'name': '1OrgLocalFabric_peer0.org1.example.com', 'hostname': 'peer0.org1.example.com', 'port': 17051, 'chaincode_name_prefix': '1OrgLocalFabric', 'chaincode_port': 17052, 'operations_port': 17053, 'couchdb': {'name': '1OrgLocalFabric_couchdb0.org1.example.com', 'hostname': 'couchdb0.org1.example.com', 'port': 17054}}}], 'nodes': '/network/nodes/Org1', 'wallet': '/network/wallets/Org1', 'gateways': '/network/gateways/Org1'}) [21/5/2020 6:13:07 PM] [INFO] skipping: [localhost] => (item={'msp': {'id': 'OrdererMSP', 'admin': {'identity': 'ordererAdmin', 'secret': 'ordererAdminpw'}}, 'ca': {'id': 'OrdererCA', 'admin_identity': 'admin', 'admin_secret': 'adminpw', 'tls': {'enabled': False}, 'docker': {'name': '1OrgLocalFabric_ca.orderer.example.com', 'hostname': 'ca.orderer.example.com', 'port': 17055}}, 'orderer': {'id': 'Orderer', 'identity': 'orderer', 'secret': 'ordererpw', 'tls': {'enabled': False}, 'consortium': {'members': [{'msp': {'id': 'Org1MSP', 'admin': {'identity': 'org1Admin', 'secret': 'org1Adminpw'}}, 'ca': {'id': 'Org1CA', 'admin_identity': 'admin', 'admin_secret': 'adminpw', 'tls': {'enabled': False}, 'docker': {'name': '1OrgLocalFabric_ca.org1.example.com', 'hostname': 'ca.org1.example.com', 'port': 17050}}, 'peers': [{'id': 'Org1Peer1', 'identity': 'org1peer1', 'secret': 'org1peer1pw', 'database_type': 'couchdb', 'tls': {'enabled': False}, 'docker': {'name': '1OrgLocalFabric_peer0.org1.example.com', 'hostname': 'peer0.org1.example.com', 'port': 17051, 'chaincode_name_prefix': '1OrgLocalFabric', 'chaincode_port': 17052, 'operations_port': 17053, 'couchdb': {'name': '1OrgLocalFabric_couchdb0.org1.example.com', 'hostname': 'couchdb0.org1.example.com', 'port': 17054}}}], 'nodes': '/network/nodes/Org1', 'wallet': '/network/wallets/Org1', 'gateways': '/network/gateways/Org1'}]}, 'docker': {'name': '1OrgLocalFabric_orderer.example.com', 'hostname': 'orderer.example.com', 'port': 17056, 'operations_port': 17057}}, 'nodes': '/network/nodes/Orderer', 'wallet': '/network/wallets/Orderer', 'gateways': '/network/gateways/Orderer'}) [21/5/2020 6:13:07 PM] [INFO] TASK [ibm.blockchain_platform_manager : Manage all consortiums] **** [21/5/2020 6:13:07 PM] [INFO] skipping: [localhost] => (item={'msp': {'id': 'Org1MSP', 'admin': {'identity': 'org1Admin', 'secret': 'org1Adminpw'}}, 'ca': {'id': 'Org1CA', 'admin_identity': 'admin', 'admin_secret': 'adminpw', 'tls': {'enabled': False}, 'docker': {'name': '1OrgLocalFabric_ca.org1.example.com', 'hostname': 'ca.org1.example.com', 'port': 17050}}, 'peers': [{'id': 'Org1Peer1', 'identity': 'org1peer1', 'secret': 'org1peer1pw', 'database_type': 'couchdb', 'tls': {'enabled': False}, 'docker': {'name': '1OrgLocalFabric_peer0.org1.example.com', 'hostname': 'peer0.org1.example.com', 'port': 17051, 'chaincode_name_prefix': '1OrgLocalFabric', 'chaincode_port': 17052, 'operations_port': 17053, 'couchdb': {'name': '1OrgLocalFabric_couchdb0.org1.example.com', 'hostname': 'couchdb0.org1.example.com', 'port': 17054}}}], 'nodes': '/network/nodes/Org1', 'wallet': '/network/wallets/Org1', 'gateways': '/network/gateways/Org1'}) [21/5/2020 6:13:07 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/manage-consortium.yml for localhost [21/5/2020 6:13:07 PM] [INFO] TASK [ibm.blockchain_platformmanager : Retrieve current system channel configuration block] *** [21/5/2020 6:13:11 PM] [INFO] fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["peer", "channel", "fetch", "config", "/tmp/ansible.u3g7q4j/config_block.pb", "-o", "localhost:17056", "-c", "testchainid", "--ordererTLSHostnameOverride", "orderer.example.com"], "delta": "0:00:03.126589", "end": "2020-05-21 12:43:11.018720", "msg": "non-zero return code", "rc": 1, "start": "2020-05-21 12:43:07.892131", "stderr": "Error: failed to create deliver client: orderer client failed to connect to localhost:17056: failed to create new connection: context deadline exceeded", "stderr_lines": ["Error: failed to create deliver client: orderer client failed to connect to localhost:17056: failed to create new connection: context deadline exceeded"], "stdout": "", "stdout_lines": []} [21/5/2020 6:13:11 PM] [INFO] PLAY RECAP ***** [21/5/2020 6:13:11 PM] [INFO] localhost : ok=143 changed=54 unreachable=0 failed=1 skipped=23 rescued=0 ignored=0
[21/5/2020 6:13:16 PM] [ERROR] Failed to start 1 Org Local Fabric: Error: Failed to execute command "/bin/sh" with arguments "generate.sh" return code 2 [21/5/2020 6:13:17 PM] [SUCCESS] Connected to 1 Org Local Fabric

Sorrry I got the same error but above mentioned solution didnt work for me. I think there is some mistakes in creating channels.

Originally posted by @pavanbhat1999 in https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2000#issuecomment-632073165

@pratikpatil024 I got similar error but it is failing to create connections.

hakobjan commented 4 years ago

Hello @horeaporutiu , actually the problem was I already had a docker network called 1orglocalfabric. So I removed it by: $ docker network rm 1OrgLocalFabric_network and then it worked.

Thanks for your help Pratik

Hi, when I copy past the docker rm command in the terminal I get the following error Error response from daemon: network 1OrgLocalFabric_network is ambiguous (2 matches found based on name) what am I doing wrong?

pratikspatil024 commented 4 years ago

@hakobjan there is nothing wrong in it. You just have 2 docker containers with name "1OrgLocalFabric_network" running. So you can remove both of them one by one using their id.

hakobjan commented 4 years ago

@hakobjan there is nothing wrong in it. You just have 2 docker containers with name "1OrgLocalFabric_network" running. So you can remove both of them one by one using their id.

yes, docker network prune --force --filter until=5m did the trick, thank you :)

pranikamassey commented 4 years ago

Hello @horeaporutiu I am getting the same error after I start the local fabric by clicking on 1 Org Local Fabric in the FABRIC ENVIRONMENTS pane. I am on vscode version 1.48.0 Node.js: v10.19.0 npm: 6.14.4 Docker: 19.03.8 Docker Compose: 1.25.0 Can you please help me out?

My logs are:

[18/8/2020 5:23:26 am] [INFO] Starting IBM Blockchain Platform Extension [18/8/2020 5:23:33 am] [INFO] Attempting to require dependency: grpc [18/8/2020 5:23:34 am] [INFO] Restoring command registry [18/8/2020 5:23:39 am] [INFO] Registering commands [18/8/2020 5:23:39 am] [INFO] Execute stored commands in the registry [18/8/2020 5:23:39 am] [INFO] IBM Blockchain Platform Extension activated [18/8/2020 5:23:51 am] [INFO] connecting to fabric environment [18/8/2020 5:23:51 am] [INFO] startFabricRuntime [18/8/2020 5:23:51 am] [INFO] fix_permissions () { [18/8/2020 5:23:51 am] [INFO] docker run --rm -v "$PWD":/network ibmblockchain/vscode-prereqs:0.0.16 chown -R $(id -u):$(id -g) /network [18/8/2020 5:23:51 am] [INFO] } [18/8/2020 5:23:51 am] [INFO] trap fix_permissions EXIT [18/8/2020 5:23:51 am] [INFO] docker run --rm -v "$PWD":/network -v /var/run/docker.sock:/var/run/docker.sock --network host ibmblockchain/vscode-prereqs:0.0.16 ansible-playbook /network/playbook.yml [18/8/2020 5:23:51 am] [INFO] docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied. [18/8/2020 5:23:51 am] [INFO] See 'docker run --help'. [18/8/2020 5:23:51 am] [INFO] docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied. [18/8/2020 5:23:51 am] [INFO] See 'docker run --help'. [18/8/2020 5:23:53 am] [ERROR] Failed to start 1 Org Local Fabric: Error: Failed to execute command "/bin/sh" with arguments "generate.sh" return code 126

@pratikpatil024 can you please suggest something

pratikspatil024 commented 4 years ago

@pranikamassey can you check if you have docker network "1OrgLocalFabric_network" already running? It might be the case that more than one network with the same name mentioned above could be running. Just stop and remove them. And try again.

pranikamassey commented 4 years ago

@pratikpatil024 I checked this it says no such network. I also tried "docker network ls" too... But 1OrgLocalFabric_network is not running. Can you please suggest something I am not able to find the issue

$ sudo docker network ls [sudo] password for pranika: NETWORK ID NAME DRIVER SCOPE bd005494b4b4 bridge bridge local 199927de344b host host local b608ab7724b3 none null local $ sudo docker network rm 1OrgLocalFabric_network Error: No such network: 1OrgLocalFabric_network $ sudo docker network rm bd005494b4b4 Error response from daemon: bridge is a pre-defined network and cannot be removed $ sudo docker network rm 199927de344b Error response from daemon: host is a pre-defined network and cannot be removed $ sudo docker network rm b608ab7724b3 Error response from daemon: none is a pre-defined network and cannot be removed

MUKESHBADIGINENI commented 3 years ago

Tear Down your environment and try this. sudo chmod 666 /var/run/docker.sock then "start" the envirnoment.

image image

deep216 commented 3 years ago

Thanks @MUKESHBADIGINENI sudo chmod 666 /var/run/docker.sock worked for me as well.

PhilipGuadalquiver commented 2 years ago

[5/21/2022 1:09:56 PM] [INFO] included: /etc/ansible/roles/ibm.blockchain_platform_manager/tasks/docker/create-ca.yml for localhost [5/21/2022 1:09:56 PM] [INFO] TASK [ibm.blockchain_platform_manager : Ensure Docker network exists] ** [5/21/2022 1:09:57 PM] [INFO] changed: [localhost] [5/21/2022 1:09:57 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority volume] [5/21/2022 1:09:58 PM] [INFO] changed: [localhost] [5/21/2022 1:09:58 PM] [INFO] TASK [ibm.blockchain_platform_manager : Create certificate authority container] [5/21/2022 1:10:12 PM] [INFO] changed: [localhost] [5/21/2022 1:10:13 PM] [INFO] TASK [ibm.blockchain_platform_manager : Wait for certificate authority to start] * [5/21/2022 1:10:13 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (60 retries left). [5/21/2022 1:10:15 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (59 retries left). [5/21/2022 1:10:16 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (58 retries left). [5/21/2022 1:10:18 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (57 retries left). [5/21/2022 1:10:19 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (56 retries left). [5/21/2022 1:10:21 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (55 retries left). [5/21/2022 1:10:22 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (54 retries left). [5/21/2022 1:10:23 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (53 retries left). [5/21/2022 1:10:25 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (52 retries left). [5/21/2022 1:10:26 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (51 retries left). [5/21/2022 1:10:28 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (50 retries left). [5/21/2022 1:10:29 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (49 retries left). [5/21/2022 1:10:31 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (48 retries left). [5/21/2022 1:10:32 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (47 retries left). [5/21/2022 1:10:33 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (46 retries left). [5/21/2022 1:10:35 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (45 retries left). [5/21/2022 1:10:36 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (44 retries left). [5/21/2022 1:10:38 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (43 retries left). [5/21/2022 1:10:39 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (42 retries left). [5/21/2022 1:10:40 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (41 retries left). [5/21/2022 1:10:42 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (40 retries left). [5/21/2022 1:10:43 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (39 retries left). [5/21/2022 1:10:45 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (38 retries left). [5/21/2022 1:10:46 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (37 retries left). [5/21/2022 1:10:48 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (36 retries left). [5/21/2022 1:10:49 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (35 retries left). [5/21/2022 1:10:51 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (34 retries left). [5/21/2022 1:10:52 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (33 retries left). [5/21/2022 1:10:54 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (32 retries left). [5/21/2022 1:10:55 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (31 retries left). [5/21/2022 1:10:57 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (30 retries left). [5/21/2022 1:10:58 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (29 retries left). [5/21/2022 1:10:59 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (28 retries left). [5/21/2022 1:11:01 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (27 retries left). [5/21/2022 1:11:02 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (26 retries left). [5/21/2022 1:11:04 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (25 retries left). [5/21/2022 1:11:05 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (24 retries left). [5/21/2022 1:11:06 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (23 retries left). [5/21/2022 1:11:08 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (22 retries left). [5/21/2022 1:11:09 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (21 retries left). [5/21/2022 1:11:11 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (20 retries left). [5/21/2022 1:11:12 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (19 retries left). [5/21/2022 1:11:14 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (18 retries left). [5/21/2022 1:11:15 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (17 retries left). [5/21/2022 1:11:16 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (16 retries left). [5/21/2022 1:11:18 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (15 retries left). [5/21/2022 1:11:19 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (14 retries left). [5/21/2022 1:11:21 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (13 retries left). [5/21/2022 1:11:22 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (12 retries left). [5/21/2022 1:11:24 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (11 retries left). [5/21/2022 1:11:25 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (10 retries left). [5/21/2022 1:11:27 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (9 retries left). [5/21/2022 1:11:28 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (8 retries left). [5/21/2022 1:11:29 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (7 retries left). [5/21/2022 1:11:31 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (6 retries left). [5/21/2022 1:11:32 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (5 retries left). [5/21/2022 1:11:34 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (4 retries left). [5/21/2022 1:11:35 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (3 retries left). [5/21/2022 1:11:37 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (2 retries left). [5/21/2022 1:11:38 PM] [INFO] FAILED - RETRYING: Wait for certificate authority to start (1 retries left). [5/21/2022 1:11:40 PM] [INFO] fatal: [localhost]: FAILED! => {"attempts": 60, "changed": false, "content": "", "elapsed": 0, "msg": "Status code was -1 and not [200]: Request failed: <urlopen error [Errno 111] Connection refused>", "redirected": false, "status": -1, "url": "http://localhost:17050/cainfo"} [5/21/2022 1:11:40 PM] [INFO] PLAY RECAP *** [5/21/2022 1:11:40 PM] [INFO] localhost : ok=13 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
[5/21/2022 1:11:40 PM] [INFO] C:\Users\P H I L I P.fabric-vscode\environments\1 Org Local Fabric>if 2 NEQ 0 (exit /b 2 ) [5/21/2022 1:11:40 PM] [ERROR] Failed to start 1 Org Local Fabric: Error: Failed to execute command "cmd" with arguments "/c, generate.cmd" return code 2

How to fix this error?

PhilipGuadalquiver commented 2 years ago

image