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?

peer lifecycle chaincode install simple_chaincode.tar.gz

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

+ OUTPUT_DIR=/chaincode/output

+ cp -R /chaincode/input/src/. /chaincode/output

+ cd /chaincode/output

+ '[' -f package-lock.json -o -f npm-shrinkwrap.json ]

+ npm ci '--only=production'

npm ERR! code ENOENT

npm ERR! syscall open

npm ERR! path /chaincode/output/package.json

npm ERR! errno -2

npm ERR! enoent ENOENT: no such file or directory, open '/chaincode/output/package.json'

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent 



npm ERR! A complete log of this run can be found in:

npm ERR!     /root/.npm/_logs/2022-01-19T21_48_57_903Z-debug.log

Comments

  • santesco
    santesco Posts: 2
    edited January 20

    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

  • Bobbijn
    Bobbijn Posts: 125

    @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

Categories

Upcoming Training