我遵循了这个数字海洋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
搬运工-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)
答案 0 :(得分:0)
您正在使用与服务器相同的代理映像,请尝试使用在docker集线器中发布的代理映像作为“无人机/代理”