fabric-tools | Some scripts for configuring and deploying the fabric | Continuous Deployment library
kandi X-RAY | fabric-tools Summary
kandi X-RAY | fabric-tools Summary
Some scripts for configuring and deploying the fabric network.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fabric-tools
fabric-tools Key Features
fabric-tools Examples and Code Snippets
Community Discussions
Trending Discussions on fabric-tools
QUESTION
I am trying to set up a Hyperledger Fabric Network with Hyperledger Explorer. I spin up a VM on the digital ocean cloud with ubuntu OS. From there, I spin up 3 orderers node, and 2 peers node. Which result in total of 5 nodes. (I am using RAFT setup).
However, I encounter the error as below when trying to start the hyperledger fabric explorer docker-container images.
Error: ...ANSWER
Answered 2021-Feb-20 at 23:54All configurations seems good, however you have to upgrade explorer version to be compatible with hyperledger fabric version.
So please use v1.1.4 instead of v1.1.1
Also make sure that you have mounted crypto config correctly, try to access this path inside the container /tmp/crypto/peerOrganizations/acme.com/tlsca/tlsca.acme.com-cert.pem
Try to change tlsCACerts
path to use peer tls ca.crt
/tmp/crypto/peerOrganizations/acme.com/peers/peer1.acme.com/tls/ca.crt
You have mentioned that the same configurations works with hyperledger fabric v2, if you have tried it locally not on the same server so I please disable the firewall on the server and give it a try
To check if you can reach domain and port please try this
cat > /dev/tcp/peer1.acme.com/7051
Check this https://support.bluemedora.com/s/article/Using-Bash-to-test-if-a-TCP-port-on-a-remote-system-is-open
QUESTION
My Hyperledger Fabric network in production runs on Docker swarm, but I want to migrate it to Kubernetes. I have tried searching online but found no resource explaining this process. Is this migration possible? What are the steps involved, and how straightforward would this process be?
I have three orderers deployed on three nodes. This is a sample orderer yaml file (I have three):
...ANSWER
Answered 2021-Apr-16 at 14:55The process can be really straightforward but it is not possible to avoid the inherent greater complexity of kubernetes (compared to swarm) which results, in turn, to a more complex configuration.
My advise is to start using kompose
tool, which both gives you the yaml files corresponding to you original docker-compose.yml but also warn you regarding possible issues that may arise.
After following kompose installation steps, naming orderer.yaml
your first file and peer.yaml
your second file it's only a matter of executing
QUESTION
https://www.devprovider.com/how-to-take-backup-from-hyperledger-fabric/
https://www.devprovider.com/how-to-restore-hyperledger-fabric-from-backup/
I follow this 2 tutorials for back up and restore my Blockchain,I did everything the same except:
Make back up:
1:
...ANSWER
Answered 2021-Mar-31 at 07:13according to your describe,in the tourial ,fabric version is v1.4.X,and the fabric you now use is v2.x.x,so in v1.4.x the test script is byfn.sh and in v2.x.x the test script is network.sh,these two scripts are different.
if you want to backup a fabric network and restore,you need just backup crypto-config(organizations in v2.x.x),ledger data which obtain from /var/hyperledger/fabric of docker container,and start your orderer and peer container ,you need not create channel or join channel ,you can query and invoke chaincode.
I have answer another question about restore fabric network,you can reference it In Hyperledger Fabric, is there a way to reuse the data of previous network?
--------------new answer-------------------------------
if you exec you peer chaincode invoke
command in terminal,you should add this env,and you can invoke success.
QUESTION
I'm new to Hyperledger and trying to use Hyperledger Caliper v0.3.2 as benchmark tool to test Fabric v1.3. I followed two official tutorials: https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html and https://hyperledger.github.io/caliper/v0.3.2/fabric-tutorial/tutorials-fabric-existing/
Now I have successfully instantiated fabcar
chaincode and the query is successful in peer0.org1
as follows
ANSWER
Answered 2021-Mar-19 at 12:36try it:
QUESTION
I've been doing some research but with no luck so here goes: Is the fabric-tools container image appropriate for production block-chain networks?
P.S. I know I don't have any code errors or a more technical question but I don't know where else to ask this. Sorry!
...ANSWER
Answered 2020-Nov-11 at 10:02You can check the Dockerfile from the official fabric Github. In this line you see the tools, which are build inside the fabric-tools image.
Like in this post mentioned Difference between fabric-tools and fabric-ca-tools images it includes the tools:
configtxgen configtxlator cryptogen discover idemixgen osnadmin peer
The fabric-tools Container is a helper Container, which you can use to make things easier. For example creating a channel, joining it etc. You can do the operations without it. In production you would use f.e. a CA instead of creating the crypto-config artifacts with the cryptogen tool. Also the fabric-tools container is usually used to mount the whole channel-artifacts folder and the crypto-config folder. This would not be very practical for productive use. You might have to make a modification depending on the intended use.
QUESTION
I'm working through a course at Blockchain Training Alliance for Hyperledger Fabric 1.4.*
I'm trying to start a channel on a dev test network and keep getting the following error:
...ANSWER
Answered 2020-Jul-10 at 13:09According to Nikhil Gupta's post, this error indicates that "the MSP ID that was passed as a parameter with the request was not recognized by the ordering service."
Actually, this isn't true. If you read this post carefully, you will see that the error
QUESTION
I am trying to set up the HLF first network on 2 vms. So, i created 2 yaml files each for every machine.
Machine 1: - 1 orderer - 2 peers - 2 couchdb - 1 ca
Machine 2: - 2 peers - 2 couchdb - 1 ca
There is no problem to fetch block 0 and i am able to create the channel and finally to install the chaincode. However, when i am trying to to approve a chaincode definition for my orgs, i receive the same error from both machines.
Error: failed to retrieve broadcast client: orderer client failed to connect to 127.0.0.1:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused"
P.S. Sorry about the big post i am trying to be specified in case someone can find my faults
i checked my containers:
...ANSWER
Answered 2020-Jun-16 at 09:36The issue is in your channel configuration file (configtx.yaml). You have defined the same ports for Anchors peers on both Organization.
Org2 (Presently):
QUESTION
If I understand things correctly, Node.js client examples enroll users, create wallets and then utilize these newly generated identities to perform transactions. At the same time examples for fabric-tools/CLI utilize identities/users generated with configtxgen, there is no enrollment or wallet creation ongoing. I can make both of these examples running for my purposes.
What I miss is an example of using the configtxgen generated admins/users from Node.js client, creating wallet for them etc? Does such example exist? Thank you for your help.
...ANSWER
Answered 2020-Mar-31 at 10:57You can simply read from file, save into the wallet and continue the same way as before.
Declare or replace variables suitably:
QUESTION
I want to add a new orderer to my existing running network. Currently my network is as follows :
docker ps -a
...ANSWER
Answered 2019-Aug-24 at 05:34You can add a new orderer in your RAFT consensus protocol setup by following these steps. It’s a lengthy process so I will also add a script later but for now you can follow these steps. Here, I am using first-network from the fabric samples for starting the network with 5 orderers.
First of all in crypto-config under OrdererOrgs: Specs: create a new hostname for your orderer (using the same domain and name as your other).
Then, run the command
cryptogen extend --config=./crypto-config.yaml
NOTE: the 'extend' part so it generates what you need and not regenerate everything.Now first we will add orderer to the system channel and then when it has all the blocks of the system channel then we will move it into application channel so please make sure you are doing it properly.
Enter into your cli container by using
docker exec -it cli bash
and bootstrap it with an active orderer information as you will need the OrdererMSP to sign off this change.
Here are some of the environment variables that you will need to bootstrap cli with orderer:
QUESTION
I am trying to run a sample chaincode application on hyperledger fabric by following the steps mentioned in their github url
I am able to start the network using docker compose, below are the running containers:
...ANSWER
Answered 2020-Mar-10 at 10:34The issue was resolved after giving complete access to the folders using : sudo chmod -R 777 .
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fabric-tools
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page