首页 > 解决方案 > 由于缺少 escc,Fabric v1.2.0 的链码实例化失败

问题描述

安装程序在 Fabric 1.1.0 上运行良好当我尝试升级到 Fabric 1.2.0 时,在链码实例化过程中出现以下错误,提示“找不到 escc”</p>

[golang-platform] GenerateDockerBuild -> INFO 072 building chaincode with ldflagsOpt: '-ldflags "-linkmode external -extldflags '-static'"'
2018-08-09 20:00:31.815 UTC [golang-platform] GenerateDockerBuild -> INFO 073 building chaincode with tags: 
2018-08-09 20:01:01.188 UTC [endorser] EndorseWithPlugin -> WARN 074 Endorsement with plugin for {plugin: escc, channel: channel3, tx: 01427f701088a8e8cdfe2b543892af33d4012a661474f88670c8e2739717062f, chaincode: lscc}  failed: plugin with name escc wasn't found

我的 Fabric peer 设置不是基于 docker 图像,但我自己使用 git clone 和 build 安装了 fabric(git reset --hard v1.2.0; make peer ...)。它是全新安装的 Ubuntu Linux 16.04。没有改变任何设置。有任何想法吗?

标签: hyperledger-fabric

解决方案


您需要确保您的core.yaml文件也更新到 v1.2


推荐阅读