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

Error: error getting endorser client for query: endorser client failed to connect to blockchain-org1peer1:30110: failed to create new connection: context deadline exceeded #50

Closed
Maxiaoyu0 opened this issue Jul 4, 2019 · 12 comments

Comments

@Maxiaoyu0
Copy link

hello ,i have aways this problem.

@Maxiaoyu0
Copy link
Author

here are all my log.
root@blockchain-org2peer1-8446b47ccc-468nb:/# peer chaincode query -C channel1 -n cc -c '{"Args":["query","a"]}'
2019-07-04 09:33:36.728 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP
2019-07-04 09:33:36.730 UTC [viperutil] getKeysRecursively -> DEBU 002 Found map[string]interface{} value for peer.BCCSP.SW
2019-07-04 09:33:36.731 UTC [viperutil] unmarshalJSON -> DEBU 003 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2019-07-04 09:33:36.732 UTC [viperutil] getKeysRecursively -> DEBU 004 Found real value for peer.BCCSP.SW.Hash setting to string SHA2
2019-07-04 09:33:36.733 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value is not a string: 256
2019-07-04 09:33:36.734 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.SW.Security setting to int 256
2019-07-04 09:33:36.735 UTC [viperutil] getKeysRecursively -> DEBU 007 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore
2019-07-04 09:33:36.735 UTC [viperutil] unmarshalJSON -> DEBU 008 Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input
2019-07-04 09:33:36.736 UTC [viperutil] getKeysRecursively -> DEBU 009 Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string
2019-07-04 09:33:36.736 UTC [viperutil] getKeysRecursively -> DEBU 00a Found map[string]interface{} value for peer.BCCSP.PKCS11
2019-07-04 09:33:36.738 UTC [viperutil] unmarshalJSON -> DEBU 00b Unmarshal JSON: value is not a string:
2019-07-04 09:33:36.739 UTC [viperutil] getKeysRecursively -> DEBU 00c Found real value for peer.BCCSP.PKCS11.Pin setting to
2019-07-04 09:33:36.741 UTC [viperutil] unmarshalJSON -> DEBU 00d Unmarshal JSON: value is not a string:
2019-07-04 09:33:36.742 UTC [viperutil] getKeysRecursively -> DEBU 00e Found real value for peer.BCCSP.PKCS11.Hash setting to
2019-07-04 09:33:36.743 UTC [viperutil] unmarshalJSON -> DEBU 00f Unmarshal JSON: value is not a string:
2019-07-04 09:33:36.744 UTC [viperutil] getKeysRecursively -> DEBU 010 Found real value for peer.BCCSP.PKCS11.Security setting to
2019-07-04 09:33:36.745 UTC [viperutil] getKeysRecursively -> DEBU 011 Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore
2019-07-04 09:33:36.746 UTC [viperutil] unmarshalJSON -> DEBU 012 Unmarshal JSON: value is not a string:
2019-07-04 09:33:36.747 UTC [viperutil] getKeysRecursively -> DEBU 013 Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to
2019-07-04 09:33:36.749 UTC [viperutil] unmarshalJSON -> DEBU 014 Unmarshal JSON: value is not a string:
2019-07-04 09:33:36.750 UTC [viperutil] getKeysRecursively -> DEBU 015 Found real value for peer.BCCSP.PKCS11.Library setting to
2019-07-04 09:33:36.751 UTC [viperutil] unmarshalJSON -> DEBU 016 Unmarshal JSON: value is not a string:
2019-07-04 09:33:36.752 UTC [viperutil] getKeysRecursively -> DEBU 017 Found real value for peer.BCCSP.PKCS11.Label setting to
2019-07-04 09:33:36.753 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2019-07-04 09:33:36.754 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.Default setting to string SW
2019-07-04 09:33:36.754 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[SW:map[Hash:SHA2 Security:256 FileKeyStore:map[KeyStore:]] PKCS11:map[Label: Pin: Hash: Security: FileKeyStore:map[KeyStore:] Library:] Default:SW]]
2019-07-04 09:33:36.754 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/keystore]...done
2019-07-04 09:33:36.754 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW]
2019-07-04 09:33:36.755 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/signcerts
2019-07-04 09:33:36.755 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/signcerts/peer0.org2.example.com-cert.pem
2019-07-04 09:33:36.755 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/cacerts
2019-07-04 09:33:36.756 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/cacerts/ca.org2.example.com-cert.pem
2019-07-04 09:33:36.756 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/admincerts
2019-07-04 09:33:36.756 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/admincerts/Admin@org2.example.com-cert.pem
2019-07-04 09:33:36.756 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/intermediatecerts
2019-07-04 09:33:36.756 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/intermediatecerts]. Skipping. [stat /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/intermediatecerts: no such file or directory]
2019-07-04 09:33:36.756 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts
2019-07-04 09:33:36.757 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem
2019-07-04 09:33:36.757 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlsintermediatecerts
2019-07-04 09:33:36.757 UTC [msp] getMspConfig -> DEBU 028 TLS intermediate certs folder not found at [/shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlsintermediatecerts]. Skipping. [stat /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlsintermediatecerts: no such file or directory]
2019-07-04 09:33:36.757 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/crls
2019-07-04 09:33:36.757 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/crls]. Skipping. [stat /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/crls: no such file or directory]
2019-07-04 09:33:36.757 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/config.yaml]: [stat /shared/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/config.yaml: no such file or directory]
2019-07-04 09:33:36.757 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance
2019-07-04 09:33:36.758 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance
2019-07-04 09:33:36.758 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP
2019-07-04 09:33:36.758 UTC [msp] Setup -> DEBU 02f Setting up MSP instance Org2MSP
2019-07-04 09:33:36.759 UTC [msp.identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICUTCCAfegAwIBAgIQblqtVM0+656lV4jHzdDzsDAKBggqhkjOPQQDAjBzMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu
b3JnMi5leGFtcGxlLmNvbTAeFw0xOTA3MDQwODQ2MDBaFw0yOTA3MDEwODQ2MDBa
MHMxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T
YW4gRnJhbmNpc2NvMRkwFwYDVQQKExBvcmcyLmV4YW1wbGUuY29tMRwwGgYDVQQD
ExNjYS5vcmcyLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
5kcDHgcbECilGVFUfMcW+BGrH+9Nn1qdJjbOwS14P7loNEE/PqVWhfK4ySLQv8U0
di8TI1uxjWxN1IMwiRLjF6NtMGswDgYDVR0PAQH/BAQDAgGmMB0GA1UdJQQWMBQG
CCsGAQUFBwMCBggrBgEFBQcDATAPBgNVHRMBAf8EBTADAQH/MCkGA1UdDgQiBCCf
wnmuWnHxiQ8s3xigLCEqnZ7caPLDZTleLIsJl35K5zAKBggqhkjOPQQDAgNIADBF
AiEA4PSvm3M3oltuD5QpPGpmdRG06peNK3WtIObM8jE1iWYCIHiyoolmr6QbFAtq
HY+FPbFvTeLvQuwaDVYaplKDZw5z
-----END CERTIFICATE-----
2019-07-04 09:33:36.760 UTC [msp.identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICGDCCAb+gAwIBAgIQa+bBfzMFdtBTISUEVT4F2jAKBggqhkjOPQQDAjBzMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu
b3JnMi5leGFtcGxlLmNvbTAeFw0xOTA3MDQwODQ2MDBaFw0yOTA3MDEwODQ2MDBa
MFsxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T
YW4gRnJhbmNpc2NvMR8wHQYDVQQDDBZBZG1pbkBvcmcyLmV4YW1wbGUuY29tMFkw
EwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEMI+Z7oWAnEEQPwmQSc85aMvub/uF1ndg
XG8SkaLZt8NnyPSeBIwqCq923v44TmAHmUwx22bkdEqAAgitfizFg6NNMEswDgYD
VR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAgn8J5rlpx8YkP
LN8YoCwhKp2e3Gjyw2U5XiyLCZd+SucwCgYIKoZIzj0EAwIDRwAwRAIgYo4bvY8z
Vfj2Bal4L3yNFRpv7118OG+oaNh7x+bdmdcCIC58pDKG1v+8qqYwjBczrSPmMdbs
WCi01fbpNdbaf/NF
-----END CERTIFICATE-----
2019-07-04 09:33:36.761 UTC [msp.identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICGTCCAb+gAwIBAgIQQCwhRjjGbjFZT/4igcoZeDAKBggqhkjOPQQDAjBzMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy
YW5jaXNjbzEZMBcGA1UEChMQb3JnMi5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w
EwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE613IFHF2AtBgAUEhVe1xoHkPuv5JgIwV
Tx8mtuMJkL4zn+/lYK8bMSGR7Yqnx/yrO6yYw+MyOgaafFfp6sLT+qNNMEswDgYD
VR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAgn8J5rlpx8YkP
LN8YoCwhKp2e3Gjyw2U5XiyLCZd+SucwCgYIKoZIzj0EAwIDSAAwRQIhALEtygEK
bZ2+pjct9kEoFf7I3fvf+xaO1UeBmoaXE4y0AiAs0S0gEN+z952G56snkS6jJOQa
j9E1CwcPnW3UDJDFMg==
-----END CERTIFICATE-----
2019-07-04 09:33:36.765 UTC [msp] setupSigningIdentity -> DEBU 034 Signing identity expires at 2029-07-01 08:46:00 +0000 UTC
2019-07-04 09:33:36.766 UTC [msp] Validate -> DEBU 035 MSP Org2MSP validating identity
2019-07-04 09:33:36.767 UTC [grpc] DialContext -> DEBU 036 parsed scheme: ""
2019-07-04 09:33:36.768 UTC [grpc] DialContext -> DEBU 037 scheme "" not registered, fallback to default scheme
2019-07-04 09:33:36.769 UTC [grpc] watcher -> DEBU 038 ccResolverWrapper: sending new addresses to cc: [{blockchain-org2peer1:30210 0 }]
2019-07-04 09:33:36.770 UTC [grpc] switchBalancer -> DEBU 039 ClientConn switching balancer to "pick_first"
2019-07-04 09:33:36.771 UTC [grpc] HandleSubConnStateChange -> DEBU 03a pickfirstBalancer: HandleSubConnStateChange: 0xc00023c7c0, CONNECTING
Error: error getting endorser client for query: endorser client failed to connect to blockchain-org2peer1:30210: failed to create new connection: context deadline exceeded
root@blockchain-org2peer1-8446b47ccc-468nb:/# exit

@Maxiaoyu0
Copy link
Author

image

@maheshwarishikha
Copy link
Contributor

@Maxiaoyu0 , few points -

  • as per your snapshot of logs, it shows chaincode is installed properly.
  • is it instantiated successfully?
  • 'query error' - is there for all peers?

@Maxiaoyu0
Copy link
Author

the chaincode is installed properly but it cant it instantiated successfully in channel.

@maheshwarishikha
Copy link
Contributor

ok, what error message it throws?

@Randyshu2018
Copy link

I have the same issue and whatever I made a request, I just received the same error:
image

@maheshwarishikha
Copy link
Contributor

@Maxiaoyu0 ,Randyshu2018 , plz check #54 if it helps.

@advissor
Copy link

@maheshwarishikha when repo will be updated with fix for docker/dind tls config?

@maheshwarishikha
Copy link
Contributor

@advissor , will update this soon. Thanks again!

@Ailab666666
Copy link

@maheshwarishikha Hi, I have same question, Have you solve this? Thank you

@lr-sanchez
Copy link

Hello, I have the same issue. Change the dind version did not work. Any guess ?

@lr-sanchez
Copy link

@maheshwarishikha Hi, I have same question, Have you solve this? Thank you

Hello guys, did you find a solution ? Thanks.

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

6 participants