Drone1.2.1 shows "default: Pending"

I running with gitea 1.8.3 and drone 1.2.1 on CentOS, but when new builds pushed the Drone UI Always shows default: Pending.
When I used gitea 1.8.3 and drone 1.1.0, I was able to execute normally.

I searched for the relevant problems, but did not find the appropriate solution. So I was thinking does drone 1.2.1 have any configuration changes?

my test docker-compose.yml :

version: "3"
services:
  gitea:
    image: gitea/gitea:1.8.3
    ports:
      - "10080:3000"
      - "10022:22"
    volumes:
      - gitea:/data
    restart: always
    environment:
      - USER_UID=1000
      - USER_GID=1000

  drone-server:
    image: drone/drone:1.2.1
    ports:
      - 8000:80
    volumes:
      - drone:/data
    restart: always
    environment:
      - DRONE_OPEN=true
      - DRONE_SERVER_HOST=${DRONE_SERVER_HOST}
      - DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO}
      - DRONE_TLS_AUTOCERT=false
      - DRONE_GIT_ALWAYS_AUTH=true
      - DRONE_GITEA_SERVER=${DRONE_GITEA_SERVER}
      - DRONE_AGENTS_ENABLED=true
      - DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
      - DRONE_LOGS_DEBUG=true
      - DRONE_USER_CREATE=username:${DRONE_ADMIN},admin:true
      - DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
      - DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}

  drone-agent:
    image: drone/agent:1.2.1
    restart: always
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_RPC_SERVER=${DRONE_RPC_SERVER}
      - DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
      - DRONE_RUNNER_CAPACITY=2
      - DRONE_LOGS_DEBUG=true

volumes:
  drone:
  gitea:

.env file:

DRONE_SERVER_HOST=192.168.5.20:8000
DRONE_SERVER_PROTO=http
DRONE_GITEA_SERVER=http://192.168.5.20:10080
DRONE_RPC_SECRET=c58cbb7db107b9926133108fedec48e3
DRONE_RPC_SERVER=http://192.168.5.20:8000
DRONE_ADMIN=abc
DRONE_GITEA_CLIENT_ID=55024ae7-1ec0-47d0-ac7c-f891d66009a5
DRONE_GITEA_CLIENT_SECRET=FNLer9xrnQ04tf0CXDn-bgzB4NMDQVIvdz9cyT8zzbE=

and the logs of gitea1.8.3 and drone1.2.1 when get new builds:


gitea_1         | Jun 25 10:39:58 sshd[126]: Accepted publickey for git from 192.168.5.125 port 58168 ssh2: RSA SHA256:My6EL2r7d20oq01t1PeuRiYJSK17ID3sQlR+xCagPnE
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started GET /api/internal/repo/abc/hello for 127.0.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed GET /api/internal/repo/abc/hello 200 OK in 1.204465ms
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started GET /api/internal/ssh/1 for 127.0.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed GET /api/internal/ssh/1 200 OK in 472.809µs
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started GET /api/internal/ssh/1/user for 127.0.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed GET /api/internal/ssh/1/user 200 OK in 608.14µs
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started GET /api/internal/repositories/1/user/1/checkunituser?isAdmin=true&unitType=1 for 127.0.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed GET /api/internal/repositories/1/user/1/checkunituser?isAdmin=true&unitType=1 200 OK in 1.240888ms
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started GET /api/internal/branch/1/master for 127.0.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed GET /api/internal/branch/1/master 200 OK in 740.592µs
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started POST /api/internal/push/update for 127.0.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed POST /api/internal/push/update 202 Accepted in 26.750222ms
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started GET /api/internal/repository/1 for 127.0.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed GET /api/internal/repository/1 200 OK in 783.351µs
drone-server_1  | {"commit":"e4132a9b86d1369f55cc1174d239c7252579304a","event":"push","level":"debug","msg":"webhook parsed","name":"hello","namespace":"abc","time":"2019-06-25T10:39:58Z"}
drone-server_1  | {"commit":"e4132a9b86d1369f55cc1174d239c7252579304a","event":"push","level":"debug","msg":"trigger: received","ref":"refs/heads/master","repo":"abc/hello","time":"2019-06-25T10:39:58Z"}
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started GET /api/v1/repos/abc/hello/raw/e4132a9b86d1369f55cc1174d239c7252579304a/.drone.yml for 172.30.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed GET /api/v1/repos/abc/hello/raw/e4132a9b86d1369f55cc1174d239c7252579304a/.drone.yml 200 OK in 18.079533ms
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started POST /api/internal/ssh/1/update for 127.0.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed POST /api/internal/ssh/1/update 200 OK in 6.431349ms
gitea_1         | Jun 25 10:39:58 sshd[128]: Received disconnect from 192.168.5.125 port 58168:11: disconnected by user
gitea_1         | Jun 25 10:39:58 sshd[128]: Disconnected from user git 192.168.5.125 port 58168
gitea_1         | [Macaron] 2019-06-25 10:39:58: Started POST /api/v1/repos/abc/hello/statuses/e4132a9b86d1369f55cc1174d239c7252579304a for 172.30.0.1
gitea_1         | [Macaron] 2019-06-25 10:39:58: Completed POST /api/v1/repos/abc/hello/statuses/e4132a9b86d1369f55cc1174d239c7252579304a 201 Created in 18.418644ms
drone-server_1  | {"fields.time":"2019-06-25T10:39:58Z","latency":56130581,"level":"debug","method":"POST","msg":"","remote":"172.30.0.1:44078","request":"/hook?secret=d22CGR758DZsaiy11so7hkVF9SAolWhX","request-id":"1N8OLCrFrwlIORQvN3d0rTLXw6Q","time":"2019-06-25T10:39:58Z"}
drone-server_1  | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"linux","time":"2019-06-25T10:40:06Z","type":"docker","variant":""}
drone-server_1  | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"linux","time":"2019-06-25T10:40:06Z","type":"docker","variant":""}
drone-server_1  | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"linux","time":"2019-06-25T10:40:07Z","type":"docker","variant":""}
drone-server_1  | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"linux","time":"2019-06-25T10:40:07Z","type":"docker","variant":""}
drone-agent_1   | {"arch":"amd64","level":"debug","machine":"98090232f4bd","msg":"runner: polling queue","os":"linux","time":"2019-06-25T10:40:36Z"}
drone-server_1  | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"linux","time":"2019-06-25T10:40:36Z","type":"docker","variant":""}
drone-server_1  | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"linux","time":"2019-06-25T10:40:36Z","type":"docker","variant":""}
drone-server_1  | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"linux","time":"2019-06-25T10:40:36Z","type":"docker","variant":""}
drone-server_1  | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"linux","time":"2019-06-25T10:40:36Z","type":"docker","variant":""}
drone-agent_1   | {"arch":"amd64","level":"debug","machine":"98090232f4bd","msg":"runner: polling queue","os":"linux","time":"2019-06-25T10:40:36Z"}

Please see the following thread: Builds are Stuck in Pending Status.

Also are you aware that agents are not required when everything is running on the same server? You can simplify the installation and use single-machine mode. See https://docs.drone.io/installation/gitea/single-machine/.

OK, I will add DRONE_LOGS_TRACE=true for test it.

The result is not ideal.

When I run with :

docker run \
  --volume=/var/run/docker.sock:/var/run/docker.sock \
  --volume=/var/lib/drone:/data \
  --env=DRONE_GITEA_SERVER=http://192.168.5.20:10080 \
  --env=DRONE_GIT_ALWAYS_AUTH=false \
  --env=DRONE_RUNNER_CAPACITY=2 \
  --env=DRONE_SERVER_HOST=192.168.5.20:8000 \
  --env=DRONE_SERVER_PROTO=http \
  --env=DRONE_TLS_AUTOCERT=false \
  --env=DRONE_LOGS_TRACE=true \
  --publish=8000:80 \
  --restart=always \
  --detach=true \
  --name=drone \
  drone/drone:1.2.1

Log output when git pushed:

{"commit":"73eb04e1f0c160d10833d7610d414e8620303291","event":"push","level":"debug","msg":"webhook parsed","name":"hello","namespace":"abc","time":"2019-06-25T12:36:08Z"}
{"commit":"73eb04e1f0c160d10833d7610d414e8620303291","event":"push","level":"debug","msg":"trigger: received","ref":"refs/heads/master","repo":"abc/hello","time":"2019-06-25T12:36:08Z"}
{"fields.time":"2019-06-25T12:36:08Z","latency":49757368,"level":"debug","method":"POST","msg":"","remote":"172.17.0.1:44592","request":"/hook?secret=zkA56p7tC4fDTTT9PrLeNW29N5LOyBWE","request-id":"1N8cT19uDEaqBTD4yAfVdbwt7Me","time":"2019-06-25T12:36:08Z"}

And drone 1.2.0 is also like this.

When change to drone 1.1.0 :

docker run \
  --volume=/var/run/docker.sock:/var/run/docker.sock \
  --volume=/var/lib/drone:/data \
  --env=DRONE_GITEA_SERVER=http://192.168.5.20:10080 \
  --env=DRONE_GIT_ALWAYS_AUTH=false \
  --env=DRONE_RUNNER_CAPACITY=2 \
  --env=DRONE_SERVER_HOST=192.168.5.20:8000 \
  --env=DRONE_SERVER_PROTO=http \
  --env=DRONE_TLS_AUTOCERT=false \
  --env=DRONE_LOGS_TRACE=true \
  --publish=8000:80 \
  --restart=always \
  --detach=true \
  --name=drone \
  drone/drone:1.1.0

Log output:


{"commit":"9c43db51db9008924840edcf51e53cab6bc5b61f","event":"push","level":"debug","msg":"webhook parsed","name":"hello","namespace":"abc","time":"2019-06-25T12:43:24Z"}
{"commit":"9c43db51db9008924840edcf51e53cab6bc5b61f","event":"push","level":"debug","msg":"trigger: received","ref":"refs/heads/master","repo":"abc/hello","time":"2019-06-25T12:43:24Z"}
{"fields.time":"2019-06-25T12:43:24Z","latency":49218963,"level":"debug","method":"POST","msg":"","remote":"172.17.0.1:44620","request":"/hook?secret=zkA56p7tC4fDTTT9PrLeNW29N5LOyBWE","request-id":"1N8dLryEv9MFrl9fwueljN0GQVB","time":"2019-06-25T12:43:24Z"}
{"level":"debug","machine":"465a8e2947d6","msg":"manager: accept stage","stage-id":3,"time":"2019-06-25T12:43:24Z"}
{"level":"debug","machine":"465a8e2947d6","msg":"manager: stage accepted","stage-id":3,"time":"2019-06-25T12:43:24Z"}
{"arch":"amd64","level":"debug","machine":"465a8e2947d6","msg":"runner: get stage details from server","os":"linux","stage-id":3,"time":"2019-06-25T12:43:24Z"}
{"level":"debug","msg":"manager: fetching stage details","step-id":3,"time":"2019-06-25T12:43:24Z"}
{"level":"trace","msg":"registry: no registry credentials loaded","time":"2019-06-25T12:43:24Z"}
{"level":"trace","msg":"registry: no registry credentials loaded","time":"2019-06-25T12:43:24Z"}
{"arch":"amd64","level":"debug","machine":"465a8e2947d6","msg":"runner: watch for cancel signal","os":"linux","time":"2019-06-25T12:43:24Z"}
{"arch":"amd64","build":3,"level":"info","machine":"465a8e2947d6","msg":"runner: start execution","os":"linux","pipeline":"default","repo":"abc/hello","stage":1,"stage-id":3,"time":"2019-06-25T12:43:24Z"}
{"level":"debug","msg":"manager: updating step status","step.id":2,"step.name":"test_drone","step.status":"running","time":"2019-06-25T12:43:24Z"}
{"level":"debug","msg":"manager: updating step status","step.id":2,"step.name":"test_drone","step.status":"success","time":"2019-06-25T12:43:25Z"}
{"arch":"amd64","build":3,"error":null,"level":"info","machine":"465a8e2947d6","msg":"runner: execution complete","os":"linux","pipeline":"default","repo":"abc/hello","stage":1,"stage-id":3,"time":"2019-06-25T12:43:25Z"}
{"level":"debug","msg":"manager: stage is complete. teardown","stage.id":3,"time":"2019-06-25T12:43:25Z"}
{"build.id":3,"build.number":3,"level":"debug","msg":"manager: build is finished, teardown","repo.id":1,"stage.id":3,"time":"2019-06-25T12:43:25Z"}
{"arch":"amd64","level":"debug","machine":"465a8e2947d6","msg":"runner: polling queue","os":"linux","time":"2019-06-25T12:43:25Z"}
{"arch":"amd64","kernel":"","level":"debug","msg":"manager: request queue item","os":"linux","time":"2019-06-25T12:43:25Z","variant":""}
{"arch":"amd64","level":"debug","machine":"465a8e2947d6","msg":"runner: done listening for cancel signals","os":"linux","time":"2019-06-25T12:43:25Z"}

Use drone v1.2.1 complete test log:

Summary
[root@swarm-master gitdrone]# docker run \
>   --volume=/var/run/docker.sock:/var/run/docker.sock \
>   --volume=/var/lib/drone:/data \
>   --env=DRONE_GITEA_SERVER=http://192.168.5.20:10080 \
>   --env=DRONE_GIT_ALWAYS_AUTH=false \
>   --env=DRONE_RUNNER_CAPACITY=2 \
>   --env=DRONE_SERVER_HOST=192.168.5.20:8000 \
>   --env=DRONE_SERVER_PROTO=http \
>   --env=DRONE_TLS_AUTOCERT=false \
>   --env=DRONE_LOGS_TRACE=true \
>   --publish=8000:80 \
>   --restart=always \
>   --detach=true \
>   --name=drone \
>   drone/drone:1.2.1
47d6885bce9647b711fcd33c200e7a9e85702d32a933b6b02dfeca46bdf94511
[root@swarm-master gitdrone]# docker logs -f drone
license: ""
authn:
  endpoint: ""
  token: ""
  skipverify: false
