{"action":"closed","issue":{"url":"https://api.github.com/repos/drone/drone/issues/1343","labels_url":"https://api.github.com/repos/drone/drone/issues/1343/labels{/name}","comments_url":"https://api.github.com/repos/drone/drone/issues/1343/comments","events_url":"https://api.github.com/repos/drone/drone/issues/1343/events","html_url":"https://github.com/drone/drone/issues/1343","id":118431528,"number":1343,"title":"GitLab 8.1.0 d8a9acd does not work with Drone 0.4 but works with Drone 0.3.0-alpha-20150808","user":{"login":"diyan","id":285644,"avatar_url":"https://avatars.githubusercontent.com/u/285644?v=3","gravatar_id":"","url":"https://api.github.com/users/diyan","html_url":"https://github.com/diyan","followers_url":"https://api.github.com/users/diyan/followers","following_url":"https://api.github.com/users/diyan/following{/other_user}","gists_url":"https://api.github.com/users/diyan/gists{/gist_id}","starred_url":"https://api.github.com/users/diyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diyan/subscriptions","organizations_url":"https://api.github.com/users/diyan/orgs","repos_url":"https://api.github.com/users/diyan/repos","events_url":"https://api.github.com/users/diyan/events{/privacy}","received_events_url":"https://api.github.com/users/diyan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T17:33:06Z","updated_at":"2015-11-23T19:01:05Z","closed_at":"2015-11-23T19:01:05Z","body":"Does anyone has configuration Drone 0.4 and GitLab 8.1 that works?\r\n\r\nIn any case I would happy to provide more details if needed.\r\n\r\nNOTE that drone.domain.com has self signed SSL cert.\r\n\r\n## Use case A. FAILED to work with GitLab 8.1.0 d8a9acd\r\n\r\nAt GitLab UI callback url is http://drone.domain.com:9001/authorize\r\n```\r\n/usr/bin/docker run --rm --name=xxx_drone \\\r\n    -v /var/run/docker.sock:/var/run/docker.sock \\\r\n    -v /opt/docker/volumes/xxx_drone:/var/lib/drone \\\r\n    -e SERVER_ADDR=:9001 \\\r\n    -e DATABASE_DRIVER=sqlite3 \\\r\n    -e DATABASE_CONFIG=/var/lib/drone/drone.sqlite \\\r\n    -e REMOTE_DRIVER=gitlab \\\r\n    -e REMOTE_CONFIG='https://git.domain.com?client_id=CLIENT_ID&client_secret=CLIENT_SECRET&skip_verify=false&clone_mode=oauth' \\\r\n    -p 0.0.0.0:9001:9001 \\\r\n    drone/drone:0.4\r\n```\r\n\r\n## Use-case B. WORKS with GitLab 8.1.0 d8a9acd\r\n\r\nAt GitLab UI callback url is http://drone.domain.com:9001/api/auth/gitlab.com\r\n```\r\n/usr/bin/docker run --name=xxx_drone \\\r\n    -v /var/run/docker.sock:/var/run/docker.sock \\\r\n    -v /opt/docker/volumes/xxx_drone:/var/lib/drone \\\r\n    -e DRONE_SERVER_PORT=:9001 \\\r\n    -e DRONE_DATABASE_DRIVER=sqlite3 \\\r\n    -e DRONE_DATABASE_DATASOURCE=/var/lib/drone/drone.sqlite \\\r\n    -e DRONE_GITLAB_URL=https://git.domain.com \\\r\n    -e DRONE_GITLAB_CLIENT=CLIENT_ID \\\r\n    -e DRONE_GITLAB_SECRET=CLIENT_SECRET \\\r\n    -e DRONE_GITLAB_SKIP_VERIFY=true \\\r\n    -e DRONE_WORKER_NODES=unix:///var/run/docker.sock \\\r\n    -p 0.0.0.0:9001:9001 \\\r\n    buddho/drone:0.3.0-alpha-20150808\r\n```\r\n\r\nDrone log output\r\n\r\n```\r\ntime=\"2015-11-23T16:26:39Z\" level=info msg=\"starting server :9001\" \r\n[GIN] 2015/11/23 - 16:26:48 | 303 |     247.901µs | 195.88.124.221:11655 |   GET     /\r\n[GIN] 2015/11/23 - 16:26:49 | 200 |     283.937µs | 195.88.124.221:11655 |   GET     /login\r\n[GIN] 2015/11/23 - 16:26:49 | 200 |  179.538294ms | 195.88.124.221:11655 |   GET     /static/styles_gen/style.css\r\n[GIN] 2015/11/23 - 16:26:49 | 200 |     198.204µs | 195.88.124.221:11655 |   GET     /static/images/logo_dark.svg\r\n[GIN] 2015/11/23 - 16:26:52 | 303 |     149.005µs | 195.88.124.221:11655 |   GET     /authorize\r\ntime=\"2015-11-23T16:28:12Z\" level=error msg=\"cannot authenticate user. Error exchanging token. Post https://git.domain.com/oauth/token: dial tcp: lookup git.domain.com: no such host\" \r\n```\r\n\r\n"}}