youngmon/atlassian-qna huggingface dataset:
Cant add new file to repository
Asked by Adarsha Krishna:

I am trying to create new file in my repository, and the web editor does not work/load

![Screenshot 2022-05-16 011303.png](https://community.atlassian.com/t5/image/serverpage/image-id/197404i7DCB81A1014D285C/image-size/large?v=v2&px=999 "Screenshot 2022-05-16 011303.png")


Answers:
author: Patrik S
body: Hello [@Adarsha Krishna](/t5/user/viewprofilepage/user-id/4927146) ,

Welcome to Atlassian Community!

The errors you are seeing in the dev panel are because whenever you update the name of the file you are adding, our UI makes an API call to check if a file already exists with that name. An HTTP 404 response means that a file with that name does not already exist, so you are good at creating it.

I tried loading the page to add a file ( Go to **Repository \> Source** tab**\>** Click on the**Tree dots** in the top right corner**\> Add File**) and it loaded successfully :

![Screen Shot 2022-05-17 at 12.58.32.png](https://community.atlassian.com/t5/image/serverpage/image-id/197737iF7C6DD4AD15AAE1A/image-dimensions/352x276?v=v2 "Screen Shot 2022-05-17 at 12.58.32.png")

That said, the behavior you are reporting could be a temporary glitch when you tried to access it or potentially a local browser cache issue. In this case, we usually recommend the following :

* Clear the browser's cache/cookies
* Try to access using the browser's incognito mode
* If using any browser extensions, temporarily disable them and check if the issue persists.

You can try following the suggestions above if you are still facing the issue. Please also make sure you are using one of the browsers supported by Bitbucket Cloud :

* <https://support.atlassian.com/bitbucket-cloud/docs/which-browsers-does-bitbucket-support/>

Hope that helps! In case you have any further questions, please let me know.

Thank you, [@Adarsha Krishna](/t5/user/viewprofilepage/user-id/4927146) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
No response was received from the URL you entered
Asked by Karthik Kaliki (EXTERNAL):

I am trying to integrate BitBucket to Jira via application link in butbucket but getting below error

'No response was received from the URL you entered - it may not be valid. Please fix the URL below, if needed, and click Continue'

Can you please help us to fix this issue ?


Answers:
author: Dave Theodore [Coyote Creek Consulting]
body: Validate that you have connectivity between the two servers. This would be via the same TCP port that browsers connect to. You will need to ensure that Jira can reach Bitbucket and vice versa. You should also verify that both sides have valid commercial SSL certs (if you're using SSL) and have intermediate certs properly configured (if applicable.) Any of these scenarios will cause the error you are seeing.

comments: author: Karthik Kaliki (EXTERNAL)
body: Hi Dave

I have tried to network test for the same so run wget Jira url in bitbucket server, below response is displaying

Connecting to Jira url:443 ... failed : connection timed out

This means any issue with the port or firewalls ?


author: Dave Theodore [Coyote Creek Consulting]
body: That's what it looks like. Could also be network ACLs. You also need to verify that you have connectivity from Jira to Bitbucket.


Tags: bitbucket-data-center

bitbucket-server

server
I removed all the admins including myself from our workspace.
Asked by HK:

I removed all the admins, including myself, from our workspace. There is no admin in the workspace, and we can't modify any settings or add a user or a group. Is there a way I can restore my admin access to the workspace? Thanks


Answers:
author: Theodora Boudale
body: Hi [@Hamed Kalantari](/t5/user/viewprofilepage/user-id/4458507),

I would like to ask some questions so we can better help you.

1. Are you using in Bitbucket Cloud the same email as the email of your community account?

2. *After you log in to Bitbucket*, do you see this workspace listed here or not?

<https://bitbucket.org/account/workspaces/>

3. Could you share the last 2 letters of this workspace's id?

Kind regards,  
Theodora


author: Nic Brough -Adaptavist-
body: You will need to ask your site admin to add one of you back as an admin for the workspace.

comments: author: HK
body: Hi Nick,

Thanks. We had two admins in the Bitbucket cloud; I don't see any site admins; I am afraid there are no more admins for that specific Bitbucket workspace. Is this recoverable by Atlassian? Thanks


author: Nic Brough -Adaptavist-
body: It is not possible to remove all the administrators, you have to have at least one person with admin rights. You'll need to identify who they are and talk to them.


author: HK
body: We had two admin (a total of two users for the whole workspace), and I removed the other admin (downgraded to write access only). I suddenly lost access to admin privileges as well. It shows both users have write access only, and there is no admin for the workspace. What should we do? Is there a way to escalate this to Atlassian? Thanks


author: Nic Brough -Adaptavist-
body: Yes, but they are just going to ask you to go to your site admin, the one you can't remove. And it's the site admin who needs to take it to Atlassian.

You really do need to identify who your site admin is, they're the only one who can help.


Tags: bitbucket-cloud

cloud
How to setup Visual Studio 2022 to use Bitbucket Repo
Asked by David Martin:

I'm trying to setup Visual Studio 2022 to use Bitbucket as my repository but I'm not having much luck. Step-by-step instructions or tutorial on how to do this would be great. Any help would be appreciated.

Dave :-)


Answers:
author: hynek.p
body: Do I understand correctly that Atlassian will not develop an extension for Visual Studio 2022, similarly to VS Code (<https://support.atlassian.com/bitbucket-cloud/docs/bitbucket-pull-requests-in-vs-code/>)?

comments: author: Patrik S
body: Hello [@hynek.p](/t5/user/viewprofilepage/user-id/2553732) ,

Bitbucket Cloud currently only has an [extension to VS Code](https://marketplace.visualstudio.com/items?itemName=Atlassian.atlascode). For Visual Studio itself, we have the following feature request to have an extension as well :

* <https://jira.atlassian.com/browse/BCLOUD-21902>

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@hynek.p](/t5/user/viewprofilepage/user-id/2553732) .

Kind regards,

Patrik S


author: GL
body: Once you copy repo URL from Bitbucket and paste it in VS clone repo dialog, remove "git clone" from the URL and VS should be able to proceed to authenticate you and clone it.


author: melifoobar
body: You may want to read this post:

<https://community.atlassian.com/t5/Bitbucket-questions/When-will-Bitbucket-support-to-VS2022/qaq-p/1894860>

Visual Studio 2022 did not support Bitbucket. It sounds like there may be a version that will integrate now? I am going to try the suggestions in this thread.


Tags: atl-orange

bitbucket-cloud

cloud
I am facing build error
Asked by Sangavipriya Thyagarajan:

Am facing the below error

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project VuramAutomationTestingTool: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x23396fc0) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x23396fc0 -\> \[Help 1\]

P.S: I tried changing my Lombok dependency to 1.18.20 in my pom.xml, still am facing the above issue .

The application is running when i build it through my local, am facing issue only when i run via bitbucket


Answers:
author: Patrik S
body: Hello [@Sangavipriya Thyagarajan](/t5/user/viewprofilepage/user-id/4925454) ,

Welcome to Atlassian Community!

The error you reported seems to be an issue with OpenJDK and the Lombok plugin.

I was able to find the following StackOverflow thread with some suggestions on how to fix the error :

* <https://stackoverflow.com/a/66981165>

Accordingly to that thread, you should be able to fix the issue by updating the Lombok plugin used by your project to version **1.18.22** :

    <dependency>  <groupId>org.projectlombok</groupId>  <artifactId>lombok</artifactId>  <version>1.18.22</version></dependency>

Also, make sure the docker image you are using in your build has a java version compatible with that plugin. The users on that thread reported that using OpenJDK 16 did work.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Sangavipriya Thyagarajan](/t5/user/viewprofilepage/user-id/4925454) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
How do I change the account administrator, without having access to the registered email?
Asked by Vanessa Ogassawara Martins:

I have a repository where I no longer have the email registered as an account administrator. How do I change the account admin, without the email?


Answers:
author: Theodora Boudale
body: Hi Vanessa,

Does this concern a Bitbucket Cloud account (<https://bitbucket.org/>)?

If this was a personal non-managed Bitbucket account and you remember the password, you can log in and update the email of the account.

If you don't remember the password, you would need access to the email in order to request a password reset email. We cannot change the primary email address of accounts or make any changes in repository access/ownership for security reasons.

If this was a personal managed account, email change is only possible by the Org admin for the domain.

Kind regards,  
Theodora
Unable to reduce the size of the repo
Asked by motieno:

I have tried more than 100 times to reduce the size of my repo but am unable. I actually deleted the huge file that was problematic but still the size is not going down! What else can I do?


Answers:
author: Theodora Boudale
body: Hi [@motieno](/t5/user/viewprofilepage/user-id/4925363),

A garbage collection may help reduce the repo's size. End users cannot run this for their remote repos, but I can help.

Could you please let me know the following so I can identify the repo and run a git gc for it?  
- the last 2 letters of the repo name  
- the last 2 letters of the workspace this repo belongs to  
- and the size that you see for this repo on Bitbucket website (you can find that in Repository settings)

Kind regards,  
Theodora

comments: author: motieno
body: Last two letters of repo: **ce**

Last two letters of the workspace**: no**

Size**: 4.83 GB**


author: Theodora Boudale
body: Hi [@motieno](/t5/user/viewprofilepage/user-id/4925363),

I ran a git gc for this repo and its size has been reduced to 3 GB.

Does this agree with the size of your local repo if you run **git count-objects -Hv** ?

You should be able to push to the repo now, but its size is still quite large, so I would suggest reducing it further, if possible.

You can check the following reply I gave to another community question for more details:

* <https://community.atlassian.com/t5/Bitbucket-questions/Revert-bitbucket-repository-state-to-one-day-prior/qaq-p/1908360#M76762>

As I mentioned in that reply, if you proceed with history rewrite and push to your repo, it will need another garbage collection. You can let me know, and I can then run it.

Kind regards,  
Theodora


author: motieno
body: My only worry is even after trying to reduce the pack size by removing the large file that caused the challenge, the local repo is still huge. I actually separated the project files but still the pack size is still big


author: motieno
body: I however confirm that the size of the local repo is close to the remote repo. Many thanks


author: motieno
body: The push is on. At 25% I will request for garbage collection shortly


author: motieno
body: The size has shot again to past **3.54GB** , however my local repo is **2.77 GB**


author: Theodora Boudale
body: Hi [@motieno](/t5/user/viewprofilepage/user-id/4925363),

I ran another git gc for the repo and its size is 2.9 GB now.

1. What operation did you perform to remove the large file from the repo?  
   Did you commit the file's deletion?  
   Or did you rewrite history to remove it?  

2. If you open this repo on Bitbucket website and then its **Commits** page, do you see there the commit with the large file?  
   If yes, can you select this commit to open it, and let me know if you see the large file listed there?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
how to connect bitbucket repo to cicd on gcp
Asked by sivakumar:

how to connect bitbucket repo to cicd on gcp


Answers:
author: Patrik S
body: Hello [@sivakumar](/t5/user/viewprofilepage/user-id/4924878) ,

Welcome to Atlassian Community!

From my understanding, you would like to integrate your GCP Cloud Build with your Bitbucket Cloud repository. If that is the case, I have found the following GCP documentation with detailed steps on how to build repos from Bitbucket Cloud:

* <https://cloud.google.com/build/docs/automating-builds/build-repos-from-bitbucket-cloud>

You can follow those steps to enable the integration, and in case you have any questions, please let us know!

Thank you, [@sivakumar](/t5/user/viewprofilepage/user-id/4924878) .

Kind regards,

Patrik S

comments: author: samuel.sanou
body: is it possible to use another account to replace the current account that links the repo to gcp without breaking the repo


author: Patrik S
body: Hello [@samuel.sanou](/t5/user/viewprofilepage/user-id/5018459) ,

I would like to ask if you could please create a new question for your issue, providing details on the errors you see and also whether it concerns a Bitbucket Cloud or Bitbucket Server repo. We generally encourage users to create a new question for their issue instead of posting on someone else's question, because 1) the root cause and resolution may be different for each case 2) a question can become cluttered and difficult to follow if we try to troubleshoot multiple users' issues in it.

Please feel free to let me know if you have any questions.

Thank you, [@samuel.sanou](/t5/user/viewprofilepage/user-id/5018459) .

Patrik S


Tags: bitbucket-cloud

cloud
Is there an API for events \ audit-log on BB Cloud?
Asked by Yaron Avital:

I'd like to query the API for events such as:

user created a repo, user deleted protected branch, used pushed code etc'

I know there are webhooks for that, but i'd like to audit the history as well.


Answers:
author: Patrik S
body: Hello [@Yaron Avital](/t5/user/viewprofilepage/user-id/4925028) ,

Welcome to Atlassian Community!

In regards to your question about exporting the Audit Log, if you mean exporting the Audit Log you see in the Bitbucket UI, we have answered this question in a previous post :

* [How can I fetch the Auditlog from Bitbucket via API](https://community.atlassian.com/t5/Bitbucket-questions/How-can-i-fetch-the-Auditlog-from-bitbucket-via-api/qaq-p/1830049#U1831249)

However, some of the events you mentioned such as "a branch was deleted" or "an user pushed a code to your repository" are currently not available in the Audit Logs. The good news is that we already have a feature request to add additional information to the Audit Log, including the events you have mentioned. You can access that feature request using the following link :

* <https://jira.atlassian.com/browse/BCLOUD-9622>

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind: <https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html>

Hope that helps! In case you have any questions, please let me know!

Thank you, [@Yaron Avital](/t5/user/viewprofilepage/user-id/4925028) .

Kind regards,

Patrik S.

comments: author: Yaron Avital
body: Thank you very much Patrik,

I'm afraid the answer above does not use the API (Rest\\GraphQL), it seems to be scraping the Web UI and since i'm working with a Token, it's not applicable to my case.


author: Patrik S
body: Hello [@Yaron Avital](/t5/user/viewprofilepage/user-id/4925028) ,

I'm sorry to hear that the script does not apply to your case, and it's indeed exporting directly from the UI HTML.

In this case, I'm afraid there's not currently an endpoint available in our public API to get the Audit Logs. We have the feature request below to implement it, though :

* <https://jira.atlassian.com/browse/BCLOUD-13176>

You can vote for it and keep a watch to receive an update whenever there's any progress in its implementation.

If you have any further questions, feel free to ask.

Thank you, [@Yaron Avital](/t5/user/viewprofilepage/user-id/4925028) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Switching branches in SourceTree 1.9.5.0 index.lock error
Asked by jamesbradshaw:

Since installing Sourcetree 1.9.5.0 I now regularly see this error when switching branches. Closing and reopening SourceTree fixes the problem.

```
git -c diff.mnemonicprefix=false?c core.quotepath=false checkout feature/branchname
fatal: Unable to create 'D:/projectname/develop/.git/index.lock': File exists.
```

```
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
```

```
Completed with errors, see above.
```

Is this a config issue on my PC?


Answers:
author: jamesbradshaw
body: Answered my own question it's a bug <https://jira.atlassian.com/browse/SRCTREEWIN-6070>
Does SourceTree work with Gitlab?
Asked by johny why:

Does SourceTree work with Gitlab?

thx,

noob


Answers:
author: 105349
body: Hello!

Check out [this blogger's post](http://jaredleonmorgan.net/2016/03/16/Using-Source-Tree-to-Access-Git-Lab.html)on the subject. It seems like they were able to get it working without too much fuss!

Good luck!


author: Jobin Kuruvilla [Adaptavist]
body: Yes. SourceTree should work with all git products. It is just a client.


Tags: gitlab
what do i enter for ssh password
Asked by Karen Harris:


Answers:
author: Eduardo Masiero
body: It depends on which thing you're trying to SSH in example if you're talking about a cloud instance SSH you won't be able, (it is restricted to Atlassian team) . If you're talking about source tree, you may find what you looking for in this document: <https://confluence.atlassian.com/pages/viewpage.action?pageId=282173660>

Hope it helps :smile:
Stuck on "Configuring SourceTree" for installation
Asked by ttoonn112:

Hi, I tried to install SourceTree on Window 8.1 Pro. And the installation process stuck on "Installing SourceTree" window with this message

Please wait while the setup wizard installs SourceTree. This may take several minutes

Status: Configuring SourceTree

The progress bar seem not start yet. Has anyone face this problem, help me please

Thank you


Answers:
author: C?sar Felipe Pineda Ortiz
body: SOLUTION!

Just execute the installer as Administrator. Right Click, Run As Administrator, that's it


author: C?sar Felipe Pineda Ortiz
body: This is happening right now, Windows 7 pro, the progress bar doesn't start. I've been waiting for 10+ minutes and nothing


author: Friedrich Politz
body: Same here. There is no way for me to update / reinstall Sourcetree right now.
how does sourcetree merge git branches
Asked by HappyPappy:

We just had a funny case where we were merging a feature branch back to our master branch and both Eclipse and IntelliJ "missed" merging some changes from the feature branch onto our master branch.

i.e. changes to source files did not come across to the master branch.

We tried various merge strategies (recursive, ours, octopus, etc.) with no luck.

We work in a fairly large project and were dreading having to go through and validate differences one by one.

Then I fired up SourceTree and it merged everything as expected and am just trying to figure out the difference, is anyone able to explains this?

Thanks!


Answers:
author: jbryson3
body: I wouldn't know why they're merging any differently. But sourcetree will allow you to see exactly what git commands it is running. You can open the command history panel.

Here's where mine was found in OSX Sourcetree (2.3.1)

image2016-7-28 12:23:24.png

Maybe that will give some clues into how sourcetree is doing it 'right'  
[](https://community.atlassian.com/t5/Sourcetree-questions/how-does-sourcetree-merge-git-branches/qaq-p/257437?attachment-id=11939){#link_1172b6659ff925}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/8183/1/image2016-7-28%2012%3A23%3A24.png){#display_1172b6659ff925_0}

comments: author: HappyPappy
body: The IntelliJ command;

git -c core.quotepath=false merge --no-commit --no-ff master-wp3b

The SourceTree command;

git -c diff.mnemonicprefix=false -c core.quotepath=false merge --no-commit master-wp3b

The only obvious difference is the diff.mnemonicprefix setting.

However, the thing that appears to also be different is that we were merging to the remote branch reference remotes/origin/master-wp3b when things weren't working and to the local master-wp3b branch when things were.

So the question now becomes why would these two diverge in this context?

Thanks!
SourceTree 1.9.5.0 - where did the staging checkboxes go?
Asked by cskilbeck:

There used to be checkboxes for selecting which files to stage, but they've disappeared in version 1.9.5.0 -are they coming back?


Answers:
author: Jeremy Sarda
body: Upvote here: <https://answers.atlassian.com/questions/39445630>
[Sourcetree] Latest version removed tickbox for staging files
Asked by riwu:

There used to be a tickbox beside modified files to easily stage a particular file for commit.  
Now you have to select the file, then click on the top right 'Stage Selected' which is much more inconvenient than before. Can that change be reverted, or retain the tickbox as an option?


Answers:
author: Patrick Lehmann
body: See this thread for more comments and answers: <https://answers.atlassian.com/questions/39445630>


author: Gabor Szoke
body: It also worked to drag\&drop from unstage to stage area if I remember correctly. I really miss that feature too.
Turn Off Future View
Asked by Dennis Jensen:

I am working with git and I have repository that has future changes associated with it but all I want to see is the current status of the repository without those future changes.

So is there a way to toggle that future view feature off so that SourceTree deals only with what is rather than what is and what will be?


Answers:
author: Seth
body: Unckeck the "Show remote branches" at the top of the graph:

image2016-7-22 12:7:23.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Turn-Off-Future-View/qaq-p/65290?attachment-id=9959){#link_1172b6cc66265e}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/1862/1/image2016-7-22%2012%3A7%3A23.png){#display_1172b6cc66265e_0}


author: Dennis Jensen
body: Okay I do this step by step:

1) I clone a local repository of a git repository located elsewhere onto my machine

2) On the following day I look at the repository using SourceTree and I see where I am at with the repository but I also see where the parent repository is at with an indication that my repository is X number commits behind this main repository.

This last feature -- the one that goes out to view this "main" repository to show changes made to it since I pulled a copy of it to my local machine -- is what I want to be able to toggle OFF (and ON because at times it is useful) so that I can just view what I have in my local repository via SourceTree. Does that clarify what I am asking?


author: Seth
body: Future changes? What are you talking about?