Unable to redirect to Drone UI after Bitbucket Authentication

Hi Team,

I have configured Drone in Local VM and created OAuth in bitbucket server and integrated with that and current version of Bitbucket is Atlassian Bitbucket v4.3.2. Both containers are up and running fine. While trying to access Drone from browser, it is authenticating with bitbuket. Once it is done it is unable to redirecting to Drone UI. Please find the below snippet for further reference.

please help in this issue.

What’s your current configuration? remember you should be using http://docs.drone.io/install-for-bitbucket-server/

instead of bitbucket cloud? also how did you configured the OAuth callback?

1 Like

Thanks for your quick response. Please find the below docker-compose file which i used to configure drone

version: ‘2’

services:
drone-server:
image: drone/drone:0.8

ports:
  - 80:8000
  - 9000
volumes:
  - /var/lib/drone:/var/lib/drone/
  - /etc/bitbucket/key.pem:/etc/bitbucket/key.pem
restart: always
environment:
  - DRONE_OPEN=true
  - DRONE_ADMIN=xxx,xxx,xxx
  - DRONE_HOST=http://drone.video.com
  - DRONE_STASH=true
  - DRONE_STASH_GIT_USERNAME=xxxxx
  - DRONE_STASH_GIT_PASSWORD=xxxx
  - DRONE_STASH_CONSUMER_KEY=xxxxx
  - DRONE_STASH_CONSUMER_RSA=/etc/bitbucket/key.pem
  - DRONE_STASH_URL=http://bcccc/cccc/ccc
  - DRONE_SECRET=FkvtMPK0FHADxxxxxxxxxxxxxxxmWmSL5AD2JFkJEffgMjak6uQqJxKmv3HGD99L5xaz

drone-agent:
image: drone/agent

command: agent
restart: always
depends_on:
  - drone-server
volumes:
  - /var/run/docker.sock:/var/run/docker.sock
environment:
  - DRONE_SERVER=drone-server:9000
  - DRONE_SECRET=FkvtMPK0FHADOIsPaxxxxxxxxxxxxxxxxxxxxxxxJFkJEffgMjak6uQqJxKmv3HGD99L5xaz

Please let me know if any details are required

We are using Web Post Hooks Plugin in Bitbucket to Interacting with Drone

Please help me in this issue.

I would expect Bitbucket to redirect to Drone (that is how oauth is supposed to work). I recommend contacting Bitbucket / Atlassian support to understand why the redirect is not taking place. Their support team should be able to advise further.

Hi Brad,

Thanks for your quick response. I will check with Bitbucket / Atlassian support.

Thanks
Sravan