agent:
  enabled: false
cron:
  disabled: false
  interval: 30m0s
cloning:
  alwaysauth: false
  username: ""
  password: ""
  image: ""
  pull: IfNotExists
database:
  driver: sqlite3
  datasource: /data/database.sqlite
  secret: ""
datadog:
  enabled: true
  endpoint: https://stats.drone.ci/api/v1/series
  token: ""
docker:
  config: ""
http:
  allowedhosts: []
  hostsproxyheaders: []
  sslredirect: false
  ssltemporaryredirect: false
  sslhost: ""
  sslproxyheaders: {}
  stsseconds: 0
  stsincludesubdomains: false
  stspreload: false
  forcestsheader: false
  browserxssfilter: true
  framedeny: true
  contenttypenosniff: false
  contentsecuritypolicy: ""
  referrerpolicy: ""
jsonnet:
  enabled: false
logging:
  debug: false
  trace: true
  color: false
  pretty: false
  text: false
prometheus:
  enableanonymousaccess: false
proxy:
  addr: http://192.168.5.20:8000
  host: 192.168.5.20:8000
  proto: http
registration:
  closed: false
registries:
  endpoint: ""
  password: ""
  skipverify: false
repository:
  filter: []
runner:
  local: false
  image: drone/controller:1.0.0
  platform: linux/amd64
  os: linux
  arch: amd64
  kernel: ""
  variant: ""
  machine: 47d6885bce96
  capacity: 2
  labels: {}
  volumes: []
  networks: []
  devices: []
  privileged: []
  environ: {}
  limits:
    memswaplimit: 0
    memlimit: 0
    shmsize: 0
    cpuquota: 0
    cpushares: 0
    cpuset: ""
nomad:
  enabled: false
  datacenters:
  - dc1
  namespace: ""
  region: ""
  prefix: drone-job-
  image: ""
  imagepull: false
  memory: 1024
  cpu: 500
kube:
  enabled: false
  namespace: ""
  path: ""
  url: ""
  ttl: 300
  serviceaccountname: ""
  pullpolicy: Always
  image: ""
rpc:
  server: ""
  secret: ""
  debug: false
  host: 192.168.5.20:8000
  proto: http
s3:
  bucket: ""
  prefix: ""
  endpoint: ""
  pathstyle: false
secrets:
  endpoint: ""
  password: ""
  skipverify: false
server:
  addr: http://192.168.5.20:8000
  host: 192.168.5.20:8000
  port: :80
  proto: http
  acme: false
  cert: ""
  key: ""
session:
  timeout: 720h0m0s
  secret: fYkQNXM6F85MvyeV2xSGyVkHKSk2yFoA
  secure: false
  mappingfile: ""
status:
  disabled: false
  name: ""
users:
  create:
    username: ""
    machine: false
    admin: false
    token: ""
  filter: []
  minage: 0s
webhook:
  endpoint: []
  secret: ""
  skipverify: false
yaml:
  endpoint: ""
  secret: ""
  skipverify: false
bitbucket:
  clientid: ""
  clientsecret: ""
  skipverify: false
  debug: false
gitea:
  server: http://192.168.5.20:10080
  clientid: ""
  clientsecret: ""
  skipverify: false
  scope:
  - repo
  - repo:status
  - user:email
  - read:org
  debug: false
github:
  server: https://github.com
  apiserver: https://api.github.com
  clientid: ""
  clientsecret: ""
  skipverify: false
  scope:
  - repo
  - repo:status
  - user:email
  - read:org
  ratelimit: 0
  debug: false
gitlab:
  server: https://gitlab.com
  clientid: ""
  clientsecret: ""
  skipverify: false
  debug: false
gogs:
  server: ""
  skipverify: false
  debug: false
stash:
  server: ""
  consumerkey: ""
  consumersecret: ""
  privatekey: ""
  skipverify: false
  debug: false

