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

Chaincode status Code: (500) UNKNOWN. Description: error in simulation: failed to execute transaction #9

Open
geniusunil opened this issue Sep 4, 2022 · 1 comment

Comments

@geniusunil
Copy link

When I run the cod with ./kfg
I get the following error :
[fabsdk/fab] 2022/09/04 10:26:51 UTC - fab.detectDeprecatedNetworkConfig -> WARN Getting orderers from endpoint config channels.orderer is deprecated, use entity matchers to override orderer configuration [fabsdk/fab] 2022/09/04 10:26:51 UTC - fab.detectDeprecatedNetworkConfig -> WARN visit https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/overrides/local_entity_matchers.yaml for samples [worker:0] Send transaction 0 (asset-DJVBLAS1E4) [worker:0] Failed to send transaction 0 (asset-DJVBLAS1E4). Failed to send transaction to invoke the chaincode. Transaction processing for endorser [u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:443]: Chaincode status Code: (500) UNKNOWN. Description: error in simulation: failed to execute transaction 714b88eb60d5064b66d5ec561d8e8920fdfc48a73188911130909c3d51bd1a67: could not launch chaincode asset_transfer-1.0.0.u0q5usloru:16e44a2cce0051f12625c70a79695c547d65a88d6a1920604101483e424659de: chaincode registration failed: failed to wait on container exit: builder 'bin-builder' run failed: exit status 126

