Hey All,
We are trialing Drone for our CI/CD platform ( have been using drone 0.8.7 without any issues so far),now we are looking at using drone for windows containers deployments. So, for POC, I have been trying to get 0.9.0-alpah.4. having some issues with getting repository loaded. I have given as much info as possible. Please let me know if you need any more.
Drone Version: 0.9.0-alpha.4
Running Environment:
SSL offloading is done at ELB in AWS and forwards traffic to Drone Server running in k8s
ELB listens on 443
Server listens on port 80
Environment Variable:
DRONE_LOGS_DEBUG: "true"
DRONE_DATABASE_DRIVER: "postgres"
DRONE_DATABASE_DATASOURCE: "xxxxx"
DRONE_BITBUCKET_CLIENT_ID: "XXXXX"
DRONE_BITBUCKET_CLIENT_SECRET: "YYYYY"
DRONE_RUNNER_CAPACITY: 2
DRONE_SERVER_PROTO: "https"
DRONE_SERVER_HOST: "drone.mycompany.com"
DRONE_RPC_SERVER: "https://drone.mycompany.com"
DRONE_USER_FILTER: "mycompany_org"
DRONE_REPOSITORY_FILTER: "mycompany_org"
#DRONE_TLS_AUTOCERT: true
DRONE_PROVIDER: "bitbucket"
DRONE_OPEN: "true"
DRONE_ORGS: "mycompany_org"
DRONE_ADMIN: "myname"
Bitbucket OAUTH redirect url: https://drone.mycompany.com/login
Server Logs:
{"level":"debug","ip":"x.x.x.x","path":"/login?state=6e661e92759805f5&code=Kn3T34SJTmJd6mPcjF","method":"GET","request_id":"bfh3daofl4vcj4d2ujrg","login":"my_user","time":"2018-11-07T00:49:47Z","message":"attempting authentication"}
{"level":"error","ip":"x.x.x.x","path":"/login?state=6e661e92759805f5&code=Kn3T34SJTmJd6mPcjF","method":"GET","request_id":"bfh3daofl4vcj4d2ujrg","login":"my_user","error":"pq: column \"user_machine\" does not exist","time":"2018-11-07T00:49:47Z","message":"cannot select user"}
{"level":"debug","ip":"x.x.x.x","path":"/api/user","method":"GET","request_id":"bfh3daofl4vcj4d2uju0","time":"2018-11-07T00:49:47Z","message":"authentication required"}
{"level":"debug","ip":"x.x.x.x","path":"/api/user","method":"GET","request_id":"bfh3daofl4vcj4d2uju0","time":"2018-11-07T00:49:47Z","message":"guest access"}
{"level":"debug","ip":"x.x.x.x","path":"/api/stream","method":"GET","request_id":"bfh3daofl4vcj4d2ujug","time":"2018-11-07T00:49:47Z","message":"event stream opened"}
{"level":"debug","ip":"x.x.x.x","path":"/api/repos/login/error/builds","method":"GET","request_id":"bfh3daofl4vcj4d2ujv0","error":"pq: column \"repo_uid\" does not exist","repository":"login/error","time":"2018-11-07T00:49:47Z","message":"repository not found"}
{"level":"debug","ip":"x.x.x.x","path":"/api/repos/login/error/builds","method":"GET","request_id":"bfh3daofl4vcj4d2ujv0","time":"2018-11-07T00:49:47Z","message":"guest access"}
{"level":"debug","ip":"x.x.x.x","path":"/api/repos/login/error","method":"GET","request_id":"bfh3daofl4vcj4d2ujvg","error":"pq: column \"repo_uid\" does not exist","repository":"login/error","time":"2018-11-07T00:49:47Z","message":"repository not found"}
{"level":"debug","ip":"x.x.x.x","path":"/api/repos/login/error","method":"GET","request_id":"bfh3daofl4vcj4d2ujvg","time":"2018-11-07T00:49:47Z","message":"guest access"}
{"level":"debug","ip":"x.x.x.x","path":"/api/user","method":"GET","request_id":"bfh3de8fl4vcj4d2uk20","time":"2018-11-07T00:50:01Z","message":"authentication required"}
{"level":"debug","ip":"x.x.x.x","path":"/api/user","method":"GET","request_id":"bfh3de8fl4vcj4d2uk20","time":"2018-11-07T00:50:01Z","message":"guest access"}
{"level":"debug","ip":"x.x.x.x","path":"/api/stream","method":"GET","request_id":"bfh3de8fl4vcj4d2uk2g","time":"2018-11-07T00:50:01Z","message":"event stream opened"}
{"level":"debug","ip":"x.x.x.x","path":"/api/repos/login/error","method":"GET","request_id":"bfh3de8fl4vcj4d2uk30","error":"pq: column \"repo_uid\" does not exist","repository":"login/error","time":"2018-11-07T00:50:01Z","message":"repository not found"}
{"level":"debug","ip":"x.x.x.x","path":"/api/repos/login/error","method":"GET","request_id":"bfh3de8fl4vcj4d2uk30","time":"2018-11-07T00:50:01Z","message":"guest access"}
{"level":"debug","ip":"x.x.x.x","path":"/api/repos/login/error/builds","method":"GET","request_id":"bfh3de8fl4vcj4d2uk3g","error":"pq: column \"repo_uid\" does not exist","repository":"login/error","time":"2018-11-07T00:50:01Z","message":"repository not found"}
Bitbucket client id and secrets works on drone version 0.8.7 and deployments are going through
Thanks in Advance