fabric报错io.grpc.StatusRuntimeException: INTERNAL: http2 exception

fabric 版本:1.4.1
Java SDK调用时报以下错误:
2019/11/05-17:27:43 [grpc-default-executor-1] ERROR org.hyperledger.fabric.sdk.OrdererClient- OrdererClient{id: 90, channel: mychannel, name: orderer.example.com, url: grpc://192.168.1.35:7050} managed channel isTerminated: false, isShutdown: false, state: TRANSIENT_FAILURE
2019/11/05-17:27:43 [grpc-default-executor-1] ERROR org.hyperledger.fabric.sdk.OrdererClient- Received error org.hyperledger.fabric.sdk.OrdererClient$1@5fa3cc36 INTERNAL: http2 exception
io.grpc.StatusRuntimeException: INTERNAL: http2 exception
查看日志,可以看到区块链服务器时间需用的是California时间,而应用服务器时间是上海时间,因此报错.
解决办法:修改区块链服务器的时间为上海时间

ERROR org.hyperledger.fabric.sdk.security.CryptoPrimitives- Cannot validate certificate. Error is: timestamp check failed
Certificate[
[
Version: V3
Subject: CN=peer0.org3.example.com, OU=peer, L=San Francisco, ST=California, C=US
Signature Algorithm: SHA256withECDSA, OID = 1.2.840.10045.4.3.2

Key: Sun EC public key, 256 bits
public x coord: 107139236378922434531445381490527522718505550724751939398105634793001844032176
public y coord: 15155956626152043742999206899639805794203891027690563608555523076876038145036
parameters: secp256r1 [NIST P-256, X9.62 prime256v1] (1.2.840.10045.3.1.7)
Validity: [From: Wed Nov 06 01:06:00 CST 2019,
To: Sat Nov 03 01:06:00 CST 2029]
Issuer: CN=ca.org3.example.com, O=org3.example.com, L=San Francisco, ST=California, C=US
SerialNumber: [ 9e4cf0f9 bc6f3e8a 1a5cb659 68627d4b]

Certificate Extensions: 3
[1]: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
0000: D2 99 06 E2 CA 7C BD 3D 83 C7 17 C8 B2 60 FA F3 …=…`…
0010: F6 41 74 78 0E B0 6E 8B B8 03 1A 8C 04 AD 34 72 .Atx…n…4r
]
]

[2]: ObjectId: 2.5.29.19 Criticality=true
BasicConstraints:[
CA:false
PathLen: undefined
]

[3]: ObjectId: 2.5.29.15 Criticality=true
KeyUsage [
DigitalSignature
]

]
Algorithm: [SHA256withECDSA]
Signature:
0000: 30 45 02 21 00 ED 83 88 51 12 1A AF 38 DC 49 78 0E.!..Q…8.Ix
0010: BE 58 FC A2 39 98 A5 BF 2C 97 3F 2B B6 10 5B DE .X…9…,.?+…[.
0020: EF B5 1F E0 5D 02 20 58 9F 2F EB AD AC F3 82 04 …]. X./…
0030: B2 F6 13 9E DF 9E 33 DF E5 5B 8F 83 88 75 41 AA …3…[…uA.
0040: 34 FF A8 0B B7 70 B6 4…p.

]

你可能感兴趣的:(Fabric,Hyperledger)