Complete output is like :
`$ ./kfg
Using the Fabric SDK for transaction submission
Initializing Kaleido Network...
URL: https://console.kaleido.io/api/v1
Select the target consortium:
[0] Supply Chain (setup,id=u0d8nasjzo)
[1] two (setup,id=u0hq576tnc)
[2] blockchain network (setup,id=u0o4bxq3gl)
[3] three (setup,id=u0oloivawt)
-> 0
Target consortium: Supply Chain (id=u0d8nasjzo)
Target environment: demo (id=u0e1qk12dv)
Select the membership to submit transactions from:
[0] Root (u0ne44wnnf)
[1] Acme (u0p1aq0cfk)
[2] Bank1 (u0l18yeth2)
-> 0
Target membership: Root (id=u0ne44wnnf)
Select the channel to submit transactions to:
[0] default-channel
[1] us-trades
-> 0
Found fabric-ca service u0f3lexhrb for my membership u0ne44wnnf
Found orderer u0f4ylrlrl (membership=u0ne44wnnf)
Found peer u0l1a90jwq (membership=u0ne44wnnf)
Found orderer u0cye84sar (membership=u0ne44wnnf)
Found orderer u0w51sx2vy (membership=u0p1aq0cfk)
Found peer u0ub3exzn9 (membership=u0p1aq0cfk)

certificateAuthorities:
u0ne44wnnf:
tlsCACerts:
path: D:\Sunil\projects\gstBlockchainProject\kaleido-fabric-samples-master\kaleido-fabric-samples-master\golang/resources/kaleido_ca.pem
url: https://u0e1qk12dv-u0f3lexhrb-fabric-ca.us0-aws.kaleido.io
channels:
default-channel:
orderers:
- u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io
peers:
u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:
chaincodeQuery: true
endorsingPeer: true
eventSource: true
ledgerQuery: true
u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:
chaincodeQuery: true
endorsingPeer: true
eventSource: true
ledgerQuery: true
client:
BCCSP:
security:
default:
provider: SW
enabled: true
hashAlgorithm: SHA2
level: 256
softVerify: true
credentialStore:
cryptoStore:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
cryptoconfig:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
logging:
level: info
organization: u0ne44wnnf
orderers:
u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0f4ylrlrl/ca.pem
url: u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io:443
organizations:
u0l18yeth2:
cryptoPath: /tmp/msp
mspid: u0l18yeth2
peers: []
u0ne44wnnf:
certificateAuthorities:
- u0ne44wnnf
cryptoPath: /tmp/msp
mspid: u0ne44wnnf
peers:
- u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io
u0p1aq0cfk:
cryptoPath: /tmp/msp
mspid: u0p1aq0cfk
peers:
- u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io
peers:
u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0l1a90jwq/ca.pem
url: u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:443
u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0ub3exzn9/ca.pem
url: u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:443
version: 1.1.0

[fabsdk/fab] 2022/09/04 09:43:38 UTC - fab.detectDeprecatedNetworkConfig -> WARN Getting orderers from endpoint config channels.orderer is deprecated, use entity matchers to override orderer configuration
[fabsdk/fab] 2022/09/04 09:43:38 UTC - fab.detectDeprecatedNetworkConfig -> WARN visit https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/overrides/local_entity_matchers.yaml for samples
Signing identity: &{u0ne44wnnf user1}

certificateAuthorities:
u0ne44wnnf:
tlsCACerts:
path: D:\Sunil\projects\gstBlockchainProject\kaleido-fabric-samples-master\kaleido-fabric-samples-master\golang/resources/kaleido_ca.pem
url: https://u0e1qk12dv-u0f3lexhrb-fabric-ca.us0-aws.kaleido.io
channels:
default-channel:
orderers:
- u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io
peers:
u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:
chaincodeQuery: true
endorsingPeer: true
eventSource: true
ledgerQuery: true
u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:
chaincodeQuery: true
endorsingPeer: true
eventSource: true
ledgerQuery: true
client:
BCCSP:
security:
default:
provider: SW
enabled: true
hashAlgorithm: SHA2
level: 256
softVerify: true
credentialStore:
cryptoStore:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
cryptoconfig:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
logging:
level: info
organization: u0ne44wnnf
tlsCerts:
client:
cert:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp/user1@u0ne44wnnf-cert.pem
key:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp/keystore/9a25310ed80c20495cb1db43b876b51bd3e820c868c69984dd6ab9500bb8fa47_sk
orderers:
u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0f4ylrlrl/ca.pem
url: u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io:443
organizations:
u0l18yeth2:
cryptoPath: /tmp/msp
mspid: u0l18yeth2
peers: []
u0ne44wnnf:
certificateAuthorities:
- u0ne44wnnf
cryptoPath: /tmp/msp
mspid: u0ne44wnnf
peers:
- u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io
u0p1aq0cfk:
cryptoPath: /tmp/msp
mspid: u0p1aq0cfk
peers:
- u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io
peers:
u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0l1a90jwq/ca.pem
url: u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:443
u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0ub3exzn9/ca.pem
url: u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:443
version: 1.1.0

[fabsdk/fab] 2022/09/04 09:43:38 UTC - fab.detectDeprecatedNetworkConfig -> WARN Getting orderers from endpoint config channels.orderer is deprecated, use entity matchers to override orderer configuration
[fabsdk/fab] 2022/09/04 09:43:38 UTC - fab.detectDeprecatedNetworkConfig -> WARN visit https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/overrides/local_entity_matchers.yaml for samples
[worker:0] Send transaction 0 (asset-CVOR0TIE5U)
[worker:0] Failed to send transaction 0 (asset-CVOR0TIE5U). Failed to send transaction to invoke the chaincode. Transaction processing for endorser [u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:443]: Chaincode status Code: (500) UNKNOWN. Description: error in simulation: failed to execute transaction 2bbcc6c2a2513dd38107e0059a23bfe767b371f7e9f147fbe9d541b4856fb1d1: could not launch chaincode asset_transfer-1.0.0.u0q5usloru:16e44a2cce0051f12625c70a79695c547d65a88d6a1920604101483e424659de: chaincode registration failed: failed to wait on container exit: builder 'bin-builder' run failed: exit status 126

All transactions submitted

All Done!

Sunil@DESKTOP-DH1O5F3 MINGW64 /d/Sunil/projects/gstBlockchainProject/kaleido-fabric-samples-master/kaleido-fabric-samples-master/golang
$ ./kfg
Using the Fabric SDK for transaction submission
Initializing Kaleido Network...
URL: https://console.kaleido.io/api/v1
Select the target consortium:
[0] Supply Chain (setup,id=u0d8nasjzo)
[1] two (setup,id=u0hq576tnc)
[2] blockchain network (setup,id=u0o4bxq3gl)
[3] three (setup,id=u0oloivawt)
-> 0
Target consortium: Supply Chain (id=u0d8nasjzo)
Target environment: demo (id=u0e1qk12dv)
Select the membership to submit transactions from:
[0] Root (u0ne44wnnf)
[1] Acme (u0p1aq0cfk)
[2] Bank1 (u0l18yeth2)
-> 0
Target membership: Root (id=u0ne44wnnf)
Select the channel to submit transactions to:
[0] default-channel
[1] us-trades
-> 0
Found fabric-ca service u0f3lexhrb for my membership u0ne44wnnf
Found orderer u0f4ylrlrl (membership=u0ne44wnnf)
Found peer u0l1a90jwq (membership=u0ne44wnnf)
Found orderer u0cye84sar (membership=u0ne44wnnf)
Found orderer u0w51sx2vy (membership=u0p1aq0cfk)
Found peer u0ub3exzn9 (membership=u0p1aq0cfk)

certificateAuthorities:
u0ne44wnnf:
tlsCACerts:
path: D:\Sunil\projects\gstBlockchainProject\kaleido-fabric-samples-master\kaleido-fabric-samples-master\golang/resources/kaleido_ca.pem
url: https://u0e1qk12dv-u0f3lexhrb-fabric-ca.us0-aws.kaleido.io
channels:
default-channel:
orderers:
- u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io
peers:
u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:
chaincodeQuery: true
endorsingPeer: true
eventSource: true
ledgerQuery: true
u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:
chaincodeQuery: true
endorsingPeer: true
eventSource: true
ledgerQuery: true
client:
BCCSP:
security:
default:
provider: SW
enabled: true
hashAlgorithm: SHA2
level: 256
softVerify: true
credentialStore:
cryptoStore:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
cryptoconfig:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
logging:
level: info
organization: u0ne44wnnf
orderers:
u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0f4ylrlrl/ca.pem
url: u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io:443
organizations:
u0l18yeth2:
cryptoPath: /tmp/msp
mspid: u0l18yeth2
peers: []
u0ne44wnnf:
certificateAuthorities:
- u0ne44wnnf
cryptoPath: /tmp/msp
mspid: u0ne44wnnf
peers:
- u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io
u0p1aq0cfk:
cryptoPath: /tmp/msp
mspid: u0p1aq0cfk
peers:
- u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io
peers:
u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0l1a90jwq/ca.pem
url: u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:443
u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0ub3exzn9/ca.pem
url: u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:443
version: 1.1.0

[fabsdk/fab] 2022/09/04 10:26:51 UTC - fab.detectDeprecatedNetworkConfig -> WARN Getting orderers from endpoint config channels.orderer is deprecated, use entity matchers to override orderer configuration
[fabsdk/fab] 2022/09/04 10:26:51 UTC - fab.detectDeprecatedNetworkConfig -> WARN visit https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/overrides/local_entity_matchers.yaml for samples
Signing identity: &{u0ne44wnnf user1}

certificateAuthorities:
u0ne44wnnf:
tlsCACerts:
path: D:\Sunil\projects\gstBlockchainProject\kaleido-fabric-samples-master\kaleido-fabric-samples-master\golang/resources/kaleido_ca.pem
url: https://u0e1qk12dv-u0f3lexhrb-fabric-ca.us0-aws.kaleido.io
channels:
default-channel:
orderers:
- u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io
peers:
u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:
chaincodeQuery: true
endorsingPeer: true
eventSource: true
ledgerQuery: true
u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:
chaincodeQuery: true
endorsingPeer: true
eventSource: true
ledgerQuery: true
client:
BCCSP:
security:
default:
provider: SW
enabled: true
hashAlgorithm: SHA2
level: 256
softVerify: true
credentialStore:
cryptoStore:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
cryptoconfig:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp
logging:
level: info
organization: u0ne44wnnf
tlsCerts:
client:
cert:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp/user1@u0ne44wnnf-cert.pem
key:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/msp/keystore/9a25310ed80c20495cb1db43b876b51bd3e820c868c69984dd6ab9500bb8fa47_sk
orderers:
u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0f4ylrlrl/ca.pem
url: u0e1qk12dv-u0f4ylrlrl-orderer.us0-aws-ws.kaleido.io:443
organizations:
u0l18yeth2:
cryptoPath: /tmp/msp
mspid: u0l18yeth2
peers: []
u0ne44wnnf:
certificateAuthorities:
- u0ne44wnnf
cryptoPath: /tmp/msp
mspid: u0ne44wnnf
peers:
- u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io
u0p1aq0cfk:
cryptoPath: /tmp/msp
mspid: u0p1aq0cfk
peers:
- u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io
peers:
u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0l1a90jwq/ca.pem
url: u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:443
u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:
tlsCACerts:
path: C:\Users\Sunil/kaleido-fabric-go/u0e1qk12dv/nodeMSPs/u0ub3exzn9/ca.pem
url: u0e1qk12dv-u0ub3exzn9-peer.us0-aws-ws.kaleido.io:443
version: 1.1.0

[fabsdk/fab] 2022/09/04 10:26:51 UTC - fab.detectDeprecatedNetworkConfig -> WARN Getting orderers from endpoint config channels.orderer is deprecated, use entity matchers to override orderer configuration
[fabsdk/fab] 2022/09/04 10:26:51 UTC - fab.detectDeprecatedNetworkConfig -> WARN visit https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/overrides/local_entity_matchers.yaml for samples
[worker:0] Send transaction 0 (asset-DJVBLAS1E4)
[worker:0] Failed to send transaction 0 (asset-DJVBLAS1E4). Failed to send transaction to invoke the chaincode. Transaction processing for endorser [u0e1qk12dv-u0l1a90jwq-peer.us0-aws-ws.kaleido.io:443]: Chaincode status Code: (500) UNKNOWN. Description: error in simulation: failed to execute transaction 714b88eb60d5064b66d5ec561d8e8920fdfc48a73188911130909c3d51bd1a67: could not launch chaincode asset_transfer-1.0.0.u0q5usloru:16e44a2cce0051f12625c70a79695c547d65a88d6a1920604101483e424659de: chaincode registration failed: failed to wait on container exit: builder 'bin-builder' run failed: exit status 126

All transactions submitted

All Done!`

How can this be solved?

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

2 participants
@geniusunil and others