无法ping网络Hyperledger Composer

时间:2018-11-04 09:42:08

标签: hyperledger-composer

使用https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org

设置多组织Hyperledger作曲者网络

经过一些修改。 1.实施卡夫卡共识 2.两个组织都在不同的节点中。

我通过调用和查询两个节点中的链码进行验证来正确设置我的结构。

继续进入作曲家,我能够使用org1(运行作曲家网络启动的人)上的管理卡ping网络

但是当我尝试在org2上使用管理卡ping时,我得到了:

Error: Error trying invoke business network with transaction id 6725e7c60f727d8ca8f215f45940e250485a897711b6a6101f2c1a01c24013e7. Error: Unable to initalize channel. Attempted to contact 2 Peers. Last error was Error: Error: Failed to connect before the deadline
Command failed

检查在Org2中ping后创建的chaincode容器后,我得到了:

running start.js
E1104 09:16:12.014903631      17 ssl_transport_security.cc:238] Could not get common name of subject from certificate.
2018-11-04T09:16:12.049Z [2e308d63] ERROR    :IdentityManager          :validateIdentity()        Error: The current identity, with the name 'admin' and the identifier 'f83c6f480381f1fe5d5c27a81229d9eb710d7fa51c46e141ea85ba794df68a39', must be activated (ACTIVATION_REQUIRED)
2018-11-04T09:16:12.049Z [2e308d63] ERROR    :Composer                 :Invoke()                  Error: The current identity, with the name 'admin' and the identifier 'f83c6f480381f1fe5d5c27a81229d9eb710d7fa51c46e141ea85ba794df68a39', must be activated (ACTIVATION_REQUIRED)
2018-11-04T09:16:12.051Z ERROR [lib/handler.js] [mychannel-2e308d63]Calling chaincode Invoke() returned error response [Error: The current identity, with the name 'admin' and the identifier 'f83c6f480381f1fe5d5c27a81229d9eb710d7fa51c46e141ea85ba794df68a39', must be activated (ACTIVATION_REQUIRED)]. Sending ERROR message back to peer

这是我的connectionProfile,以防需要找出问题所在:

