Welcome to the Linux Foundation Forum!
Lab 4.1 chaincode deployment error
arka.debnath
Posts: 1
Hello, I am facing an issue when trying to perform Lab 4.1
When I try to run this command:
peer lifecycle chaincode package simple_chaincode.tar.gz --path ../lfd272/chaincodes/simple_chaincode --lang node --label simple_chaincode_1.0
I get this error:
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 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 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 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:
cd $HOME/go/src/github.com/hyperledger curl -sSL http://bit.ly/2ysbOFE | bash -s -- 2.2.2 1.4.9 cd fabric-samples git checkout v2.2.2 cd .. git clone https://github.com/hyperledger/fabric cd fabric git checkout release-2.2 cd ~/go/src/github.com/hyperledger/fabric-samples/test-network/ ./network.sh up createChannel -ca -s couchdb
Open a new terminal and:
cd $HOME/go/src/github.com/hyperledger/fabric-samples/test-network
export CORE_PEER_TLS_ENABLED=true
export CORE_PEER_LOCALMSPID="Org1MSP"
export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
export CORE_PEER_ADDRESS=localhost:7051
export PATH=${PWD}/../bin:$PATH
export FABRIC_CFG_PATH=$PWD/../config/
Open another new terminal and:
cd $HOME/go/src/github.com/hyperledger/fabric-samples/test-network
export CORE_PEER_TLS_ENABLED=true
export CORE_PEER_LOCALMSPID="Org2MSP"
export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
export CORE_PEER_ADDRESS=localhost:9051
export PATH=${PWD}/../bin:$PATH
export FABRIC_CFG_PATH=$PWD/../config/
Then on the next step, I get the error that I described in the beginning.
2
Comments
-
I'm also getting the same error.. Can anyone help
0 -
Resolved... It was due to missing of the Sample contract...
0 -
@arka.debnath @kashifmanzer3 , Great job determining and resolving this issue. @arka.debnath Did this solution help resolve your issue? Bobbi
0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 4 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 955 Programming and Development
- 310 Kernel Development
- 627 Software Development
- 984 Software
- 376 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)
