The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to access some repos after upgrade from 5.16.10 to 7.21.6 - Bitbucket Data Center

Naushad Naleer
December 23, 2022

Hi, we recently upgraded Bitbucket Data Center from version 5.16.10 to 7.21.6. We are unable to access some repos on Bitbucket UI (chrome), access to many other repos are working fine. 

I get the error 

'/usr/bin/git ls-tree -z -l refs/heads/master: --' exited with code 0

I can clone this repo using ssh.

Any help will be highly appreciated.

 

Thank you,

Naushad.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 23, 2022

Hi Naushad,

Which version of git are you using on the Bitbucket Server side?

Cheers,
Christian
Premier Support Engineer
Atlassian

Naushad Naleer
December 23, 2022

We use git version 2.36.3 on both Bitbucket nodes

Also I can access the branches, commits etc on the UI. 

When I click on 'source' (on left hand side) - that's when the error comes.

Thanks for your help

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 23, 2022

Bitbucket Server 7.21.6 only supports git up to version 2.35.x, so downgrade your git install, most likely this will resolve this problem.

Cheers,

Christian
Premier Support Engineer
Atlassian

Naushad Naleer
December 23, 2022

Thanks Christian, I downgraded git to 2.24.4 and the problem is resolved.

Mia Paulin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 11, 2023

@mention That entire line of code is saying the program ended.  If you run that command, whatever you are running with close out(exited with code 0 is kind of like saying system.exit(0) in Java.  It ends the program)

TAGS
AUG Leaders

Atlassian Community Events