Why would I randomly start receiving the error “MSP error: channel doesn't exist” Hyperledger Fabric for...
I'm running three peer nodes on HLF v1.3. To interact with Fabric, I'm using the JS SDK. Approximately a day after spinning up the containers, installing, instantiating, and continuously running test invocations, I start receiving the following errors:
In the API container logs:
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - invoke chaincode proposal was bad
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - Failed to invoke chaincode. Cause: Failed to send proposal and receive all good ProposalResponse
On the corresponding peer
container logs:
peer0.1.y9mur3rk78x7@master0 | 2018-11-12 13:59:15.131 UTC [protoutils] ValidateProposalMessage -> WARN 627982 channel [mychannel]: MSP error: channel doesn't exist
Given that invocation works successfully every second with our test runner up until this point, what could cause HLF to suddenly lose/delete a channel and start returning these errors?
For more backstory, these containers are running in docker swarm mode.
hyperledger-fabric
add a comment |
I'm running three peer nodes on HLF v1.3. To interact with Fabric, I'm using the JS SDK. Approximately a day after spinning up the containers, installing, instantiating, and continuously running test invocations, I start receiving the following errors:
In the API container logs:
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - invoke chaincode proposal was bad
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - Failed to invoke chaincode. Cause: Failed to send proposal and receive all good ProposalResponse
On the corresponding peer
container logs:
peer0.1.y9mur3rk78x7@master0 | 2018-11-12 13:59:15.131 UTC [protoutils] ValidateProposalMessage -> WARN 627982 channel [mychannel]: MSP error: channel doesn't exist
Given that invocation works successfully every second with our test runner up until this point, what could cause HLF to suddenly lose/delete a channel and start returning these errors?
For more backstory, these containers are running in docker swarm mode.
hyperledger-fabric
add a comment |
I'm running three peer nodes on HLF v1.3. To interact with Fabric, I'm using the JS SDK. Approximately a day after spinning up the containers, installing, instantiating, and continuously running test invocations, I start receiving the following errors:
In the API container logs:
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - invoke chaincode proposal was bad
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - Failed to invoke chaincode. Cause: Failed to send proposal and receive all good ProposalResponse
On the corresponding peer
container logs:
peer0.1.y9mur3rk78x7@master0 | 2018-11-12 13:59:15.131 UTC [protoutils] ValidateProposalMessage -> WARN 627982 channel [mychannel]: MSP error: channel doesn't exist
Given that invocation works successfully every second with our test runner up until this point, what could cause HLF to suddenly lose/delete a channel and start returning these errors?
For more backstory, these containers are running in docker swarm mode.
hyperledger-fabric
I'm running three peer nodes on HLF v1.3. To interact with Fabric, I'm using the JS SDK. Approximately a day after spinning up the containers, installing, instantiating, and continuously running test invocations, I start receiving the following errors:
In the API container logs:
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - invoke chaincode proposal was bad
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - Failed to invoke chaincode. Cause: Failed to send proposal and receive all good ProposalResponse
On the corresponding peer
container logs:
peer0.1.y9mur3rk78x7@master0 | 2018-11-12 13:59:15.131 UTC [protoutils] ValidateProposalMessage -> WARN 627982 channel [mychannel]: MSP error: channel doesn't exist
Given that invocation works successfully every second with our test runner up until this point, what could cause HLF to suddenly lose/delete a channel and start returning these errors?
For more backstory, these containers are running in docker swarm mode.
hyperledger-fabric
hyperledger-fabric
asked Nov 12 at 15:00
coffeeplease
61
61
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If you use the docker logs command,for example, 'docker logs peer0.org1.example.com', you can check all logs for ca, couchdb, peer, orderer. I believe you can find some reason. If you are using shell script to run, sometimes sleep is helpful at some point.
Specifically, after creating channel, you need to set sleep for a moment. Default sleep time is 15 seconds in example fabric-dev-server configuration. I am using 3 seconds, but it depends on your hardware and business network.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264837%2fwhy-would-i-randomly-start-receiving-the-error-msp-error-channel-doesnt-exist%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you use the docker logs command,for example, 'docker logs peer0.org1.example.com', you can check all logs for ca, couchdb, peer, orderer. I believe you can find some reason. If you are using shell script to run, sometimes sleep is helpful at some point.
Specifically, after creating channel, you need to set sleep for a moment. Default sleep time is 15 seconds in example fabric-dev-server configuration. I am using 3 seconds, but it depends on your hardware and business network.
add a comment |
If you use the docker logs command,for example, 'docker logs peer0.org1.example.com', you can check all logs for ca, couchdb, peer, orderer. I believe you can find some reason. If you are using shell script to run, sometimes sleep is helpful at some point.
Specifically, after creating channel, you need to set sleep for a moment. Default sleep time is 15 seconds in example fabric-dev-server configuration. I am using 3 seconds, but it depends on your hardware and business network.
add a comment |
If you use the docker logs command,for example, 'docker logs peer0.org1.example.com', you can check all logs for ca, couchdb, peer, orderer. I believe you can find some reason. If you are using shell script to run, sometimes sleep is helpful at some point.
Specifically, after creating channel, you need to set sleep for a moment. Default sleep time is 15 seconds in example fabric-dev-server configuration. I am using 3 seconds, but it depends on your hardware and business network.
If you use the docker logs command,for example, 'docker logs peer0.org1.example.com', you can check all logs for ca, couchdb, peer, orderer. I believe you can find some reason. If you are using shell script to run, sometimes sleep is helpful at some point.
Specifically, after creating channel, you need to set sleep for a moment. Default sleep time is 15 seconds in example fabric-dev-server configuration. I am using 3 seconds, but it depends on your hardware and business network.
answered Nov 12 at 20:10
harry
1857
1857
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264837%2fwhy-would-i-randomly-start-receiving-the-error-msp-error-channel-doesnt-exist%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown