Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying chaincode failed #60

Open
gayatri9213 opened this issue Mar 11, 2022 · 2 comments
Open

Deploying chaincode failed #60

gayatri9213 opened this issue Mar 11, 2022 · 2 comments

Comments

@gayatri9213
Copy link

After running " ./network.sh deployCC "
I am getting " Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 8dfddb5851387b43271461bdb76bc3549e42c2807b5a1147d301fd9456d9290e: could not launch chaincode patient_1.0:c7e485e1f90be749d9ed1e6e3eda48196936200c28e3dcd27da6ff4ef6fd84c7: error starting container: error starting container: API error (404): network _hospital not found"
Invoke execution on peer0.hosp1 peer0.hosp2 failed " this error.

@sjathin
Copy link
Collaborator

sjathin commented Apr 8, 2022

Hi Gayatri,

I have fixed this issue in the repo - https://github.com/sjathin/blockchain-hyperledger-fabric-in-medical
There is one extra commit. You can apply those changes and try them. Let me know if this issue still exists.

Thanks,
Jathin

@Smindlondz
Copy link

after running: ./network.sh deployCC
I am getting the following error-

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: 1 "+ 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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants