Greetings,
I’m trying to install the Drone server along with the Docker runner as a Docker stack, integrate it with Gitea in a different stack, with Traefik as a reverse proxy in front, and use it to build a simple Go program. Everything seems to be working up until the point where the pipeline is launched for execution – according to the Drone web UI, it fails on the first and only stage with a big orange warning: [pipeline name] – clone: skipped
The logs don’t show any meaningful debug information either and I’ve already tried many combinations involving changes to the network, exposing ports, environment variables, etc. but to no avail. Could you please assist?
Here are my configuration files and logs. Gitea SSH runs on a non-standard port, by the way (i. e. not 22).
drone-stack.yml
version: '3'
services:
server:
image: drone/drone
volumes:
- data:/data
environment:
DRONE_GITEA_CLIENT_ID: [redacted]
DRONE_GITEA_CLIENT_SECRET: [redacted]
DRONE_GITEA_SERVER: https://git.[redacted]
DRONE_RPC_SECRET: [redacted]
DRONE_SERVER_HOST: drone.[redacted]
DRONE_SERVER_PROTO: https
depends_on:
- db
networks:
- drone
- traefik_webgateway
deploy:
labels:
traefik.frontend.rule: "Host:drone.[redacted]"
traefik.backend: "drone_server"
traefik.port: "80"
traefik.docker.network: "traefik_webgateway"
placement:
constraints:
- node.hostname == [master node]
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: any
delay: 5s
max_attempts: 3
runner:
image: drone/drone-runner-docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
DRONE_RPC_PROTO: https
DRONE_RPC_HOST: drone.[redacted]
DRONE_RPC_SECRET: [redacted]
DRONE_RUNNER_CAPACITY: 2
DRONE_RUNNER_NAME: ${HOSTNAME}
DRONE_RUNNER_NETWORKS: drone_drone
DRONE_LOGS_DEBUG: "true"
DRONE_LOGS_TEXT: "true"
DRONE_LOGS_PRETTY: "true"
DRONE_LOGS_COLOR: "true"
depends_on:
- server
ports:
- "3000:3000"
networks:
- drone
deploy:
placement:
constraints:
- node.hostname == [master node]
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: any
delay: 5s
max_attempts: 3
volumes:
data:
networks:
drone:
driver: overlay
traefik_webgateway:
external: true
.drone,yml
kind: pipeline
type: docker
name: name
steps:
- name: step
image: golang
commands:
- go test
- go build
server log
{"interval":"30m0s","level":"info","msg":"starting the cron scheduler","time":"2021-05-11T21:46:18Z"},
{"interval":"24h0m0s","level":"info","msg":"starting the zombie build reaper","time":"2021-05-11T21:46:18Z"},
{"acme":false,"host":"drone.[redacted]","level":"info","msg":"starting the http server","port":":80","proto":"https","time":"2021-05-11T21:46:18Z","url":"https://drone.[redacted]"},
{"commit":"[redacted]","error":"Not Found","event":"custom","level":"warning","msg":"trigger: cannot find yaml","ref":"refs/heads/master","repo":"[redacted]","time":"2021-05-11T21:59:19Z"},
runner log
time="2021-05-11T23:37:45Z" level=debug msg="successfully pinged the docker daemon",
time="2021-05-11T23:37:45Z" level=info msg="starting the server" addr=":3000",
time="2021-05-11T23:37:45Z" level=info msg="successfully pinged the remote server",
time="2021-05-11T23:37:45Z" level=info msg="polling the remote server" arch=amd64 capacity=2 endpoint="https://drone.[redacted]" kind=pipeline os=linux type=docker,
time="2021-05-11T23:37:45Z" level=debug msg="poller: request stage from remote server" thread=2,
time="2021-05-11T23:37:45Z" level=debug msg="poller: request stage from remote server" thread=1,
time="2021-05-11T23:37:59Z" level=debug msg="stage received" stage.id=29 stage.name=default stage.number=1 thread=1,
time="2021-05-11T23:37:59Z" level=debug msg="stage accepted" stage.id=29 stage.name=default stage.number=1 thread=1,
time="2021-05-11T23:37:59Z" level=debug msg="stage details fetched" build.id=29 build.number=29 repo.id=10 repo.name=[redacted] repo.namespace=[redacted] stage.id=29 stage.name=default stage.number=1 thread=1,
time="2021-05-11T23:37:59Z" level=debug msg="updated stage to running" build.id=29 build.number=29 repo.id=10 repo.name=[redacted] repo.namespace=[redacted] stage.id=29 stage.name=default stage.number=1 thread=1,
time="2021-05-11T23:37:59Z" level=debug msg="destroying the pipeline environment" build.id=29 build.number=29 repo.id=10 repo.name=[redacted] repo.namespace=[redacted] stage.id=29 stage.name=default stage.number=1 thread=1,
time="2021-05-11T23:37:59Z" level=debug msg="successfully destroyed the pipeline environment" build.id=29 build.number=29 repo.id=10 repo.name=[redacted] repo.namespace=[redacted] stage.id=29 stage.name=default stage.number=1 thread=1,
time="2021-05-11T23:37:59Z" level=debug msg="updated stage to complete" build.id=29 build.number=29 duration=0 repo.id=10 repo.name=[redacted] repo.namespace=[redacted] stage.id=29 stage.name=default stage.number=1 thread=1,
time="2021-05-11T23:37:59Z" level=debug msg="poller: request stage from remote server" thread=1,
time="2021-05-11T23:37:59Z" level=debug msg="done listening for cancellations" build.id=29 build.number=29 repo.id=10 repo.name=[redacted] repo.namespace=[redacted] stage.id=29 stage.name=default stage.number=1 thread=1,
time="2021-05-11T23:38:03Z" level=debug msg="stage received" stage.id=30 stage.name=default stage.number=1 thread=2,
time="2021-05-11T23:38:03Z" level=debug msg="stage accepted" stage.id=30 stage.name=default stage.number=1 thread=2,
.
.
.
Thank you in advance.