Comments (1)
1. Build a network passively
- I am now trying to build test-network manually by entering commands directly without using network.sh.
# These two lines are commands provided in fabric docs. # ./network.sh will not be used. $ ./network.sh up createChannel -c mychannel -ca $ ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-javascript/ -ccl javascript2. Sequence of operations
- This is the task sequence for manual construction of test-network.
- Refer to the network.sh file below.
# ca container - orderer, org1, org2 $ docker-compose -f compose/compose-ca.yaml -f compose/docker/docker-compose-ca.yaml up -d # Setting environment variables export PATH=${PWD}/../bin:$PATH export FABRIC_CFG_PATH=$PWD/../config/ # Generate certificate (orderer, org1, org2) . organizations/fabric-ca/registerEnroll.sh createOrg1 createOrg2 createOrderer # Create connection.json file ./organizations/ccp-generate.shIt worked fine up to this point.
3. next step & error
- The next task requires creating orderer, org1, and org2 containers.
- I think the command to create orderer, org1, and org2 containers is one of the two below.
- However, errors occur in both cases.
docker-compose -f compose/compose-test-net.yaml -f compose/docker/docker-compose-test-net.yaml up -d # An error occurs as follows # invalid spec: :/host/var/run/docker.sock: empty section between colons docker-compose -f compose/compose-test-net.yaml up -d # The orderer container was created normally. # The org1 and org2 containers are output as “exited”. # The logs of org1 and org2 containers are as follows. # Fatal error when initializing core config: FABRIC_CFG_PATH /etc/hyperledger/peercfg does not exist4. Please save me
- If you know a solution, please let me know.
1. Build a network passively
- I am now trying to build test-network manually by entering commands directly without using network.sh.
# These two lines are commands provided in fabric docs. # ./network.sh will not be used. $ ./network.sh up createChannel -c mychannel -ca $ ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-javascript/ -ccl javascript2. Sequence of operations
- This is the task sequence for manual construction of test-network.
- Refer to the network.sh file below.
# ca container - orderer, org1, org2 $ docker-compose -f compose/compose-ca.yaml -f compose/docker/docker-compose-ca.yaml up -d # Setting environment variables export PATH=${PWD}/../bin:$PATH export FABRIC_CFG_PATH=$PWD/../config/ # Generate certificate (orderer, org1, org2) . organizations/fabric-ca/registerEnroll.sh createOrg1 createOrg2 createOrderer # Create connection.json file ./organizations/ccp-generate.shIt worked fine up to this point.
3. next step & error
- The next task requires creating orderer, org1, and org2 containers.
- I think the command to create orderer, org1, and org2 containers is one of the two below.
- However, errors occur in both cases.
docker-compose -f compose/compose-test-net.yaml -f compose/docker/docker-compose-test-net.yaml up -d # An error occurs as follows # invalid spec: :/host/var/run/docker.sock: empty section between colons docker-compose -f compose/compose-test-net.yaml up -d # The orderer container was created normally. # The org1 and org2 containers are output as “exited”. # The logs of org1 and org2 containers are as follows. # Fatal error when initializing core config: FABRIC_CFG_PATH /etc/hyperledger/peercfg does not exist4. Please save me
- If you know a solution, please let me know.
from fabric-chaincode-node.
Related Issues (20)
- Port the FullStackApplication Tests to use as a Functional Test HOT 1
- Transition the FV tests to use Microfab HOT 1
- Chaincode does not start due to missing dependency in fabric-shim
- Published release v2.5.3 not tagged as latest HOT 1
- ChaincodeMessageHandler calls non-existent cancel() function on stream
- Wrong getTxTimestamp
- TypeError on chaincode start with fabric-shim >=2.5.1
- Use Node 20
- Incorrect Type Definition of ChaincodeResponse HOT 3
- Fix minor TypeScript issues
- Fix "Cannot find module" errors in TypeScript test files
- Add ESLint TypeScript support
- Document how to start node chaincode as a service, including how to set grpc parameters HOT 2
- Scheduled vulnerability scan
- jsdocs are not getting published HOT 4
- Publish unstable / snapshot packages on every change
- Update @grpc/grpc-js HOT 3
- Publish Docker images tagged as `3.0` for Fabric v3
- Use Node 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabric-chaincode-node.