Kube runner gives 404

Hi, I’m running drone (2.0.1 on alpine3.13) and drone-runner-kube (commit f71d613c on alpine3.13).

When I start the runner, it gives this 404 error. Is it a version issue with drone server?

time="2021-06-11T17:55:33Z" level=info msg="starting the server" addr=":3000"
time="2021-06-11T17:55:34Z" level=error msg="cannot ping the remote server" error="Post \"http://drone:8080/rpc/v2/ping\": dial tcp 10.98.134.232:8080: connect: connection refused"
time="2021-06-11T17:55:36Z" level=error msg="cannot ping the remote server" error="Post \"http://drone:8080/rpc/v2/ping\": dial tcp 10.98.134.232:8080: connect: connection refused"
time="2021-06-11T17:55:38Z" level=error msg="cannot ping the remote server" error="Post \"http://drone:8080/rpc/v2/ping\": dial tcp 10.98.134.232:8080: connect: connection refused"
time="2021-06-11T17:55:40Z" level=error msg="cannot ping the remote server" error="Post \"http://drone:8080/rpc/v2/ping\": dial tcp 10.98.134.232:8080: connect: connection refused"
time="2021-06-11T17:55:42Z" level=error msg="cannot ping the remote server" error="Post \"http://drone:8080/rpc/v2/ping\": dial tcp 10.98.134.232:8080: connect: connection refused"
time="2021-06-11T17:55:44Z" level=error msg="cannot ping the remote server" error="Post \"http://drone:8080/rpc/v2/ping\": dial tcp 10.98.134.232:8080: connect: connection refused"
time="2021-06-11T17:55:46Z" level=error msg="cannot ping the remote server" error="Post \"http://drone:8080/rpc/v2/ping\": dial tcp 10.98.134.232:8080: connect: connection refused"
time="2021-06-11T17:55:48Z" level=error msg="cannot ping the remote server" error="Post \"http://drone:8080/rpc/v2/ping\": dial tcp 10.98.134.232:8080: connect: connection refused"
time="2021-06-11T17:55:50Z" level=error msg="cannot ping the remote server" error="Post \"http://drone:8080/rpc/v2/ping\": dial tcp 10.98.134.232:8080: connect: connection refused"
time="2021-06-11T17:55:55Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:55:56Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:55:57Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:55:58Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:55:59Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:00Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:01Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:02Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:03Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:04Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:05Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:06Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:07Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:08Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:09Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:10Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:11Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
time="2021-06-11T17:56:12Z" level=error msg="cannot ping the remote server" error="404 page not found\n"
…

@andrewzah,

Most common reason for this issue could be:

  1. Problem with networking (this is the most likely root cause)
  2. incorrect host address
  3. incorrect secret

You may want to have a look into below article:

It seems to be an API version mismatch?
I am now on Drone 2.7.2 and docker-runner 1.8.0.

runner1_1  | HTTP/1.1 404 Not Found
runner1_1  | Content-Length: 19
runner1_1  | Content-Type: text/plain; charset=utf-8
runner1_1  | Date: Wed, 22 Dec 2021 21:26:04 GMT
runner1_1  | X-Content-Type-Options: nosniff
runner1_1  | 
runner1_1  | 404 page not found
runner1_1  | time="2021-12-22T21:26:04Z" level=error msg="cannot ping the remote server" error="404 page not found\n"

Yet if I try v1 manually:

[email protected]:/# curl -I -X GET http://drone/rpc/v1
HTTP/1.1 200 OK
Date: Wed, 22 Dec 2021 21:23:38 GMT
Content-Length: 0