Skip to content

Instantly share code, notes, and snippets.

View mads6879's full-sized avatar

Madhura mads6879

View GitHub Profile
@mads6879
mads6879 / fabric-errors.markdown
Last active March 12, 2022 23:03
Hyperledger Fabric v2.0 Error Resolution

Fabric v2.2 network related

Error Cause Resolution
API error (404): network_test not found Components are at different network export COMPOSE_PROJECT_NAME=net
API error (404): network docker_test not found Possible mismatch in network mode in docker-compose.yaml or core.yaml Option 1 Change CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE variable in docker-compose-test-net.yaml file from ${COMPOSE_PROJECT_NAME}_test to docker_test. Verify that the NetworkMode in core.yaml is set to docker_test
API error (404): network docker_test not found docker-compose reading .env file for project name Option 2 Create a .env file in the test_network folder. Add COMPOSE_PROJECT_NAME=docker in .env file. Add .env file to the docker-compose commands in the network.sh file docker-compose --env-file ./.env
Channel cannot be created due to tcp connection error Conflicting docker images Check for any old docker images. Get new docker images after d