I am running a local instance of the BYFN network from the fabric-samples repo with the following command:
git checkout tags/v1.4.6
cd first-network
./byfn.sh up -a -n -i 1.4.6
I am then trying to connect with IBP VS Code extension using the following nodes file I created based on the created Network:
[
{
"name": "peer0.org1.example.com",
"api_url": "grpcs://localhost:7051",
"type": "fabric-peer",
"msp_id": "Org1MSP",
"pem": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNWekNDQWY2Z0F3SUJBZ0lSQU10NWtsWVhDbFJYaVYvVTJ6d0pvSEl3Q2dZSUtvWkl6ajBFQXdJd2RqRUwKTUFrR0ExVUVCaE1DVlZNeEV6QVJCZ05WQkFnVENrTmhiR2xtYjNKdWFXRXhGakFVQmdOVkJBY1REVk5oYmlCRwpjbUZ1WTJselkyOHhHVEFYQmdOVkJBb1RFRzl5WnpFdVpYaGhiWEJzWlM1amIyMHhIekFkQmdOVkJBTVRGblJzCmMyTmhMbTl5WnpFdVpYaGhiWEJzWlM1amIyMHdIaGNOTWpBeE1qSXpNVFkxTmpBd1doY05NekF4TWpJeE1UWTEKTmpBd1dqQjJNUXN3Q1FZRFZRUUdFd0pWVXpFVE1CRUdBMVVFQ0JNS1EyRnNhV1p2Y201cFlURVdNQlFHQTFVRQpCeE1OVTJGdUlFWnlZVzVqYVhOamJ6RVpNQmNHQTFVRUNoTVFiM0puTVM1bGVHRnRjR3hsTG1OdmJURWZNQjBHCkExVUVBeE1XZEd4elkyRXViM0puTVM1bGVHRnRjR3hsTG1OdmJUQlpNQk1HQnlxR1NNNDlBZ0VHQ0NxR1NNNDkKQXdFSEEwSUFCQ1dRVDM4aHlFL1pseDdxU0tMS0pRcnpJNTZSYUp6cnZLY1B6Tm1xc2k5dmRJNmFuRE9QekRzMgpOWHVHeGJTY3drLzR5a3Rac3E2cFg5VjFVU2VqaHN1amJUQnJNQTRHQTFVZER3RUIvd1FFQXdJQnBqQWRCZ05WCkhTVUVGakFVQmdnckJnRUZCUWNEQWdZSUt3WUJCUVVIQXdFd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OVkhTVUVGakFVCkJnZ3JCZ0VGQlFjREFnWUlLd1lCQlFVSEF3RXdEd1lEVlIwVEFRSC9CQVV3QXdFQi96QXBCZ05WSFE0RUlnUWcKUXJXTllISDV0VWhHUkFneDI1aWsxdXJQSUNKRkxjVGg4YnJMcjdXTy83c3dDZ1lJS29aSXpqMEVBd0lEUndBdwpSQUlnTGJSc3EvaEcveG9pMjc4eFZDdmQxQXpXY0JWNUdsTG51TjlzZmlSdW5Ka0NJRFAxSksxOTIwaXFTZlBKCmQ4TnBDb1VJME5MQmtZNnNrYkQ2T3FvbUs5TjQKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=",
"enroll_id": "admin",
"enroll_secret": "adminpw"
}
]
The pem
for peer*.org*.example.com
is the base64 encoded version of the certificate in
first-network/crypto-config/peerOrganizations/org*.example.com/tlsca/tlsca.org*.example.com-cert.pem
The pem
for orderer.example.com
is the base64 encoded version of the certificate in
first-network/crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem
The pem
for ca.org*.example.com
is the base64 encoded version of the certificate in
first-network/crypto-config/peerOrganizations/org*.example.com/ca/ca.org*.example.com-cert.pem
Next, I am creating the wallets for Org1, Org2 and Orderer by providing the signcerts
and keystore
files in
first-network/crypto-config/(peer|orderer)Organizations/org*.example.com/users/Admin@org*.example.com/msp
For CA, I chose the option use ID and secret to enroll a new identity
to create new identities in Org1 and Org2 wallets. Now, when I try to connect to the environment, the extension is giving the error below:
Error connecting to environment Byfn: Error querying channels: 14 UNAVAILABLE: failed to connect to all addresses
As an aside, I am able to import the connection-org*.json
files to create a new gateway and see the channel in the extension, but an not able to create a new environment to install/instantiate new chaincodes.
Extension Version: v1.0.40
How do I resolve this issue and connect the VS Code extension to my local BYFN network ?
Solution mentioned by @david_k below works. For the sake of completeness, here's my updated files:
nodes.json
[
{
"name": "peer0.org1.example.com",
"api_url": "grpcs://peer0.org1.example.com:7051",
"type": "fabric-peer",
"msp_id": "Org1MSP",
"pem": "L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VY0cVdCL3V4Y1hiNDRhSzE5dUdXcWk1UEpsZjY3b0p3SHNidEF6REhuR0dlaVkvcWNMaApQVEQwZUhqOHQ1YkVCK24rVFhoOFNhTnRNR3N3RGdZRFZSMFBBUUgvQkFRREFnR21NQjBHQTFVZEpRUVdNQlFHCkNDc0dBUVVGQndNQ0JnZ3JCZ0VGQlFjREFUQVBCZ05WSFJNQkFmOEVCVEFEQVFIL01Da0dBMVVkRGdRaUJDQ0MKTHQ1dUFlWmZMQ1dRZi9HbjQxdTZaR3BnS0ZUaGNOd1NHbllraWF4OWN6QUtCZ2dxaGtqT1BRUURBZ05IQURCRQpBaUFsYUhoSVh0VFhHY2k0RjBsVTVtR1BEb3VqbWZwbm5USEFOVXoyRGUvSzRnSWdFZnMrRWE0eG9IR1pOUE45ClcyYzVwTjFhU3g1Mm5CTGFRQUhjWEkrME00bz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=",
"enroll_id": "admin",
"enroll_secret": "adminpw"
},
{
"name": "orderer.example.com",
"api_url": "grpcs://orderer.example.com:7050",
"type": "fabric-orderer",
"msp_id": "OrdererMSP",
"pem": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNRekNDQWVxZ0F3SUJBZ0lSQUtNSmd3dkloS1IxamtndXhIYlE1eHd3Q2dZSUtvWkl6ajBFQXdJd2JERUwKTUFrR0ExVUVCaE1DVlZNeEV6QVJCZ05WQkFnVENrTmhiR2xtYjNKdWFXRXhGakFVQmdOVkJBY1REVk5oYmlCRwpjbUZ1WTJselkyOHhGREFTQmdOVkJBb1RDMlY0WVcxd2JHVXVZMjl0TVJvd0dBWURWUVFERXhGMGJITmpZUzVsCmVHRnRjR3hsTG1OdmJUQWVGdzB5TURFeU1qUXhOVEl6TURCYUZ3MHpNREV5TWpJeE5USXpNREJhTUd3eEN6QUoKQmdOVkJBWVRBbFZUTVJNd0VRWURWUVFJRXdwRFlXeHBabTl5Ym1saE1SWXdGQVlEVlFR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dadlJyMEFJWHAwU0xycHd1TXdDZ1lJS29aSXpqMEVBd0lEUndBdwpSQUlnRmpGUXJjODk1UFN2TFZBcHhacGV6RUVpSzJsZjJuaC9PRWNoQVlUVWFZd0NJQ2FadmI4eDhhU2l0Qmx2Cmk3SEhyQlVBV0c5MUpCTXkyWTdWUjNRR0NmZ0YKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=",
"enroll_id": "admin",
"enroll_secret": "adminpw"
}
]
/etc/hosts
127.0.0.1 localhost peer0.org1.example.com peer1.org1.example.com peer0.org2.example.com peer1.org2.example.com orderer.example.com ca.org1.example.com ca.org2.example.com
...
The problem is the TLS certs will have hostnames such as "peer0.org1.example.com" and yet you are declaring the remote host as "localhost" in the node files and as they don't match, the TLS connection will fail. The reason it works for the connection profiles is that they have the option to specify a hostname override.
As far as I know you don't have that option in the blockchain extension node files. But you can easily solve the problem by updating your hosts (/etc/hosts) file to map names such as peer0.org1.example.com, peer1.org1.example.com to localhost. Then you can change your node files to use the expected host names rather than localhost.