Hello,
I’m having trouble with single-machine drone setup. After I set up everything, I go to ‘http://<my_drone_address>’, get redirected to Github, where I authorize drone application and then I end up in ‘http://<my_drone_address>/login/error?message=’ URL, with “Login Failed.” on the screen.
My configuration:
docker-compose.yml
version: '2'
services:
drone:
image: drone/drone:1.0.0-rc.5
ports:
- "8881:80"
networks:
- drone
volumes:
- ./drone-data:/var/lib/drone/
- /var/run/docker.sock:/var/run/docker.sock
environment:
DRONE_GITHUB_SERVER: https://github.com/
DRONE_GITHUB_CLIENT_ID: <github_app_client_id>
DRONE_GITHUB_CLIENT_SECRET: <github_app_client_secret>
DRONE_RUNNER_CAPACITY: 2
DRONE_SERVER_HOST: <my_drone_address>
DRONE_SERVER_PROTO: http
DRONE_LOGS_DEBUG: "true"
DRONE_GIT_ALWAYS_AUTH: "false"
networks:
drone:
driver: bridge
Drone OAUTH2 Github application points to http://<my_drone_address> and http://<my_drone_address>/login. I have also tried to delete and create application again.
Docker-compose logs (there is no valuable information, except maybe "cannot find remote user: ", which I have no idea what is it, since I cannot find that message in repository):
Creating network "drone_drone" with driver "bridge"
Creating drone_drone_1 ... done
Attaching to drone_drone_1
drone_1 | {"kind":"trial","level":"debug","msg":"main: license loaded","time":"2019-02-14T22:18:13Z"}
drone_1 | {"level":"info","msg":"main: starting the local build runner","threads":2,"time":"2019-02-14T22:18:13Z"}
drone_1 | {"interval":1800000000000,"level":"info","msg":"main: cron schedule enabled","time":"2019-02-14T22:18:13Z"}
drone_1 | {"acme":false,"host":"178.43.102.36","level":"info","msg":"main: starting the http server","port":":80","proto":"http","time":"2019-02-14T22:18:13Z","url":"http://178.43.102.36"}
drone_1 | {"arch":"amd64","level":"debug","machine":"2eb833d3ae78","msg":"runner: polling queue","os":"linux","time":"2019-02-14T22:18:13Z"}
drone_1 | {"arch":"amd64","kernel":"","level":"debug","msg":"manager: request queue item","os":"linux","time":"2019-02-14T22:18:13Z","variant":""}
drone_1 | {"arch":"amd64","level":"debug","machine":"2eb833d3ae78","msg":"runner: polling queue","os":"linux","time":"2019-02-14T22:18:13Z"}
drone_1 | {"arch":"amd64","kernel":"","level":"debug","msg":"manager: request queue item","os":"linux","time":"2019-02-14T22:18:13Z","variant":""}
drone_1 | {"fields.time":"2019-02-14T22:18:23Z","latency":12190,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46610","request":"/","request-id":"1HBk6Sq7Tq8XclrJRSgkKEz32lW","time":"2019-02-14T22:18:23Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:23Z","latency":257681,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46610","request":"/css/app.39ba2f4d.css","request-id":"1HBk6VomSbJ9DMBQrLd1U1OJqJ8","time":"2019-02-14T22:18:23Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:23Z","latency":1021432,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46612","request":"/js/app.48b68369.js","request-id":"1HBk6UGSl3VjzWfMxMgWY4EGu1A","time":"2019-02-14T22:18:23Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:23Z","latency":2644980,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46614","request":"/js/chunk-vendors.acff1940.js","request-id":"1HBk6XTxAUJZgW1JH5gpI1jOdGV","time":"2019-02-14T22:18:23Z"}
drone_1 | {"level":"debug","msg":"api: authentication required","request-id":"1HBk6Tlh4dR74MWh9tiUaJd2jDj","time":"2019-02-14T22:18:23Z"}
drone_1 | {"level":"debug","msg":"api: guest access","request-id":"1HBk6Tlh4dR74MWh9tiUaJd2jDj","time":"2019-02-14T22:18:23Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:23Z","latency":132086,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46614","request":"/api/user","request-id":"1HBk6Tlh4dR74MWh9tiUaJd2jDj","time":"2019-02-14T22:18:23Z"}
drone_1 | {"level":"debug","msg":"events: stream opened","request-id":"1HBk6Z0gFbT06F2uxrZP5lHW0zZ","time":"2019-02-14T22:18:24Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:24Z","latency":64343,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46612","request":"/favicon.png","request-id":"1HBk6bryukex3U3l2MEhnlCDZag","time":"2019-02-14T22:18:24Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:24Z","latency":66783,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46612","request":"/login","request-id":"1HBk6g0Tg5xdUAwz9ZOp6BCB3oz","time":"2019-02-14T22:18:24Z"}
drone_1 | {"level":"debug","msg":"events: stream cancelled","request-id":"1HBk6Z0gFbT06F2uxrZP5lHW0zZ","time":"2019-02-14T22:18:24Z"}
drone_1 | {"level":"debug","msg":"events: stream closed","request-id":"1HBk6Z0gFbT06F2uxrZP5lHW0zZ","time":"2019-02-14T22:18:24Z"}
drone_1 | {"level":"debug","msg":"api: guest access","request-id":"1HBk6Z0gFbT06F2uxrZP5lHW0zZ","time":"2019-02-14T22:18:24Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:24Z","latency":497173822,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46614","request":"/api/stream","request-id":"1HBk6Z0gFbT06F2uxrZP5lHW0zZ","time":"2019-02-14T22:18:24Z"}
drone_1 | {"level":"debug","msg":"cannot find remote user: ","time":"2019-02-14T22:18:32Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:32Z","latency":5607075366,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46612","request":"/login?code=5154c649ddc19a1f64ff\u0026state=4d65822107fcfd52","request-id":"1HBk6y23t3iXA3Q0sRTt9zZxhps","time":"2019-02-14T22:18:32Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:32Z","latency":16551,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46612","request":"/login/error?message=","request-id":"1HBk7fV4wQxQLf4ifmNqYvz0r6K","time":"2019-02-14T22:18:32Z"}
drone_1 | {"level":"debug","msg":"api: authentication required","request-id":"1HBk7ZpSfXKxexF7xKP4swFoo29","time":"2019-02-14T22:18:32Z"}
drone_1 | {"level":"debug","msg":"api: guest access","request-id":"1HBk7ZpSfXKxexF7xKP4swFoo29","time":"2019-02-14T22:18:32Z"}
drone_1 | {"fields.time":"2019-02-14T22:18:32Z","latency":73903,"level":"debug","method":"GET","msg":"","remote":"178.43.102.36:46612","request":"/api/user","request-id":"1HBk7ZpSfXKxexF7xKP4swFoo29","time":"2019-02-14T22:18:32Z"}
drone_1 | {"level":"debug","msg":"events: stream opened","request-id":"1HBk7nAhUTDazsSNWcyzcwYhUFO","time":"2019-02-14T22:18:33Z"}
I’ve spent 2 days on this issue, tried different configuration but still no luck. Any help will be appreciated. Thanks.