Error when running hyperledger caliper on hyperledger composer - hyperledger-fabric

i have been trying for days to get this working. My problem is that i have a running network with 4 peers (3 peers and 1 orderer) on 4 virtual machines, the network is able to communicate and everything seems to work, my issue is that hyperledger caliper does not want to connect. When i try to run a test with caliper i get this error:
error: [composer.js]: composer.init() failed at initialiseFabric(), code=1, stdout=, stderr=Error: No such container: peer0.org1.example.com
I have configured the json file used to get information about the network and the .yaml file for the tests.
Any help would be appreciated.

Related

Error While Installing Fabric Chaincode: _lifecycle.syscc: no such file or directory

While trying to install chaincode using Fabric v2.1, I am encountering an error. Does anyone face similar issues? My peer is running fine and able to join the channel as well. I am able to list the channel details as well.
Note: I am doing Native installation without using docker images for running orderer and peer.
Highly appreciate for your support and looking forward to hear from you.
Error:
chaincode install failed with status: 500 - error in simulation: failed to execute transaction 44688cc50afeda03e3f5e7735ae650030952477b6bdfce83064582f42bec6c84: could not launch chaincode _lifecycle.syscc: error building chaincode: error building image: failed to get chaincode package for external build: could not get legacy chaincode package '_lifecycle.syscc': open /home/vagrant/ledger/ORG2/peer1-org2/ledger/chaincodes/_lifecycle.syscc: no such file or directory
I got this error after upgrading from 1.4. In my case the problem was in the old config file for the peer.
Make sure you have next lines in your core.yaml:
chaincode:
...
# enabled system chaincodes
system:
_lifecycle: enable

hyperledger explorer not starting with Fabcar app

Hyperledger Explorer is not starting with Fabcar sample application. I have configured config.json and change connection profile to fabcar. I am using default connection setting available in connection-profile/fabcar.jason.But while starting blockchain explorer it giving me below error.
2019-11-30T09:44:53.671Z - error: [Channel.js]: Error: 2 UNKNOWN: Stream removed
Error : Failed to connect client peer, please check the configuration and peer status
Did you start a network before? If so, try to remove the crypto-config and channel-artifacts folders and rerun. When you start a network should not be crypto material from other before

Error when trying to create and join a channel in hyperledger fabric blockchain services

I am trying to setup my own network using HyperledgerFabric. I have completed all the required steps and started the nodes. It worked fine and got the below response.
Then tried to create and join a channel using the commands stated below and i got this error.
2019-02-28 13:43:07.440 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/app/HYPERLEDGER/fabric-samples/BaseNetwork/crypto-config/peerOrganizations/citizen.example.com/users/Admin#citizen.example.com/msp" does not exist
Try installing docker version 18.03.1. If that doesn't helps try docker volume prune, clear the containers, images and re-pull.

SSL3_GET_RECORD:wrong version number in Hyperledger Blockchain Explorer

I am trying to run Hyperledger Blockchain Explorer with a Hyperledger Fabric network setup using the steps here. composer-cli works good. But when I run Blockchain Explorer with node main.js it returns following error
16637 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
composer-cli is able to connect well with peers which means the SSL connection between composer-cli and peers is good. How do I fix the version of SSL running on blockchain explorer written in node.js ?

Error Composer Rest Server

I have follow Hyperledger Composer here and all step is done.
But when i restart my PC and try to connect to Hyperledger Composer via command 'composer-rest-server' have error like this:
enter image description here
Discovering types from business network definition ... Connection
fails: Error: Error trying to ping. Error: Error trying to query
business network. Error: Connect Failed It will be retried for the
next request. Exception: Error: Error trying to ping. Error: Error
trying to query business network. Error: Connect Failed Error:
Error trying to ping. Error: Error trying to query business network.
Error: Connect Failed
at _checkRuntimeVersions.then.catch (/home/linux-user/.nvm/versions/node/v8.9.4/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:713:34)
at <'anonymous'>
Please help! Thank You.
See this answer for restarting the underlying Fabric before starting the REST Server.
When you restart your system, you also shut down all running docker containers. Restart containers(your blockchain network) before launching composer rest server.

Resources