无人机CI网络不响应



我遵循此数字海洋的无人机设置教程,但没有设法正确设置无人机CI。当我尝试访问之前,它不会响应任何请求,直到超时为止。我可以确认我已经在配置中公开了端口。

来自无人机代理的日志。
日志简单地说rpc: error re-connecting: dial tcp <ADDRESS:PORT>: getsockopt: connection timed out

*更新1 :来自无人机代理的日志现在输出pipeline: request next execution

docker-compose version 1.14.0, build c7bdf9e

docker-compose.yml

version: '3'
services:
  drone-server:
    image: drone/drone:0.7
    ports:
      - 127.0.0.1:10010:8000
    volumes:
      - /var/lib/drone:/var/lib/drone
    restart: always
    env_file:
      - /etc/drone-ci/server.env
  drone-agent:
    image: drone/drone:0.7
    command: agent
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    restart: always
    env_file:
      - /etc/drone-ci/agent.env

server.env

# Service settings
DRONE_SECRET=<SECRET>
DRONE_HOST=https://drone.example.com
# Registration settings
DRONE_OPEN=true
DRONE_ADMIN=<BitBucket USERNAME>
DRONE_ORGS=<BitBucket TEAM>
# SCM Settings
DRONE_BITBUCKET=true
DRONE_BITBUCKET_CLIENT=<BitBucket-CLIENT>
DRONE_BITBUCKET_SECRET=<BitBucket-SECRET>

agent.env

DRONE_SECRET=<SECRET>
DRONE_SERVER=ws://drone-server:8000/ws/broker

docker ps

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                                      NAMES
cfec5951861f        drone/drone:0.7     "/drone agent"      5 minutes ago       Up 5 minutes        80/tcp, 443/tcp, 8000/tcp                  droneci_drone-agent_1
b6111c091bbd        drone/drone:0.7     "/drone server"     5 minutes ago       Up 5 minutes        80/tcp, 443/tcp, 0.0.0.0:10010->8000/tcp   droneci_drone-server_1

无人机服务器日志

