fabric-tools | Some scripts for configuring and deploying the fabric | Continuous Deployment library

 by   zhayujie JavaScript Version: Current License: No License

kandi X-RAY | fabric-tools Summary

kandi X-RAY | fabric-tools Summary

fabric-tools is a JavaScript library typically used in Devops, Continuous Deployment, Ansible applications. fabric-tools has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Some scripts for configuring and deploying the fabric network.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              fabric-tools has a low active ecosystem.
              It has 48 star(s) with 26 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 3 have been closed. On average issues are closed in 2 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of fabric-tools is current.

            kandi-Quality Quality

              fabric-tools has 0 bugs and 0 code smells.

            kandi-Security Security

              fabric-tools has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              fabric-tools code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              fabric-tools does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              fabric-tools releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fabric-tools
            Get all kandi verified functions for this library.

            fabric-tools Key Features

            No Key Features are available at this moment for fabric-tools.

            fabric-tools Examples and Code Snippets

            No Code Snippets are available at this moment for fabric-tools.

            Community Discussions

            QUESTION

            Hyperledger Blockchain Explorer-Fail to connect before the deadline on Endorser, fail to connect to remote gRPC server
            Asked 2021-Jun-06 at 00:15

            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:54

            All 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

            Source https://stackoverflow.com/questions/66256188

            QUESTION

            Hyperledger Fabric - migration from Docker swarm to Kubernetes possible?
            Asked 2021-Apr-16 at 14:55

            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:55

            The 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

            Source https://stackoverflow.com/questions/66982235

            QUESTION

            Restore Back up From Hyperledger Fabric v2.0
            Asked 2021-Mar-31 at 07:43

            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:13

            according 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.

            Source https://stackoverflow.com/questions/66866923

            QUESTION

            Channel:mychannel received discovery error:access denied
            Asked 2021-Mar-24 at 11:36

            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:36

            QUESTION

            Use of fabric-tools image in production
            Asked 2020-Nov-14 at 16:08

            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:02

            You 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.

            Source https://stackoverflow.com/questions/64768691

            QUESTION

            Peer Channel Create in docker container fails with: identity is not valid: x509: certificate signed by unknown authority
            Asked 2020-Jul-10 at 14:37

            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:09

            According 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

            Source https://stackoverflow.com/questions/62767464

            QUESTION

            How to set up a fabric network v2 on 2 machines?
            Asked 2020-Jun-18 at 10:17

            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:36

            The issue is in your channel configuration file (configtx.yaml). You have defined the same ports for Anchors peers on both Organization.

            Org2 (Presently):

            Source https://stackoverflow.com/questions/62390827

            QUESTION

            Hyperledger Fabric invoking chaincode from Node.js using user artifacts generated by configtxgen. How?
            Asked 2020-Mar-31 at 10:57

            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:57

            You can simply read from file, save into the wallet and continue the same way as before.

            Declare or replace variables suitably:

            Source https://stackoverflow.com/questions/60948778

            QUESTION

            How to add a new orderer in a running hyperledger fabric network using raft?
            Asked 2020-Mar-13 at 08:40

            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:34

            You 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.

            1. 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).

            2. Then, run the command cryptogen extend --config=./crypto-config.yaml NOTE: the 'extend' part so it generates what you need and not regenerate everything.

            3. 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.

            4. 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:

            Source https://stackoverflow.com/questions/57571629

            QUESTION

            Hyperledger fabric chaincode | Abstore Go application build giving permission issue
            Asked 2020-Mar-10 at 10:34

            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:34

            The issue was resolved after giving complete access to the folders using : sudo chmod -R 777 .

            Source https://stackoverflow.com/questions/60598356

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install fabric-tools

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/zhayujie/fabric-tools.git

          • CLI

            gh repo clone zhayujie/fabric-tools

          • sshUrl

            git@github.com:zhayujie/fabric-tools.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link