Build task can not reach the agent node in the version of drone/agent:1.0.0-rc.6

I just refer to the document of drone web site to set up multi machine installation, below is the commands of server and agent, and now the build tasks are all in the pending state. It seemed that build task can not reach the agent node.

docker run
–volume=/var/run/docker.sock:/var/run/docker.sock
–volume=/var/lib/drone:/data
–env=DRONE_GITHUB_SERVER=https://github.com
–env=DRONE_GITHUB_CLIENT_ID=???
–env=DRONE_GITHUB_CLIENT_SECRET=???
–env=DRONE_AGENTS_ENABLED=true
–env=DRONE_RPC_SECRET=123456
–env=DRONE_SERVER_HOST=drone-szs.awx.im
–env=DRONE_SERVER_PROTO=https
–env=DRONE_TLS_AUTOCERT=true
–publish=80:80
–publish=443:443
–restart=always
–detach=true
–name=drone-server
drone/drone:1.0.0-rc.6

docker run
–volume=/var/run/docker.sock:/var/run/docker.sock
–env=DRONE_RPC_SERVER=https://drone-szs.awx.im
–env=DRONE_RPC_SECRET=123456
–env=DRONE_RUNNER_CAPACITY=2
–env=DRONE_RUNNER_NAME=drone-worker-sz-10
–restart=always
–detach=true
–name=drone-agent
drone/agent:1.0.0-rc.6

Please see the rc.6 release notes and update your server configuration to set DRONE_AGENTS_ENABLED. 1.0.0-rc.6 release notes

In the command above there is “–env=DRONE_AGENTS_ENABLED=true”

After I reset DRONE_RPC_SERVER=http://${drone_server_ip} and it works!

great, glad to see you got it working!

1 Like