1. The fabric version used is v2.2.4. Test the test network
2. Problem description
When calling the basic chain code, the following error messages are found:
error: Endorsement failure during invoke. Response: status: 500 message: “error in simulation: failed to execute transaction 75a77550b68a7476882e7a512fa0dd4f0accd90e9f1db7e5193c914dd91bb285: could not launch chaincode basic_ 1.0:3cfcf67978d6b3f7c5e0375660c995b21db19c4330946079afc3925ad7306881: error starting container: error starting container: API error (404): network fabric_ test not found”
This fabric_test has different results according to different versions.
the essence is that the name of the started fabric network is wrong, which is inconsistent with the configuration in our. Yaml file and the docker compose
3. The solution is as follows:
Premise: after I have finished the./network up createChannel and the chain code, the chain code will come up. Do not do the following instructions directly after down!!!!!
3.1 first, we execute the following commands:
docker network ls
The display result is
3.2 open the test network/docker/docker-compose-test-net.yaml file
you can find that the name here is incorrect and you need to modify it to the docker displayed by docker network ls_ test。
note that in this file
CORE_ VM_ DOCKER_ HOSTCONFIG_ NETWORKMODE=fabric_ Test
there are two places, so we need to change two places.
After modification, it can be called successfully.
- Docker encountered a problem 4: yaml: Line 1: mapping values are not allowed in this context
- Docker creation container cannot find network card: error response from daemon: network XXXX not found
- Error — failed to start docker container, error iptables — wait – t nat
- Docker compose reports an error and multiple containers conflict
- Error response from daemon: Conflict. The container name “/mysql is already in use by container
- Solve the problem of docker error: Unsupported compose file version: 3.2
- Solve the problem that Gabor can’t start itself after the server is restarted
- EEROR:Windows named pipe error: The system cannot find the file specified. (code:2)
- ERROR: Pool overlaps with other one on this address space
- Common command of docker
- How to Fix ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- Driver failed programming external connectivity on endpoint quirky_ allen
- Error: path not specified when the docker 1.7 file is uploaded to the container in CentOS
- Error response from daemon: Conflict: unable to delete 8598c91556dc (must be forced)
- An error occurred trying to connect: get http: / / var / run/ docker.sock/v1 .21/containers/json?all
- Docke Run: response from daemon: OCI runtime create failed: container with id exists:XXX:unknown
- docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.‘, File
- Docker starts MySQL container and reports an error driver failed programming external connectivity on endpoint mysq
- [Sovled] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- The problem of “value error: zero length field name in format” in Python 2.6.6 of CentOS 6.9