【问题反馈】【合约模块】合约部署失败
【问题分类】
- [v] 共识相关
- [v] 智能合约相关
- [v] 长安链浏览器
- [v] 长安链合约IDE
【问题描述】
通过长安链浏览器部署go语言合约,长安链IDE模板合约contract_demo01,该合约在合约IDE上可正常调用。
合约初始化部署失败,提示如下:
generate new block failed, no txs in scheduled block, proposing block ends
部署失败后,更改合约项目名称并尝试重新部署,并保持合约名与文件名一致,仍出现相同问题。 使用合约IDE、SmartPlugin工具部署合约,均出现相同问题。部署时,除版本号为1.0以外,均使用默认参数。
在问题出现时,所有节点均正常运行,相关端口全部开放,vm-docker-go仍正常运行(未找到报错日志)。
【相关日志文件】(如果有报错日志请贴图,或者上传附件)
2022-03-09 16:44:34.993 [INFO] [TxPool] @chain1 v2@v2.1.0/tx_pool_impl.go:378 fetch txs from txPool, txsNum:1, blockHeight:8, elapse time: 0
2022-03-09 16:44:34.994 [INFO] [Snapshot] snapshot/snapshot_manager.go:44 create snapshot@chain1 at height 8, fingerPrint[76411c76aa813d294c2cadfe0d547763676e81d51074eeb861972d0a94232fbd] -> prevFingerPrint[2d581e90d6d597825b4df90bcdf1521bad4b4b2ab0d9d62496872d0c706e656e]
2022-03-09 16:44:34.994 [INFO] [Core] @chain1 scheduler/scheduler.go:57 schedule tx batch start, size 1
2022-03-09 16:44:34.994 [INFO] [Vm] @chain1 v2@v2.1.1/vm_factory.go:184 invoke user contract[demo01], runtime:DOCKER_GO,method:init_contract
2022-03-09 16:44:44.995 [WARN] [Core] @chain1 scheduler/scheduler.go:107 block [8] schedule reached time limit
2022-03-09 16:44:44.995 [INFO] [Core] @chain1 scheduler/scheduler.go:140 schedule tx batch finished, success 0, time used 10.001091937s, time used (dag include) 10.001165226s
2022-03-09 16:44:44.995 [INFO] [TxPool] @chain1 v2@v2.1.0/tx_pool_impl.go:342 retryTxs elapse time: 0
2022-03-09 16:44:44.995 [WARN] [Core] @chain1 proposer/block_proposer_impl.go:305 generate new block failed, no txs in scheduled block, proposing block ends
2022-03-09 16:44:46.996 [INFO] [TxPool] @chain1 v2@v2.1.0/tx_pool_impl.go:378 fetch txs from txPool, txsNum:1, blockHeight:8, elapse time: 1
2022-03-09 16:44:46.996 [INFO] [Snapshot] snapshot/snapshot_manager.go:44 create snapshot@chain1 at height 8, fingerPrint[7c9dbe03df191aacac2ddc3ce31136c086bf0a3a70c99de8f4c0af2c65e01d52] -> prevFingerPrint[2d581e90d6d597825b4df90bcdf1521bad4b4b2ab0d9d62496872d0c706e656e]
2022-03-09 16:44:46.996 [INFO] [Core] @chain1 scheduler/scheduler.go:57 schedule tx batch start, size 1
2022-03-09 16:44:46.997 [INFO] [Vm] @chain1 v2@v2.1.1/vm_factory.go:184 invoke user contract[demo01], runtime:DOCKER_GO,method:init_contract
2022-03-09 16:44:56.997 [WARN] [Core] @chain1 scheduler/scheduler.go:107 block [8] schedule reached time limit
2022-03-09 16:44:56.997 [INFO] [Core] @chain1 scheduler/scheduler.go:140 schedule tx batch finished, success 0, time used 10.000533013s, time used (dag include) 10.000664448s
2022-03-09 16:44:56.997 [INFO] [TxPool] @chain1 v2@v2.1.0/tx_pool_impl.go:342 retryTxs elapse time: 0
2022-03-09 16:44:56.997 [WARN] [Core] @chain1 proposer/block_proposer_impl.go:305 generate new block failed, no txs in scheduled block, proposing block ends
2022-03-09 16:44:58.359 [INFO] [Storage] @chain1 blockkvdb/blockkvdb.go:563 get value []byte ,TxArchived txid[98118723bd094788a43b6482f8e0c4cef9fca8c0252447c18ed5307f21fe5570] txIdBlockInfoBytes[]
2022-03-09 16:44:58.359 [WARN] [Vm] @chain1 blockcontract/block_contract.go:925 no such transaction, chainId:chain1
2022-03-09 16:44:58.359 [ERROR] [Vm] @chain1 v2@v2.1.1/native.go:133 no such transaction, chainId:chain1
2022-03-09 16:44:58.359 [WARN] [Rpc] rpcserver/api_service.go:269 txStatusCode:4, resultCode:1, contractName[CHAIN_QUERY] method[GET_TX_BY_TX_ID] txType[QUERY_CONTRACT], no such transaction, chainId:chain1
【系统信息】(请填写系统信息,方便定位问题)
- **chainmaker-go version * : v2.1.0
- **OS & version * : Ubuntu 18.04
- **docker镜像 version * : 20.10.10
- **管理台 version * : v2.1.0
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information