Skip to main content
 首页 » 编程设计

hyperledger-fabric中HyperLedger Fabric : Failed to invoke chaincode name :"lscc" , 错误:启动链代码时超时已过期

2026年04月16日74JustinYoung

我在安装链代码时开始出现超时错误。链代码非常基本,事实上,我只是扩展 fabcar node.js 示例。请查看我收到的错误:

Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction e865662f96312f27ee8a221faba6893633498693408f95e57e5e404e58731afd: timeout expired while starting chaincode aar:1.0 for transaction e865662f96312f27ee8a221faba6893633498693408f95e57e5e404e58731afd

来自对等节点容器日志的错误:

2018-10-16 09:44:13.640 UTC [endorser] SimulateProposal -> ERRO 038 [mychannel][e865662f] failed to invoke chaincode name:"lscc" , error: timeout expired while starting chaincode aar:1.0 for transaction e865662f96312f27ee8a221faba6893633498693408f95e57e5e404e58731afd

我已经增加了以下两个环境变量的值,但没有效果:

  • CORE_CHAINCODE_DEPLOYTIMEOUT=1000s
  • CORE_CHAINCODE_STARTUPTIMEOUT=1000s

请您参考如下方法:

对我来说,链码文件夹内的 JS 类存在编译错误。因此,请确保链代码文件夹中的所有内容都正常,否则当链代码安装在对等方上时,您将收到 lscc 超时错误