We have established a business network using Hyperledger composer and created participant card by creating peers.
When we try to connect the peer to a different machine in the local after importing participant card then I'm getting the following error
Error: Error trying login and get user Context. Error: Error trying to
enroll user or load channel configuration. Error: Enrollment failed
with errors [[{"code":400,"message":"Authorization failure"}]]
Business network is created in the mac machine and both machine are connected in the same wi-fi. Please help us to establish connection.
Check the connection profile that you are using. See documentation. By default, the connection profile assumes that you are running everything on the same machine by using localhost as the HOST.
If you are using the basic Fabric network in the single organisation tutorial, you can make use of their script to point the machines to the correct IP address or host domain by running the following command to generate the peer admin card with the correct connection profile
./createPeerAdminCard.sh --host {{HOST}}
Remember to replace {{HOST}} with the correct IP address or host domain like 192.168.1.1 or fabric-endpoint.example.com.
Once you have the correct connection profile in the peer admin card, all other business network cards generated will have the same connection profile and it would work.
Related
I am trying to connect Hyperledger Explorer with my fabric network hosted on Oracle Blockchain Service. To my surprise, service discovery is finding an orderer that does not belong to my network and gets timed out while retrieving the data. After looking into the codebase, I found that any orderer defined in the connection.yaml is not looked up. Can we override the discovered orderer with the orderer defined in my connection.yaml?
Discovery returns the orderers from the channel configuration which is specified in the configtx.yaml.
Issue a config update transaction that changes the endpoints and it'll fix it.
Do you have any idea how am I going to connect 2 existing organizations from different machines using the existing channel of 1 organizations. Here is what I have as of now, Org1 is running in VM1 and Org2 is running in VM2 with both have there own chaincode installed. What I am trying to do is to connect Org2 to Org1 to a channel of Org1. I don't have any idea how am I going to do it since currently the only example that I have is only using the same VM. Thank you.
You can connect them through the channel.
Suppose that you have already all the url exposed of each components (peer, orderer ..) and that org1 hold the channel. You simply need give to org2 the right to join the existing channel.
Here a guide:
https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html
based on what you said, you should start the tutorial from the section "Generate the Org3 Crypto Material".
To connect organizations on different hosts, you'll need to create a Docker Swarm. Once you have all the hosts joined to docker swarm, you'll need to create an overlay network and make your containers join this overlay network.
You can start following this blog that describes a simple configuration for multiple hosts. For further reference, you can refer to this SO answer.
For deployment using Kubernetes, you can refer to this medium blog.
When I am in the office, I can connect to my Kubernetes cluster that is on my Azure account without an issue.
At home, on my home network or connected to my corporate VPN, all worked until a couple days ago. All of a sudden, I'd get either:
Unable to connect to the server: x509: certificate signed by unknown authority (mostly)
or
Unable to connect to the server: net/http: TLS handshake timeout
On every KUBECTL command (kubectl get pod for example)
Is there any reason why this would happen and depend on the network I'm connected to? With VPN, I have access to the same resources.
I'm using a Windows 10 machine and I'm using powershell to connect to the cluster.
I'm trying to set up a 3-organization network, with users of each org connecting to their own peer over a REST interface.
In the examples I've seen for single-org networks, the rest connection is made to localhost, i.e. the host of all the Docker containers. In a multi-org network, what should I be trying to connect the REST interface to from the client, is it the peer of that org, i.e. peer0.org1 etc?
I have deployed [two org hyperledger fabric network1. Now I want to integrate it with hyperledger Cello. I have installed it, now I am bit confused what values shall I put in Add host fields as per my installed network(please refer to link regarding peer ip and port). Its just a simple network on my local machine with docker(not swarm or kubernetes).
Cello is used to deploy fabric network you can find the container configuration file in fabric.solo.yaml
once you add your host go to chain tab and add new chain network
write on your terminal docker ps you will find the container created