{
    "name": "blockcord-network",
    "x-type": "hlfv1",
    "version": "1.0.0",
    "client": {
        "organization": "Org2",
        "connection": {
            "timeout": {
                "peer": {
                    "endorser": "300",
                    "eventHub": "300",
                    "eventReg": "300"
                },
                "orderer": "300"
            }
        }
    },
    "channels": {
        "mychannel": {
            "orderers": [
                "orderer0.example.com",
                "orderer1.example.com"
            ],
            "peers": {
                "peer0.org1.example.com": {
                    "endorsingPeer": true,
                    "chaincodeQuery": true,
                    "eventSource": true
                },
                "peer0.org2.example.com": {
                    "endorsingPeer": true,
                    "chaincodeQuery": true,
                    "eventSource": true
                }
            }
        }
    },
    "organizations": {
        "Org1": {
            "mspid": "Org1MSP",
            "peers": [
                "peer0.org1.example.com"
            ],
            "certificateAuthorities": [
                "ca.org1.example.com"
            ]
        },
        "Org2": {
            "mspid": "Org2MSP",
            "peers": [
                "peer0.org2.example.com"
            ],
            "certificateAuthorities": [
                "ca.org2.example.com"
            ]
        }
    },
    "orderers": {
        "orderer0.example.com": {
            "url": "grpcs://168.63.239.163:7050",
            "grpcOptions": {
                "ssl-target-name-override": "orderer0.example.com"
            },
            "tlsCACerts": {
                "pem": "-----BEGIN CERTIFICATE-----\nMIICNTCCAdugAwIBAgIQAaOXoDbFhVt6u/wLtmnR6TAKBggqhkjOPQQDAjBsMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xGjAYBgNVBAMTEXRsc2NhLmV4\nYW1wbGUuY29tMB4XDTE4MTEwMTAzMjY0M1oXDTI4MTAyOTAzMjY0M1owbDELMAkG\nA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFu\nY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRowGAYDVQQDExF0bHNjYS5leGFt\ncGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJcU1kJ3ZxtSdVfzJFtv\nl/0PdyACUDraVt+3MEHl3BQAyr1FjXdhUFiMUbGkcfgMXY1ay7beRdTYMmxfQRM/\nEbajXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB\n/wQFMAMBAf8wKQYDVR0OBCIEIP+QB6RNzNndGmk34xXWQDKmLVOJbarWvpzmu3i8\nYeXkMAoGCCqGSM49BAMCA0gAMEUCIQC9Nb5vq5iSEAhI/8/FjfjZGoYyQl9Bc0P8\nqTowg5K2wgIgEOUEYie0pGPwAIjszKTjTS85FlQTMzwz9MdSuFjfawM=\n-----END CERTIFICATE-----\n"
            }
        },
        "orderer1.example.com": {
            "url": "grpcs://10.0.1.6:8050",
            "grpcOptions": {
                "ssl-target-name-override": "orderer1.example.com"
            },
            "tlsCACerts": {
                "pem": "-----BEGIN CERTIFICATE-----\nMIICNTCCAdugAwIBAgIQAaOXoDbFhVt6u/wLtmnR6TAKBggqhkjOPQQDAjBsMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xGjAYBgNVBAMTEXRsc2NhLmV4\nYW1wbGUuY29tMB4XDTE4MTEwMTAzMjY0M1oXDTI4MTAyOTAzMjY0M1owbDELMAkG\nA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFu\nY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRowGAYDVQQDExF0bHNjYS5leGFt\ncGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJcU1kJ3ZxtSdVfzJFtv\nl/0PdyACUDraVt+3MEHl3BQAyr1FjXdhUFiMUbGkcfgMXY1ay7beRdTYMmxfQRM/\nEbajXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB\n/wQFMAMBAf8wKQYDVR0OBCIEIP+QB6RNzNndGmk34xXWQDKmLVOJbarWvpzmu3i8\nYeXkMAoGCCqGSM49BAMCA0gAMEUCIQC9Nb5vq5iSEAhI/8/FjfjZGoYyQl9Bc0P8\nqTowg5K2wgIgEOUEYie0pGPwAIjszKTjTS85FlQTMzwz9MdSuFjfawM=\n-----END CERTIFICATE-----\n"
            }
        }
    },
    "peers": {
        "peer0.org1.example.com": {
            "url": "grpcs://168.63.239.163:7051",
            "grpcOptions": {
                "ssl-target-name-override": "peer0.org1.example.com"
            },
            "tlsCACerts": {
                "pem": "-----BEGIN CERTIFICATE-----\nMIICSDCCAe+gAwIBAgIQVO0gpAB5CFlClMWzfDHUyTAKBggqhkjOPQQDAjB2MQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEfMB0GA1UEAxMWdGxz\nY2Eub3JnMS5leGFtcGxlLmNvbTAeFw0xODExMDEwMzI2NDNaFw0yODEwMjkwMzI2\nNDNaMHYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQH\nEw1TYW4gRnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMR8wHQYD\nVQQDExZ0bHNjYS5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D\nAQcDQgAEjZtnYxwNz5DxiSsTwu/Pmq4irErjAkqW/I3lTyqyopxRkqLq7P8XWsga\nwng6iMs6AV2I3hoLcq/83ugQ6TxKOaNfMF0wDgYDVR0PAQH/BAQDAgGmMA8GA1Ud\nJQQIMAYGBFUdJQAwDwYDVR0TAQH/BAUwAwEB/zApBgNVHQ4EIgQgaNWOnAAPNpNB\nMJX5mfx9d34kQ2Ie3MNe2JYx2VXn6y0wCgYIKoZIzj0EAwIDRwAwRAIgRs0BKqeN\n1qWbkBULmOed6MJYMkWxyidE8d6UACrrM7YCIECaxhLVYh2EcT90LIoQOBOpTTxp\njH4Ag8jmBbXo6jnD\n-----END CERTIFICATE-----\n"
            }
        },
        "peer0.org2.example.com": {
            "url": "grpcs://10.0.1.6:9051",
            "grpcOptions": {
                "ssl-target-name-override": "peer0.org2.example.com"
            },
            "tlsCACerts": {
                "pem": "-----BEGIN CERTIFICATE-----\nMIICSTCCAe+gAwIBAgIQDuZ3oe8HRnqnKWbtP/O5QjAKBggqhkjOPQQDAjB2MQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEfMB0GA1UEAxMWdGxz\nY2Eub3JnMi5leGFtcGxlLmNvbTAeFw0xODExMDEwMzI2NDNaFw0yODEwMjkwMzI2\nNDNaMHYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQH\nEw1TYW4gRnJhbmNpc2NvMRkwFwYDVQQKExBvcmcyLmV4YW1wbGUuY29tMR8wHQYD\nVQQDExZ0bHNjYS5vcmcyLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D\nAQcDQgAEF6hrRh6Scl2XXPA3nz7BkbZGDuLsMkNck+OZ5oiHKmUlQO1cmlxOb0iy\nz9rzFspERQ/YAW+eFn+5yq+/Cif81aNfMF0wDgYDVR0PAQH/BAQDAgGmMA8GA1Ud\nJQQIMAYGBFUdJQAwDwYDVR0TAQH/BAUwAwEB/zApBgNVHQ4EIgQghBh8dPAS/Nir\n4cAzu8Yj5WQeJA/4OMByKjJA0LYkYzcwCgYIKoZIzj0EAwIDSAAwRQIhANP3k0gu\nW9hvQZfDUZRQBOMuE5yeGvyzWflzYMP7V+KpAiBPGQEzmza61laKJxNwwA5jfWiJ\ndoZ/64xDZqvEIL0cIg==\n-----END CERTIFICATE-----\n"
            }
        }
    },
    "certificateAuthorities": {
        "ca.org1.example.com": {
            "url": "https://168.63.239.163:7054",
            "caName": "ca-org1",
            "httpOptions": {
                "verify": false
            }
        },
        "ca.org2.example.com": {
            "url": "https://10.0.1.6:8054",
            "caName": "ca-org2",
            "httpOptions": {
                "verify": false
            }
        }
    }
}

0 个答案:

没有答案