我正在尝试生成超级账本通道,当我在本地工作中运行它时没有问题,但当我在AWS ec2上运行时,我遇到了问题,这就是我的问题:
$ ./network.sh up createChannel -c mychannel -ca
Creating channel 'mychannel'.
If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb with crypto from 'Certificate Authorities'
Bringing up network
LOCAL_VERSION=2.2.1
DOCKER_IMAGE_VERSION=2.2.2
Local fabric binaries and docker images are out of sync. This may cause problems.
CA_LOCAL_VERSION=1.4.9
CA_DOCKER_IMAGE_VERSION=1.4.9
Generate certificates using Fabric CA's
Creating network "net_test" with the default driver
Creating ca_orderer ...
Creating ca_org2 ... error
Creating ca_org1 ...
Creating ca_orderer ... error
ERROR: for ca_org2 Cannot start service ca_org2: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: Running hook #0:: error running hook: signal: killed, stdout: , stderr:: unknown
ERROR: for ca_orderer Cannot start service ca_orderer: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: RunCreating ca_org1 ... done
ERROR: for ca_org2 Cannot start service ca_org2: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: Running hook #0:: error running hook: signal: killed, stdout: , stderr:: unknown
ERROR: for ca_orderer Cannot start service ca_orderer: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: Running hook #0:: error running hook: signal: killed, stdout: , stderr:: unknown
ERROR: Encountered errors while bringing up the project.
那里的全部输出:https://pastebin.ubuntu.com/p/GmwRpwPxNZ/
如果我只尝试联网:
./network.sh up
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb'
LOCAL_VERSION=2.2.1
DOCKER_IMAGE_VERSION=2.2.2
Local fabric binaries and docker images are out of sync. This may cause problems.
Creating volume "net_orderer.example.com" with default driver
Creating volume "net_peer0.org1.example.com" with default driver
Creating volume "net_peer0.org2.example.com" with default driver
WARNING: Found orphan containers (ca_org1, ca_orderer, ca_org2) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Creating orderer.example.com ...
Creating peer0.org2.example.com ...
Creating peer0.org1.example.com ... error
Creating orderer.example.com ... error
ERROR: for peer0.org1.example.com Cannot start service peer0.org1.example.com: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: Running hook #0:: error running hook: signal: killed, stdout: , stderr:: unknown
Creating peer0.org2.example.com ... done
r init caused: Running hook #0:: error running hook: signal: killed, stdout: , stderr:: unknown
ERROR: for peer0.org1.example.com Cannot start service peer0.org1.example.com: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: Running hook #0:: error running hook: signal: killed, stdout: , stderr:: unknown
ERROR: for orderer.example.com Cannot start service orderer.example.com: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: Running hook #0:: error running hook: signal: killed, stdout: , stderr:: unknown
ERROR: Encountered errors while bringing up the project.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dca2d9f83dca hyperledger/fabric-peer:latest "peer node start" 9 seconds ago Created 0.0.0.0:7051->7051/tcp peer0.org1.example.com
367cac851efb hyperledger/fabric-peer:latest "peer node start" 9 seconds ago Up Less than a second 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com
80395383fdde hyperledger/fabric-orderer:latest "orderer" 9 seconds ago Created 0.0.0.0:7050->7050/tcp orderer.example.com
374e559f3a40 hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 4 minutes ago Created 7054/tcp, 0.0.0.0:8054->8054/tcp ca_org2
ab485b1041f2 hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 4 minutes ago Up 4 minutes 0.0.0.0:7054->7054/tcp ca_org1
9588650913c8 hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 4 minutes ago Created 7054/tcp, 0.0.0.0:9054->9054/tcp ca_orderer
机器内存不足,这是的问题