IBM-Blockchain-Archive / marbles

WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode.
Apache License 2.0
1.02k stars 977 forks source link

preflight check failed when deploying the project in Docker #114

Closed qianlizimu closed 7 years ago

qianlizimu commented 7 years ago

I made some changes to the codes of Marbles Project to make users create some accounts and manage them. My project is at: https://github.com/qianlizimu/marbles/tree/v2.0. When I deployed the project in Docker in Mac, I got this error message: …… New GET request for /apple-touch-icon.png Error Handeler - /apple-touch-icon.png GET /apple-touch-icon.png 404 168.900ms - - [ibc-js] Deploy Chaincode - Complete [preflight check] 1: testing if chaincode is ready [ibc-js] read - success: {jsonrpc: '2.0', result: { status:'OK' }, id:1493795194403 } [preflight check] 1 : failed, trying again ……

I don't know what caused this. How to solve this problem? Thanks!

dshuffma-ibm commented 7 years ago

the preflight part is expecting a query resp to return null. it looks like yours is returning status: OK. if that is part of your changes, then you should change the preflight code, or comment it out. its in app.js line 277.

the point of this code is to test if the chaincode is alive and healthy before moving on.

dshuffma-ibm commented 7 years ago

closing, inactivity.