Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take snapshot from peer failed #256

Open
mehdi-aghayari opened this issue Feb 27, 2025 · 0 comments
Open

Take snapshot from peer failed #256

mehdi-aghayari opened this issue Feb 27, 2025 · 0 comments

Comments

@mehdi-aghayari
Copy link

mehdi-aghayari commented Feb 27, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant