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 23
    • Issues 23
    • 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
  • #1045

Closed
Open
Opened Apr 16, 2024 by yanhui liu@lyh2151543

部署go语言合约fact失败

平台版本:2.3.2 使用官方提供的go语言合约fact,编译后上传7z格式的包文件部署合约,组织投票后提示部署失败,底链日志显示“TestCMorg1-cmtestnode1/log/system.log:2024-04-16 10:15:32.351 [ERROR] [Vm] @chain01 contractmgr/contract_manager.go:1248 file num in contract dir tmp-contract-567e99ec-8032-4a27-969b-c92518b6192e != 2 TestCMorg1-cmtestnode1/log/system.log:2024-04-16 10:15:32.352 [ERROR] [Core] @chain01 scheduler/scheduler.go:617 failed to run vm for tx id:17c6a0e002aac74acacf5f99e164f8e5640d979d00c64f15a643872f8605a4e1,contractName:CONTRACT_MANAGE, tx result:code:CONTRACT_FAIL contract_result:<code:1 message:"failed to check contract bin version, wrong contract 7z, extracted file num in contract dir != 2" gas_used:1000000 > , error:failed to check contract bin version, wrong contract 7z, extracted file num in contract dir != 2 TestCMorg1-cmtestnode1/log/system.log:2024-04-16 10:15:32.571 [INFO] [Storage] @chain01 v2@v2.3.4/blockstore_impl.go:640 chain[chain01]: put block[1] common (txs:1, bytes: 13139), time used: marshal: 0, writeFile: 47, writeCache: 115, writeKvDB: 54, total: 217 TestCMorg2-cmtestnode2/log/system.log:2024-04-16 10:11:48.115 [INFO] [Storage] @chain01 v2@v2.3.4/blockstore_impl.go:304 chain[chain01]: put block[0] hash[13c32345a19ad56676c2f0d69e63da878073bb49a92143dcf96d4d351a0519cf] (txs:1 bytes:19129), TestCMorg2-cmtestnode2/log/system.log:2024-04-16 10:11:53.128 [INFO] [Net] libp2pnet/libp2p_connection_supervisor.go:122 [ConnSupervisor] all necessary peers connected. TestCMorg2-cmtestnode2/log/system.log:2024-04-16 10:15:32.349 [ERROR] [Vm] @chain01 contractmgr/contract_manager.go:1248 file num in contract dir tmp-contract-dda4fbc6-dcde-4eaf-b163-61b5721caaca != 2 TestCMorg2-cmtestnode2/log/system.log:2024-04-16 10:15:32.349 [ERROR] [Core] @chain01 scheduler/scheduler.go:617 failed to run vm for tx id:17c6a0e002aac74acacf5f99e164f8e5640d979d00c64f15a643872f8605a4e1,contractName:CONTRACT_MANAGE, tx result:code:CONTRACT_FAIL contract_result:<code:1 message:"failed to check contract bin version, wrong contract 7z, extracted file num in contract dir != 2" gas_used:1000000 > , error:failed to check contract bin version, wrong contract 7z, extracted file num in contract dir != 2 TestCMorg2-cmtestnode2/log/system.log:2024-04-16 10:15:32.573 [INFO] [Storage] @chain01 v2@v2.3.4/blockstore_impl.go:640 chain[chain01]: put block[1] common (txs:1, bytes: 13141), time used: marshal: 0, writeFile: 14, writeCache: 130, writeKvDB: 74, total: 219 TestCMorg3-cmtestnode3/log/system.log:2024-04-16 10:11:49.107 [INFO] [Storage] @chain01 v2@v2.3.4/blockstore_impl.go:304 chain[chain01]: put block[0] hash[13c32345a19ad56676c2f0d69e63da878073bb49a92143dcf96d4d351a0519cf] (txs:1 bytes:19129), TestCMorg3-cmtestnode3/log/system.log:2024-04-16 10:11:54.124 [INFO] [Net] libp2pnet/libp2p_connection_supervisor.go:122 [ConnSupervisor] all necessary peers connected. TestCMorg3-cmtestnode3/log/system.log:2024-04-16 10:15:32.350 [ERROR] [Vm] @chain01 contractmgr/contract_manager.go:1248 file num in contract dir tmp-contract-804cc051-71ac-4849-9cc9-f5393bc6545a != 2 TestCMorg3-cmtestnode3/log/system.log:2024-04-16 10:15:32.350 [ERROR] [Core] @chain01 scheduler/scheduler.go:617 failed to run vm for tx id:17c6a0e002aac74acacf5f99e164f8e5640d979d00c64f15a643872f8605a4e1,contractName:CONTRACT_MANAGE, tx result:code:CONTRACT_FAIL contract_result:<code:1 message:"failed to check contract bin version, wrong contract 7z, extracted file num in contract dir != 2" gas_used:1000000 > , error:failed to check contract bin version, wrong contract 7z, extracted file num in contract dir != 2 TestCMorg3-cmtestnode3/log/system.log:2024-04-16 10:15:32.637 [INFO] [Storage] @chain01 v2@v2.3.4/blockstore_impl.go:640 chain[chain01]: put block[1] common (txs:1, bytes: 13141), time used: marshal: 0, writeFile: 12, writeCache: 132, writeKvDB: 138, total: 283 TestCMorg4-cmtestnode4/log/system.log:2024-04-16 10:11:51.031 [INFO] [Storage] @chain01 v2@v2.3.4/blockstore_impl.go:304 chain[chain01]: put block[0] hash[13c32345a19ad56676c2f0d69e63da878073bb49a92143dcf96d4d351a0519cf] (txs:1 bytes:19129), TestCMorg4-cmtestnode4/log/system.log:2024-04-16 10:11:56.047 [INFO] [Net] libp2pnet/libp2p_connection_supervisor.go:122 [ConnSupervisor] all necessary peers connected. TestCMorg4-cmtestnode4/log/system.log:2024-04-16 10:15:32.304 [ERROR] [Vm] @chain01 contractmgr/contract_manager.go:1248 file num in contract dir tmp-contract-0fdfa848-a66b-4365-b5c9-5d3be3c66010 != 2 TestCMorg4-cmtestnode4/log/system.log:2024-04-16 10:15:32.305 [ERROR] [Core] @chain01 scheduler/scheduler.go:617 failed to run vm for tx id:17c6a0e002aac74acacf5f99e164f8e5640d979d00c64f15a643872f8605a4e1,contractName:CONTRACT_MANAGE, tx result:code:CONTRACT_FAIL contract_result:<code:1 message:"failed to check contract bin version, wrong contract 7z, extracted file num in contract dir != 2" gas_used:1000000 > , error:failed to check contract bin version, wrong contract 7z, extracted file num in contract dir != 2 TestCMorg4-cmtestnode4/log/system.log:2024-04-16 10:15:32.517 [INFO] [Storage] @chain01 v2@v2.3.4/blockstore_impl.go:640 chain[chain01]: put block[1] common (txs:1, bytes: 13141), time used: marshal: 0, writeFile: 1, writeCache: 49, writeKvDB: 113, total: 164 ”。麻烦开发人员帮忙看下什么原因。

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#1045

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