Good evening,
I’ve configured drone to work on our test kubernetes cluster using our bitbucket cloud account, I’ve followed the guideline on how to install drone and its runner following this documentationhttps://github.com/drone/charts/blob/master/charts/drone/docs/install.md
Everything seems working as expected, I’m able to login using the bitbucket account and manage the private repositories. But for an unknown reason to me, it is not creating any build.
From the log I’m not able to see if there is an error:
{“level”:“info”,“msg”:“main: internal scheduler enabled”,“time”:“2020-06-15T21:48:22Z”}
{"build.limit":5000,"expires":"0001-01-01T00:00:00Z","kind":"trial","level":"debug","msg":"main: license loaded","repo.limit":0,"time":"2020-06-15T21:48:22Z","user.limit":0}
{"interval":"30m0s","level":"info","msg":"starting the cron scheduler","time":"2020-06-15T21:48:22Z"}
{"acme":false,"host":"drone.domain.io","level":"info","msg":"starting the http server","port":":80","proto":"http","time":"2020-06-15T21:48:22Z","url":"http://drone.domain.io"}
{"fields.time":"2020-06-15T21:48:25Z","latency":101428,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:11970","request":"/","request-id":"1dNFaJEz3FpmNc4yILGGXwW66zC","time":"2020-06-15T21:48:25Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"","time":"2020-06-15T21:48:26Z","type":"kubernetes","variant":""}
{"level":"debug","msg":"events: stream opened","request-id":"577cdb487b685d18cad3a9a073ef7450","time":"2020-06-15T21:48:26Z"}
{"fields.time":"2020-06-15T21:48:35Z","latency":101233,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12026","request":"/","request-id":"1dNFbb7yi6vHh40M5duIepQJa0L","time":"2020-06-15T21:48:35Z"}
{"fields.time":"2020-06-15T21:48:38Z","latency":121802,"level":"debug","method":"GET","msg":"","remote":"100.96.164.136:46034","request":"/","request-id":"5210a7f9f8cca2aea921e3b45c1847f8","time":"2020-06-15T21:48:38Z"}
{"level":"debug","msg":"api: authentication required","request-id":"ad270cab4702aeb455e7dedb31ba98ed","time":"2020-06-15T21:48:39Z"}
{"level":"debug","msg":"api: guest access","request-id":"ad270cab4702aeb455e7dedb31ba98ed","time":"2020-06-15T21:48:39Z"}
{"fields.time":"2020-06-15T21:48:39Z","latency":134543,"level":"debug","method":"GET","msg":"","remote":"100.96.164.136:46034","request":"/api/user","request-id":"ad270cab4702aeb455e7dedb31ba98ed","time":"2020-06-15T21:48:39Z"}
{"fields.time":"2020-06-15T21:48:39Z","latency":67374,"level":"debug","method":"GET","msg":"","remote":"100.96.164.136:46034","request":"/login","request-id":"a1576b27b9dcd5ae80332b31c4333449","time":"2020-06-15T21:48:39Z"}
{"level":"debug","msg":"events: stream opened","request-id":"1d16aaf6a3c77eeec7440f1a1b36acad","time":"2020-06-15T21:48:39Z"}
{"level":"debug","login":"user","msg":"attempting authentication","time":"2020-06-15T21:48:40Z"}
{"level":"debug","login":"user","msg":"authentication successful","time":"2020-06-15T21:48:40Z"}
{"fields.time":"2020-06-15T21:48:40Z","latency":778593935,"level":"debug","method":"GET","msg":"","remote":"100.96.164.136:46040","request":"/login?state=4d65822107fcfd52\u0026code=ZjyUzjyrAWVvYsxquV","request-id":"0fb8c49e921860ed7ae9b11f4b17851c","time":"2020-06-15T21:48:40Z"}
{"fields.time":"2020-06-15T21:48:40Z","latency":177577,"level":"debug","method":"GET","msg":"","remote":"100.96.164.136:46040","request":"/","request-id":"e6edaecfe10d8368981ddfc76c02f057","time":"2020-06-15T21:48:40Z"}
{"fields.time":"2020-06-15T21:48:40Z","latency":203532,"level":"debug","method":"GET","msg":"","remote":"100.96.164.136:46040","request":"/api/user","request-id":"57e87dd2e65dd57e15bd73816304a597","time":"2020-06-15T21:48:40Z"}
{"fields.time":"2020-06-15T21:48:40Z","latency":1912711,"level":"debug","method":"GET","msg":"","remote":"100.96.164.136:46040","request":"/api/user/repos?latest=true","request-id":"b475d729230fe34774e0737a26b1f9fa","time":"2020-06-15T21:48:40Z"}
{"fields.time":"2020-06-15T21:48:40Z","latency":363166,"level":"debug","method":"GET","msg":"","remote":"100.96.164.136:46040","request":"/api/user/builds/recent","request-id":"0d60fc7c2c2b7dad2bbfb55be9189337","time":"2020-06-15T21:48:40Z"}
{"fields.time":"2020-06-15T21:48:41Z","latency":1529958,"level":"debug","method":"GET","msg":"","remote":"100.96.164.136:46040","request":"/api/user/repos?latest=true","request-id":"5af1b3783cf917e993d271433d2c145d","time":"2020-06-15T21:48:41Z"}
{"level":"debug","msg":"events: stream opened","request-id":"74e6295ea24bc289ccdc6dbd349d8805","time":"2020-06-15T21:48:41Z","user.login":"user"}
{"fields.time":"2020-06-15T21:48:45Z","latency":94417,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12078","request":"/","request-id":"1dNFcm7g15mL6GphZY23zahc4sG","time":"2020-06-15T21:48:45Z"}
{"fields.time":"2020-06-15T21:48:55Z","latency":115240,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12124","request":"/","request-id":"1dNFe4P1dMwkvtVCQl49VK7J2Zd","time":"2020-06-15T21:48:55Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"","time":"2020-06-15T21:48:56Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:49:05Z","latency":100265,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12162","request":"/","request-id":"1dNFfNQEySJCfwdIdEebl9RigHX","time":"2020-06-15T21:49:05Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"","time":"2020-06-15T21:49:06Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:49:15Z","latency":110223,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12210","request":"/","request-id":"1dNFgYe132YE8M99ElmZBPliGp9","time":"2020-06-15T21:49:15Z"}
{"fields.time":"2020-06-15T21:49:25Z","latency":96719,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12308","request":"/","request-id":"1dNFhqmW326ASpEzgNNACXvflfy","time":"2020-06-15T21:49:25Z"}
{"fields.time":"2020-06-15T21:49:35Z","latency":91922,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12346","request":"/","request-id":"1dNFj4Zjb1TPtjBp0NE1wmCnsoM","time":"2020-06-15T21:49:35Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"","time":"2020-06-15T21:49:36Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:49:45Z","latency":96988,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12384","request":"/","request-id":"1dNFkLZD75l6kECatsEY6D5oNzq","time":"2020-06-15T21:49:45Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"","time":"2020-06-15T21:49:46Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:49:55Z","latency":107014,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12422","request":"/","request-id":"1dNFleOOFqBhp6k1aaNvDBs9hUO","time":"2020-06-15T21:49:55Z"}
{"fields.time":"2020-06-15T21:50:05Z","latency":103105,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12460","request":"/","request-id":"1dNFmsS2RvclrejEwfMibSH2TrH","time":"2020-06-15T21:50:05Z"}
{"fields.time":"2020-06-15T21:50:15Z","latency":98699,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12510","request":"/","request-id":"1dNFo9gnBh1C33sm5vJ7bkBUFiO","time":"2020-06-15T21:50:15Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"","time":"2020-06-15T21:50:16Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:50:25Z","latency":101311,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12602","request":"/","request-id":"1dNFpLi08BFi04KWm8x3yhbFPV8","time":"2020-06-15T21:50:25Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"","time":"2020-06-15T21:50:26Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:50:35Z","latency":93480,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12640","request":"/","request-id":"1dNFqZyb3EyndCNGJ0ZE6W4SH1P","time":"2020-06-15T21:50:35Z"}
{"fields.time":"2020-06-15T21:50:45Z","latency":98783,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12678","request":"/","request-id":"1dNFrrnckSjQBhnIjHCJ9JsMOgl","time":"2020-06-15T21:50:45Z"}
{"fields.time":"2020-06-15T21:50:55Z","latency":116429,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12716","request":"/","request-id":"1dNFtBq8hB8C5KbYr83rZ4cs7dv","time":"2020-06-15T21:50:55Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"","time":"2020-06-15T21:50:56Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:51:05Z","latency":106000,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12754","request":"/","request-id":"1dNFuR8bteNsFnEudiNhOZCQrfU","time":"2020-06-15T21:51:05Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"","time":"2020-06-15T21:51:06Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:51:15Z","latency":97036,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12800","request":"/","request-id":"1dNFvcQJT6NXxanrVZSuX9lWAv0","time":"2020-06-15T21:51:15Z"}
{"fields.time":"2020-06-15T21:51:25Z","latency":99878,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12896","request":"/","request-id":"1dNFwvoQK6guOg8rSiVxprAaTiz","time":"2020-06-15T21:51:25Z"}
{"fields.time":"2020-06-15T21:51:35Z","latency":100604,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12934","request":"/","request-id":"1dNFyCx9rFqiZmWv0WZ5owloqLT","time":"2020-06-15T21:51:35Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"","time":"2020-06-15T21:51:36Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:51:45Z","latency":99880,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:12972","request":"/","request-id":"1dNFzO4RkgoKhdeNilNCp7zPExU","time":"2020-06-15T21:51:45Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"","time":"2020-06-15T21:51:46Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:51:55Z","latency":99993,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:13010","request":"/","request-id":"1dNG0i6ZNQS7PoDSaYdDhpCH3Ox","time":"2020-06-15T21:51:55Z"}
{"fields.time":"2020-06-15T21:52:05Z","latency":96990,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:13048","request":"/","request-id":"1dNG1vi4sE06QEuS6H5aJoaiVQO","time":"2020-06-15T21:52:05Z"}
{"fields.time":"2020-06-15T21:52:15Z","latency":97289,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:13118","request":"/","request-id":"1dNG3BUS26X7DHGx1bd6buWWHVt","time":"2020-06-15T21:52:15Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"","time":"2020-06-15T21:52:16Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:52:25Z","latency":94419,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:13192","request":"/","request-id":"1dNG4SxKirBMkyFAQ5fBIdt8vrm","time":"2020-06-15T21:52:25Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"","time":"2020-06-15T21:52:26Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:52:35Z","latency":103584,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:13230","request":"/","request-id":"1dNG5ij6rBhDtyc8IvoTaKJTnuI","time":"2020-06-15T21:52:35Z"}
{"fields.time":"2020-06-15T21:52:45Z","latency":97047,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:13268","request":"/","request-id":"1dNG70eZf7WpGO70ChqflLhtqzt","time":"2020-06-15T21:52:45Z"}
{"fields.time":"2020-06-15T21:52:55Z","latency":112409,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:13306","request":"/","request-id":"1dNG8CMgkIxIYDJvF058sGXr2ox","time":"2020-06-15T21:52:55Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"","time":"2020-06-15T21:52:56Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:53:05Z","latency":104115,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:13344","request":"/","request-id":"1dNG9QlXA3eCJmbN91kEHU30gUM","time":"2020-06-15T21:53:05Z"}
{"arch":"","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"","time":"2020-06-15T21:53:06Z","type":"kubernetes","variant":""}
{"fields.time":"2020-06-15T21:53:15Z","latency":117282,"level":"debug","method":"GET","msg":"","remote":"10.20.50.12:13394","request":"/","request-id":"1dNGAgu2GlgMXHOJWUjVitizlna","time":"2020-06-15T21:53:15Z"}
And this is the drone-values file
> ingress:
enabled: true annotations: kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" hosts: - host: drone.domain.io paths: - "/" # - secretName: chart-example-tls # hosts: # - chart-example.local env: DRONE_BITBUCKET_CLIENT_ID: xxxxx DRONE_BITBUCKET_CLIENT_SECRET: xxxxx DRONE_RPC_SECRET: xxxxx DRONE_SERVER_HOST: drone.domain.io DRONE_SERVER_PROTO: http DRONE_LOGS_DEBUG: true
What I’m doing wrong?
1
I enabled the webhook history and I saw that I’m getting a 308 http-code, permanent redirect.