youngmon/atlassian-qna huggingface dataset:
Getting Access denied when cloning a GIT Repository, even though able to login thru browser
Asked by Paul Swarnapandian:

I have a Atlassian account and am able to access Bit Bucket through the atlassian account from a browser. However when i try cloning an repository using Webstorm/Terminal or Sourcetree, I get an error stating Invalid Credential. The error message is

The requested URL returned error: 403'

Not sure what is happening.


Answers:
author: Caroline R
body: Hi, [@Paul Swarnapandian](/t5/user/viewprofilepage/user-id/4675745)! Welcome to the community!

I noticed that your Bitbucket account was created last month. In this case, could you please confirm if you are using your regular password or an App password to authenticate?

The reason I'm asking this is that we [announced in June](https://bitbucket.org/blog/deprecating-atlassian-account-password-for-git-and-bitbucket-api-activity) that we are phasing out the use of user login passwords for REST APIs and git over HTTPS.

We [recently announced](https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity) the first phase of this, where any user with an Atlassian account created on or after UTC 00:00 on **13 September 2021** must use a Bitbucket Cloud generated [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) for all git operations over HTTPS and for REST API authentication.

In this case, could you please try to use an App password and confirm if this works?

If you have any problems using or configuring an app password, please do let me know and I will be happy to assist you.

Kind regards,  
Caroline

comments: author: Paul Swarnapandian
body: Hello Caroline,

Thanks for the response. Yes, my colleague guided me and I created the app password and it worked well for me.

Thanks for your response, have a nice weekend and holiday season.


author: Caroline R
body: Hi, Paul!

Thanks for your confirmation, I'm glad to know everything is working as expected now!

Have a great weekend and holiday season too!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Connecting to Bitbucket with command line git (Using account with oauth and 2FA)
Asked by Ethan Allred:

I cannot find at all any information on how I can connect my account for this.

I'm doing remote development on an embedded system and compiling on the system due to headaches attempting to get cross-compiling to work. I cannot figure out how to have the git repo on the device push to bitbucket, as I have no password for the account and it uses 2FA. My best guess is that I'd have to use the API somehow but I couldn't find anything telling me how to actually get an API key (creating a token doesn't seem to do it) nor how to set up git to authenticate using that.


Answers:
author: Caroline R
body: Hi, [@Ethan Allred](/t5/user/viewprofilepage/user-id/4675647)! Welcome to the community!

In this case, you can either create an **App Password** or an **SSH key** to authenticate to the remote Bitbucket repositories.

In order to create an App Password, you can follow the next steps:

1. From your avatar in the bottom left, click **Personal Settings**;

2. Click **App passwords** under Access management;

3. Click **Create app password**;

4. Give the app password a name related to the application that will use the password;

5. Select the specific access and permissions you want this application password to have;

6. Copy the generated password and either record or paste it into the application you want to give access to.

7. **The password is only displayed this one time**.

If you would like to read more about App Passwords you can access this documentation: [App passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/).

In case you would like to create an SSH key, the following documentation has a very good explanation on how to create and add it to Bitbucket:

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

Please let me know if you need any help with this process, I will be happy to assist you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Is version 7.5.1 vulnerable to log4j exploit?
Asked by Robert Eanes:

Is version 7.5.1 vulnerable to log4j exploit?


Answers:
author: Daniel Eads
body: Hi all,

Daniel from Atlassian Support - I'd like to let you know that we have updated the advisory to include more information about Bitbucket Server, Bitbucket Data Center, and the bundled elasticsearch product. Please refer to the advisory for the most current guidance:

* <https://confluence.atlassian.com/security/multiple-products-security-advisory-log4j-vulnerable-to-remote-code-execution-cve-2021-44228-1103069934.html>

Thanks,  
Daniel Eads \| Atlassian Support


author: Fabio Racobaldo _Herzum_
body: Hi [@Robert Eanes](/t5/user/viewprofilepage/user-id/4675207) ,

B

itbucket is NOT affected.

<https://confluence.atlassian.com/kb/faq-for-cve-2021-44228-1103069406.html>

**I see Bitbucket Server/Data Center isn't in the list of products using Log4j but I can see Log4j JAR files in my installation directory, is my instance vulnerable?**

No. Neither Bitbucket Server nor Data Center use Log4j, they use Logback.

Hope this helps,

Fabio

comments: author: Craig Castle-Mead
body: Bitbucket allows you to run an external Elasticsearch environment instead of the bundled version, so ensure you check the Elasticsearch config/version/exposure as well as the main product.

CCM


Tags: bitbucket-server

server
Branch permission rights are unclear
Asked by Marc Balme:

