gpt4 book ai didi

drone.io - 无人机 CI 网络没有响应

转载 作者:行者123 更新时间:2023-12-02 04:34:38 27 4
gpt4 key购买 nike

我关注了这个 Digital Ocean 的 Drone Setup Tutorial但未能正确设置 Drone 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

Drone Server Log

[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)

**

更新:

**

I eventually solved the problem, this is my docker-compose docker-compose drone v0.8. Although I advised against using this, as newer version of drone has been released and introduced breaking changes with this compose.

最佳答案

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

关于drone.io - 无人机 CI 网络没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44747054/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com