Hyperledger Composer CreatePeerCardAdmin is throwing error for unzip












0














I am trying to enable JWT for hyperledger composer to my blockchain project.



However whilst following the tutorial I came accross the below error. I am not sure what it means:



Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html


when running ./createPeerAdminCard.sh below is the exact output:



Development only script for Hyperledger Fabric control
Running 'createPeerAdminCard.sh'
FABRIC_VERSION is set to 'hlfv11'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)

Using composer-cli at v0.19.5

Successfully created business network card file to
Output file: /tmp/PeerAdmin@hlfv1.card

Command succeeded


Successfully imported business network card
Card file: /tmp/PeerAdmin@hlfv1.card
Card name: PeerAdmin@hlfv1

Command succeeded

Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html
Command failed

Hyperledger Composer PeerAdmin card has been imported, host of fabric specified as 'localhost'









share|improve this question





























    0














    I am trying to enable JWT for hyperledger composer to my blockchain project.



    However whilst following the tutorial I came accross the below error. I am not sure what it means:



    Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html


    when running ./createPeerAdminCard.sh below is the exact output:



    Development only script for Hyperledger Fabric control
    Running 'createPeerAdminCard.sh'
    FABRIC_VERSION is set to 'hlfv11'
    FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)

    Using composer-cli at v0.19.5

    Successfully created business network card file to
    Output file: /tmp/PeerAdmin@hlfv1.card

    Command succeeded


    Successfully imported business network card
    Card file: /tmp/PeerAdmin@hlfv1.card
    Card name: PeerAdmin@hlfv1

    Command succeeded

    Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html
    Command failed

    Hyperledger Composer PeerAdmin card has been imported, host of fabric specified as 'localhost'









    share|improve this question



























      0












      0








      0







      I am trying to enable JWT for hyperledger composer to my blockchain project.



      However whilst following the tutorial I came accross the below error. I am not sure what it means:



      Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html


      when running ./createPeerAdminCard.sh below is the exact output:



      Development only script for Hyperledger Fabric control
      Running 'createPeerAdminCard.sh'
      FABRIC_VERSION is set to 'hlfv11'
      FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)

      Using composer-cli at v0.19.5

      Successfully created business network card file to
      Output file: /tmp/PeerAdmin@hlfv1.card

      Command succeeded


      Successfully imported business network card
      Card file: /tmp/PeerAdmin@hlfv1.card
      Card name: PeerAdmin@hlfv1

      Command succeeded

      Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html
      Command failed

      Hyperledger Composer PeerAdmin card has been imported, host of fabric specified as 'localhost'









      share|improve this question















      I am trying to enable JWT for hyperledger composer to my blockchain project.



      However whilst following the tutorial I came accross the below error. I am not sure what it means:



      Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html


      when running ./createPeerAdminCard.sh below is the exact output:



      Development only script for Hyperledger Fabric control
      Running 'createPeerAdminCard.sh'
      FABRIC_VERSION is set to 'hlfv11'
      FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)

      Using composer-cli at v0.19.5

      Successfully created business network card file to
      Output file: /tmp/PeerAdmin@hlfv1.card

      Command succeeded


      Successfully imported business network card
      Card file: /tmp/PeerAdmin@hlfv1.card
      Card name: PeerAdmin@hlfv1

      Command succeeded

      Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html
      Command failed

      Hyperledger Composer PeerAdmin card has been imported, host of fabric specified as 'localhost'






      hyperledger-fabric hyperledger hyperledger-composer






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 at 8:04

























      asked Nov 18 at 8:45









      Smit

      1,4531724




      1,4531724
























          1 Answer
          1






          active

          oldest

          votes


















          2














          Are you running on a Mac ?



          This problem has been seen when there is a hidden file present somewhere in the ~/.comoposer folder.



          If you have cards you need to keep then try a composer card export to try and export them, then delete the folder ~/.composer and re-run the script to create the Peer Admin card.



          There are a few details of the problem in this issue on github.






          share|improve this answer





















          • Thanks. Yes I am running it on Mac. I will try to attempt your try.
            – Smit
            Nov 20 at 2:48













          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%2f53359194%2fhyperledger-composer-createpeercardadmin-is-throwing-error-for-unzip%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









          2














          Are you running on a Mac ?



          This problem has been seen when there is a hidden file present somewhere in the ~/.comoposer folder.



          If you have cards you need to keep then try a composer card export to try and export them, then delete the folder ~/.composer and re-run the script to create the Peer Admin card.



          There are a few details of the problem in this issue on github.






          share|improve this answer





















          • Thanks. Yes I am running it on Mac. I will try to attempt your try.
            – Smit
            Nov 20 at 2:48


















          2














          Are you running on a Mac ?



          This problem has been seen when there is a hidden file present somewhere in the ~/.comoposer folder.



          If you have cards you need to keep then try a composer card export to try and export them, then delete the folder ~/.composer and re-run the script to create the Peer Admin card.



          There are a few details of the problem in this issue on github.






          share|improve this answer





















          • Thanks. Yes I am running it on Mac. I will try to attempt your try.
            – Smit
            Nov 20 at 2:48
















          2












          2








          2






          Are you running on a Mac ?



          This problem has been seen when there is a hidden file present somewhere in the ~/.comoposer folder.



          If you have cards you need to keep then try a composer card export to try and export them, then delete the folder ~/.composer and re-run the script to create the Peer Admin card.



          There are a few details of the problem in this issue on github.






          share|improve this answer












          Are you running on a Mac ?



          This problem has been seen when there is a hidden file present somewhere in the ~/.comoposer folder.



          If you have cards you need to keep then try a composer card export to try and export them, then delete the folder ~/.composer and re-run the script to create the Peer Admin card.



          There are a few details of the problem in this issue on github.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 19 at 11:31









          R Thatcher

          4,0941313




          4,0941313












          • Thanks. Yes I am running it on Mac. I will try to attempt your try.
            – Smit
            Nov 20 at 2:48




















          • Thanks. Yes I am running it on Mac. I will try to attempt your try.
            – Smit
            Nov 20 at 2:48


















          Thanks. Yes I am running it on Mac. I will try to attempt your try.
          – Smit
          Nov 20 at 2:48






          Thanks. Yes I am running it on Mac. I will try to attempt your try.
          – Smit
          Nov 20 at 2:48




















          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%2f53359194%2fhyperledger-composer-createpeercardadmin-is-throwing-error-for-unzip%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

          If I really need a card on my start hand, how many mulligans make sense? [duplicate]

          Alcedinidae

          Can an atomic nucleus contain both particles and antiparticles? [duplicate]