After reading <https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/#Branch-permissions-overlap>, the examples seem to say the opposite of the definition (where "both permissions would be applied."). Can you explain how do you reach the different results in the table?

Thanks


Answers:
author: Theodora Boudale
body: Hi Marc,

I understand that the wording in the documentation is confusing, particularly with the phrase "both permissions would be applied". I will create a ticket with our documentation team to change/improve the wording and provide a more clear explanation.

In case of overlapping permissions, the table has the correct info about what applies for each use case.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is there a way to export my repository variables between repos?
Asked by Firdaus Aga:

My use case is as follows -  

I've created.a new repo to test the bitbucket pipeline out.  
I've created a lot of variables for the repo.

I'd like to import it into the other repo.

Please advise


Answers:
author: Caroline R
body: Hi, [@Firdaus Aga](/t5/user/viewprofilepage/user-id/4662041)! Welcome to the community!

Unfortunately, this functionality is not available. Currently, we have a feature request for this as you can see in the link below:

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

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

In case you would like to use the same variables for all the repos under a workspace, you can use the **workspace variables**. However, workspaces variables will be overridden by repository variables if you have repo variables a well. You can check more details about this here:

* <https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/>

Please, feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: Firdaus Aga
body: Thanks [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) !  
I've added my vote to the feature request, as a workaround I will definitely look at Workspace variables too.


Tags: bitbucket-cloud

cloud
Is single-node Bitbucket Data Center supported on Windows Server 2019?
Asked by Ray Bird:

We had installed Bitbucket Server 6.10.0 on Windows 2012R2. During the past year, the license was upgraded from Bitbucket Server to Bitbucket Data Center. I am now looking at upgrading our installation to a recent version, such as the 7.17 long term support version.  

