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
  • #616

Closed
Open
Opened Mar 29, 2023 by ccc flkj@flkj

预言机docker-compose up后,日志中有ERROR信息,无法部署合约

按照预言机工具流程走的,配置文件基本上都是按默认的,只修改了chainmaker-oralce/config_files/sdk-config/sdk_config_chain1.yml和chainmaker-oralce/config_files/sdk-config/sdk_config_chain2.yml中的节点IP

  nodes:
    - # 节点地址,格式为:IP:端口:连接数
      node_addr: "192.168.1.23:12301" # "192.168.3.52:12301" # "172.16.3.236:12301"

docker-compose up -d后,10123和10124端口已打开

curl -X GET localhost:10123/v1/health

{"code":0,"message":"success"}

curl -X GET localhost:10124/v1/health

{"code":0,"message":"success"}

但是容器内部有ERROR信息

在部署合约时,也出现类似的错误信息

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 (enable cert hash AddCert failed, INVOKE_CONTRACT failed, Add tx failed, The tx pool has stopped, chainId:chain1, txId:1750d7819bfc398fcaaa91f0cc40ba1923edcccffd44458a96d526cde748597d)  "}

下面是预言机容器的错误信息

[ccc@localhost scripts]$ docker logs chainmaker-oracle-1 -f
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:oracle_db:3306 Database:chain_oracle MaxOpenConns:2 MaxIdleConns:1 MaxIdleSeconds:180 MaxLifeSeconds:1800} DataSourceMysqlCFG:[{DataSource:local UserName:test Password:Wei123Xin@ DbAddress:oracle_db: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  2023-03-29 16:31:18.398	[INFO]	[SDK]	v2@v2.2.1/sdk_cert_manage.go:37	[SDK] begin to query cert, [contract:CERT_MANAGE]/[method:CERTS_QUERY]
2023-03-29 16:31:18.401	[INFO]	[SDK]	v2@v2.2.1/sdk_cert_manage.go:68	[SDK] begin to add cert, [contract:CERT_MANAGE]/[method:CERT_ADD]
2023-03-29 16:31:18.403	[ERROR]	[SDK]	v2@v2.2.1/sdk_client.go:385	[SDK] enable cert hash AddCert failed, INVOKE_CONTRACT failed, Add tx failed, The tx pool has stopped, chainId:chain1, txId:1750d6a814e9c8cecab87c34c6eaaf34b35d3c63a50847c1a1d915bbccfdfbf9
2023-03-29 16:31:18.404	[ERROR]	[Oracle]	contract_process/init_processor.go:85	NewContractProcesser CreateChainClientWithSDKConf chain(chain1_alias), error(enable cert hash AddCert failed, INVOKE_CONTRACT failed, Add tx failed, The tx pool has stopped, chainId:chain1, txId:1750d6a814e9c8cecab87c34c6eaaf34b35d3c63a50847c1a1d915bbccfdfbf9)
2023-03-29 16:31:18.410	[INFO]	[SDK]	v2@v2.2.1/sdk_cert_manage.go:37	[SDK] begin to query cert, [contract:CERT_MANAGE]/[method:CERTS_QUERY]
2023-03-29 16:31:18.412	[INFO]	[SDK]	v2@v2.2.1/sdk_cert_manage.go:68	[SDK] begin to add cert, [contract:CERT_MANAGE]/[method:CERT_ADD]
2023-03-29 16:31:18.415	[ERROR]	[SDK]	v2@v2.2.1/sdk_client.go:385	[SDK] enable cert hash AddCert failed, INVOKE_CONTRACT failed, Add tx failed, The tx pool has stopped, chainId:chain2, txId:1750d6a8159606c8cac3bad4dc9823c59b845ee14f9247b2833fa9eafc06d3f5
2023-03-29 16:31:18.415	[ERROR]	[Oracle]	contract_process/init_processor.go:85	NewContractProcesser CreateChainClientWithSDKConf chain(chain2_alias), error(enable cert hash AddCert failed, INVOKE_CONTRACT failed, Add tx failed, The tx pool has stopped, chainId:chain2, txId:1750d6a8159606c8cac3bad4dc9823c59b845ee14f9247b2833fa9eafc06d3f5)
[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)

2023-03-29 16:31:18.418	[INFO]	[HttpServer]	http_server_process/server.go:55	http service start , port :10123 
Edited Mar 29, 2023 by ccc flkj
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#616

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