Chaincode registration failed error
Satya
I am getting below error while trying to invoke a transaction on chaincode.
Infact, the chaincode status is being shown as Exited when docker ps -a is executed. I have shutdown all my containers and restarted them afresh, even then I am getting this error. root@ubuntu:~/cdacblktrg/lab0322/starter# docker logs e6dc2a0b1048 + CHAINCODE_DIR=/usr/local/src + cd /usr/local/src + npm start -- --peer.address peer1.org1.example.com:9051 asset-transfer-basic@1.0.0 start /usr/local/srcfabric-chaincode-node start --peer.address localhost:7051 --chaincode-id-name mycc Options: --help Show help [boolean] -v, --version Show version number [boolean] --peer.address [string] [required] --grpc.max_send_message_length [number] [default: -1] --grpc.max_receive_message_length [number] [default: -1] --grpc.keepalive_time_ms [number] [default: 110000] --grpc.http2.min_time_between_pings_ms [number] [default: 110000] --grpc.keepalive_timeout_ms [number] [default: 20000] --grpc.http2.max_pings_without_data [number] [default: 0] --grpc.keepalive_permit_without_calls [number] [default: 1] --ssl-target-name-override [string] --chaincode-id-name [string] [required] --module-path [string] [default: "/usr/local/src"] /usr/local/src/index.js:10 # new comment is incouded for generate dpacke id:wq ^ SyntaxError: Invalid or unexpected token at wrapSafe (internal/modules/cjs/loader.js:1072:16) at Module._compile (internal/modules/cjs/loader.js:1122:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) at Module.load (internal/modules/cjs/loader.js:1002:32) at Function.Module._load (internal/modules/cjs/loader.js:901:14) at Module.require (internal/modules/cjs/loader.js:1044:19) at require (internal/modules/cjs/helpers.js:77:18) at Function.getInfoFromContract (/usr/local/src/node_modules/fabric-shim/lib/contract-spi/bootstrap.js:77:23) at Function.bootstrap (/usr/local/src/node_modules/fabric-shim/lib/contract-spi/bootstrap.js:54:63) at Object.exports.handler (/usr/local/src/node_modules/fabric-shim/lib/cmds/startCommand.js:46:40) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! asset-transfer-basic@1.0.0 start: `fabric-chaincode-node start "--peer.address" "peer1.org1.example.com:9051"` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the asset-transfer-basic@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-03-22T09_47_47_151Z-debug.log Regards, Satya ------------------------------------------------------------------------------------------------------------ [ C-DAC is on Social-Media too. Kindly follow us at: Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ] This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------ |
|