I'm working on this Hyperledger Fabric tutorial.
When I'm trying to build the network by running the script byfn.sh:
./byfn.sh -m generate
The console shows me this error:
What can I do to fix this ?
Related
I am a beginner, installed ROS Melodic on GCP Ubuntu 18.04 and trying to run the below
"rosrun turtlesim turtlesim_node"
Got the following error :
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
Please help
From the error message it is showing, it looks like you need to setup an X-Window environment. You can do so by following the Google Cloud Documentation [1].
Also ensure the application that you are running is having all dependencies satisfied.
[1] https://cloud.google.com/solutions/chrome-desktop-remote-on-compute-engine
I'm trying to run the following blockchain tutorial on Windows 10
https://hyperledger.github.io/composer/tutorials/developer-guide.html
Everything went fine (all npm installs, fabric tools, download fabric, start fabric, create the project archive, composer runtime install) untill I ran the following command:
composer network start --card PeerAdmin#hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile tutorial-network#0.0.1.bna --file networkadmin.card
And
had this error:
Starting business network from archive: tutorial-network#0.0.1.bna
Business network definition:
Identifier: tutorial-network#0.0.1
Description: Tuto DevWorks
× Starting business network definition. This may take a minute...
Error: Error trying to instantiate composer runtime. Error: Error: Invalid results returned ::NOT_FOUND
Command failed
Previous successful command was:
composer runtime install --card PeerAdmin#hlfv1 --businessNetworkName
tutorial-network √ Installing runtime for business network
tutorial-network. This may take a minute... Command succeeded
My configuration is:
WIN 10
Node v8.9.1
npm 5.5.1
Docker version 17.09.0-ce, build afdb6d4
git version 2.14.1.windows.1
I also tried with another bna archive and had the same issue.
Thanks for your help!
If this message occurs on the stage of instantiating the composer chaincode, one must check that there's a fabric channel defined and peers have joined it.
we don't, at present, support Windows 10. We support the platforms shown here:
https://hyperledger.github.io/composer/unstable/installing/development-tools.html
I was facing the issue in MacOS environment. I found that I haven't created the channel and joined the peers. Once I did that, I could start business network and ping.
While following the tutorial on this link, I encontered the following error under the section "Deploy to the running Hyperledger Fabric". My Hyperledger Fabric is not running and I do not know why. The error I get is shown below:
tom#tom:~/hyperledger/my-network/dist$ composer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString
Deploying business network from archive: my-network.bna
Business network definition:
Identifier: my-network#0.1.6
Description: My Commodity Trading network
✖ Deploying business network definition. This may take a minute...
Error: Error trying deploy. Error: Error trying install composer runtime. Error: Connect Failed
Command failed
When I use docker ps -a, no hyperledger containers are shown to have run. Where could I have gone wrong?
I just realized I needed to install docker-compose which deals with running multiple docker containers instead of just using docker client.
For docker-compose installation, I consulted the manual
I think you did not start your fabric, if you are developing locally. Please look at https://hyperledger.github.io/composer/installing/development-tools.html for the environment setup and the scripts you need to run inorder to have a local fabric.
When you run docker ps you should see something like this docker list of containers
On Windows, inside Vagrant, I am trying to run make peer in /opt/gopath/src/github.com/hyperledger/fabric.
I am getting the following error:
Instead of giving the command:
make peer
Try these :
docker pull hyperledger/fabric-peer:latest
docker pull hyperledger/fabric-membersrvc:latest
to pull the latest images published by the Hyperledger fabric project from DockerHub.
It says latest tag is not found for the base image. Looks like a Fabric bug at that point of time, and I reckon that this issue would have got solved by now.
If not, pull the image yourself manually. And tag it yourself as latest
For E.g,
docker pull hyperledger/fabric-baseimage:x86_64-0.1.0
docker tag hyperledger/fabric-baseimage:x86_64-0.1.0 hyperledger/fabric-baseimage:latest
I'm trying to setup Hyperledger Fabric chaincode development setup in my MAC machine. I already have the development environment setup, but my end goal is to just develop a blockchain application on top of Hyperledger Fabric. So I am moving towards the docker chaincode developement and test environment. I'm following the instructions given here (following the Option 2). The docker-compose up command is throwing the following error :
himanshus-mbp:fabric himanshutyagi$ docker-compose up
Recreating fabric_membersrvc_1
Creating fabric_vp_1
ERROR: for vp driver failed programming external connectivity on endpoint fabric_vp_1 (98887f3aa674ed269b3bf9cae87f28d7686920343a9cb2aac5f2715b1a945da8): Error starting userland proxy: write /port/tcp:0.0.0.0:5000:tcp:172.17.0.2:5000/ctl: errno 526
ERROR: Encountered errors while bringing up the project.
There is nothing related to this on the github issues. Can anyone explain what might be going wrong ?
If you know what process is running at port 5000 then try with sudo lsof -i tcp:5000 then note the process id and run sudo kill -15 <PROCESS_ID_HERE>. After that retry running docker commad
The port is probably already in use by another process. Has it already been started or is another program using the port. Use lsof to help find the process.