However, [the supported platforms](https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html) explicitly state that "Microsoft Windows is not supported for Bitbucket Data Center". Yet when I follow the [Data Center install instructions](https://confluence.atlassian.com/bitbucketserver/install-bitbucket-data-center-872139817.html) for a single-node configuration, it points me to the Bitbucket Server installation page, from which informs me that I can install on Windows.

I am confused. If I use the Windows installer to install a single-node Bitbucket on a Windows Server and use a Data Center license, am I running on a supported configuration?


Answers:
author: Nic Brough -Adaptavist-
body: There's a peculiarity under the hood here.

Bitbucket Server and Bitbucket Data Center are the same software, and a DC node installation is exactly the same as a Server installation (it's not quite the same when you're adding more nodes, there's a bit of extra config to do). It's just your licence that makes the first node think of itself as DC or Server.

So, yes, the docs for DC, when saying "go read the docs for installing a server to run a single node DC", do end up landing you in the docs for server, which then go on to say it is supported.

But, no, Bitbucket DC is not supported on Windows. You won't have any problems running the single node, but you're not supported if it's got a DC licence, and if you start raising support requests, Atlassian could simply say "you need to run it on a supported platform before we can help". You will have problems if you add other nodes whether they're on Windows or not.


Tags: bitbucket-server

server
How to see admin for a repository
Asked by Peter Brune:

Is there a way for someone with read only access to a repository to see who the admin is for that repository? I inherited a project for my company where nobody else knows who owns the bitbucket account. I would like to see who the admin is and then can see if I can login with their login and then give myself access.


Answers:
author: Norbert C
body: Hi Peter,

Thank you for contacting Atlassian Community! I'm Norbert from Bitbucket Cloud Support, it's nice to meet you! Also, welcome to the Atlassian Community :)

I would like to inform you that unfortunately it's not possible for a user to see who's the admin for a repository/workspace.

To check who's the admin for this repository/workspace, what I would like to suggest you is to search for the invitation email when you got invited to the repository/workspace as the invitation email contains the name of your colleague who invited you.

Please let me know how it goes, Peter.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud
Support for Atlassian ID pasword in basic auth will drop in March, how to use legacy REST API (1.0)?
Asked by Andrea Turri:

According to this article, Atlassian is dropping basic authentication support with Atlassian ID password on BitBucket, but it will be possible only using app passwords: <https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity>

I have configured an App password with read, write, admin privileges on repositories, however it is not possible to use APIs to grant permissions to user groups! Such APIs are described here <https://support.atlassian.com/bitbucket-cloud/docs/group-privileges-endpoint/>and it seems that a counterpart on REST API "2.0" is not yet available. So, I'm forced to use this legacy versions of REST API. When I use such APIs with App password, I get a 403 error, saying "Your credentials lack one or more required privilege scopes". So, it's not clear what will happen on such legacy API "1.0". Will they still be available with Atlassian ID password? Or App passwords will be fixed? Or, worst scenario, such endpoints will no longer be available?

Thank you,

Andrea


Answers:
author: Norbert C
body: Hi Andrea,

Thank you for contacting Atlassian Community! I'm Norbert from Bitbucket Cloud Support, it's nice to meet you!

I would like to inform you that the repository scope is not enough for the group privileges endpoint.

In case you wish to use this endpoint, can I ask you to include the "Account" scope to your app password as well? Once I included the Account permissions, I was able to use this endpoint.

Please let me know how it goes, Andrea

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: Andrea Turri
body: Hi Norbert,

Thank you for answering.

I confirm that app password works after including the "Account" scope. My problem is now solved!

Is there any documentation about scopes that are assignable to app passwords?

Thank you,

Andrea


Tags: authentication

bitbucket-cloud

cloud

password

rest-api
Skip downloading a specific artifact during a pipeline step
Asked by nishadi.nuwanmini:

```
download: false #disable downloading all the artifacts coming from the pervious steps
```

Instead of disabling downloading all the artifacts during a step, can we skip downloading only a particular artifact in a step?


Answers:
author: Caroline R
body: Hi, [@nishadi.nuwanmini](/t5/user/viewprofilepage/user-id/4671214)! Welcome to the community!

Currently, it's only possible to download all or none of the artifacts, however, we understand that it would be a useful feature to allow users to decide which artifacts they want to download in the step, so we have created the following Feature request:

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

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Caroline


Tags: bitbucket-pipelines

cloud
Build failed jcenter download
Asked by Aaron_???:

I have a android project repo.

When I run below command on Pipeline, it fail...

```
./gradlew clean assembleRelease
```

\`\`\`  
FAILURE: Build failed with an exception.  
* What went wrong:  
Execution failed for task ':app:lintVitalStageRelease'.  
> Could not resolve all files for configuration ':app:lintClassPath'.  
> Could not download groovy-all-2.4.15.jar (org.codehaus.groovy:groovy-all:2.4.15)  
> Could not get resource '<https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar>'.  
> Could not GET '<https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar>'.  
> Connection reset

\`\`\`

I tried to add \`mavenCentral()\` on my \`build.gradle\` file.

But it's same.

\`\`\`  
FAILURE: Build failed with an exception.  
* What went wrong:  
Execution failed for task ':app:lintVitalStageRelease'.  
> Could not resolve all files for configuration ':app:lintClassPath'.  
> Could not download groovy-all-2.4.15.jar (org.codehaus.groovy:groovy-all:2.4.15)  
> Could not get resource '<https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar>'.  
> Could not GET '<https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar>'.  
> Connection reset

\`\`\`

I think that bitbucket cloud has some problem...  
What's going on?


Answers:
author: Aaron_???
body: I solved this problem.

Actually I don't know, But when I increase the jvm build option about the memory size, it works fine.


author: Theodora Boudale
body: Hi [@Aaron_???](/t5/user/viewprofilepage/user-id/4668414),

I see that you created another post about this issue earlier this week, and you mentioned that this command works fine in your local machine. My suggestion would be to try debugging this locally with Docker as per the instructions on the following page:

* <https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/>

Then please let us know if you see the same error when debugging the build following this doc.

If the build works ok when debugging it locally, my suggestion would be to create a ticket with the Bitbucket Cloud support team and  
- provide them the URL of the Pipelines build  
- provide also the output of the build when you debugged it locally with Docker  
If there is a support ticket open, the engineer working on your case will be able to access the build and assist with further troubleshooting.

Since you are an admin of a workspace on the standard billing plan, you should be able to create a support ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: android

bitbucket-pipelines

cloud
Restart merge for specific file
Asked by D K:

In SourceTree (for Windows) is it possible to restart the merge of a specific file.

My use-case is I have 10 files with merge conflicts.

I resolve the merge conflicts for 8 of these files successfully. However, for 2 of the files the conflict resolutions I make are horribly wrong.

The 2 files are marked as resolved and moved to the stage but how can I restart the merge for only these 2 files? Is there a SourceTree option or a Git command I can use?

NOTE: I'd prefer not to reset and re-do the full merge again.


Answers:
author: Seth
body: Yes, I figured this out just this week.

Find the file in the staged changes area. Right click it, and go to Resolve Conflicts\>Restart Merge.

This will only restart the merge for the selected file.

comments: author: Hemang Shah
body: Is there any short cut for this?
Starting out with Git and Sourcetree - importing an existing project
Asked by Tim Dawson:

I'm new to both Git and Sourcetree. Currently my projects have no formal version control, but I do have a sprinkling of files that have been renamed when there's been a revision. The usual 'filename.php' and 'filename2.php' stuff. Projects also contain a fair number of images and similar files which are unchanging and also directories which I'd probably want to exclude from Git altogether.

It seems that if I set up a repository in the root directory of my project I get a lot of stuff included that I really don't want. I'm looking for a way to filter it out that's a bit cleverer than going through the file list in 'Working Copy Changes' and deleting one by one (or even in blocks).

For example, is there a way to exclude the entire 'images' directory ?


Answers:
author: Seth
body: The easiest way would be to edit the gitignore file by hand. You can open this file by going to your Repository Settings \> Advanced \> Repository-specific ignore list \> Edit.

<http://git-scm.com/docs/gitignore>

comments: author: Tim Dawson
body: Thanks, I think I can work out what to do now, provided I can get to grips with the pattern matching.
SourceTree supporting Windows 8/8.1 ?
Asked by Oliver THEBAULT:

Hello,

I just wanted to say that SourceTree is a great tool. I'm using it on Windows 8.1 and it works almost perfectly.

The only bug, I've noticed, happens when I use the Fetch command (I disabled the automatic fetch option, because of this bug)... It often finishes with a "Blue Screen of Death" (ERROR: 90% of the time -\> BAD_POOL_HEADER / 10% of the time -\> something about DRIVER)... Then when I reboot my computer, the git objects that were fetched are corrupted.

Is this possible that you try to fix this issue ? Then you could say "Sourcetree supports Windows 8!".

Thank you very much for providing such great tools!


Answers:
author: Seth
body: There have been a few reports in the past of SourceTree crashes on Windows caused by a particular graphics card driver. The symptoms are a little different (SourceTree crashes, not the OS), but it would be worth checking out.

[](/questions/286989/sourcetree-does-not-run-on-windows-8-1)<https://answers.atlassian.com/questions/286989/sourcetree-does-not-run-on-windows-8-1>

If that doesn't work, go to [support.atlassian.com](http://support.atlassian.com)and Atlassian employees should be able to request and analyze log files and other information.
Mac OSX: Checkout Failed
Asked by Ben Atherton:

Hi All,

I am experiencing an issue when cloning remote repositories, I am getting the error "clone succeeded but checkout failed" I am trying to clone into a Mac OSX network share where I have full read and write permissions (so the path is /Network/Servers/myserver.local/Users/myusername/Documents/myproject). I am experiencing this both when using SourceTrees embedded GIT as well as system GIT.

Any help with this will be grately appreciated.

Thanks in advance.


Answers:
author: Seth
body: Git users have repeatedly had difficulty with storing "local" repositories on network shares. It is recommended to keep your git repository on actual local storage, and add any other locations that need it as remotes that you can push to.

[](/questions/266964/git-is-failing-to-stage-or-commit-with-sourcetree-in-a-windows-network-environment)<https://answers.atlassian.com/questions/266964/git-is-failing-to-stage-or-commit-with-sourcetree-in-a-windows-network-environment>

[](/questions/77637/local-mac-using-network-home-server-as-git-repo-possible)<https://answers.atlassian.com/questions/77637/local-mac-using-network-home-server-as-git-repo-possible>

[](/questions/275021/fatal-unable-to-write-new-index-file)<https://answers.atlassian.com/questions/275021/fatal-unable-to-write-new-index-file>

[](http://apple.stackexchange.com/questions/111934/git-not-working-over-afp)<http://apple.stackexchange.com/questions/111934/git-not-working-over-afp>
Where does SourceTree store repository configurations?
Asked by ITS Helpdesk:

We are evaluating alternatives to the GitHub Windows client for use in our Computing Department - GitHub Windows requires that users have their own individual profiles, but students here have a single mandatory roaming profile.

SourceTree solves one of the problems we had with GitHub - it can be installed for all users on a machine - but the Computing staff who are testing it report that it is not saving repository configurations (i.e., they set up a repository when logged on with a test student account, then when they log off and back on again they are prompted to set it up again).

Where does SourceTree store the repository configurations, and is it possible for us to change this location?

Thanks,

Dan Jackson (Lead ITServices Technician)

Long Road Sixth Form College

Cambridge, UK.


Answers:
author: Ryan Horrisberger
body: To answer your question, config info is stored in:

%appdata%\\Local\\Atlassian

BUT..We are having the same problem. We use romaing profiles and SourceTree stores config information in %appdata%\\Local\\Atlassian which does not roam. We are trying to figure out a way so that we can use it with our students at the University of Wisconsin-Madison, but so far we are stuck.

comments: author: Ryan Horrisberger
body: I've [submitted a bug report](https://jira.atlassian.com/browse/SRCTREEWIN-2135)


author: Seth
body: Thanks for the link!


Tags: configuration

profile

repository

windows