Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
issue
issue
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • chainmaker
  • issueissue
  • Issues
  • #1400

Closed
Open
Opened Jul 02, 2025 by 19925306648@199253066482 of 19 tasks completed2/19 tasks

cmc 部署 docker-go 合约报错

【问题分类】

  • bug

  • P2P网络相关(包含libp2p,liquid)

  • 链账户身份与权限相关(证书问题、public、多签投票问题)

  • 核心交易引擎相关(交易池、DAG)

  • 共识相关

  • 智能合约相关

  • 存储相关

  • SDK相关

  • 长安链CMC工具

  • 长安链管理台

  • 长安链浏览器

  • 长安链合约IDE

  • 长安链web签名插件

  • 跨链相关

  • 轻节点相关

  • 隐私计算相关

  • 密码学相关

  • 环境依赖

  • 其他补充:

    /testdata/claim-wasm-demo/rust-fact-2.0.0.wasm

    chainmaker-go/tools/cmc 目录下的 rust-fact wasm 合约可以执行成功,自己编译的 go 合约执行失败。

【问题描述】(请对问题进行描述,方便定位问题)

具体的现象,操作步骤,前置条件等,尽可能描述清楚,有截图说明更佳

合约代码: git clone --depth=1 https://git.chainmaker.org.cn/contracts/contracts-go.git

编译命令:./build.sh fact

合约执行命令: ./cmc client contract user create \ --contract-name=fact3 \ --runtime-type=DOCKER_GO \ --byte-code-path=/root/project/dsm/block_chain/chainmaker/contracts-go/fact/fact.7z \ --version=1.0 \ --sdk-conf-path=./testdata/sdk_config_solo.yml \ --admin-key-file-paths=./testdata/crypto-config/wx-org.chainmaker.org/user/admin1/admin1.tls.key \ --admin-crt-file-paths=./testdata/crypto-config/wx-org.chainmaker.org/user/admin1/admin1.tls.crt \ --sync-result=true \ --params="{}"

执行结果:

Error: contract initial fail, bad contract exec file

version 指定 1.0,2.0,3.0 都尝试过,一样的错误。

【相关日志文件】(如果有报错日志请贴图,或者上传附件)

chainmaker-go 的 log/system.log & bin/panic.log file *

SDK 的 sdk.log file 系统 system.log 错误:[build/release/chainmaker-v3.0.0-wx-org.chainmaker.org/log/system.log]

image

节点错误日志:[build/release/chainmaker-v3.0.0-wx-org.chainmaker.org/log/wx-org.chainmaker.org/go/go.log]

image

【系统信息】(请填写系统信息,方便定位问题)

  • chainmaker-go version * : [v3.0.0] solo 模式

  • OS & version * :

    Kylin Linux Advanced Server release V10 (Tercel)

    cpu: Phytium,S2500/64 C00

    golang version: 1.22.9

  • docker镜像 version:

    chainmakerofficial/chainmaker-vm-engine v3.0.1_arm 6910788f14d8

  • 管理台 version:

    • 如果是管理台的相关问题,请附带管理台版本,如果不是可忽略。
  • 区块浏览器 version:

    • 如果是浏览器的相关问题,请附带浏览器版本,如果不是可忽略。
  • 合约IDE version:

    • 如果是合约IDE的相关问题,请附带合约IDE版本,如果不是可忽略。
  • web签名插件 version:

    • 如果是web签名插件的相关问题,请附带web签名插件版本,如果不是可忽略。
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: chainmaker/issue#1400

Copyright © 2021 ChainMaker Org. All Rights Reserved. 长安链 版权所有。