I'm doing the developers tutorial found here: https://hyperledger.github.io/composer/v0.16/tutorials/developer-tutorial.html
On the step where you have to runtime install I call this command:
composer runtime install --card PeerAdmin#hlfv1 --businessNetworkName tutorial-network
But get the following error:
Unknown arguments: card, businessNetworkName, runtime, install
Ive looked through the composer-cli documentation and runtime is still in there. Is the documentation out-dated or what else might be going wrong here. I'm absolutly clueless.
You are looking at a tutorial for the version v0.16 - this is now quite dated and unless you are specifically using this version you should use the latest doc and the latest Composer version.
The latest doc is here: https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial
Check you version of Composer with composer -v hopefully you are using v0.19.6 or similar.
(Composer runtime install was a v0.16 command and no longer present in v0.19.* - the new commands are in the tutorial.)
Composer v0.19.* works with Fabric v1.1.0 - this is the latest version and hopefully this is the version you have. You can check your Fabric version by using docker images and you should see image names ending -1.1.0 If not you will need to remove the existing containers and images and re-do the step to create the Development Fabric as described in the latest docs.
Related
Initially, i faced the issue, that concurrency doesn't work in Jenkins. I find this issue in official repository and followed advise to update Testcafe Docker Image to latest version (i took it from testcafe/testcafe repository). However, now i faced another issue. We have node-sass package using for web app which i test, and node-sass doesn't work with Node 10.x and displays this error message
Module build failed: Error: Missing binding /tests/node_modules/node-sass/vendor/linux_musl-x64-64/binding.node
Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 10.x
Found bindings for the following environments:
- Linux/musl 64-bit with Node.js 8.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
Is there is some workaround for it, or maybe Testcafe can use Node 8.x and then you can provide Docker Image with this node version?
At the moment we do not have plans to create multiple testcafe docker images for different node versions. However, I created a separate feature request.
Please track that ticket and vote for it. We can add it to our plans in the future.
I'm trying to setup hyperledger fabric in my windows 10 system. While installing the pre-requisites mentioned in the fabric's documentation I couldn't install the global build tools. I tried running the command:
npm install --global windows-build-tools
but the installation gets stuck at:
successfully installed Python 2.7 and it stops at rpc connection was closed.Stream was closed.
I also followed the following youtube tutorial but still facing the same problem. The reference link:
https://www.youtube.com/watch?v=7BeJ6MSKH9k&t=457s
Update: It works by changing the command to
npm install --global windows-build-tools#4.0.0
Seems the problem is with the latest version of build tools. Some compatibility issue.
I am currently trying to work through this tutorial here
When I try and run the createPeerAdminCard.sh script, i get the error Cannot use Composer version 1.8.3 2019-01-30 08:31:33 version of composer with fabric 1.2, v0.20 or higher is required
I have looked and it seems composer version 1.8.3 is the latest release, I just upgraded from 1.6.x and was getting the same error with that version of composer.
I have checked all of the prerequisites for installing composer here and I seem to have all the right versions (Prerequisites)
A similar post is here but running the suggested npm install -g composer-cli#0.x.x did not seem to fix the issue.
Any suggestions would be appreciated
Use composer v0.20. I hope that will solve your issue.Hope it help.
I am working on Hyperledger fabric project and while running command node generateFights.js i am receiving the below error.
Error: Connection is not in the READY state at ChannelEventHub._checkConnection
I downloaded the source from HyperLedger Fabric API to my local directory.
I open the directory in VisualStudio and run the command, but it throws me an error.
Just to be sure: -
1. Docker Process is working. (Docker ps)
2. I have composer version installed ( v.0.19.0)
3. Node version - 8.11.1
What I tried to solve the issue: -
I begin the ./startFabric.sh
I installed the new network and started the process.
Imported the newly generated card.
Please suggest me what i need to do or learn to solve this issue.
The error "Connection is not in a READY state" has been seen a few times as a result of an underlying grpc problem. grpc v1.11.0 causes Composer to fail with this error, but v10.0.1 seems to be OK. More details are described and workarounds are described in this github issue.
It is likely that your app requires or has a dependency on a Composer client version with the grpc problem. If you remove your Node modules folder and examine your package.json file you should be able to fix the version problem
This issue has been addressed in the 1.1.2 release of the hyperledger fabric node sdk so you should ensure that your package.json dependencies will download this version and also ensure you clean up your node_modules directory and re-install your dependencies using npm install.
For Hyperledger composer users, v0.19.4 and beyond addresses this problem.
Go to directory in which composer-rest-server and composer-cli npm modules are installed, then install the grpc npm module with version 1.10.1.
Run the below command from both directories:
npm install --save grpc#1.10.1
It will solve your problem.
NOTE: In my case, node modules were installed at
/home/user_name/.npm-global/lib/node_modules/. That is my global directory for npm.
Please help!
Can I install Hyperledger Composer on windows?
I see in this link have install with Ubuntu and MacOS but have not windows.
https://hyperledger.github.io/composer/installing/installing-prereqs.html
I don't think you will be able to install a local version of composer on Windows directly. However, you may use virtual box and add ISO of ubuntu in it. This way, you can use hyperledger composer on your windows.
I'm running composer with Docker Tools on Windows 7. I used the Fabric setup scripts provided here: https://github.com/acloudfan/HLF-Windows-Toolkit, but the Composer itself installs easily with npm install. No need to worry about sudo/not sudo. I just had to install Cygwin for running the fabric scripts (composer-cli runs on a normal Windows console).