Hi!
I have tried to setup Drone and a runner behind a reverse proxy (I use Nginx Proxy Manager to manage the proxies).
I can access the Drone and runner dashboard from:
https://drone.domain.com
https://runner.domain.com
I have a small test build that looks like this:
name: drone-test
kind: pipeline
type: docker
platform:
os: linux
arch: arm
steps:
- name: test
image: alpine
commands:
- echo "It worked!"
The Ngnix proxy config for the Drone looks like this:
https://build.domain.com
→ http://drone:80
And the runner:
https://runner.domain.com
→ http://runner:3000
When I do a push to my repo I can see that the build gets started in the dashboard but its just stuck on 0% and spins forever.
In the logs I can see this:
DEBU[0000] main: license loaded build.limit=5000 expires="0001-01-01 00:00:00 +0000 UTC" kind=trial repo.limit=0 user.limit=0
DEBU[0000] bootstrap: create account admin=true login=TheGreyRaven machine=false token=
DEBU[0000] bootstrap: updating account admin=true login=TheGreyRaven machine=false token=
DEBU[0000] bootstrap: account already up-to-date admin=true login=TheGreyRaven machine=false token=
INFO[0000] starting the http server acme=false host=build.domain.com port=":80" proto=https url="https://build.domain.com"
INFO[0000] starting the cron scheduler interval=30m0s
INFO[0000] starting the zombie build reaper interval=24h0m0s
DEBU[0006] manager: request queue item arch=arm64 kernel= kind=pipeline os=linux type=docker variant=
DEBU[0006] manager: request queue item arch=arm64 kernel= kind=pipeline os=linux type=docker variant=
DEBU[0015] api: authentication required name=Test namespace=TheGreyRaven request-id=some_id visibility=private
DEBU[0015] api: guest access request-id=some_id
DEBU[0015] fields.time="2022-01-18T10:03:47Z" latency="390.002µs" method=POST remote="172.18.0.4:48856" request=/api/repos/TheGreyRaven/Test/builds/7 request-id=some_id
DEBU[0018] fields.time="2022-01-18T10:03:49Z" latency="136.361µs" method=GET remote="172.18.0.4:48858" request=/TheGreyRaven/Test/7 request-id=some_id
DEBU[0018] api: authentication required request-id=some_id
DEBU[0018] api: guest access request-id=some_id
DEBU[0018] fields.time="2022-01-18T10:03:50Z" latency="98.081µs" method=GET remote="172.18.0.4:48860" request=/api/user request-id=some_id
DEBU[0018] api: authentication required name=Test namespace=TheGreyRaven request-id=some_id visibility=private
DEBU[0018] api: guest access request-id=some_id
DEBU[0018] fields.time="2022-01-18T10:03:50Z" latency="305.721µs" method=GET remote="172.18.0.4:48864" request=/api/repos/TheGreyRaven/Test/builds/7 request-id=some_id
DEBU[0018] api: authentication required name=Test namespace=TheGreyRaven request-id=some_id visibility=private
DEBU[0018] api: guest access request-id=some_id
DEBU[0018] fields.time="2022-01-18T10:03:50Z" latency="780.284µs" method=GET remote="172.18.0.4:48862" request=/api/repos/TheGreyRaven/Test request-id=some_id
DEBU[0018] events: stream opened request-id=some_id
DEBU[0019] fields.time="2022-01-18T10:03:51Z" latency="67.361µs" method=GET remote="172.18.0.4:48870" request=/login request-id=some_id
DEBU[0020] attempting authentication login=TheGreyRaven
DEBU[0020] authentication successful login=TheGreyRaven
DEBU[0020] fields.time="2022-01-18T10:03:52Z" latency=461.289956ms method=GET remote="172.18.0.4:48872" request="/login?code=143c45545ef1bc1146ce&state=4d65822107fcfd52" request-id=some_id
DEBU[0020] fields.time="2022-01-18T10:03:52Z" latency="177.681µs" method=GET remote="172.18.0.4:48878" request=/ request-id=some_id
DEBU[0020] events: stream cancelled request-id=some_id
DEBU[0020] events: stream closed request-id=some_id
DEBU[0020] api: guest access request-id=some_id
DEBU[0020] fields.time="2022-01-18T10:03:52Z" latency=2.123173101s method=GET remote="172.18.0.4:48866" request=/api/stream request-id=some_id
DEBU[0020] fields.time="2022-01-18T10:03:52Z" latency="225.242µs" method=GET remote="172.18.0.4:48880" request=/api/user request-id=some_id
DEBU[0020] fields.time="2022-01-18T10:03:52Z" latency=1.291566ms method=GET remote="172.18.0.4:48882" request="/api/user/repos?latest=true" request-id=some_id
DEBU[0020] fields.time="2022-01-18T10:03:52Z" latency="845.325µs" method=GET remote="172.18.0.4:48884" request=/api/user/builds/recent request-id=some_id
DEBU[0020] fields.time="2022-01-18T10:03:52Z" latency="937.685µs" method=GET remote="172.18.0.4:48886" request="/api/user/repos?latest=true" request-id=some_id
DEBU[0020] events: stream opened request-id=some_id user.admin=true user.login=TheGreyRaven
DEBU[0021] api: root access granted name=Test namespace=TheGreyRaven request-id=some_id user.admin=true user.login=TheGreyRaven
DEBU[0021] fields.time="2022-01-18T10:03:53Z" latency="656.363µs" method=GET remote="172.18.0.4:48890" request=/api/repos/TheGreyRaven/Test request-id=some_id
DEBU[0021] api: root access granted name=Test namespace=TheGreyRaven request-id=some_id user.admin=true user.login=TheGreyRaven
DEBU[0021] fields.time="2022-01-18T10:03:53Z" latency=1.239926ms method=GET remote="172.18.0.4:48892" request="/api/repos/TheGreyRaven/Test/builds?page=1" request-id=some_id
DEBU[0022] api: root access granted name=Test namespace=TheGreyRaven request-id=some_id user.admin=true user.login=TheGreyRaven
DEBU[0022] api: root access granted name=Test namespace=TheGreyRaven request-id=some_id user.admin=true user.login=TheGreyRaven
DEBU[0022] fields.time="2022-01-18T10:03:53Z" latency="379.522µs" method=GET remote="172.18.0.4:48894" request=/api/repos/TheGreyRaven/Test request-id=some_id
DEBU[0022] fields.time="2022-01-18T10:03:53Z" latency=1.601808ms method=GET remote="172.18.0.4:48896" request=/api/repos/TheGreyRaven/Test/builds/7 request-id=some_id
DEBU[0023] api: root access granted name=Test namespace=TheGreyRaven request-id=some_id user.admin=true user.login=TheGreyRaven
DEBU[0023] api: root access granted name=Test namespace=TheGreyRaven request-id=some_id user.admin=true user.login=TheGreyRaven
DEBU[0023] trigger: received commit=268bfc95815a00e49d31a02b3524a65145d049a6 event=push ref=refs/heads/main repo=TheGreyRaven/Test
DEBU[0023] fields.time="2022-01-18T10:03:55Z" latency=411.513386ms method=POST remote="172.18.0.4:48898" request=/api/repos/TheGreyRaven/Test/builds/7 request-id=some_id
DEBU[0023] api: root access granted name=Test namespace=TheGreyRaven request-id=some_id user.admin=true user.login=TheGreyRaven
DEBU[0023] fields.time="2022-01-18T10:03:55Z" latency="413.643µs" method=GET remote="172.18.0.4:48900" request=/api/repos/TheGreyRaven/Test request-id=some_id
DEBU[0023] api: root access granted name=Test namespace=TheGreyRaven request-id=some_id user.admin=true user.login=TheGreyRaven
DEBU[0023] fields.time="2022-01-18T10:03:55Z" latency="759.564µs" method=GET remote="172.18.0.4:48902" request=/api/repos/TheGreyRaven/Test/builds/8 request-id=some_id
And this is the logs for the runner:
time="2022-01-18T09:49:31Z" level=debug msg="successfully pinged the docker daemon"
time="2022-01-18T09:49:31Z" level=info msg="starting the server" addr=":3000"
time="2022-01-18T09:49:31Z" level=info msg="successfully pinged the remote server"
time="2022-01-18T09:49:31Z" level=info msg="polling the remote server" arch=arm64 capacity=2 endpoint="https://build.domain.com" kind=pipeline os=linux type=docker
time="2022-01-18T09:49:31Z" level=debug msg="poller: request stage from remote server" thread=2
time="2022-01-18T09:49:31Z" level=debug msg="poller: request stage from remote server" thread=1
time="2022-01-18T09:50:01Z" level=trace msg="http: no content returned: re-connect and re-try"
time="2022-01-18T09:50:01Z" level=trace msg="http: no content returned: re-connect and re-try"
Does anyone have any idea what might be the problem?
I have been stuck with this for a couple of days and any help would be greatly appreciated, thank you all!