{"level":"info","msg":"main: internal scheduler enabled","time":"2019-06-25T13:01:29Z"}
{"build.limit":0,"expires":"0001-01-01T00:00:00Z","kind":"trial","level":"debug","msg":"main: license loaded","repo.limit":0,"time":"2019-06-25T13:01:29Z","user.limit":0}
{"level":"info","msg":"main: starting the local build runner","threads":2,"time":"2019-06-25T13:01:29Z"}
{"arch":"amd64","level":"debug","machine":"47d6885bce96","msg":"runner: polling queue","os":"linux","time":"2019-06-25T13:01:29Z"}
{"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"linux","time":"2019-06-25T13:01:29Z","type":"docker","variant":""}
{"acme":false,"host":"192.168.5.20:8000","level":"info","msg":"starting the http server","port":":80","proto":"http","time":"2019-06-25T13:01:29Z","url":"http://192.168.5.20:8000"}
{"interval":"30m0s","level":"info","msg":"starting the cron scheduler","time":"2019-06-25T13:01:29Z"}
{"arch":"amd64","level":"debug","machine":"47d6885bce96","msg":"runner: polling queue","os":"linux","time":"2019-06-25T13:01:29Z"}
{"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"linux","time":"2019-06-25T13:01:29Z","type":"docker","variant":""}
{"fields.time":"2019-06-25T13:01:32Z","latency":63871,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59751","request":"/","request-id":"1N8fYcnGkPPrhhZwrZLjYiiCv7c","time":"2019-06-25T13:01:32Z"}
{"level":"debug","msg":"api: authentication required","request-id":"1N8fYZGymdhQwRYF4N4UeXp1UzW","time":"2019-06-25T13:01:32Z"}
{"level":"debug","msg":"api: guest access","request-id":"1N8fYZGymdhQwRYF4N4UeXp1UzW","time":"2019-06-25T13:01:32Z"}
{"fields.time":"2019-06-25T13:01:32Z","latency":162676,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59751","request":"/api/user","request-id":"1N8fYZGymdhQwRYF4N4UeXp1UzW","time":"2019-06-25T13:01:32Z"}
{"level":"debug","msg":"events: stream opened","request-id":"1N8fYYxIM1ZaHkFhJhpHH765HZK","time":"2019-06-25T13:01:32Z"}
{"fields.time":"2019-06-25T13:01:32Z","latency":17566,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59752","request":"/login","request-id":"1N8fYVcHjFwmhM2eaYXRp0iMxL4","time":"2019-06-25T13:01:32Z"}
{"fields.time":"2019-06-25T13:01:32Z","latency":32741,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59752","request":"/login/form","request-id":"1N8fYVowWHpos8tt91tGRQPlPTd","time":"2019-06-25T13:01:32Z"}
{"level":"debug","msg":"events: stream cancelled","request-id":"1N8fYYxIM1ZaHkFhJhpHH765HZK","time":"2019-06-25T13:01:32Z"}
{"level":"debug","msg":"events: stream closed","request-id":"1N8fYYxIM1ZaHkFhJhpHH765HZK","time":"2019-06-25T13:01:32Z"}
{"level":"debug","msg":"api: guest access","request-id":"1N8fYYxIM1ZaHkFhJhpHH765HZK","time":"2019-06-25T13:01:32Z"}
{"fields.time":"2019-06-25T13:01:32Z","latency":15203911,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59751","request":"/api/stream","request-id":"1N8fYYxIM1ZaHkFhJhpHH765HZK","time":"2019-06-25T13:01:32Z"}
{"level":"debug","msg":"api: authentication required","request-id":"1N8fYZbGzKvknRu3FtPffyZU6c3","time":"2019-06-25T13:01:32Z"}
{"level":"debug","msg":"api: guest access","request-id":"1N8fYZbGzKvknRu3FtPffyZU6c3","time":"2019-06-25T13:01:32Z"}
{"fields.time":"2019-06-25T13:01:32Z","latency":155918,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59752","request":"/api/user","request-id":"1N8fYZbGzKvknRu3FtPffyZU6c3","time":"2019-06-25T13:01:32Z"}
{"level":"debug","msg":"events: stream opened","request-id":"1N8fYc0Y05ofv0jKdyeHiCbjI5i","time":"2019-06-25T13:01:32Z"}


login

{"level":"debug","login":"abc","msg":"attempting authentication","time":"2019-06-25T13:01:51Z"}
{"level":"debug","login":"abc","msg":"successfully created user","time":"2019-06-25T13:01:51Z"}
{"level":"debug","login":"abc","msg":"authentication successful","time":"2019-06-25T13:01:51Z"}
{"fields.time":"2019-06-25T13:01:51Z","latency":83248142,"level":"debug","method":"POST","msg":"","remote":"192.168.5.125:59753","request":"/login","request-id":"1N8fawhJg1TAYyq101oeJC3Vm2n","time":"2019-06-25T13:01:51Z"}
{"level":"debug","login":"abc","msg":"begin synchronization","time":"2019-06-25T13:01:51Z"}
{"level":"debug","login":"abc","msg":"syncer: begin repository sync","time":"2019-06-25T13:01:51Z"}
{"fields.time":"2019-06-25T13:01:51Z","latency":229121,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59753","request":"/","request-id":"1N8fazPROJvcvFNoiT3m3eWMdf3","time":"2019-06-25T13:01:51Z"}
{"level":"debug","msg":"events: stream cancelled","request-id":"1N8fYc0Y05ofv0jKdyeHiCbjI5i","time":"2019-06-25T13:01:52Z"}
{"level":"debug","msg":"events: stream closed","request-id":"1N8fYc0Y05ofv0jKdyeHiCbjI5i","time":"2019-06-25T13:01:52Z"}
{"level":"debug","msg":"api: guest access","request-id":"1N8fYc0Y05ofv0jKdyeHiCbjI5i","time":"2019-06-25T13:01:52Z"}
{"fields.time":"2019-06-25T13:01:52Z","latency":19109118537,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59752","request":"/api/stream","request-id":"1N8fYc0Y05ofv0jKdyeHiCbjI5i","time":"2019-06-25T13:01:52Z"}
{"level":"debug","login":"abc","msg":"syncer: finished repository sync","time":"2019-06-25T13:01:52Z"}
{"level":"debug","login":"abc","msg":"synchronization success","time":"2019-06-25T13:01:52Z"}
{"fields.time":"2019-06-25T13:01:52Z","latency":331477,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59753","request":"/api/user","request-id":"1N8fb8cenqR2sGsjW2PLiWcOion","time":"2019-06-25T13:01:52Z"}
{"fields.time":"2019-06-25T13:01:52Z","latency":723089,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59753","request":"/api/user/repos?latest=true","request-id":"1N8fb1M5GfyueVMurnqQr2Ee3H9","time":"2019-06-25T13:01:52Z"}
{"fields.time":"2019-06-25T13:01:52Z","latency":1562565,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59753","request":"/api/user/builds/recent","request-id":"1N8fb5vVZR4WRapsl3Qpc1ObSkL","time":"2019-06-25T13:01:52Z"}
{"fields.time":"2019-06-25T13:01:52Z","latency":3051490,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59755","request":"/api/user/repos?latest=true","request-id":"1N8fb4bACLg0XluixVkictu6UKv","time":"2019-06-25T13:01:52Z"}
{"level":"debug","msg":"events: stream opened","request-id":"1N8fb6Lo5U4371M5Z6YyQWuWkBd","time":"2019-06-25T13:01:52Z","user.login":"abc"}


active

{"admin":false,"level":"debug","msg":"api: sync repository permissions","name":"hello","namespace":"abc","read":true,"request-id":"1N8fcL7vhoAeZ8JPl5Hx9mgxTox","time":"2019-06-25T13:02:02Z","user.login":"abc","write":false}
{"admin":false,"level":"debug","msg":"api: sync repository permissions","name":"hello","namespace":"abc","read":true,"request-id":"1N8fcI7xfOdOO0yR0SOoZfj9MXl","time":"2019-06-25T13:02:02Z","user.login":"abc","write":false}
{"admin":false,"level":"debug","msg":"api: sync repository permissions","name":"hello","namespace":"abc","read":true,"request-id":"1N8fcKsydmzBcf1qwUYAFDGe7UL","time":"2019-06-25T13:02:02Z","user.login":"abc","write":false}
{"admin":false,"level":"debug","msg":"api: repository permissions synchronized","name":"hello","namespace":"abc","read":true,"request-id":"1N8fcL7vhoAeZ8JPl5Hx9mgxTox","time":"2019-06-25T13:02:02Z","user.login":"abc","write":false}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8fcL7vhoAeZ8JPl5Hx9mgxTox","time":"2019-06-25T13:02:02Z","user.login":"abc","visibility":"public"}
{"fields.time":"2019-06-25T13:02:02Z","latency":26236985,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59753","request":"/api/repos/abc/hello","request-id":"1N8fcL7vhoAeZ8JPl5Hx9mgxTox","time":"2019-06-25T13:02:02Z"}
{"admin":false,"level":"debug","msg":"api: repository permissions synchronized","name":"hello","namespace":"abc","read":true,"request-id":"1N8fcKsydmzBcf1qwUYAFDGe7UL","time":"2019-06-25T13:02:02Z","user.login":"abc","write":false}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8fcKsydmzBcf1qwUYAFDGe7UL","time":"2019-06-25T13:02:02Z","user.login":"abc","visibility":"public"}
{"admin":true,"level":"debug","msg":"api: access granted","name":"hello","namespace":"abc","read":true,"request-id":"1N8fcKsydmzBcf1qwUYAFDGe7UL","time":"2019-06-25T13:02:02Z","user.login":"abc","visibility":"public","write":true}
{"fields.time":"2019-06-25T13:02:02Z","latency":27990412,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59756","request":"/api/repos/abc/hello/secrets","request-id":"1N8fcKsydmzBcf1qwUYAFDGe7UL","time":"2019-06-25T13:02:02Z"}
{"admin":false,"level":"debug","msg":"api: repository permissions synchronized","name":"hello","namespace":"abc","read":true,"request-id":"1N8fcI7xfOdOO0yR0SOoZfj9MXl","time":"2019-06-25T13:02:02Z","user.login":"abc","write":false}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8fcI7xfOdOO0yR0SOoZfj9MXl","time":"2019-06-25T13:02:02Z","user.login":"abc","visibility":"public"}
{"admin":true,"level":"debug","msg":"api: access granted","name":"hello","namespace":"abc","read":true,"request-id":"1N8fcI7xfOdOO0yR0SOoZfj9MXl","time":"2019-06-25T13:02:02Z","user.login":"abc","visibility":"public","write":true}
{"fields.time":"2019-06-25T13:02:02Z","latency":38226366,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59757","request":"/api/repos/abc/hello/cron","request-id":"1N8fcI7xfOdOO0yR0SOoZfj9MXl","time":"2019-06-25T13:02:02Z"}


settings active btn

{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8feBn6xLwWYR16gGYPims9i8j","time":"2019-06-25T13:02:17Z","user.login":"abc","visibility":"public"}
{"admin":true,"level":"debug","msg":"api: access granted","name":"hello","namespace":"abc","read":true,"request-id":"1N8feBn6xLwWYR16gGYPims9i8j","time":"2019-06-25T13:02:17Z","user.login":"abc","visibility":"public","write":true}
{"fields.time":"2019-06-25T13:02:17Z","latency":24274003,"level":"debug","method":"POST","msg":"","remote":"192.168.5.125:59757","request":"/api/repos/abc/hello","request-id":"1N8feBn6xLwWYR16gGYPims9i8j","time":"2019-06-25T13:02:17Z"}
{"fields.time":"2019-06-25T13:02:17Z","latency":411168,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59757","request":"/api/badges/abc/hello/status.svg","request-id":"1N8feDUccJrVd21TaWFt5Lcv2QK","time":"2019-06-25T13:02:17Z"}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8ff3HjHUI7LM0bOGC9uVwva3u","time":"2019-06-25T13:02:24Z","user.login":"abc","visibility":"public"}
{"admin":true,"level":"debug","msg":"api: access granted","name":"hello","namespace":"abc","read":true,"request-id":"1N8ff3HjHUI7LM0bOGC9uVwva3u","time":"2019-06-25T13:02:24Z","user.login":"abc","visibility":"public","write":true}
{"fields.time":"2019-06-25T13:02:24Z","latency":7793835,"level":"debug","method":"PATCH","msg":"","remote":"192.168.5.125:59757","request":"/api/repos/abc/hello","request-id":"1N8ff3HjHUI7LM0bOGC9uVwva3u","time":"2019-06-25T13:02:24Z"}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8ffNY5dyjHxrXrJE3173inTua","time":"2019-06-25T13:02:26Z","user.login":"abc","visibility":"public"}
{"fields.time":"2019-06-25T13:02:26Z","latency":702645,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59756","request":"/api/repos/abc/hello/builds?page=1","request-id":"1N8ffNY5dyjHxrXrJE3173inTua","time":"2019-06-25T13:02:26Z"}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8ffMXxZk12u8wpfciUZV7DNTi","time":"2019-06-25T13:02:26Z","user.login":"abc","visibility":"public"}
{"fields.time":"2019-06-25T13:02:26Z","latency":807652,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59757","request":"/api/repos/abc/hello","request-id":"1N8ffMXxZk12u8wpfciUZV7DNTi","time":"2019-06-25T13:02:26Z"}


git pushed

{"commit":"424f2cea5fe024f889995b069b6b4f26f40b122d","event":"push","level":"debug","msg":"webhook parsed","name":"hello","namespace":"abc","time":"2019-06-25T13:02:57Z"}
{"commit":"424f2cea5fe024f889995b069b6b4f26f40b122d","event":"push","level":"debug","msg":"trigger: received","ref":"refs/heads/master","repo":"abc/hello","time":"2019-06-25T13:02:57Z"}
{"fields.time":"2019-06-25T13:02:57Z","latency":54993693,"level":"debug","method":"POST","msg":"","remote":"172.17.0.1:44742","request":"/hook?secret=kJYnvEePFNcTckb8qJNS10QM2sKiUBl5","request-id":"1N8fjEAdBOZipF7rPqY6DuiEMql","time":"2019-06-25T13:02:57Z"}


drone page has no changes, so refresh

{"fields.time":"2019-06-25T13:04:26Z","latency":285730,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59757","request":"/abc/hello","request-id":"1N8fuNKF0UNQNQUfMzkUFEuVZiC","time":"2019-06-25T13:04:26Z"}
{"level":"debug","msg":"events: stream error","request-id":"1N8fb6Lo5U4371M5Z6YyQWuWkBd","time":"2019-06-25T13:04:26Z","user.login":"abc"}
{"level":"debug","msg":"events: stream closed","request-id":"1N8fb6Lo5U4371M5Z6YyQWuWkBd","time":"2019-06-25T13:04:26Z","user.login":"abc"}
{"fields.time":"2019-06-25T13:04:26Z","latency":154303768445,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59755","request":"/api/stream","request-id":"1N8fb6Lo5U4371M5Z6YyQWuWkBd","time":"2019-06-25T13:04:26Z"}
{"fields.time":"2019-06-25T13:04:26Z","latency":197451,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59757","request":"/api/user","request-id":"1N8fuSEJpV6LbLznQxX34TTEetR","time":"2019-06-25T13:04:26Z"}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8fuUo9xadEyB6YcFHhMOdFU7u","time":"2019-06-25T13:04:26Z","user.login":"abc","visibility":"public"}
{"fields.time":"2019-06-25T13:04:26Z","latency":675456,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59756","request":"/api/repos/abc/hello/builds?page=1","request-id":"1N8fuUo9xadEyB6YcFHhMOdFU7u","time":"2019-06-25T13:04:26Z"}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8fuTaXcT1w9WV15Ry3lXKw5ez","time":"2019-06-25T13:04:26Z","user.login":"abc","visibility":"public"}
{"fields.time":"2019-06-25T13:04:26Z","latency":319396,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59757","request":"/api/repos/abc/hello","request-id":"1N8fuTaXcT1w9WV15Ry3lXKw5ez","time":"2019-06-25T13:04:26Z"}
{"fields.time":"2019-06-25T13:04:26Z","latency":458038,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59756","request":"/api/user/repos?latest=true","request-id":"1N8fuPVmlpRHS7ZfC8ETPZ7zSvH","time":"2019-06-25T13:04:26Z"}
{"fields.time":"2019-06-25T13:04:26Z","latency":679262,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59757","request":"/api/user/builds/recent","request-id":"1N8fuSptFiK8zJCXuIXx6pe2MDD","time":"2019-06-25T13:04:26Z"}
{"level":"debug","msg":"events: stream opened","request-id":"1N8fuWgdzRzp9fH5lxrqLxlP4mN","time":"2019-06-25T13:04:27Z","user.login":"abc"}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8fv8eCDiPCuH1dGG0XIozTrFb","time":"2019-06-25T13:04:32Z","user.login":"abc","visibility":"public"}
{"fields.time":"2019-06-25T13:04:32Z","latency":926148,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59756","request":"/api/repos/abc/hello","request-id":"1N8fv8eCDiPCuH1dGG0XIozTrFb","time":"2019-06-25T13:04:32Z"}
{"level":"debug","msg":"api: read access granted","name":"hello","namespace":"abc","request-id":"1N8fvAzw9ft2lZK851rq3ZsjvDJ","time":"2019-06-25T13:04:32Z","user.login":"abc","visibility":"public"}
{"fields.time":"2019-06-25T13:04:32Z","latency":1121964,"level":"debug","method":"GET","msg":"","remote":"192.168.5.125:59753","request":"/api/repos/abc/hello/builds/1","request-id":"1N8fvAzw9ft2lZK851rq3ZsjvDJ","time":"2019-06-25T13:04:32Z"}

Drone page shows default:Pending

used .drone.yml is simple:

kind: pileline
name: default

clone:
  disable: true

steps:
- name: test_drone
  image: alpine:3.9
  commands:
  - echo "show hello world by drone"
  - echo $(pwd)

I have not found any obvious errors from the logs, I will check if there are any omissions. Thanks.

I am very sorry, it is my fault. I wrote pipeline in the .drone.yml file as pileline. I am too stupid.:joy:

Wow that was also my problem…
@bradrydzewski you should add this to your guide…
I wrote pipline instead of pipeline:man_facepalming:

Yes, drone 1.2.1 format check is stricter than 1.1.0.

Wow that was also my problem…
@bradrydzewski
Please help to figure the issue. Thanks

.drone.yml

kind: pipeline
name: default

clone:
disable: true

steps:

  • name: hello
    image: php:7
    commands: