预言机合约安装操作失败
【问题分类】
- bug
- P2P网络相关(包含libp2p,liquid)
- 链账户身份与权限相关(证书问题、public、多签投票问题)
- 核心交易引擎相关(交易池、DAG)
- 共识相关
- 智能合约相关
- 存储相关
- SDK相关
- 长安链CMC工具
- 长安链管理台
- 长安链浏览器
- 长安链合约IDE
- 长安链web签名插件
- 跨链相关
- 轻节点相关
- 隐私计算相关
- 密码学相关
- 环境依赖
- 其他补充:
- 预言机
【问题描述】(请对问题进行描述,方便定位问题)
按着预言机使用文档操作,在到16.1.7. 预言机合约安装 节点操作时,操作失败
具体的现象,操作步骤,前置条件等,尽可能描述清楚,有截图说明更佳
操作步骤: $ git clone https://git.chainmaker.org.cn/chainmaker/chainmaker-go.git $ git clone -b v2.2.0 https://git.chainmaker.org.cn/chainmaker/chainmaker-cryptogen.git $ cd chainmaker-cryptogen && make $ cd ../chainmaker-go/tools/ && ln -s ../../chainmaker-cryptogen/ . $ cd ../scripts $ ./prepare.sh 4 2 1 INFO NO $ ./build_release.sh $ ./cluster_quick_start.sh normal $ git clone https://git.chainmaker.org.cn/chainmaker/chainmaker-oracle $ cd chainmaker-oracle $ rm -rf config_files/crypto-config/ && cp -rf ../chainmaker-go/build/crypto-config config_files/ 使用源码启动 $ ./chainmaker-oracle -i config_files/smart_oracle.yml 预言机合约安装 $ 7z a oracle_contract_v1.7z standard_oracle_contract/oracle_contract_file/oracle_contract_v1 $ curl -H 'admin_auth_token: si!*dfji@12mnku' -X POST localhost:10123/v1/install_contract -F "chain_alias=chain1_alias" -F "contract_version=1" -F "runtime=DOCKER_GO" -F "contract_file=@./oracle_contract_v1.7z" 执行异常: { "code": 400, "message": "install contract err (get sync result failed, get tx by txId [16fe87ca0f1944b8ca07308d9ef75917caffc77e843f4719af5801e9eb9ecafa] failed, QUERY_CONTRACT failed, txStatusCode:4, resultCode:1, contractName[CHAIN_QUERY] method[GET_TX_BY_TX_ID] txType[QUERY_CONTRACT], no such transaction, chainId:chain1) " }
【相关日志文件】(如果有报错日志请贴图,或者上传附件)
chainmaker-go 的 log/system.log & bin/panic.log file * brief.log.2022070413system.log.2022070413 SDK 的 sdk.log file GOROOT=/usr/local/go #gosetup GOPATH=/Users/zhl/IdeaProjects/gowork #gosetup /usr/local/go/bin/go build -o /private/var/folders/7y/p46z_6h956vcmz73hskw0l9w0000gn/T/GoLand/___go_build_chainmaker_oracle -gcflags all=-N -l chainmaker-oracle #gosetup "/Users/zhl/Library/Application Support/JetBrains/IntelliJIdea2022.1/plugins/go/lib/dlv/mac/dlv" --listen=127.0.0.1:51176 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /private/var/folders/7y/p46z_6h956vcmz73hskw0l9w0000gn/T/GoLand/___go_build_chainmaker_oracle -- -i config_files/smart_oracle.yml API server listening at: 127.0.0.1:51176 debugserver-@(#)PROGRAM:LLDB PROJECT:lldb-1316.0.9.46 for x86_64. Got a connection, launched process /private/var/folders/7y/p46z_6h956vcmz73hskw0l9w0000gn/T/GoLand/___go_build_chainmaker_oracle (pid = 10903). config is : &{LogCFG:{LogInConsole:true ShowColor:true LogLevel:Info LogPath:./log/system.log} SDKS:[{ChainAlias:chain1_alias ChainId:chain1 ConfigPath:./config_files/sdk-config/sdk_config_chain1.yml Signs:[{UserKeyFilePath:./config_files/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.tls.key UserCrtFilePath:./config_files/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.tls.crt UserSignKeyFilePath:./config_files/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.sign.key UserSignCrtFilePath:./config_files/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.sign.crt OrgId:} {UserKeyFilePath:./config_files/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.tls.key UserCrtFilePath:./config_files/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.tls.crt UserSignKeyFilePath:./config_files/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.sign.key UserSignCrtFilePath:./config_files/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.sign.crt OrgId:} {UserKeyFilePath:./config_files/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.tls.key UserCrtFilePath:./config_files/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.tls.crt UserSignKeyFilePath:./config_files/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.sign.key UserSignCrtFilePath:./config_files/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.sign.crt OrgId:} {UserKeyFilePath:./config_files/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.tls.key UserCrtFilePath:./config_files/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.tls.crt UserSignKeyFilePath:./config_files/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.sign.key UserSignCrtFilePath:./config_files/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.sign.crt OrgId:}]} {ChainAlias:chain2_alias ChainId:chain2 ConfigPath:./config_files/sdk-config/sdk_config_chain2.yml Signs:[{UserKeyFilePath:./config_files/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.tls.key UserCrtFilePath:./config_files/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.tls.crt UserSignKeyFilePath:./config_files/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.sign.key UserSignCrtFilePath:./config_files/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.sign.crt OrgId:} {UserKeyFilePath:./config_files/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.tls.key UserCrtFilePath:./config_files/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.tls.crt UserSignKeyFilePath:./config_files/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.sign.key UserSignCrtFilePath:./config_files/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.sign.crt OrgId:} {UserKeyFilePath:./config_files/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.tls.key UserCrtFilePath:./config_files/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.tls.crt UserSignKeyFilePath:./config_files/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.sign.key UserSignCrtFilePath:./config_files/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.sign.crt OrgId:} {UserKeyFilePath:./config_files/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.tls.key UserCrtFilePath:./config_files/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.tls.crt UserSignKeyFilePath:./config_files/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.sign.key UserSignCrtFilePath:./config_files/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.sign.crt OrgId:}]}] WorkCFG:{ProcessorCnts:4 MessageBuffers:1000 FibonacciLimits:2 FibonacciTimeunit:30 ProcessOvertime:55 MonitorContractTime:2 OracleContractName:oracle_contract_v1} OracleMysqlCFG:{UserName:test Password:Wei123Xin@ DbAddress:127.0.0.1:3306 Database:chain_oracle MaxOpenConns:2 MaxIdleConns:1 MaxIdleSeconds:180 MaxLifeSeconds:1800} DataSourceMysqlCFG:[{DataSource:local UserName:test Password:Wei123Xin@ DbAddress:127.0.0.1:3306 Database:chain_oracle MaxOpenConns:2 MaxIdleConns:1 MaxIdleSeconds:180 MaxLifeSeconds:1800}] HttpServerCFG:{Port::10123 RunMode:release AdminToken:si!*dfji@12mnku AssistToken:34r53vvllks#231} AlarmSenderType:{Type:dummy} AlarmSenderWeixin:{WebHook:https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=f76267ab-d55f1-43e5-97ed-13b4c86f4b0f} AlarmSenderDingDing:{WebHook:https://oapi.dingtalk.com/robot/send?access_token=bc9111e906b80da62d4b4b18b93808c442877cca032f501ef0fc8c92b7780ecc79 Secret:SEC35dee9db3fdf9835d1e5d2d489c9e74f652fb8213ac694f35bcd16fb0gcc292626}} datasource(local) InitDataSourceDB 2022-07-04 13:14:46.976 [INFO] [SDK] v2@v2.2.1/sdk_cert_manage.go:37 [SDK] begin to query cert, [contract:CERT_MANAGE]/[method:CERTS_QUERY] 2022-07-04 13:14:46.978 [INFO] [SDK] v2@v2.2.1/sdk_cert_manage.go:68 [SDK] begin to add cert, [contract:CERT_MANAGE]/[method:CERT_ADD] 2022-07-04 13:14:46.980 [INFO] [SDK] v2@v2.2.1/sdk_cert_manage.go:37 [SDK] begin to query cert, [contract:CERT_MANAGE]/[method:CERTS_QUERY] 2022-07-04 13:14:47.982 [INFO] [SDK] v2@v2.2.1/sdk_cert_manage.go:37 [SDK] begin to query cert, [contract:CERT_MANAGE]/[method:CERTS_QUERY] 2022-07-04 13:14:47.998 [INFO] [SDK] v2@v2.2.1/sdk_cert_manage.go:37 [SDK] begin to query cert, [contract:CERT_MANAGE]/[method:CERTS_QUERY] 2022-07-04 13:14:48.000 [INFO] [SDK] v2@v2.2.1/sdk_cert_manage.go:68 [SDK] begin to add cert, [contract:CERT_MANAGE]/[method:CERT_ADD] 2022-07-04 13:14:48.003 [INFO] [SDK] v2@v2.2.1/sdk_cert_manage.go:37 [SDK] begin to query cert, [contract:CERT_MANAGE]/[method:CERTS_QUERY] 2022-07-04 13:14:49.007 [INFO] [SDK] v2@v2.2.1/sdk_cert_manage.go:37 [SDK] begin to query cert, [contract:CERT_MANAGE]/[method:CERTS_QUERY] [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
2022-07-04 13:14:49.021 [INFO] [HttpServer] http_server_process/server.go:55 http service start , port :10123
2022-07-04 13:15:07.569 [ERROR] [Oracle] contract_process/contract_processor.go:159 SendContractManageRequest err, get sync result failed, get tx by txId [16fe886a03c325e8caf6fc8afd1d3950da78b2230afa4796b143d154a2cf6a2e] failed, QUERY_CONTRACT failed, txStatusCode:4, resultCode:1, contractName[CHAIN_QUERY] method[GET_TX_BY_TX_ID] txType[QUERY_CONTRACT], no such transaction, chainId:chain1
2022-07-04 13:15:07.569 [ERROR] [Oracle] contract_process/contract_processor.go:393 DeployAndUpdateDB chain error (get sync result failed, get tx by txId [16fe886a03c325e8caf6fc8afd1d3950da78b2230afa4796b143d154a2cf6a2e] failed, QUERY_CONTRACT failed, txStatusCode:4, resultCode:1, contractName[CHAIN_QUERY] method[GET_TX_BY_TX_ID] txType[QUERY_CONTRACT], no such transaction, chainId:chain1)
2022-07-04 13:15:07.569 [ERROR] [Oracle] contract_process/contract_processor.go:84 DeployContractAndSubScribe DeployContract err(get sync result failed, get tx by txId [16fe886a03c325e8caf6fc8afd1d3950da78b2230afa4796b143d154a2cf6a2e] failed, QUERY_CONTRACT failed, txStatusCode:4, resultCode:1, contractName[CHAIN_QUERY] method[GET_TX_BY_TX_ID] txType[QUERY_CONTRACT], no such transaction, chainId:chain1), chainAlias(chain1_alias) , contractName(oracle_contract_v1), version(1), byteCodeStringOrFilePath(./contract_files/chain1_alias/oracle_contract_v1/1/oracle_contract_v1.7z), runtimeType(6)
2022-07-04 13:16:49.001 [INFO] [Oracle] contract_process/event_processor.go:250 WatchCronJobs scheduled at(2022-07-04 13:16:49.001619 +0800 CST m=+122.052817118), JobType(ContractWatch), chainAlias(), RequestId(),TxId(),EntryId(1)
2022-07-04 13:18:49.001 [INFO] [Oracle] contract_process/event_processor.go:250 WatchCronJobs scheduled at(2022-07-04 13:18:49.001041 +0800 CST m=+242.051408685), JobType(ContractWatch), chainAlias(), RequestId(),TxId(),EntryId(1)
【系统信息】(请填写系统信息,方便定位问题)
- chainmaker-go version * : [v2.2.1]
- OS & version * : 12.4