Comments (16)
Yeah I got the resolution There are 2 steps to resolve this :
1 Firstly update the FABRIC_CA_SERVER_CA_KEYFILE in docker-compose file with the key found in
crypto-config/peerOrganizations/peer_name/ca/name_sk
peer_name : for all peer organization you have defined in network
name_sk : the key having extension _sk
2 Check your repository where you have put enrolled users certificate whether it contains certificates if yes then delete all certificates including admin certificates.Now try to enroll USERS
from fabric-explorer.
I am running the default settings with TLS disabled.
{
"host":"localhost",
"port":"8080",
"channelsList": ["mychannel"],
"GOPATH":"../artifacts",
"keyValueStore":"/tmp/fabric-client-kvs",
"eventWaitTime":"30000",
"enableTls":false,
"users":[
from fabric-explorer.
the same error come out and how to fix it?
from fabric-explorer.
from fabric-explorer.
Ok, I was able to run fabric-docker-compose-svt with TLS (this is not the default mode) enabled by manually changing start.sh to provide a -s option for ./network_setup.sh and setting environmental variable ENABLE_TLS=true.
Then did as you suggested but now I'm getting this error instead:
Please open Internet explorer to access :http://localhost:8080/
[2017-09-09 11:46:26.646] [DEBUG] metrics - [ 0, 0 ]
[2017-09-09 11:46:26.649] [DEBUG] metrics - [ 0, 0 ]
[2017-09-09 11:46:26.658] [DEBUG] mysqlservice - the getRowsBySQlCase select count(1) c from chaincodes where channelname='mychannel'
[2017-09-09 11:46:26.659] [DEBUG] mysqlservice - the getRowsBySQlCase select max(blocknum) as blocknum from blocks where channelname='mychannel'
[2017-09-09 11:46:26.668] [DEBUG] mysqlservice - the getRowsBySQlCase select count(1) c from transaction where channelname='mychannel'
[2017-09-09 11:46:26.669] [DEBUG] mysqlservice - the getRowsBySQlCase select max(blocknum) c from blocks where channelname='mychannel'
E0909 11:46:26.718498588 94300 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect Failed
at /home/ercw/go/src/github.com/hyperledger/fabric/examples/fabric-docker-compose-svt/fabric-explorer/node_modules/grpc/src/node/src/client.js:554:15
error: [Client.js]: Failed Installed Chaincodes Query. Error: Error: Connect Failed
at /home/ercw/go/src/github.com/hyperledger/fabric/examples/fabric-docker-compose-svt/fabric-explorer/node_modules/grpc/src/node/src/client.js:554:15
[2017-09-09 11:46:26.723] [ERROR] Query - Error: Connect Failed
at /home/ercw/go/src/github.com/hyperledger/fabric/examples/fabric-docker-compose-svt/fabric-explorer/node_modules/grpc/src/node/src/client.js:554:15
[2017-09-09 11:46:26.723] [DEBUG] blockscanner - Error: Connect Failed
at /home/ercw/go/src/github.com/hyperledger/fabric/examples/fabric-docker-compose-svt/fabric-explorer/node_modules/grpc/src/node/src/client.js:554:15
E0909 11:46:26.734817073 94300 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect Failed
at /home/ercw/go/src/github.com/hyperledger/fabric/examples/fabric-docker-compose-svt/fabric-explorer/node_modules/grpc/src/node/src/client.js:554:15
error: [Channel.js]: Failed Query channel info. Error: Error: Connect Failed
at /home/ercw/go/src/github.com/hyperledger/fabric/examples/fabric-docker-compose-svt/fabric-explorer/node_modules/grpc/src/node/src/client.js:554:15
[2017-09-09 11:46:26.735] [ERROR] Query - Error: Connect Failed
at /home/ercw/go/src/github.com/hyperledger/fabric/examples/fabric-docker-compose-svt/fabric-explorer/node_modules/grpc/src/node/src/client.js:554:15
[2017-09-09 11:46:26.736] [DEBUG] Query - <<<<<<<<<< channel height >>>>>>>>>
[2017-09-09 11:46:26.736] [ERROR] blockscanner - TypeError: Cannot read property 'low' of undefined
at getChainInfo.then.response (/home/ercw/go/src/github.com/hyperledger/fabric/examples/fabric-docker-compose-svt/fabric-explorer/app/query.js:242:32)
[2017-09-09 11:46:27.651] [DEBUG] metrics - [ 0, 0 ]
[2017-09-09 11:46:27.652] [DEBUG] metrics - [ 0, 0 ]
[2017-09-09 11:46:27.652] [DEBUG] mysqlservice - the getRowsBySQlCase select count(1) c from chaincodes where channelname='mychannel'
from fabric-explorer.
from fabric-explorer.
The error above is with "enableTls":true
from fabric-explorer.
Hi Gurus,
Currently,I hit the following errors in using fabric-explorer to another sample, it is FabCar(fabric1.0 sample).Could you please help check what the cause is? thanks!
[2017-10-11 16:21:09.722] [DEBUG] metrics - [ 0, 0 ]
[2017-10-11 16:21:09.723] [DEBUG] metrics - [ 0, 0 ]
[2017-10-11 16:21:09.723] [DEBUG] mysqlservice - the getRowsBySQlCase select count(1) c from chaincodes where channelname='mychannel'
[2017-10-11 16:21:09.724] [DEBUG] mysqlservice - the getRowsBySQlCase select count(1) c from transaction where channelname='mychannel'
[2017-10-11 16:21:09.724] [DEBUG] mysqlservice - the getRowsBySQlCase select max(blocknum) c from blocks where channelname='mychannel'
[2017-10-11 16:21:09.889] [ERROR] Helper - =============Peer=peer1
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 /root/fabric-explorer/node_modules/grpc/src/node/src/client.js:554:15
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 /root/fabric-explorer/node_modules/grpc/src/node/src/client.js:554:15
[2017-10-11 16:21:09.897] [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 /root/fabric-explorer/no
...
The config of network-config.json is as below:
{
"network-config": {
"orderer": [{
"url": "grpc://127.0.0.1:7050",
"server-hostname": "orderer0.example.com"
}
],
"org1": {
"name": "peerOrg1",
"mspid": "Org1MSP",
"ca": "http://127.0.0.1:7054",
"peer1": {
"requests": "grpc://127.0.0.1:7051",
"events": "grpc://127.0.0.1:7053",
"server-hostname": "peer0.org1.example.com"
},
"admin": {
"key": "/artifacts/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore",
"cert": "/artifacts/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts"
}
}
}
}
And the config.json is as below:
{
"host":"localhost",
"port":"8080",
"channelsList": ["mychannel"],
"GOPATH":"../artifacts",
"keyValueStore":"/tmp/fabric-client-kvs2",
"eventWaitTime":"30000",
"enableTls":false,
"users":[
{
"username":"admin",
"secret":"adminpw"
}
],
"mysql":{
"host":"127.0.0.1",
"database":"fabricexplorer",
"port":"3306",
"username":"root",
"passwd":""
}
}
from fabric-explorer.
I have run into same error,had you fixed?
from fabric-explorer.
i have the same error too,
from fabric-explorer.
try migrating your code to fabric samples v1.0.2 ..it was a bug in v1.0..
and run the code again...it would work..and do put tls to false in network config.
from fabric-explorer.
Same error with 1.0.5 also.. it works in somtimes.. and then when I regenerate the certs, i get the same errors again.
from fabric-explorer.
same problem with 1.1 alfa
from fabric-explorer.
Ok so I ran into this same problem and it cost me a couple of hours to figure out, for me this was caused by running generate.sh again to regenerate my artifacts, including the certificates. There is a setting in the docker-compose.yml for the ca.example.com service. It's called FABRIC_CA_SERVER_CA_KEYFILE and it must point to the newly generated certificate file name, since on regeneration the filename changed.
from fabric-explorer.
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")"
from fabric-explorer.
Another way this can happen is if the orderer container tries to start before the certificate authority container, you want to make sure that orderer.example.com has something like:
depends_on:
ca.example.com
or in some other way ensure the orderer container starts after the CA
from fabric-explorer.
Related Issues (20)
- 请确认 tls 读取证书路径的方法是没有问题的 HOT 1
- something wrong start fabric-docker-compose-svt HOT 5
- admin
- admin failed to register, admin enrollment failed HOT 1
- TypeError: Cannot read property 'low' of undefined HOT 25
- No search file
- why require `query` twice? any trick here? HOT 1
- channel creation failed HOT 1
- Error when integrating Composer with Explorer
- 按照文档不能启动
- No identity has been assigned to this client HOT 2
- [ERROR] Query - Error: Missing userContext parameter HOT 1
- mysql . 导入数据的时候~报错 HOT 3
- no channel information defined in example on main page
- 接入自己网络遇到问题 TypeError: Cannot read property 'forEach' of undefined HOT 1
- Demo HOT 5
- Can't start the demo. An certificate error occurs HOT 10
- 请问这个项目的架构图有吗?是否可以分享出来学习一下? HOT 1
- 烦请确认在 tls 下,证书读取的路径是没有问题的
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabric-explorer.