-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
I need to take snapshot from peer by below command:
peer snapshot submitrequest -b 1 -c demo --peerAddress org1-peer0:7051 --tlsRootCertFile /var/hyperledger/tls/operations/pair/tls.crt
but i got below errors:
2025-02-27 10:32:18.150 UTC 0001 ERRO [comm.tls] ClientHandshake -> Client TLS handshake failed after 2.938355ms with error: tls: failed to verify certificate: x509: certificate signed by unknown authority remoteaddress=10.43.139.161:7051
2025-02-27 10:32:19.157 UTC 0002 ERRO [comm.tls] ClientHandshake -> Client TLS handshake failed after 2.7749ms with error: tls: failed to verify certificate: x509: certificate signed by unknown authority remoteaddress=10.43.139.161:7051
2025-02-27 10:32:20.610 UTC 0003 ERRO [comm.tls] ClientHandshake -> Client TLS handshake failed after 4.922631ms with error: tls: failed to verify certificate: x509: certificate signed by unknown authority remoteaddress=10.43.139.161:7051
Error: failed to retrieve snapshot client: snapshot client failed to connect to org1-peer0:7051: failed to create new connection: context deadline exceeded
I check all below certificate file, but there is same issue
ls -ltrh /var/hyperledger/tls/*/*
/var/hyperledger/tls/client/pair:
total 0
lrwxrwxrwx 1 root root 14 Feb 24 15:23 tls.crt -> ..data/tls.crt
/var/hyperledger/tls/client/cert:
total 0
lrwxrwxrwx 1 root root 15 Feb 24 15:23 cert.pem -> ..data/cert.pem
/var/hyperledger/tls/server/pair:
total 0
lrwxrwxrwx 1 root root 14 Feb 24 15:23 tls.crt -> ..data/tls.crt
/var/hyperledger/tls/server/cert:
total 0
lrwxrwxrwx 1 root root 17 Feb 24 15:23 cacert.pem -> ..data/cacert.pem
/var/hyperledger/tls/operations/pair:
total 0
lrwxrwxrwx 1 root root 14 Feb 24 15:23 tls.crt -> ..data/tls.crt
also I change value of CORE_PEER_TLS_ENABLED from true to false, and i got below
peer snapshot submitrequest -b 1 -c demo --peerAddress org1-peer0:7051
Error: failed to retrieve snapshot client: snapshot client failed to connect to org1-peer0:7051: failed to create new connection: context deadline exceeded
also i check all certificates in network.yaml that i used for install chaincode.
Is there any other solution, or can i use kubectl hlf plugin to take snapshot from peer?
Metadata
Metadata
Assignees
Labels
No labels