I’m rather new to drone and I’m trying to compile server & baremetal runner from source and install it on archlinux.
For the server, I mainly followed the OSS build instructions and set it up with systemd. I successfully set up the integration with the gitea instance on the same host and a drone pipeline, which is now pending.
I then tried to setup https://github.com/drone-runners/drone-runner-exec the same way by compiling the master branch with go build
, generating the systemd service and setting up the environment variables. When I start the runner, it tries to connect to the server and throws a row of errors:
time="2020-08-23T01:24:16+02:00" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2020-08-23T01:24:17+02:00" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2020-08-23T01:24:18+02:00" level=error msg="cannot ping the remote server" error="404 page not found\n"
When I enable the http dump, I get the following:
Aug 23 01:26:14 basil drone-runner-exec[83729]: POST /rpc/v2/ping HTTP/1.1
Aug 23 01:26:14 basil drone-runner-exec[83729]: Host: 192.168.1.6:8080
Aug 23 01:26:14 basil drone-runner-exec[83729]: User-Agent: Go-http-client/1.1
Aug 23 01:26:14 basil drone-runner-exec[83729]: Content-Length: 0
Aug 23 01:26:14 basil drone-runner-exec[83729]: X-Drone-Token: my-redacted-token
Aug 23 01:26:14 basil drone-runner-exec[83729]: Accept-Encoding: gzip
Aug 23 01:26:14 basil drone-runner-exec[83729]:
Aug 23 01:26:14 basil drone-runner-exec[83729]: HTTP/1.1 404 Not Found
Aug 23 01:26:14 basil drone-runner-exec[83729]: Content-Length: 19
Aug 23 01:26:14 basil drone-runner-exec[83729]: Content-Type: text/plain; charset=utf-8
Aug 23 01:26:14 basil drone-runner-exec[83729]: Date: Sat, 22 Aug 2020 23:26:14 GMT
Aug 23 01:26:14 basil drone-runner-exec[83729]: X-Content-Type-Options: nosniff
Aug 23 01:26:14 basil drone-runner-exec[83729]:
Aug 23 01:26:14 basil drone-runner-exec[83729]: time="2020-08-23T01:26:14+02:00" level=error msg="cannot ping the remote server" error="404 page not found\n"
Env vars of the drone server:
DRONE_GITEA_CLIENT_ID=someid
DRONE_GITEA_CLIENT_SECRET=giteasecret
DRONE_GITEA_SERVER=http://192.168.1.6:3000
DRONE_DATABASE_DATASOURCE=/var/lib/drone-server/database.sqlite
DRONE_RPC_SECRET=my-redacted-token
DRONE_SERVER_HOST=192.168.1.6:8080
DRONE_SERVER_PROTO=http
The env vars of the exec runner:
# deactivating those three lines does not make a difference
DRONE_HTTP_BIND=:3034
DRONE_HTTP_HOST=192.168.1.6
DRONE_HTTP_PROTO=http
DRONE_RPC_DUMP_HTTP=true
DRONE_RPC_HOST=192.168.1.6:8080
DRONE_RPC_PROTO=http
DRONE_RPC_SECRET=my-redacted-token
DRONE_RUNNER_CAPACITY=2
DRONE_RUNNER_NAME=Basil Baremetal
DRONE_TRACE=true
DRONE_DEBUG=true
DRONE_LOG_FILE=/var/lib/drone-runner-exec/logfile
I made sure that my firewall lets the relevant ports through (8080,3000,3034) and there are no reverse proxies active currently (I plan to add one in the future though).
I also tried curl http://192.168.1.6:8080/rpc/v2/ping --data ''
which also returned 404 page not found
.