Hyperledger fabric 在Fabric 2.0上获取grpc错误,容器无法在没有internet的框中看到位于musl文件夹中的grpc_node.node

Hyperledger fabric 在Fabric 2.0上获取grpc错误,容器无法在没有internet的框中看到位于musl文件夹中的grpc_node.node,hyperledger-fabric,grpc-node,Hyperledger Fabric,Grpc Node,我正在一个没有互联网的盒子上工作。在将所有需要的docker图像、go文件等ftp到fabcar中后,成功地在fabcar中创建了./byfn.sh和./startFabric.sh。 但是,我在执行./startFabric.sh typescript时遇到了一个问题,初始错误如下 错误 /chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node”(未找

我正在一个没有互联网的盒子上工作。在将所有需要的docker图像、go文件等ftp到fabcar中后,成功地在fabcar中创建了./byfn.sh和./startFabric.sh。 但是,我在执行./startFabric.sh typescript时遇到了一个问题,初始错误如下

错误

/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node”(未找到)

npm安装和npm运行生成在/chanicode/fabcar/typescript中成功运行,并且文件grpc_node.node在node_模块的正确目录中。 因此,容器似乎没有找到它。 /var/lib/docker/overlay/xxxxxxxxxxxx/chaincode/ouptut/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl文件夹中缺少该文件

请帮忙

当我按照murgatroid99的指令运行npm rebuild命令时,我有以下成功输出“[grpc]成功:“/home/mp70332/fab2.0/fabric samples master/chaincode/fabcar/typescript/node_modules/grpc/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node”通过远程安装” 但是,当我在fabcar中使用fabric 2.0运行“/startFabric.sh typescript”时,我得到以下错误

grpc@1.24.2 install /chaincode/output/node_modules/grpc
node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.14.0
node-pre-gyp info using node@12.9.1 | linux | x64
node-pre-gyp WARN Using needle for node-pre-gyp https download 
node-pre-gyp info check checked for "/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node" (not found)
node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v72-linux-x64-musl.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for grpc@1.24.2 and node@12.9.1 (node-v72 ABI, musl) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error getaddrinfo ENOTFOUND node-precompiled-binaries.grpc.io 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@12.9.1 | linux | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@12.9.1 | linux | x64
gyp info find Python using Python version 2.7.16 found at "/usr/bin/python"
gyp http GET https://nodejs.org/download/release/v12.9.1/node-v12.9.1-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: This is most likely not a problem with node-gyp or the package itself and
gyp ERR! stack is related to network connectivity. In most cases you are behind a proxy or have bad 
gyp ERR! stack network settings.
gyp ERR! stack     at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:170:21)
gyp ERR! stack     at Request.emit (events.js:209:13)
gyp ERR! stack     at Request.onRequestError (/usr/local/lib/node_modules/npm/node_modules/request/request.js:881:8)
gyp ERR! stack     at ClientRequest.emit (events.js:209:13)
gyp ERR! stack     at TLSSocket.socketErrorListener (_http_client.js:406:9)
gyp ERR! stack     at TLSSocket.emit (events.js:209:13)
gyp ERR! stack     at emitErrorNT (internal/streams/destroy.js:91:8)
gyp ERR! stack     at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
gyp ERR! stack     at processTicksAndRejections (internal/process/task_queues.js:77:11)
gyp ERR! System Linux 3.10.0-1062.9.1.el7.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node" "--module_name=grpc_node" "--module_path=/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /chaincode/output/node_modules/grpc
gyp ERR! node -v v12.9.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node --module_name=grpc_node --module_path=/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/chaincode/output/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:209:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Linux 3.10.0-1062.9.1.el7.x86_64
node-pre-gyp ERR! command "/usr/local/bin/node" "/chaincode/output/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /chaincode/output/node_modules/grpc
node-pre-gyp ERR! node -v v12.9.1
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node --module_name=grpc_node --module_path=/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.24.2 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the grpc@1.24.2 install script.
grpc@1.24.2安装/链码/输出/节点\模块/grpc
节点预gyp安装--回退到构建--库=静态\u库
节点前gyp信息如果以ok结束,则其有效
使用node pre的node pre gyp信息-gyp@0.14.0
节点预gyp信息使用node@12.9.1| linux | x64
节点预gyp警告使用针进行节点预gyp https下载
已检查“/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node”的节点预gyp信息检查(未找到)
节点预gyp http GEThttps://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v72-linux-x64-musl.tar.gz
无法为安装节点预gyp WARN预构建二进制文件grpc@1.24.2及node@12.9.1(node-v72 ABI,musl)(使用node-gyp返回到源代码编译)
节点预gyp警告命中错误getaddrinfo ENOTFOUND node-precompiled-binaries.grpc.io
gyp信息如果以ok结尾,它就起作用了
gyp信息使用节点-gyp@5.0.3
gyp信息使用node@12.9.1| linux | x64
gyp信息正常
gyp信息如果以ok结尾,它就起作用了
gyp信息使用节点-gyp@5.0.3
gyp信息使用node@12.9.1| linux | x64
gyp info在“/usr/bin/Python”找到使用Python版本2.7.16的Python
gyp http GEThttps://nodejs.org/download/release/v12.9.1/node-v12.9.1-headers.tar.gz
gyp WARN安装出错,正在回滚安装
gyp错误!配置错误
gyp ERR!堆栈错误:这很可能不是节点gyp或包本身的问题,而是
gyp ERR!堆栈与网络连接有关。在大多数情况下,您位于代理之后或具有坏的
gyp ERR!堆栈网络设置。
gyp ERR!应请求堆叠。(/usr/local/lib/node_modules/npm/node_modules/node gyp/lib/install.js:170:21)
gyp ERR!在Request.emit时堆栈(events.js:209:13)
gyp ERR!在Request.onRequestError时堆栈(/usr/local/lib/node_modules/npm/node_modules/Request/Request.js:881:8)
gyp ERR!ClientRequest.emit上的堆栈(events.js:209:13)
gyp ERR!堆栈位于TLSSocket.socketErrorListener(_http_client.js:406:9)
gyp ERR!TLSSocket.emit(events.js:209:13)处的堆栈
gyp ERR!emitErrorNT处的堆栈(internal/streams/destroy.js:91:8)
gyp ERR!在emitErrorAndCloseNT处堆叠(internal/streams/destroy.js:59:3)
gyp ERR!在processTicksAndRejections上堆叠(internal/process/task_queues.js:77:11)
gyp ERR!System Linux 3.10.0-1062.9.1.el7.x86_64
gyp ERR!命令“/usr/local/bin/node”“/usr/local/lib/node_modules/npm/node_modules/node gyp/bin/node gyp.js”“配置”“--回退到构建”“--库=静态_库”“--模块=/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node”“--模块名=grpc_节点”--模块路径=/chaincode/output/node\u模块/grpc/src/node/extension\u binary/node-v72-linux-x64-musl”“--napi\u版本=4”“--node\u abi\u napi=napi”“--napi\u构建版本=0”“--node\u napi\u标签=node-v72”
gyp ERR!cwd/chaincode/output/node_modules/grpc
GypErr!节点-v12.9.1
gyp ERR!节点gyp-v5.0.3
哎呀!不行
节点预gyp错误!生成错误
node pre-gyp ERR!堆栈错误:未能执行“/usr/local/bin/node/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure--fallback to build--library=static_library--module=/chaincode/output/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node--module module name=grpc_node--module代码/输出/节点\u模块/grpc/src/node/extension\u binary/node-v72-linux-x64-musl--napi\u版本=4--node\u abi\u napi=napi--napi\u构建\u版本=0--node\u napi\u标签=node-v72'(1)
node pre-gyp ERR!在ChildProcess上堆栈。(/chaincode/output/node_modules/grpc/node_modules/node pre-gyp/lib/util/compile.js:83:29)
ChildProcess.emit(events.js:209:13)上的节点pre-gyp ERR!堆栈
maybeClose的节点预gyp ERR!堆栈(internal/child_process.js:1021:16)
node pre-gyp ERR!在Process.ChildProcess.\u handle.onexit处堆栈(internal/child\u Process.js:283:5)
node pre-gyp ERR!System Linux 3.10.0-1062.9.1.el7.x86_64
node pre-gyp ERR!command“/usr/local/bin/node”“/chaincode/output/node_modules/grpc/node_modules/.bin/node pre-gyp”“安装”“--回退到构建”“--库=静态_库”
节点前gyp错误!cwd/链码/输出/节点模块/grpc
节点前gyp错误!节点-v12.9.1
节点预gyp错误!节点预gyp-v v0.14.0
节点预gyp错误!不正常
无法执行“/usr/local/bin/node/usr/local/lib/node_modules/npm/node_modules/node gyp/bin/node-gyp.js configure--fallback to build--library=static_library--module=/chaincode/output/node_modules/grpc/node/extension_binary/node-v72-linux-x64-musl/grpc_node.node--modules--module_name=grpc_-node--=grpc_-node--modules--=grpc_-
grpc_node_binary_host_mirror=https://your_internal_server