I have a scenario where I have to create multiple nodes with same or various organisations.
As per my understanding changes required in below files while setting up the blockchain network Hyperledger Composer Version 1.0
- createComposerProfile.sh
- docker-compose.yml
Can you please tell me whether my understanding is correct or not. Also please guide me the changes required in those files.
Our development server is a simple setup of Hyperledger Fabric and is not really provided as an example of how to create a Hyperledger Fabric, it is there purely to provide a real Hyperledger Fabric for testing purposes for Hyperledger Composer applications. If you want to learn more about creating and building your own Hyperledger Fabric environment then documentation provided by the Hyperledger Fabric team is the place to go. You could try starting at
http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html
which provides information on how to build your first network
Related
I've a bankchain network developed using hyper ledger fabric 1.4.4. The network runs successfully but when I enquire through :peer channel list
I get error. I really need to solve this this creating issue is chaincode instatiation.
If required I can share the complete code as a zip file.
For a standard supply chain management system, what is the first and foremost component/module one should start with? I need a technical advice with respect to softwares.
For supply chain management Hyperledger is the best. For Hyperledger Composer Development first, you have to learn Architecture of Hyperledger Composer.
and after that the Design and Implementation of the PoC.
Model file Structure (.cto file)
Logic file Structure (.js file)
Access control Structure (.acl file)
Query file Structure(.qry file)
For the installation of Hyperledger composer follow this
For the development of Hyperledger Composer Model language follow this link.
For the deploying, a Hyperledger Composer blockchain business network to Hyperledger Fabric for a single organization follow this
If somebody has link of sample-app/sample-web-app of Hyperledger Fabric Node SDK, please post it. It is said in official document that they have sample-app here and sample-web-app here but the urls are empty
There are few examples on fabric-sample repository in particular you probably would like to consider taking look on balance transfer example here. Which provides decent example of application developed based on NodeJS SDK and covers major parts.
I has a question related to network setup of additional peer in Hyperledger Fabric.
I want to add 2 more peers to existing peer to form a network ,but all available document is all about connection peer together by using Docker. In my case I already have multiple servers. so I just directly install peers to 3 different Servers separately ,but how can I connect that 3 peer up and running together. I cannot find any document related to this.
Hopp you can guide.
To install Fabric directly to Server is recommend or not?
Below is Screenshot of one peer. it's up and running fine. but How to connect 3 peers together directly on different Server without using Docker.
I have follow this link: https://github.com/hyperledger/fabric/blob/master/docs/Setup/Network-setup.md
but I still can't find the way since it used docker.
any file that can modify to make it such as core.yaml ..etc
enter image description here
When using Hyperledger Fabric version 0.6, there is not a straightforward way to connect multiple peers on different servers without using Docker. As you noted, the Setting Up a Network section covers how to use Docker Compose to link peers together. One of the primary uses of a Hyperledger Fabric version 0.6 network is to learn how to develop chaincode. The focus isn't so much on dynamically allowing peers to join a network.
There are a few options for creating a blockchain network for Hyperledger Fabric version 0.6.
Published Docker images
Setting up a development environment
An instance of the Blockchain service on Bluemix can be created.
Hyperledger Fabric 1.0 (currently under development) aims to make it easier for different entities to join a blockchain network. An early preview of related concepts were covered during a Connect-A-Thon event. There is also an article about this event.
Yes. We can create a blockchain network without docker using Hyperledger Fabric v0.6. We have been done it in practice. For sure, we have to use docker to deploy chaincode.
For Hyperledger Fabric v0.6, both with docker or without it, we can not add more peers to existing network.
I have hyperledger fabric network setup on my local machine with a single validating node. I am developing a chaincode and would like to clear my blockchain. I have read that the hyperledger fabric stores the database under /var/hyperledger. However, I do not see this hyperledger directory under /var. Is there another location for this directory? My development platform is MAC and I am using docker-compose to start my hyperledger fabric network.
The Hyperledger Fabric stores the database in /var/hyperledger/production/db within the file system for the validating peer. You can navigate to the validating peer file system by using a command like docker exec -it substitute_container_name bash. I am not aware of another location of the database. If the instructions at https://hub.docker.com/r/ibmblockchain/fabric-peer/ for using Hyperledger Docker images are followed, then the database location should be /var/hyperledger/production/db.
To clear the blockchain, the easiest way is to stop and run docker container again, given that you only have 1 validator peer you should not be worried about data consistency. Also, try to use the latest version of fabric releases since they improved a lot these kind of problems. And regarding the issue,
no rows in result set
make sure that youe have specified the right organization name and department when requesting user validation agains CA. The parameters you send, must exist on CA database, otherwise, you will receive that error.