scql icon indicating copy to clipboard operation
scql copied to clipboard

SCQL P2P安装,邀请合作节点参与项目时报错。

Open a-b-c-3-2-1 opened this issue 1 year ago • 1 comments

Issue Type

Feature

Have you searched for existing issues?

Yes

Link to Relevant Documentation

No response

Question Details

Alice端运行邀请合作节点参与项目命令时报错:

命令:
./brokerctl invite bob --project-id "demo" --host "http://192.168.*.*:8080"

报错信息:
Error: InviteMember: failed to call inviting member service: Post "http://192.168.*.*:8080/intra/member/invite": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

前置条件:

0.8.1b1版本的SCQL,按https://www.secretflow.org.cn/zh-CN/docs/scql/0.8.1b1/intro/p2p-tutorial文档完成P2p的部署。   
Alice节点关键配置如下:
config.yml
-----------------------------------------------------
intra_server:
  host: 0.0.0.0
  port: 8080
inter_server:
  host: 0.0.0.0
  port: 8081
log_level: debug
party_code: alice
session_expire_time: 24h
session_expire_check_time: 1m
party_info_file: "/home/admin/configs/party_info.json"
private_key_path: "/home/admin/configs/ed25519key.pem"
intra_host: broker:8080
engine:
  timeout: 120s
  protocol: http
  content_type: application/json
  uris:
    - for_peer: 192.168.*.*:8003
      for_self: engine:8003
storage:
  type: mysql
  conn_str: "mysql:password@tcp(192.168.*.*:3306)/brokeralice?charset=utf8mb4&parseTime=True&loc=Local&interpolateParams=true"
  max_idle_conns: 10
  max_open_conns: 100
  conn_max_idle_time: 2m
  conn_max_lifetime: 5m
----------------------------------------------------------------
party_info.json
----------------------------------------------------------------
{
  "participants": [
    {
      "party_code": "alice",
      "endpoint": "http://192.168.*.*:8081",
      "pubkey": "4bWp8CV6CPWeK4GJk1GasZStfyoC7/sSbSgfBf16U="
    },
    {
      "party_code": "bob",
      "endpoint": "http://192.168.*.*:8081",
      "pubkey": "kkaSqdEsUV+DNx4WxbMyKerHD749KodYmdtwxHn95U="
    }
  ]
}

---------------------------------------------------------------
目前Alice端按以下方法创建项目和查询项目是正常的

./brokerctl create project --project-id "demo" --host "http://192.168.*.*:8080"
./brokerctl get project --host "http://192.168.*.*:8080"

a-b-c-3-2-1 avatar Aug 20 '24 07:08 a-b-c-3-2-1

可能是Bob端的服务有问题,可以先检查下Bob的broker/engine的日志是否正常。

jingshi-ant avatar Aug 20 '24 07:08 jingshi-ant

可能是Bob端的服务有问题,可以先检查下Bob的broker/engine的日志是否正常。

解决了,是因为自身环境配置端口映射导致端口不通的原因。感谢。

a-b-c-3-2-1 avatar Aug 22 '24 08:08 a-b-c-3-2-1