0、关于系统内部时间和服务器时间不一致问题
将系统时间挂载进docker容器里面
/ect/localtime:/etc/localtime
1、gcc异常:
Srunning gcc failed: exec: "gcc": executable file not found in $PATH
解决方法:安装gcc
yum install gcc
2、工具包异常
ltdl.h: No such file or directory
解决方法:安装工具包
yum install libtool libltdl7 libltdl-dev
yum install libtool-ltdl-devel
3、使用generate脚本生成配置文件证书等异常
触发脚本
../../release/linux-amd64/bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel
触发异常
Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")
问题出现原因:
多次运行脚本,生成了很多私钥文件,系统不知道使用哪个,所以运行generate之前,清除上次执行结果即可
rm -rf crypto-config
4、docker-compose启动networks have overlapping IPv4
ip a
brctl delbr br-a675c47764eb
service docker restart