我用来测试结构和作曲器的有两台测试机(192.168.11.61,192.168.11.62),而我的计算机IP是(192.168.16.201)。他们之间的连接没问题。
首先,我使用作曲器install and start
将网络(0.0.1)连接到结构,它可以正常工作。
第二,我install
具有(http
和getNative().invokeChaincode()
功能的网络(0.0.2)(安装成功),但是当upgrade
网络时失败。错误:
Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT
第三,我install
使用(http
函数)的网络(0.0.3)(成功),但是在upgrade
网络时失败了。错误是:
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
我已经在'embedded'中测试了logic.js中的功能,并且工作正常。
最后,我安装了没有http
和getNative().invokeChaincode()
的相同网络(0.0.4)并升级了网络(成功)。
问题使我感到困惑,我需要用http建立一个网络并调用其他网络。有人可以帮我吗?