I am having an issue with the Bitbucket Server application that is hosted internally. Specifically my issue is this:
1) When I visit Bitbucket Server through a browser, like Internet Explorer, it works fine and I have access to all repositories.
2) If I try to open a repository through SourceTree, it says Permission Denied for 99.9% of all the repositories on Bitbucket Server.
3) If I try to continue to use Internet Explorer after having tried step 2, 99.9% of the repositories are now hidden from me and I no longer have access to them. If I restart Internet Explorer it works fine again.
Can anyone help me getting SourceTree to interact properly with Bitbucket Server, as without it I cannot properly interact with the repositories other than in a very limited read-only fashion(specifically, I can just view the repos on IE, I can't download, clone or anything like that).
When you say you try to open the repository in Sourcetree, do you have your Bitbucket Server account setup in Sourcetree and you are trying to clone from the list of remote repositories in Sourcetree's 'New' tab? Or are you trying to use the 'Open in Sourcetree' functionality from Bitbucket Server?
Also are you using HTTPS or SSH urls for your repos?
I have my Bitbucket Server account setup in SourceTree, and as soon as I do that, I get a significantly shorter list than the one in IE, and then curiously enough if I try reloading IE the amount of projects I can see through there has gone down from hundreds to ~10. It's as if once I've connected to the server using my credentials in SourceTree it flips a switch and kills my access. I can restore the access by restarting Internet Explorer.
I can also clone repositories just fine using the 'git clone' command but only if I use the ssh keys, it breaks if I try to use my login credentials. Similarly, if I try to use the API it breaks when I for instance run "curl -u username:password url".
It also breaks if I try using the "Clone in SourceTree" functionality.
EDIT: I wonder if it has to do with the fact that my org has a login page that you have to go through to get access to internal sites, i.e. it might be getting stuck on the redirect or something? Even then it still works OK with SSH keys through the command line, and some repositories still show up. I don't really think this has anything to do with it, I think something else is going on.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events