使用虚拟机部署Go官方示例合约报contract initial fail, tx timeout
【问题分类】
- bug
- P2P网络相关(包含libp2p,liquid)
- 链账户身份与权限相关(证书问题、public、多签投票问题)
- 核心交易引擎相关(交易池、DAG)
- 共识相关
- [√] 智能合约相关
- 存储相关
- SDK相关
- 长安链CMC工具
- 长安链管理台
- 长安链浏览器
- 长安链合约IDE
- 长安链web签名插件
- 跨链相关
- 轻节点相关
- 隐私计算相关
- 密码学相关
- 环境依赖
- 其他补充:
【问题描述】(请对问题进行描述,方便定位问题)
我目前使用docker-compose部署长安链,两台机,四共识节点。rust合约能部署上去,说明底层链没问题,看日志共识节点也能docker-vm通讯,也没问题,但是一部署go合约就报错: 底层链sysem.log日志 2023-09-06 14:02:12.207 [ERROR] [Vm] @gdylzhprod v2@v2.3.2/runtime.go:228 handle tx [178239f00144cbbacafc5d8f318cabf7764357ba0c9a4d52998e95df18ddb6ea] failed, fail to receive response in 9 secs and return timeout response, <step: "RUNTIME_PREPARE_TX_REQUEST", start time: 2023-09-06 14:02:03.207006566 +0800 CST, step cost: 0.028959ms, until cost: 0.028028ms, msg: pos:0> <step: "RUNTIME_GRPC_SEND_TX_REQUEST", start time: 2023-09-06 14:02:03.20703857 +0800 CST, step cost: 0ms, until cost: 0ms, msg: msgSize:675> 2023-09-06 14:02:12.207 [ERROR] [Core] @gdylzhprod scheduler/scheduler.go:615 failed to run vm for tx id:178239f00144cbbacafc5d8f318cabf7764357ba0c9a4d52998e95df18ddb6ea,contractName:CONTRACT_MANAGE, tx result:code:CONTRACT_FAIL contract_result:<code:1 message:"contract initial fail, tx timeout" > , error:contract initial fail, tx timeout go虚拟机日志 2023-09-06 14:01:53.719 [ERROR] [Process gdylzhprod#o#docker_go_test02#v1.0.0#0#1] core/process.go:722 process exited when created, exit status 2, panic: unknown log level, logLevelFromConfig: "INFO",unrecognized level: ""INFO""
goroutine 1 [running]: chainmaker.org/chainmaker/contract-sdk-go/v2/sandbox.newDockerLogger({0xc0000c65c0, 0x32}, {0x7fff54f10e22, 0x6}) /data/v230/contract-sdk-go/sandbox/logger.go:40 +0x34c chainmaker.org/chainmaker/contract-sdk-go/v2/sandbox.Start({0xae2610, 0xf39568}) /data/v230/contract-sdk-go/sandbox/sandbox.go:37 +0x165 main.main() /data/v230/contract-sdk-go/main.go:122 +0x27
2023-09-06 14:02:03.216 [ERROR] [Process gdylzhprod#o#docker_go_test02#v1.0.0#1#2 (closed)] core/process.go:722 process exited when created, exit status 2, panic: unknown log level, logLevelFromConfig: "INFO",unrecognized level: ""INFO""
goroutine 1 [running]: chainmaker.org/chainmaker/contract-sdk-go/v2/sandbox.newDockerLogger({0xc0000ba5c0, 0x32}, {0x7ffd3603ce22, 0x6}) /data/v230/contract-sdk-go/sandbox/logger.go:40 +0x34c chainmaker.org/chainmaker/contract-sdk-go/v2/sandbox.Start({0xae2610, 0xf39568}) /data/v230/contract-sdk-go/sandbox/sandbox.go:37 +0x165 main.main() /data/v230/contract-sdk-go/main.go:122 +0x27
具体的现象,操作步骤,前置条件等,尽可能描述清楚,有截图说明更佳