Run fabric samples/test network
example with fabric 2.2, and the network error is as follows:
Error: endorsement failure during invoke.
response: status:500 message:"error in simulation: failed to execute transaction 18cf3086eb32e877a497fe3cb33a4d0d0dc892f221528bf0788a07d4ffb6bdcf: could not launch
chaincode fabcar_1:762e0fe3dbeee0f7b08fb6200adeb4a3a20f649a00f168c0b3c2257e53b6e506: error starting container: error starting container:
API error (404): network _test not found"
The possible reason is that the update of docker compose
Version (+ after v1.28) causes problems in reading .Env
files.
As shown in the figure below, network.Sh
script will call docker compose
to start the container. Originally, docker compose
should read the .Env
environment variable according to the compose in it_PROJECT_Name = net
generates a net_Test
, but reading .Env
failed, which is equivalent to not reading the value of net
, so the in the error message is generated_test not found
Solution:
first ./network.sh down
drop the network down
. Manually modify the network.Sh
file, add -- env file./.Env
at the command of docker compose
, and explicitly specify to read the environment variable configuration file, as shown in the following figure
restart the network for experiment
Read More:
- Docker run Error: container_linux.go:235: starting container process caused “process_linux.go:258: appl
- [Solved] kubelet Startup Error: cannot find network namespace for the terminated container
- [Solved] OpenGL PowerVR SDK Compiling Error: Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
- Tencent cloud container easyexcel export excel error NoClassDefFoundError: could not initialize class sun.awt.x11fontmanager
- AAPT: error: attribute cardBackgroundColor (aka com.x.x:cardBackgroundColor) not found.
- How to Solve bootstrap.sh error during the construction of fabric environment
- Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen is reported when docker port mapping or starting the container
- Error starting vue project these dependencies were not found:create in ./src/router/modules/md.js
- [Solved] Fabric Start Network Error: Error: error getting endorser client for channel: endorser client failed to connect to
- [Solved] dyld: Library not loaded: /System/Library/Frameworks/Network.framework/Network
- ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.23‘ not found
- JMeter JDBC Error: No pool found named: ‘test‘ [How to Solve]
- [Solved] Initialization error encountered by JUnit unit test: Method initialization error not found
- The spring project is normal locally, and the bean cannot be found error is thrown when entering the docker container
- [Solved] Rocketmq console connect to x.x.x.x:10911 failed Error
- [Solved] Canoe CAPL Error: “the test module is not assigned or invalid”
- [Solved] Junit.test use error: log4j:WARN No appenders could be found for logger
- [Solved] There are test failures. Please refer to D:\Java_study\springboot\springboot-sugon-3\target\surefire-reports for the individual test results.
- [Solved] CCS compilation and debug error: Source lookup: unable to restore CPU specific source container – expecting valid source container id value.
- [Solved] Phone Debug Program Error: The application could not be installed: INSTALL_FAILED_TEST_ONLY