[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)
[GIN-debug] GET    /static/*filepath         --> github.com/drone/drone/router.Load.func1 (2 handlers)
[GIN-debug] GET    /login                    --> github.com/drone/drone/server.ShowLogin (13 handlers)
[GIN-debug] GET    /login/form               --> github.com/drone/drone/server.ShowLoginForm (13 handlers)
[GIN-debug] GET    /logout                   --> github.com/drone/drone/server.GetLogout (13 handlers)
[GIN-debug] GET    /api/user                 --> github.com/drone/drone/server.GetSelf (14 handlers)
[GIN-debug] GET    /api/user/feed            --> github.com/drone/drone/server.GetFeed (14 handlers)
[GIN-debug] GET    /api/user/repos           --> github.com/drone/drone/server.GetRepos (14 handlers)
[GIN-debug] GET    /api/user/repos/remote    --> github.com/drone/drone/server.GetRemoteRepos (14 handlers)
[GIN-debug] POST   /api/user/token           --> github.com/drone/drone/server.PostToken (14 handlers)
[GIN-debug] DELETE /api/user/token           --> github.com/drone/drone/server.DeleteToken (14 handlers)
[GIN-debug] GET    /api/users                --> github.com/drone/drone/server.GetUsers (14 handlers)
[GIN-debug] POST   /api/users                --> github.com/drone/drone/server.PostUser (14 handlers)
[GIN-debug] GET    /api/users/:login         --> github.com/drone/drone/server.GetUser (14 handlers)
[GIN-debug] PATCH  /api/users/:login         --> github.com/drone/drone/server.PatchUser (14 handlers)
[GIN-debug] DELETE /api/users/:login         --> github.com/drone/drone/server.DeleteUser (14 handlers)
[GIN-debug] POST   /api/repos/:owner/:name   --> github.com/drone/drone/server.PostRepo (13 handlers)
[GIN-debug] GET    /api/repos/:owner/:name   --> github.com/drone/drone/server.GetRepo (16 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/builds --> github.com/drone/drone/server.GetBuilds (16 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/builds/:number --> github.com/drone/drone/server.GetBuild (16 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/logs/:number/:ppid/:proc --> github.com/drone/drone/server.GetBuildLogs (16 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/sign --> github.com/drone/drone/server.Sign (17 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/secrets --> github.com/drone/drone/server.GetSecretList (17 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/secrets --> github.com/drone/drone/server.PostSecret (17 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/secrets/:secret --> github.com/drone/drone/server.GetSecret (17 handlers)
[GIN-debug] PATCH  /api/repos/:owner/:name/secrets/:secret --> github.com/drone/drone/server.PatchSecret (17 handlers)
[GIN-debug] DELETE /api/repos/:owner/:name/secrets/:secret --> github.com/drone/drone/server.DeleteSecret (17 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/registry --> github.com/drone/drone/server.GetRegistryList (17 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/registry --> github.com/drone/drone/server.PostRegistry (17 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/registry/:registry --> github.com/drone/drone/server.GetRegistry (17 handlers)
[GIN-debug] PATCH  /api/repos/:owner/:name/registry/:registry --> github.com/drone/drone/server.PatchRegistry (17 handlers)
[GIN-debug] DELETE /api/repos/:owner/:name/registry/:registry --> github.com/drone/drone/server.DeleteRegistry (17 handlers)
[GIN-debug] PATCH  /api/repos/:owner/:name   --> github.com/drone/drone/server.PatchRepo (17 handlers)
[GIN-debug] DELETE /api/repos/:owner/:name   --> github.com/drone/drone/server.DeleteRepo (17 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/chown --> github.com/drone/drone/server.ChownRepo (17 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/repair --> github.com/drone/drone/server.RepairRepo (17 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/builds/:number --> github.com/drone/drone/server.PostBuild (17 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/builds/:number/approve --> github.com/drone/drone/server.PostApproval (17 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/builds/:number/decline --> github.com/drone/drone/server.PostDecline (17 handlers)
[GIN-debug] DELETE /api/repos/:owner/:name/builds/:number/:job --> github.com/drone/drone/server.DeleteBuild (17 handlers)
[GIN-debug] GET    /api/badges/:owner/:name/status.svg --> github.com/drone/drone/server.GetBadge (13 handlers)
[GIN-debug] GET    /api/badges/:owner/:name/cc.xml --> github.com/drone/drone/server.GetCC (13 handlers)
[GIN-debug] POST   /hook                     --> github.com/drone/drone/server.PostHook (13 handlers)
[GIN-debug] POST   /api/hook                 --> github.com/drone/drone/server.PostHook (13 handlers)
[GIN-debug] GET    /ws/broker                --> github.com/drone/drone/server.RPCHandler (13 handlers)
[GIN-debug] GET    /ws/rpc                   --> github.com/drone/drone/server.RPCHandler (13 handlers)
[GIN-debug] GET    /ws/feed                  --> github.com/drone/drone/server.EventStream (13 handlers)
[GIN-debug] GET    /ws/logs/:owner/:name/:build/:number --> github.com/drone/drone/server.LogStream (16 handlers)
[GIN-debug] GET    /api/info/queue           --> github.com/drone/drone/server.GetQueueInfo (14 handlers)
[GIN-debug] GET    /authorize                --> github.com/drone/drone/server.GetLogin (13 handlers)
[GIN-debug] POST   /authorize                --> github.com/drone/drone/server.GetLogin (13 handlers)
[GIN-debug] POST   /authorize/token          --> github.com/drone/drone/server.GetLoginToken (13 handlers)
[GIN-debug] GET    /api/builds               --> github.com/drone/drone/server.GetBuildQueue (14 handlers)
[GIN-debug] GET    /api/debug/pprof/         --> github.com/drone/drone/server/debug.IndexHandler.func1 (14 handlers)
[GIN-debug] GET    /api/debug/pprof/heap     --> github.com/drone/drone/server/debug.HeapHandler.func1 (14 handlers)
[GIN-debug] GET    /api/debug/pprof/goroutine --> github.com/drone/drone/server/debug.GoroutineHandler.func1 (14 handlers)
[GIN-debug] GET    /api/debug/pprof/block    --> github.com/drone/drone/server/debug.BlockHandler.func1 (14 handlers)
[GIN-debug] GET    /api/debug/pprof/threadcreate --> github.com/drone/drone/server/debug.ThreadCreateHandler.func1 (14 handlers)
[GIN-debug] GET    /api/debug/pprof/cmdline  --> github.com/drone/drone/server/debug.CmdlineHandler.func1 (14 handlers)
[GIN-debug] GET    /api/debug/pprof/profile  --> github.com/drone/drone/server/debug.ProfileHandler.func1 (14 handlers)
[GIN-debug] GET    /api/debug/pprof/symbol   --> github.com/drone/drone/server/debug.SymbolHandler.func1 (14 handlers)
[GIN-debug] POST   /api/debug/pprof/symbol   --> github.com/drone/drone/server/debug.SymbolHandler.func1 (14 handlers)
[GIN-debug] GET    /api/debug/pprof/trace    --> github.com/drone/drone/server/debug.TraceHandler.func1 (14 handlers)
[GIN-debug] GET    /metrics                  --> github.com/drone/drone/server/metrics.PromHandler.func1 (14 handlers)

**

更新:

**

我最终解决了这个问题,这是我的Docker-Compose Docker-Compose无人机V0.8。尽管我建议不要使用它,但由于已发布了较新版本的无人机版本并引入了此组合的破坏变化。

您正在为代理与服务器使用相同的图像,请尝试使用Docker Hub中发布的代理图像作为"无人机/代理"

相关内容

  • 没有找到相关文章

最新更新