Welcome to the Linux Foundation Forum!

Lab 4.1 install chaincode package problem

Hi does anyone has faced the problem when trying to install the simple_chaincode package?

  1. peer lifecycle chaincode install simple_chaincode.tar.gz
  2.  
  3. Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 254 "+ INPUT_DIR=/chaincode/input
  4.  
  5. + OUTPUT_DIR=/chaincode/output
  6.  
  7. + cp -R /chaincode/input/src/. /chaincode/output
  8.  
  9. + cd /chaincode/output
  10.  
  11. + '[' -f package-lock.json -o -f npm-shrinkwrap.json ]
  12.  
  13. + npm ci '--only=production'
  14.  
  15. npm ERR! code ENOENT
  16.  
  17. npm ERR! syscall open
  18.  
  19. npm ERR! path /chaincode/output/package.json
  20.  
  21. npm ERR! errno -2
  22.  
  23. npm ERR! enoent ENOENT: no such file or directory, open '/chaincode/output/package.json'
  24.  
  25. npm ERR! enoent This is related to npm not being able to find a file.
  26.  
  27. npm ERR! enoent
  28.  
  29.  
  30.  
  31. npm ERR! A complete log of this run can be found in:
  32.  
  33. npm ERR! /root/.npm/_logs/2022-01-19T21_48_57_903Z-debug.log

Comments

  • Posts: 2
    edited January 2022

    I supposed it was problem with docker service. I changed it to start on boot:

    sudo systemctl enable docker.service
    sudo systemctl enable containerd.service

    I supposed this is the solution

  • Posts: 193

    @santesco, Great job determining the issue. Setting up the environment is a time consuming task that must be completed properly for the rest of the assignments to be completed properly. Keep up the good work! Bobbi

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training