Welcome to the Linux Foundation Forum!

Lab 4.1 chaincode deployment error

Hello, I am facing an issue when trying to perform Lab 4.1

When I try to run this command:

  1. peer lifecycle chaincode package simple_chaincode.tar.gz --path ../lfd272/chaincodes/simple_chaincode --lang node --label simple_chaincode_1.0

I get this error:

  1. 2021-06-20 13:54:58.397 IST [chaincode.platform.util] func1 -> ERRO 001 Visit ../lfd272/chaincodes/simple_chaincode failed: lstat ../lfd272/chaincodes/simple_chaincode: no such file or directory
  2. 2021-06-20 13:54:58.397 IST [chaincode.platform.util] WriteFolderToTarPackage -> INFO 002 Error walking rootDirectory: lstat ../lfd272/chaincodes/simple_chaincode: no such file or directory
  3. 2021-06-20 13:54:58.397 IST [chaincode.platform.node] GetDeploymentPayload -> ERRO 003 Error writing folder to tar package lstat ../lfd272/chaincodes/simple_chaincode: no such file or directory
  4. Error: error getting chaincode bytes: Error writing Chaincode package contents: lstat ../lfd272/chaincodes/simple_chaincode: no such file or

After installing required software dependencies, I have completed these steps:

  1. cd $HOME/go/src/github.com/hyperledger
  2. curl -sSL http://bit.ly/2ysbOFE | bash -s -- 2.2.2 1.4.9
  3. cd fabric-samples
  4. git checkout v2.2.2
  5.  
  6. cd ..
  7. git clone https://github.com/hyperledger/fabric
  8. cd fabric
  9. git checkout release-2.2
  10.  
  11. cd ~/go/src/github.com/hyperledger/fabric-samples/test-network/
  12. ./network.sh up createChannel -ca -s couchdb

Open a new terminal and:

  1. cd $HOME/go/src/github.com/hyperledger/fabric-samples/test-network
  2. export CORE_PEER_TLS_ENABLED=true
  3. export CORE_PEER_LOCALMSPID="Org1MSP"
  4. export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
  5. export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
  6. export CORE_PEER_ADDRESS=localhost:7051
  7. export PATH=${PWD}/../bin:$PATH
  8. export FABRIC_CFG_PATH=$PWD/../config/

Open another new terminal and:

  1. cd $HOME/go/src/github.com/hyperledger/fabric-samples/test-network
  2. export CORE_PEER_TLS_ENABLED=true
  3. export CORE_PEER_LOCALMSPID="Org2MSP"
  4. export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
  5. export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
  6. export CORE_PEER_ADDRESS=localhost:9051
  7. export PATH=${PWD}/../bin:$PATH
  8. export FABRIC_CFG_PATH=$PWD/../config/

Then on the next step, I get the error that I described in the beginning.

Welcome!

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

Comments

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