请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

docker-compose up启动后有容器秒退

2020-04-20 05:10:38.856 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP
2020-04-20 05:10:38.857 UTC [viperutil] unmarshalJSON -> DEBU 002 Unmarshal JSON: value cannot be unmarshalled: invalid character ‘S’ looking for beginning of value
2020-04-20 05:10:38.857 UTC [viperutil] getKeysRecursively -> DEBU 003 Found real value for peer.BCCSP.Default setting to string SW
2020-04-20 05:10:38.887 UTC [viperutil] getKeysRecursively -> DEBU 004 Found map[string]interface{} value for peer.BCCSP.SW
2020-04-20 05:10:38.888 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value cannot be unmarshalled: invalid character ‘S’ looking for beginning of value
2020-04-20 05:10:38.888 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.SW.Hash setting to string SHA2
2020-04-20 05:10:38.888 UTC [viperutil] unmarshalJSON -> DEBU 007 Unmarshal JSON: value is not a string: 256
2020-04-20 05:10:38.888 UTC [viperutil] getKeysRecursively -> DEBU 008 Found real value for peer.BCCSP.SW.Security setting to int 256
2020-04-20 05:10:38.888 UTC [viperutil] getKeysRecursively -> DEBU 009 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore
2020-04-20 05:10:38.888 UTC [viperutil] unmarshalJSON -> DEBU 00a Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input
2020-04-20 05:10:38.888 UTC [viperutil] getKeysRecursively -> DEBU 00b Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string
2020-04-20 05:10:38.889 UTC [viperutil] getKeysRecursively -> DEBU 00c Found map[string]interface{} value for peer.BCCSP.PKCS11
2020-04-20 05:10:38.889 UTC [viperutil] unmarshalJSON -> DEBU 00d Unmarshal JSON: value is not a string:
2020-04-20 05:10:38.889 UTC [viperutil] getKeysRecursively -> DEBU 00e Found real value for peer.BCCSP.PKCS11.Hash setting to
2020-04-20 05:10:38.890 UTC [viperutil] unmarshalJSON -> DEBU 00f Unmarshal JSON: value is not a string:
2020-04-20 05:10:38.890 UTC [viperutil] getKeysRecursively -> DEBU 010 Found real value for peer.BCCSP.PKCS11.Security setting to
2020-04-20 05:10:38.924 UTC [viperutil] getKeysRecursively -> DEBU 011 Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore
2020-04-20 05:10:38.925 UTC [viperutil] unmarshalJSON -> DEBU 012 Unmarshal JSON: value is not a string:
2020-04-20 05:10:38.925 UTC [viperutil] getKeysRecursively -> DEBU 013 Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to
2020-04-20 05:10:38.925 UTC [viperutil] unmarshalJSON -> DEBU 014 Unmarshal JSON: value is not a string:
2020-04-20 05:10:38.925 UTC [viperutil] getKeysRecursively -> DEBU 015 Found real value for peer.BCCSP.PKCS11.Library setting to
2020-04-20 05:10:38.926 UTC [viperutil] unmarshalJSON -> DEBU 016 Unmarshal JSON: value is not a string:
2020-04-20 05:10:38.926 UTC [viperutil] getKeysRecursively -> DEBU 017 Found real value for peer.BCCSP.PKCS11.Label setting to
2020-04-20 05:10:38.926 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value is not a string:
2020-04-20 05:10:38.927 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.PKCS11.Pin setting to
2020-04-20 05:10:38.927 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[Default:SW PKCS11:map[FileKeyStore:map[KeyStore:] Hash: Label: Library: Pin: Security:] SW:map[FileKeyStore:map[KeyStore:] Hash:SHA2 Security:256]]]
2020-04-20 05:10:38.927 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/etc/hyperledger/fabric/msp/keystore]…done
2020-04-20 05:10:38.965 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW]
2020-04-20 05:10:38.965 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /etc/hyperledger/fabric/msp/signcerts
2020-04-20 05:10:38.965 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /etc/hyperledger/fabric/msp/signcerts/peer1.org1.anzjointlab.com-cert.pem
2020-04-20 05:10:38.968 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /etc/hyperledger/fabric/msp/cacerts
2020-04-20 05:10:38.968 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /etc/hyperledger/fabric/msp/cacerts/ca.org1.anzjointlab.com-cert.pem
2020-04-20 05:10:38.969 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /etc/hyperledger/fabric/msp/admincerts
2020-04-20 05:10:38.969 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /etc/hyperledger/fabric/msp/admincerts/Admin@org1.anzjointlab.com-cert.pem
2020-04-20 05:10:38.972 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /etc/hyperledger/fabric/msp/intermediatecerts
2020-04-20 05:10:38.972 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/etc/hyperledger/fabric/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/fabric/msp/intermediatecerts: no such file or directory]
2020-04-20 05:10:38.972 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /etc/hyperledger/fabric/msp/tlscacerts
2020-04-20 05:10:38.972 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /etc/hyperledger/fabric/msp/tlscacerts/tlsca.org1.anzjointlab.com-cert.pem
2020-04-20 05:10:38.973 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /etc/hyperledger/fabric/msp/tlsintermediatecerts
2020-04-20 05:10:38.973 UTC [msp] getMspConfig -> DEBU 028 TLS intermediate certs folder not found at [/etc/hyperledger/fabric/msp/tlsintermediatecerts]. Skipping. [stat /etc/hyperledger/fabric/msp/tlsintermediatecerts: no such file or directory]
2020-04-20 05:10:38.973 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /etc/hyperledger/fabric/msp/crls
2020-04-20 05:10:38.973 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/etc/hyperledger/fabric/msp/crls]. Skipping. [stat /etc/hyperledger/fabric/msp/crls: no such file or directory]
2020-04-20 05:10:38.973 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/etc/hyperledger/fabric/msp/config.yaml]: [stat /etc/hyperledger/fabric/msp/config.yaml: no such file or directory]
2020-04-20 05:10:38.974 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance
2020-04-20 05:10:38.974 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance
2020-04-20 05:10:38.974 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP
2020-04-20 05:10:38.985 UTC [msp] Setup -> DEBU 02f Setting up MSP instance Org1MSP
2020-04-20 05:10:38.986 UTC [msp.identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYTCCAgegAwIBAgIQaqp7vwAjXt94PMccuKc5ojAKBggqhkjOPQQDAjB7MQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEdMBsGA1UEChMUb3JnMS5hbnpqb2ludGxhYi5jb20xIDAeBgNVBAMT
F2NhLm9yZzEuYW56am9pbnRsYWIuY29tMB4XDTIwMDQyMDA0NDYwMFoXDTMwMDQx
ODA0NDYwMFowezELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAU
BgNVBAcTDVNhbiBGcmFuY2lzY28xHTAbBgNVBAoTFG9yZzEuYW56am9pbnRsYWIu
Y29tMSAwHgYDVQQDExdjYS5vcmcxLmFuempvaW50bGFiLmNvbTBZMBMGByqGSM49
AgEGCCqGSM49AwEHA0IABPEnvbdMvbZqMOtrAyf5mZhmftJ0R9umw+66DQ676lw7
/pEfADR87htu4zW1wzoXrDcUv8eG/fjE/vnLI4sgqO+jbTBrMA4GA1UdDwEB/wQE
AwIBpjAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwEwDwYDVR0TAQH/BAUw
AwEB/zApBgNVHQ4EIgQgT9tgulGK7HYvy4ftnlEals/rPq573Aq2E4TwLQShi8Uw
CgYIKoZIzj0EAwIDSAAwRQIhAIVRylwkrpsKNy9ozm1drTKtMenoEOORd8CNpdst
wQigAiA6B4v82Bwhp0dPbVLdZ3KuwnofSuTmRMVhUYxS2UILyw==
-----END CERTIFICATE-----
2020-04-20 05:10:38.986 UTC [msp.identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICJjCCAcygAwIBAgIRALCtDkDbnkmjmAZIy7Umq8MwCgYIKoZIzj0EAwIwezEL
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
cmFuY2lzY28xHTAbBgNVBAoTFG9yZzEuYW56am9pbnRsYWIuY29tMSAwHgYDVQQD
ExdjYS5vcmcxLmFuempvaW50bGFiLmNvbTAeFw0yMDA0MjAwNDQ2MDBaFw0zMDA0
MTgwNDQ2MDBaMF8xCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYw
FAYDVQQHEw1TYW4gRnJhbmNpc2NvMSMwIQYDVQQDExpwZWVyMS5vcmcxLmFuempv
aW50bGFiLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABFEbnZNbI0TPkXef
+4pazWNHtEWb0KkFKC/iql2ywEZOMRPhJ3KYwb1dcAZ3YtasDRl5W3DIKjO/TiNS
Pr2mySGjTTBLMA4GA1UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQk
MCKAIE/bYLpRiux2L8uH7Z5RGpbP6z6ue9wKthOE8C0EoYvFMAoGCCqGSM49BAMC
A0gAMEUCIQDov0BwyKVHns0BNfTXTm5l1wFItPPjMVSYDk3DH/dIggIgbn5dklgX
Y4e2ui85MsGjU7WIUGx+Rdj8KR8RJ/DVThM=
-----END CERTIFICATE-----
2020-04-20 05:10:38.986 UTC [bccsp_sw] loadPrivateKey -> DEBU 032 Loading private key [ca937737672032796d3332a1c56b4582d38e3e4dfee386b1a681d06d141347e9] at [/etc/hyperledger/fabric/msp/keystore/ca937737672032796d3332a1c56b4582d38e3e4dfee386b1a681d06d141347e9_sk]…
2020-04-20 05:10:38.994 UTC [msp.identity] newIdentity -> DEBU 033 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICJjCCAcygAwIBAgIRALCtDkDbnkmjmAZIy7Umq8MwCgYIKoZIzj0EAwIwezEL
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
cmFuY2lzY28xHTAbBgNVBAoTFG9yZzEuYW56am9pbnRsYWIuY29tMSAwHgYDVQQD
ExdjYS5vcmcxLmFuempvaW50bGFiLmNvbTAeFw0yMDA0MjAwNDQ2MDBaFw0zMDA0
MTgwNDQ2MDBaMF8xCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYw
FAYDVQQHEw1TYW4gRnJhbmNpc2NvMSMwIQYDVQQDExpwZWVyMS5vcmcxLmFuempv
aW50bGFiLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABFEbnZNbI0TPkXef
+4pazWNHtEWb0KkFKC/iql2ywEZOMRPhJ3KYwb1dcAZ3YtasDRl5W3DIKjO/TiNS
Pr2mySGjTTBLMA4GA1UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQk
MCKAIE/bYLpRiux2L8uH7Z5RGpbP6z6ue9wKthOE8C0EoYvFMAoGCCqGSM49BAMC
A0gAMEUCIQDov0BwyKVHns0BNfTXTm5l1wFItPPjMVSYDk3DH/dIggIgbn5dklgX
Y4e2ui85MsGjU7WIUGx+Rdj8KR8RJ/DVThM=
-----END CERTIFICATE-----
2020-04-20 05:10:38.995 UTC [msp] setupSigningIdentity -> DEBU 034 Signing identity expires at 2030-04-18 04:46:00 +0000 UTC
2020-04-20 05:10:38.995 UTC [msp.identity] newIdentity -> DEBU 035 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICJDCCAcugAwIBAgIQJLYKBaGSG1YIgKfx1YTsmjAKBggqhkjOPQQDAjB7MQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEdMBsGA1UEChMUb3JnMS5hbnpqb2ludGxhYi5jb20xIDAeBgNVBAMT
F2NhLm9yZzEuYW56am9pbnRsYWIuY29tMB4XDTIwMDQyMDA0NDYwMFoXDTMwMDQx
ODA0NDYwMFowXzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAU
BgNVBAcTDVNhbiBGcmFuY2lzY28xIzAhBgNVBAMMGkFkbWluQG9yZzEuYW56am9p
bnRsYWIuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAESebjhAqgEcjdyXCa
zJReNogUHrHW4ZMwBsEhhyXy5Ijon4Mv5fqtaXkcFoMhi4pOoyXJ07ulBY95vwcP
E5L9bKNNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQw
IoAgT9tgulGK7HYvy4ftnlEals/rPq573Aq2E4TwLQShi8UwCgYIKoZIzj0EAwID
RwAwRAIgLAlFbyLju190hu1VPF7WOBW62NlJ6HEikddjACmISdUCID/M55qjIPWW
h6eI8Dwq3kPVLfWCZMOZO1a5e9s84tMC
-----END CERTIFICATE-----
2020-04-20 05:10:38.995 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity
2020-04-20 05:10:38.996 UTC [nodeCmd] serve -> INFO 037 Starting peer:
Version: 1.4.6
Commit SHA: 635fa7bc8
Go version: go1.12.12
OS/Arch: linux/amd64
Chaincode:
Base Image Version: 0.4.18
Base Docker Namespace: hyperledger
Base Docker Label: org.hyperledger.fabric
Docker Namespace: hyperledger
2020-04-20 05:10:39.006 UTC [msp] GetDefaultSigningIdentity -> DEBU 038 Obtaining default signing identity
2020-04-20 05:10:39.006 UTC [msp.identity] Sign -> DEBU 039 Sign: plaintext: 00000000000000000000000000000000…00000000000000000000000000000000
2020-04-20 05:10:39.006 UTC [msp.identity] Sign -> DEBU 03a Sign: digest: 66687AADF862BD776C8FC18B8E9F8E20089714856EE233B3902A591D0D5F2925
2020-04-20 05:10:39.006 UTC [ledgermgmt] initialize -> INFO 03b Initializing ledger mgmt
2020-04-20 05:10:39.006 UTC [kvledger] NewProvider -> INFO 03c Initializing ledger provider
2020-04-20 05:10:39.006 UTC [kvledger.util] CreateDirIfMissing -> DEBU 03d CreateDirIfMissing [/var/hyperledger/production/ledgersData/ledgerProvider/]
2020-04-20 05:10:39.006 UTC [kvledger.util] logDirStatus -> DEBU 03e Before creating dir - [/var/hyperledger/production/ledgersData/ledgerProvider/] exists
2020-04-20 05:10:39.006 UTC [kvledger.util] logDirStatus -> DEBU 03f After creating dir - [/var/hyperledger/production/ledgersData/ledgerProvider/] exists
panic: Error opening leveldb: resource temporarily unavailable

goroutine 1 [running]:
github.com/hyperledger/fabric/common/ledger/util/leveldbhelper.(*DB).Open(0xc00030ba40)
/opt/gopath/src/github.com/hyperledger/fabric/common/ledger/util/leveldbhelper/leveldb_helper.go:80 +0x248
github.com/hyperledger/fabric/core/ledger/kvledger.openIDStore(0xc0004a0140, 0x36, 0x1)
/opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger_provider.go:274 +0x10f
github.com/hyperledger/fabric/core/ledger/kvledger.NewProvider(0x1710b00, 0x26d5668, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger_provider.go:61 +0x77
github.com/hyperledger/fabric/core/ledger/ledgermgmt.initialize(0xc000464500)
/opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:69 +0x30c
github.com/hyperledger/fabric/core/ledger/ledgermgmt.Initialize.func1()
/opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:53 +0x2a
sync.(*Once).Do(0x26d5748, 0xc0003d1448)
/opt/go/src/sync/once.go:44 +0xb3
github.com/hyperledger/fabric/core/ledger/ledgermgmt.Initialize(0xc000464500)
/opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:52 +0x55
github.com/hyperledger/fabric/peer/node.serve(0x26d5668, 0x0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:183 +0x5cd
github.com/hyperledger/fabric/peer/node.glob..func3(0x25cc240, 0x26d5668, 0x0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:126 +0xf1
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0x25cc240, 0x26d5668, 0x0, 0x0, 0x25cc240, 0x26d5668)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:762 +0x465
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x25cc960, 0xc0003d1f60, 0x1, 0x1)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:852 +0x2ec
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(…)
/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:800
main.main()
/opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:53 +0x41f
我在配置好自己的docker-compose.yaml文件后,终端输出所有orderer,peer和cli都成功创建,但是docker ps后发现少了orderer和两个peer,再docker ps -a后发现几乎秒退了,我按照各种方法修改了几次之后还是这情况,不知道怎么解决啊图片描述
下面是peer1.org1的配置信息:
peer1.org1.anzjointlab.com:
container_name: peer1.org1.anzjointlab.com
image: hyperledger/fabric-peer:KaTeX parse error: Expected ‘EOF’, got ‘#’ at position 114: … #̲ the following …{COMPOSE_PROJECT_NAME}_byfn
#- CORE_LOGGING_LEVEL=INFO

  • CORE_LOGGING_LEVEL=DEBUG
  • CORE_PEER_TLS_ENABLED=true
  • CORE_PEER_GOSSIP_USELEADERELECTION=true
  • CORE_PEER_GOSSIP_ORGLEADER=false
  • CORE_PEER_PROFILE_ENABLED=true
  • CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
  • CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
  • CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
  • CORE_PEER_ID=peer1.org1.anzjointlab.com
  • CORE_PEER_ADDRESS=peer1.org1.anzjointlab.com:7051
  • CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.anzjointlab.com:7051
  • CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.anzjointlab.com:7051
  • CORE_PEER_LOCALMSPID=Org1MSP
    working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
    command: peer node start
    volumes:
  • /var/run/:/host/var/run/
  • ./crypto-config/peerOrganizations/org1.anzjointlab.com/peers/peer1.org1.anzjointlab.com/msp:/etc/hyperledger/fabric/msp
  • ./crypto-config/peerOrganizations/org1.anzjointlab.com/peers/peer1.org1.anzjointlab.com/tls:/etc/hyperledger/fabric/tls
  • peer1.org1.anzjointlab.com:/var/hyperledger/production
    ports:
  • 8051:7051
  • 8053:7053
    networks:
  • ssn

这是configtx.yaml:
Organizations:
- &OrdererOrg
Name: OrdererOrg
ID: OrdererMSP
MSPDir: /var/anzjointlab/crypto-config/ordererOrganizations/msp
- &org1
Name: Org1MSP
ID: Org1MSP
MSPDir: /var/anzjointlab/crypto-config/peerOrganizations/org1.anzjointlab.com/msp

            AnchorPeers:
                    - Host: peer0.org1.anzjointlab.com
                      Port: 7051
    - &org2
            Name: Org2MSP
            ID: Org2MSP
            MSPDir: /var/anzjointlab/crypto-config/peerOrganizations/org2.anzjointlab.com/msp

            AnchorPeers:
                    - Host: peer0.org2.anzjointlab.com
                      Port: 7051
    - &org3
            Name: Org3MSP
            ID: Org3MSP
            MSPDir: /var/anzjointlab/crypto-config/peerOrganizations/org3.anzjointlab.com/msp

            AnchorPeers:
                    - Host: peer0.org3.anzjointlab.com
                      Port: 7051

Application: &ApplicationDefaults
Organizations:

Orderer: &OrdererDefaults
OrdererType: solo
Addresses:
- orderer.anzjointlab.com:7050
BatchSize:
MaxMessageCount: 10
AbsoluteMaxBytes: 99 MB
PreferredMaxBytes: 512 KB
Organizations:

Profiles:
ThreeOrgsOrdererGenesis:
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Consortiums:
SampleConsortium:
Organizations:
- *org1
- *org2
- *org3
ThreeOrgsChannel:
Consortium: SampleConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *org1
- *org2
- *org3

这是crypto-config.yaml:
OrdererOrgs:
- Name: Orderer
Doamain: anzjointlab.com
Specs:
- Hostname: orderer
CommonName: orderer.anzjointlab.com
PeerOrgs:
- Name: bc_org1
Domain: org1.anzjointlab.com
Template:
Count: 3
Users:
Count: 4
- Name: bc_org2
Domain: org2.anzjointlab.com
Template:
Count: 3
Users:
Count: 4
- Name: bc_org3
Domain: org3.anzjointlab.com
Template:
Count: 3
Users:
Count: 4

正在回答 回答被采纳积分+3

1回答

自游蜗牛 2020-04-19 22:57:17

给出秒退的容器日志,看不出来

登录后可查看完整回答登录/注册
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信