Important: fabric-chaincode-node failing
Matthew White
In the last 48 hours a lot of the chaincode node builds have failed; we’ve identified the cause for this – it’s a defect in the grpc-js library that the Fabric modules use. An issue in fabric-chaincode-node has raised for information; note that ideally a fix is needed in grpc-js but there are workarounds we can apply. Below is the text from issue https://github.com/hyperledger/fabric-chaincode-node/issues/372 Any questions please post to that issue. Thanks Matthew.
--- The peer-chaincode connection will be dropped and the chaincode container will also exit.
Affected Cause grpc-js, a dependency of fabric-shim for javascript chaincode has had a recent update that appears to have broken fabric-shim. New installs will pick up this latest grpc-js dependency and is causing javascript chaincodes to terminate. The 1.8.2 grpc-js release is problematic release; 1.8.1 is the last good one. grpc-js issue grpc/grpc-node#2318 Workaround If affected the best workaround is to install a specific version of grpc-js in your own chaincode's package.json
Double check the package.json has the version of exactly 1.8.1 - ensure there are no ^ or ~ or other prefix. It is also recommended to use the npm shrinkwrap mechanism to lock down as many dependencies as possible when deploying. Fixes
Unless otherwise stated above:
IBM United Kingdom Limited Registered in England and Wales with number 741598 Registered office: PO Box 41, North Harbour, Portsmouth, Hants. PO6 3AU |
|