contract engine client not connected
【问题分类】
- bug
- P2P网络相关(包含libp2p,liquid)
- 链账户身份与权限相关(证书问题、public、多签投票问题)
- 核心交易引擎相关(交易池、DAG)
- 共识相关
- 智能合约相关
- 存储相关
- SDK相关
- 长安链CMC工具
- 长安链管理台
- 长安链浏览器
- 长安链合约IDE
- 长安链web签名插件
- 跨链相关
- 轻节点相关
- 隐私计算相关
- 密码学相关
- 环境依赖
- 其他补充:
【问题描述】(请对问题进行描述,方便定位问题)
使用docker_go合约时,上传完成后,对关键词进行搜索时报错
如果是使用resp, err2 := client.InvokeContract(contractName, method, txId, kvs, -1, withSyncResult)
(base) [root@localhost gosdk]# go run findByshash/main.go
QUERY claim contract resp: contract_result:<message:"Success" gas_used:11250 > tx_id:"175081410f480562ca86d7cd4cf94a94e89e0b70c8c949528c7e9d84afd9a595" tx_timestamp:1679984777 tx_block_height:7
上链成功但是不返回数据
如果使用resp, err2 := client.QueryContract(contractName, method, kvs, -1)
就报错误连接不上
(base) [root@localhost gosdk]# go run findByshash/main.go
QUERY claim contract resp: code:CONTRACT_FAIL message:"txStatusCode:4, resultCode:1, contractName[eduide] method[invoke_contract] txType[QUERY_CONTRACT], contract engine client not connected" contract_result:<code:1 message:"contract engine client not connected" > tx_id:"17508157c22c7a1cca37bf5fea86fe1ec5cd2d8c2e224b7c8d65b3d775e99fde"
【相关日志文件】(如果有报错日志请贴图,或者上传附件)
chainmaker-go 的 bin/panic.log file *system.log
(base) [root@localhost release]# cat org001-*/bin/panic.log
using crypto CryptoEngine = tjfoc
using crypto CryptoEngine = tjfoc
SDK 的 sdk.log file
2023-03-28 14:26:17.958 [DEBUG] [SDK] v2@v2.3.2/sdk_common.go:59 [SDK] begin to QUERY system contract, [method:GET_TX_BY_TX_ID]/[txId:175081410f480562ca86d7cd4cf94a94e89e0b70c8c949528c7e9d84afd9a595]
2023-03-28 14:26:17.963 [DEBUG] [SDK] v2@v2.3.2/sdk_client.go:260 [SDK] proposalRequest resp: code:CONTRACT_FAIL message:"txStatusCode:4, resultCode:1, contractName[CHAIN_QUERY] method[GET_TX_BY_TX_ID] txType[QUERY_CONTRACT], no such transaction, chainId:chain01" contract_result:<code:1 message:"no such transaction, chainId:chain01" > tx_id:"175081412e4e92a8ca2a9a67a488d3ec383246d0c8c6427099df52b240cfac14"
2023-03-28 14:26:18.464 [DEBUG] [SDK] v2@v2.3.2/sdk_common.go:59 [SDK] begin to QUERY system contract, [method:GET_TX_BY_TX_ID]/[txId:175081410f480562ca86d7cd4cf94a94e89e0b70c8c949528c7e9d84afd9a595]
2023-03-28 14:26:18.468 [DEBUG] [SDK] v2@v2.3.2/sdk_client.go:260 [SDK] proposalRequest resp: message:"SUCCESS" contract_result:<result:"\n\272\t\n\223\001\n\007chain01\032@175081410f480562ca86d7cd4cf94a94e89e0b70c8c949528c7e9d84afd9a595 \211\221\212\241\0062\006eduide:\017invoke_contractB\025\n\006method\022\013findbyshashB\020\n\005shash\022\007hash001\022\357\007\n\243\007\n\006org001\032\230\007-----BEGIN CERTIFICATE-----\nMIICeTCCAh+gAwIBAgIDCOYbMAoGCCqBHM9VAYN1MGoxCzAJBgNVBAYTAmNuMRAw\nDgYDVQQIEwdiZWlqaW5nMRAwDgYDVQQHEwdiZWlqaW5nMQ8wDQYDVQQKEwZvcmcw\nMDExEjAQBgNVBAsTCXJvb3QtY2VydDESMBAGA1UEAxMJY2Eub3JnMDAxMB4XDTIz\nMDMxNTAxMDYwNFoXDTMyMDMxMjAxMDYwNFowdTELMAkGA1UEBhMCY24xEDAOBgNV\nBAgTB2JlaWppbmcxEDAOBgNVBAcTB2JlaWppbmcxDzANBgNVBAoTBm9yZzAwMTEO\nMAwGA1UECxMFYWRtaW4xITAfBgNVBAMMGOWtpuexjeeuoeeQhi5zaWduLm9yZzAw\nMTBZMBMGByqGSM49AgEGCCqBHM9VAYItA0IABDneUUfCbzmRdqas3eHuDJytqax2\nelj5gnRVluRXBQ5qpeW1J93mqguUjZe+wYTEaG/Ms4ZMkucYIYTsHfgNYI+jgagw\ngaUwDgYDVR0PAQH/BAQDAgGmMA8GA1UdJQQIMAYGBFUdJQAwKQYDVR0OBCIEICX3\nehN50EJlkU4b1fUZ5swskLW9hr/nhmvN6mw55ftFMCsGA1UdIwQkMCKAID0BGQPm\nd39vQjd1U4zWLGFKgAfjQiMPe5N/7meZsZDWMCoGA1UdEQQjMCGCCWxvY2FsaG9z\ndIIOY2hhaW5tYWtlci5vcmeHBH8AAAEwCgYIKoEcz1UBg3UDSAAwRQIhAJXkwdZw\n2kU15m1TS5uCg1YAgc8ex8c26FlBya3ytbtoAiBiWNatfVl5tHaiQOJu7VwVLWy9\nH8Wz3A4fNlBsOqaHZA==\n-----END CERTIFICATE-----\n\022G0E\002 t\254-c\221\316X\204g\202\355\245p\027\276=1\210T@\201\364\310\034M\230\345\317z-\\\020\002!\000\331uJ\271S\347\327\010\201m\342\031m\210\250\335P\206K\211GGX\006\275Q\332\205\222v\304\226\"0\022\014\032\007Success \362W\032 *\364\320\216\373?\n\370\364GX+\275\361\026\224\016\020i\002Y\177\231\026>\234\365\377\247\343hc\020\007(\211\221\212\241\006" message:"OK" > tx_id:"175081414c6d3f31ca2a2b11a8f849d1ac9a613915434093a1bcc2ddd1bf51d8"
2023-03-28 14:27:54.927 [DEBUG] [SDK] v2@v2.3.2/sdk_config.go:914 [SDK] use tls
2023-03-28 14:27:54.928 [DEBUG] [SDK] findByshash/main.go:34 [SDK] begin to QUERY contract, [contractName:eduide]/[method:invoke_contract]/[params:[key:"method" value:"findbyshash" key:"shash" value:"hash001" ]]
2023-03-28 14:27:54.946 [DEBUG] [SDK] v2@v2.3.2/sdk_client.go:260 [SDK] proposalRequest resp: code:CONTRACT_FAIL message:"txStatusCode:4, resultCode:1, contractName[eduide] method[invoke_contract] txType[QUERY_CONTRACT], contract engine client not connected" contract_result:<code:1 message:"contract engine client not connected" > tx_id:"17508157c22c7a1cca37bf5fea86fe1ec5cd2d8c2e224b7c8d65b3d775e99fde"
【系统信息】(请填写系统信息,方便定位问题)
- chainmaker-go version * : [v2.3.1]
- OS & version * : Linux version 4.19.91-26.an8.x86_64 (mockbuild@anolis-build-01.openanolis.cn) (gcc version 8.5.0 20210514 (Anolis 8.5.0-10.0.1) (GCC)) #1 SMP Tue May 24 13:10:09 CST 2022
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information