# \[solved\] Attempt to enable repo on older Bitbucket servers fails

**URL:** <https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120>\
**Category:** Drone Bugs\
**Created:** [December 11, 2020, 9:05am UTC](https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120 "2020-12-11T09:05:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![markocelan](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/markocelan/32/3069_2.png) [@markocelan](https://drone.discourse.group/u/markocelan)\
**Post date:** [December 11, 2020, 9:05am UTC](https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120/1 "2020-12-11T09:05:33Z")

</div>

When trying to enable new repo for old Bitbucket server(v6.10) Drone fails with following error:

> There was a problem enabling your repository.  
> the event pr:from\_ref\_updated is unknown.

Current workaround is:

1. downgrade to Drone version 1.8
2. enable the repo
3. upgrade back to recent version

I think it would be better that instead of an error, you get a warning that you might have limited capabilities due to unsupported feature in your VCS.

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [December 11, 2020, 9:11pm UTC](https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120/2 "2020-12-11T21:11:00Z")

</div>

> [@Kubernetes Pod Container Names](https://drone.discourse.group/t/kubernetes-pod-container-names/8486/1):
>
> I think it would be better that instead of an error, you get a warning that you might have limited capabilities due to unsupported feature in your VCS.

The error comes from bitbucket server which means we cannot issue a warning. Instead we would have to enhance Drone with the following:

1. Drone would need to allow you to configure the version of Bitbucket server when you setup your Drone server (e.g. DRONE\_STASH\_VERSION=5.x.x) and;
2. Drone would need to gracefully downgrade API requests to work with older versions of Bitbucket server. Specifically, if you are using Bitbucket Server 6.x or below, Drone would omit pr:from\_ref\_updated when creating webhooks.

For now, your best option is to run Drone version 1.8 in production, since this change will take some time to design and implement. We will add this to our roadmap and update this thread once we have progress to share.

---

<div class="post-metadata">

**Author:** ![markocelan](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/markocelan/32/3069_2.png) [@markocelan](https://drone.discourse.group/u/markocelan)\
**Post date:** [December 29, 2020, 12:56pm UTC](https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120/3 "2020-12-29T12:56:12Z")

</div>

Thank you for looking into it. I guess I’m stuck with an old version…

---

<div class="post-metadata">

**Author:** ![bakito](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bakito/32/2483_2.png) [@bakito](https://drone.discourse.group/u/bakito)\
**Post date:** [December 30, 2020, 4:44pm UTC](https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120/4 "2020-12-30T16:44:52Z")

</div>

I’ve currently started on implementing a solution for the versioning.

> <https://github.com/drone/go-scm/pull/90>

---

<div class="post-metadata">

**Author:** ![geopossachs](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/geopossachs/32/6114_2.png) [@geopossachs](https://drone.discourse.group/u/geopossachs)\
**Post date:** [April 1, 2021, 1:00pm UTC](https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120/5 "2021-04-01T13:00:45Z")

</div>

Hallo @bakito , is your implentation now part of the current pre-release version of drone 2.0? i made a test with a bitbucket 5 today, but i stll got the error

---

<div class="post-metadata">

**Author:** ![bakito](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bakito/32/2483_2.png) [@bakito](https://drone.discourse.group/u/bakito)\
**Post date:** [April 2, 2021, 7:53am UTC](https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120/6 "2021-04-02T07:53:19Z")

</div>

Hi @geopossachs  
Unfortunately not. Drone still uses drone-scm v1.8 which is a cersion before the merged PR.  
I’m still waiting for 2 other PR’s to be merged, which I’d need for bitbucket 5 Integration.

> <https://github.com/drone/go-scm/pull/89>

> <https://github.com/drone/drone/pull/3050>

---

<div class="post-metadata">

**Author:** ![geopossachs](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/geopossachs/32/6114_2.png) [@geopossachs](https://drone.discourse.group/u/geopossachs)\
**Post date:** [October 5, 2021, 7:38pm UTC](https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120/7 "2021-10-05T19:38:37Z")

</div>

Hallo @bakito  
Thank you for your work. I tried it and now bitbucket5 is working with drone2, that’s just wonderful 🙂

---

<div class="post-metadata">

**Author:** ![markocelan](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/markocelan/32/3069_2.png) [@markocelan](https://drone.discourse.group/u/markocelan)\
**Post date:** [December 6, 2021, 9:55pm UTC](https://drone.discourse.group/t/solved-attempt-to-enable-repo-on-older-bitbucket-servers-fails/11120/8 "2021-12-06T21:55:25Z")

</div>

I can confirm it works now. Thank you @bakito!
