【问题标题】:grpc issue with Drone Agent - Drone IO 0.8Drone Agent 的 grpc 问题 - Drone IO 0.8
【发布时间】:2017-10-03 14:22:50
【问题描述】:

我在同一个实例上运行 Drone Server 和 Drone Agent,我正在尝试连接实例的私有 IP。

如果我用端口卷曲 ip,我会得到一个正确的 html 页面。 但是在 Drone Agent 日志中,我不断得到这个

drone-agent_1  | INFO: 2017/10/03 14:02:37 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.

由于它在同一个实例上,它应该可以工作,并且还应该为 grpc 配置无人机服务器。 2 Docker compose文件,一个用于代理,一个用于服务器

version: '2'

services:
  drone-agent:
    image: drone/agent:0.8
    command: agent
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_SERVER=172.30.1.169:9456
      - DRONE_SECRET=secret

Docker 编写服务器

版本:'2'

services:
  drone-server:
    image: drone/drone:0.8
    ports:
      - 9456:8000
      - 8502:9000
    volumes:
      - /var/lib/drone:/var/lib/drone/
    restart: always
    environment:
      - DRONE_OPEN=false
      - DRONE_HOST=https://subdomain.somehost.com:9876/
      - DRONE_BITBUCKET=true
      - DRONE_BITBUCKET_CLIENT=secretc
      - DRONE_BITBUCKET_SECRET=secretb
      - DRONE_SECRET=secret
      - DRONE_ADMIN=user1

【问题讨论】:

  • 请提供DRONE_SERVER=server:port 的真实值,以便我们确认您配置了正确的地址和端口。此外,还不清楚您是使用一个 docker compose 文件,还是两个单独的 compose 文件。
  • 更新了描述。我正在使用两个不同的撰写文件。 Drone 服务器具有 AWS 实例的私有 IP 地址。 @BradRydzewski

标签: drone.io


【解决方案1】:

在您的示例中,您在 8502:9000 公开了无人机服务器 GRPC 端点,但您为代理提供了端口 9456。为代理提供正确的端口应该可以为您解决此问题。

-DRONE_SERVER=172.30.1.169:9456
+DRONE_SERVER=172.30.1.169:8502

【讨论】:

    猜你喜欢
    • 2018-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-14
    • 2016-02-11
    • 2018-11-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多