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 at point 10. Approve chaincode #2

Open
prz3m3k86 opened this issue Mar 1, 2024 · 3 comments
Open

ERROR at point 10. Approve chaincode #2

prz3m3k86 opened this issue Mar 1, 2024 · 3 comments

Comments

@prz3m3k86
Copy link

Hello, I'm trying to do point 10 but unfortunately I'm getting an Error: failed to get discovery service: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: queryChaincode failed: Multiple errors occurred: - Transaction processing for endorser [peer0-org1.localho.st:443]: Chaincode status Code: (500) UNKNOWN. Description: channel 'demo' not found - Transaction processing for endorser [peer1-org1.localho.st:443]: Chaincode status Code: (500) UNKNOWN. Description: channel 'demo' not found

after that I check the status of FabricMainChannel and in response I get:
kubectl get FabricMainChannel
NAME STATE AGE
demo FAILED 32m

describe response:
kubectl describe FabricMainChannel
Name: demo
Namespace:
Labels:
Annotations:
API Version: hlf.kungfusoftware.es/v1alpha1
Kind: FabricMainChannel
Metadata:
Creation Timestamp: 2024-03-01T11:46:42Z
Finalizers:
finalizer.mainChannel.hlf.kungfusoftware.es
Generation: 2
Resource Version: 28668
UID: 8f17ce5e-e210-4eb9-8300-09f2b5cb09cf
Spec:
Admin Orderer Organizations:
Msp ID: OrdererMSP
Admin Peer Organizations:
Msp ID: Org1MSP
Channel Config:
Application:
Acls:
Capabilities:
V2_0
Policies:
Capabilities:
V2_0
Orderer:
Batch Size:
Absolute Max Bytes: 1048576
Max Message Count: 10
Preferred Max Bytes: 524288
Batch Timeout: 2s
Capabilities:
V2_0
Etcd Raft:
Options:
Election Tick: 10
Heartbeat Tick: 1
Max Inflight Blocks: 5
Snapshot Interval Size: 16777216
Tick Interval: 500ms
Orderer Type: etcdraft
Policies:
State: STATE_NORMAL
Policies:
External Orderer Organizations:
External Peer Organizations:
Identities:
Orderer MSP:
Secret Key: user.yaml
Secret Name: orderer-admin-tls
Secret Namespace: default
Orderer MSP - Sign:
Secret Key: user.yaml
Secret Name: orderer-admin-sign
Secret Namespace: default
Org1MSP:
Secret Key: user.yaml
Secret Name: org1-admin
Secret Namespace: default
Name: demo
Orderer Organizations:
Ca Name: ord-ca
Ca Namespace: default
External Orderers To Join:
Host: ord-node1
Port: 7053
Host: ord-node2
Port: 7053
Host: ord-node3
Port: 7053
Msp ID: OrdererMSP
Orderer Endpoints:
orderer0-ord.localho.st:443
orderer1-ord.localho.st:443
orderer2-ord.localho.st:443
Orderers To Join:
Sign CA Cert:
Tls CA Cert:
Orderers:
Host: orderer0-ord.localho.st
Port: 443
Tls Cert: -----BEGIN CERTIFICATE-----
MIIC9jCCAp2gAwIBAgIUEQq4NnMO+XJMRdsc5hjsto7b5/EwCgYIKoZIzj0EAwIw
bTELMAkGA1UEBhMCRVMxETAPBgNVBAcTCEFsaWNhbnRlMREwDwYDVQQJEwhBbGlj
YW50ZTEZMBcGA1UEChMQS3VuZyBGdSBTb2Z0d2FyZTENMAsGA1UECxMEVGVjaDEO
MAwGA1UEAxMFdGxzY2EwHhcNMjQwMjI5MTE0MzExWhcNMjUwMzAxMTE0NDAwWjAk
MRAwDgYDVQQLEwdvcmRlcmVyMRAwDgYDVQQDEwdvcmRlcmVyMFkwEwYHKoZIzj0C
AQYIKoZIzj0DAQcDQgAEP8OtPt0SH3AuxY6Uzj92d9ZmbAfnTUyK+6jYbeinYae8
yRvHiG8C8K7UEIVGxPCs1OXTeW4iyZX46vT/uM0h4aOCAWIwggFeMA4GA1UdDwEB
/wQEAwIDqDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/
BAIwADAdBgNVHQ4EFgQUmYJzVtWcMjsEB0rZfqkDvmVfkLQwKwYDVR0jBCQwIoAg
SqZm926Hnb22lLfGT50nKqDG9PJGv31uO4nTWdz8wRAwdgYDVR0RBG8wbYIJbG9j
YWxob3N0ggl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oAg
SqZm926Hnb22lLfGT50nKqDG9PJGv31uO4nTWdz8wRAwdgYDVR0RBG8wbYIJbG9j
YWxob3N0gglvcmQtbm9kZTOCEW9yZC1ub2RlMy5kZWZhdWx0ghdvcmRlcmVyMi1v
cmQubG9jYWxoby5zdIIdYWRtaW4tb3JkZXJlcjItb3JkLmxvY2FsaG8uc3SHBH8A
AAGHBKwSAAIwWwYIKgMEBQYHCAEET3siYXR0cnMiOnsiaGYuQWZmaWxpYXRpb24i
OiIiLCJoZi5FbnJvbGxtZW50SUQiOiJvcmRlcmVyIiwiaGYuVHlwZSI6Im9yZGVy
ZXIifX0wCgYIKoZIzj0EAwIDSAAwRQIhAJJ5csEigbnuPFGWwK1Baik6tHQWJoaM
1shQzzpEr/0lAiBspzwfoPMpkdt8CtRJ8DmOEj6GG9B/zUJqW6pOZGvM6w==
-----END CERTIFICATE-----
Peer Organizations:
Ca Name: org1-ca
Ca Namespace: default
Msp ID: Org1MSP
Ca Name: org2-ca
Ca Namespace: default
Msp ID: Org2MSP
Status:
Conditions:
Last Transition Time: 2024-03-01T11:46:52Z
Message: failed to get block from channel demo: Orderer Server Status Code: (503) SERVICE_UNAVAILABLE. Description: error status from ordering service
Reason: failed to get block from channel demo: Orderer Server Status Code: (503) SERVICE_UNAVAILABLE. Description: error status from ordering service
Status: False
Type: FAILED
Message: failed to get block from channel demo: Orderer Server Status Code: (503) SERVICE_UNAVAILABLE. Description: error status from ordering service
Status: FAILED
Events:

@prz3m3k86 prz3m3k86 changed the title ERROR at ERROR at point 10. Approve chaincode Mar 1, 2024
@PedroCarvalhoHenriques
Copy link

Same here! Did you find a fix?

@skylight74
Copy link

+1

1 similar comment
@sileymane
Copy link

+1

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

4 participants