Drone

I/o timeout - builds pending

Hey,

i want to setup drone on my digitalocean droplet.

I just create the server and runner by:

docker run
–volume=/var/lib/drone:/data
–env=DRONE_AGENTS_ENABLED=true
–env=DRONE_GITHUB_SERVER=https://github.com
–env=DRONE_GITHUB_CLIENT_ID=xxx
–env=DRONE_GITHUB_CLIENT_SECRET=xxx
–env=DRONE_RPC_SECRET=xxx
–env=DRONE_RPC_PROTO=http
–env=DRONE_RPC_HOST=167.172.168.81
–env=DRONE_SERVER_HOST=167.172.168.81
–env=DRONE_SERVER_PROTO=http
–env=DRONE_LOGS_DEBUG=true
–publish=80:80
–publish=443:443
–restart=always
–detach=true
–name=drone
drone/drone:latest

AND

docker run -d
-v /var/run/docker.sock:/var/run/docker.sock
-e DRONE_RPC_PROTO=http
-e DRONE_RPC_HOST=167.172.168.81
–env=DRONE_RPC_SECRET=xxx
-e DRONE_SERVER_HOST=167.172.168.81
-e DRONE_SERVER_PROTO=http
-e DRONE_RUNNER_CAPACITY=2
-e DRONE_RUNNER_NAME=${HOSTNAME}
-p 3000:3000
–restart always
–name runner
drone/drone-runner-docker:latest

Like described in the documentation.

Runner prints

time=“2020-02-06T12:37:48Z” level=error msg=“cannot ping the remote server” error=“Post http://167.172.168.81/rpc/v2/ping: dial tcp 167.172.168.81:80: i/o timeout”

Getting sick of this, maybe someone can help me :slight_smile:

Thank you!

This tells me that the runner cannot reach the server. The http request from the runner to the server times out. This indicates a networking issue with your host machine, preventing the two containers from communicating.