Can't start network with function of 'http

2019-08-26 20:23发布

There is two test machine(192.168.11.61, 192.168.11.62) that I used to test fabric and composer.And My computer Ip is (192.168.16.201). The connection is ok between them.

First, I install and start a network(0.0.1) to the fabric with composer, it works.

Second,I install a network(0.0.2) with (http and getNative().invokeChaincode() fuctions)(install success),but failed when upgrade the network.error:

Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT

Third, I install a network(0.0.3) with (http function) (success),but failed when upgrade the network.the error is:

Error: Error trying to upgrade business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: failed to execute transaction 7bd106e4570095b2dccf9f7390c788658345cdc35e943e036af8bf4935decabe: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.6.2 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
npm WARN notice [SECURITY] hoek has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=hoek&version=2.16.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.

> x509@0.3.3 install /chaincode/output/node_modules/x509
> node-gyp rebuild

gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: getaddrinfo EAI_AGAIN nodejs.org:443
gyp ERR! stack     at Object._errnoException (util.js:1022:11)
gyp ERR! stack     at errnoException (dns.js:55:15)
gyp ERR! stack     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
gyp ERR! System Linux 4.4.0-131-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /chaincode/output/node_modules/x509
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN request-promise-any@1.0.5 requires a peer of request@^2.34 but none is installed. You must install peer dependencies yourself.
npm WARN request-promise-core@1.1.1 requires a peer of request@^2.34 but none is installed. You must install peer dependencies yourself.
npm WARN santai-compound-network@0.0.11 No repository field.
npm WARN The package composer-common is included as both a dev and production dependency.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! x509@0.3.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the x509@0.3.3 install 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/2018-09-19T02_14_50_746Z-debug.log
"
Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT
Command failed

I have test the function in the logic.js with 'embedded' and works fine.

At last, I install the same network(0.0.4) without http and getNative().invokeChaincode() and upgrade the network(success).

The problems confused me serval days, I need to build a network with http and invoke other network. Can anybody help me?

0条回答
登录 后发表回答