Why would I randomly start receiving the error “MSP error: channel doesn't exist” Hyperledger Fabric for...












0














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.










share|improve this question



























    0














    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.










    share|improve this question

























      0












      0








      0







      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.










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 at 15:00









      coffeeplease

      61




      61
























          1 Answer
          1






          active

          oldest

          votes


















          0














          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.






          share|improve this answer





















            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            0














            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.






            share|improve this answer


























              0














              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.






              share|improve this answer
























                0












                0








                0






                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.






                share|improve this answer












                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 12 at 20:10









                harry

                1857




                1857






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Bressuire

                    Vorschmack

                    Quarantine