xuehuiit / fabric-explorer

Fabric-explorer is a simple, powerful, maintainable, open source fabric explorer
http://www.blockchainbrother.com/
Apache License 2.0
123 stars 58 forks source link

Can't start the demo. An certificate error occurs #6

Closed warm3snow closed 7 years ago

warm3snow commented 7 years ago
请在浏览器访问:http://localhost:9080/
[2017-07-21 10:29:03.776] [DEBUG] metrics - [ 0, 0 ]
[2017-07-21 10:29:03.785] [DEBUG] metrics - [ 0, 0 ]
[2017-07-21 10:29:04.073] [DEBUG] mysqlservice -  the getRowsBySQlCase select count(1) c from chaincodes where channelname='mychannel' 
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")
    at /home/xxx/gopath/src/github.com/onechain/fabric-explorer/node_modules/grpc/src/node/src/client.js:434:17
error: [Client.js]: Failed Installed Chaincodes Query. Error: Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")
    at /home/xxx/gopath/src/github.com/onechain/fabric-explorer/node_modules/grpc/src/node/src/client.js:434:17
[2017-07-21 10:29:04.118] [ERROR] Query - Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")
    at /home/xxx/gopath/src/github.com/onechain/fabric-explorer/node_modules/grpc/src/node/src/client.js:434:17
[2017-07-21 10:29:04.119] [DEBUG] blockscanner - Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")
    at /home/xxx/gopath/src/github.com/onechain/fabric-explorer/node_modules/grpc/src/node/src/client.js:434:17
[2017-07-21 10:29:04.157] [DEBUG] mysqlservice -  the getRowsBySQlCase select max(blocknum) as blocknum from blocks  where channelname='mychannel'
[2017-07-21 10:29:04.179] [DEBUG] mysqlservice -  the getRowsBySQlCase select count(1) c from transaction where channelname='mychannel'
[2017-07-21 10:29:04.181] [DEBUG] mysqlservice -  the getRowsBySQlCase select max(blocknum) c from blocks where channelname='mychannel'
[2017-07-21 10:29:04.750] [ERROR] Helper - admin enrollment failed
[2017-07-21 10:29:04.769] [DEBUG] Query - ===========================================
[2017-07-21 10:29:04.769] [DEBUG] Query - ByteBuffer {
  buffer: <Buffer 08 05 12 20 b5 2a f4 e4 c0 76 9e 4a 78 54 4f 24 e8 09 13 34 1b 3b eb 0b a1 5d de 69 de 34 34 25 cc 49 88 64 1a 20 d5 1d 45 70 13 dc 38 ad 51 df 87 8f ... >,
  offset: 4,
  markedOffset: -1,
  limit: 36,
  littleEndian: true,
  noAssert: false }
[2017-07-21 10:29:04.771] [DEBUG] Query - ===========================================
robertfeng1980 commented 7 years ago

you can close fabric TLS , then restart server try it !

warm3snow commented 7 years ago

I have disabled the TLS, but still have the problem.

v1pka commented 7 years ago

I have the same issue for fabric basic-network example. It can't connect to peer node with reason:

returned x509: certificate signed by unknown authority

shenchao0120 commented 7 years ago

I have exactly the same issue, and I tried it for 2 times still the same error.

warm3snow commented 7 years ago

Did anyone solve this problem? I was stuck here for several days.

michielmulders commented 6 years ago

Any updates on this issue? Getting this in examples with HLFv1.1? When I execute the query all commando in the docker container itself, I get the expected results. But when using the query.js script, it fails as it uses the user1 certificate (when using docker exec I use admin cert).

vanderthiel commented 6 years ago

Just check when you regenerate your certificates, in the docker-compose.yml, update the filename for the CA certificate. It changes when you regenerate your certificates

tk1993 commented 6 years ago

I have changed the FABRIC_CA_SERVER_CA_KEYFILE with the generated artifacts of ca but still got the same error

POST /api/v1/register 401 26 "Untrusted certificate: Failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.epo1.epo.com")"

mkumarceg commented 6 years ago

I am also trying to add node sdk for my fabric multi host application. my CA and peers also has the environmental variable FABRIC_CA_SERVER_CA_KEYFILE and pointing to the ca certificate as well. i can able to query/invoke from the docker bash prompt.

When i am trying to query/invoke using the node sdk facing the same error, As mentioned below,

error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority at new createStatusError (/scratch/node_SDK/fabric-test/nodejs/node_modules/grpc/src/client.js:64:15) at /scratch/node_SDK/fabric-test/nodejs/node_modules/grpc/src/client.js:583:15

Is anybody resolved this error means, kindly post the solution here for reference.

Macaret commented 5 years ago

Any update on this issue?