youngmon/atlassian-qna huggingface dataset:
The dataset's are not pulling through into my tests
Asked by Paul Sandwell:

Can anyone help? I have used the dataset's I have configured to pull through into my test cases, but they have stopped working. Instead the title of the variable comes through and not the content of the variable.   

E.g. I'm getting this.  
![2022-09-12 15_47_41-Greenshot.png](/t5/image/serverpage/image-id/215516iD79E27A080E78DED/image-size/large?v=v2&px=999 "2022-09-12 15_47_41-Greenshot.png")

I am expecting the names of the rows to populate where it says {Desktop \& Mobile}.

Can anyone help?


Answers:
author: Paul Sandwell
body: I have renamed the variable and re-applied it. It is working now.


Tags: bitbucket-cloud

cloud
After Bitbucket upgrade from Vers. 7.21.3 to 7.21.4 database is not accessible
Asked by Martin Ellwart:

A fatal error has occured

The following problem occurre, which prevents Atlassian Bitbucket from starting_

The database, as urrently configured, is not accessible. Communication link failure


Answers:
author: Ty Madsen
body: I ran into this issue (Upgrading Bitbucket Server from 7.21.2 to 7.21.5. One of the other errors I saw (besides the one you mention) relate to SSL:

javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

So in my bitbucket.properties file, I added "\&useSSL=false" to the end of my jdbc.url. After restarting bitbucket as a service - it came up fine. Not sure what changed to drive the break between versions. Hopefully this is helpful to you and/or others down the road!

The better answer is probably to fix the SSL issue and use encryption for connection to the DB, but since my instance runs on the same host as the DB server (MySQL), I am not as concerned with it.

comments: author: Martin Ellwart
body: Hi Ty,

thank you very much. This was helpful. For me it's the same. DB and Application running on the same host. I inserted your solution and now the application comes up and is running.

Best regards

Martin


author: Martin Ellwart
body: placed my answer on a wrong place

Rgds

Martin


author: Christian Glockner
body: Hi Martin,

Do you see anything else in the Bitbucket Server log? You can find it at \<BitbucketHome\>/log/atlassian-bitbucket.log

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Martin Ellwart
body: Hi Christian,

i found following error message:

ERROR \[spring-startup\] com.zaxxer.hikari.pool.HikariPool bitbucket -  
Exception during pool initialization. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communication link failure

Rgds

Martin


Tags: bitbucket-server

server
Is it possible to use the aws-cloudformation-deploy pipeline to delete a stack
Asked by TimCoatesNHS:

It's great to see the aws-cloudformation-deploy pipeline available, it makes it really easy to create a cloudformation stack from a pipeline.

It would be helpful to have a parameter which can be used to trigger a custom pipeline to delete an existing stack, to allow pipelines to clean up after themselves.

Could this be added as an optional parameter for example?

- pipe: atlassian/aws-cloudformation-deploy:0.13.0  
variables:  
# AWS_ACCESS_KEY_ID  
# AWS_SECRET_ACCESS_KEY  
# AWS_DEFAULT_REGION  
# STACK_NAME  
# TEMPLATE  
ACTION: DELETE # Defaults to create-stack, but this can be used to override


Answers:
author: Igor Stoyanov
body: [@TimCoatesNHS](/t5/user/viewprofilepage/user-id/2442128) hi. Thanks for your question.  

Unfortunately, we will not implement stack deletion, but if you need this, you can [check implementation](https://bitbucket.org/atlassian/aws-cloudformation-deploy/src/47f6a0d16c92ab36b41ebc9760c6bfc7ae0cdd08/bitbucket-pipelines.yml#lines-59) which you could use in your pipeline.

Regards, Igor


Tags: aws

bitbucket-cloud

cloud

cloudformation
Is there any way to enable issue tracker in the repo by rest API?
Asked by ameer.tatour:

I can't find in the documentation (bitbucket cloud) that we can enable the issue tracker by the rest API, there is only documentation on how to enable it by the UI.  
So if I created a 100 repository by the rest API and I need to enable the issue tracker, I need to go over it and enable the issue tracker by the UI for each repo!  
Please any help


Answers:
author: Theodora Boudale
body: Hi [@ameer.tatour](/t5/user/viewprofilepage/user-id/5028671) and welcome to the community!

It is possible to enable the issue tracker for a repo via API, using the same endpoint for creating a repository. Since the repositories already exist, you will need to use the PUT method to update each repository.

An example request is as follows:

```
curl -X PUT https://api.bitbucket.org/2.0/repositories/workspace-id/repo -u username:app-password --header "Content-Type:application/json" --data '{"has_issues": true}'
```

where **workspace-id** , **repo** , **username** , **app-password** replace with the respective values for the workspace-id of the repo, the repo slug, your Bitbucket username, and an app password for your user with at least Repositories: Admin permissions.

Please keep in mind that if the repositories you created are private, then the issue tracker you create via API will be private as well. If the repos are public, the issue tracker you create via API will also be public.

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

Kind regards,  
Theodora

comments: author: ameer.tatour
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) Thank you very much


Tags: bitbucket-cloud

cloud
Need help in resolving Log analyzer issue in Bitbucket
Asked by MA Hakeem:

2022-09-08 18:03:33,366 INFO \[hercules\] c.a.t.stp.hercules.LogScanTask Scan failed:  
java.net.UnknownHostException: confluence.atlassian.com

Getting this issue in Bitbucket log analyzer while scanning it.


Answers:
author: Christian Glockner
body: Hi,

Log analyzer requires a connection to confluence.atlassian.com for it to work, either directly or via a proxy server. <https://confluence.atlassian.com/bitbucketserverkb/how-to-configure-an-outbound-http-and-https-proxy-for-bitbucket-server-779171680.html> has instructions on how to configure an outbound proxy server.

Cheers,

Christian  
Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
Suddenly unable to push to my Bitbucket repo
Asked by Allie Mims:

Hi there,

I have suddenly been unable to push changes to my Bitbucket repo. I get the following error:

\`\`\`

git push origin dev  
The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.

\`\`\`

The repository exists and I am an admin on the repo.

I last successfully pushed to it on September 1st.

The correct SSH key is in my ssh agent. The same key that is added to my Bitbucket account.

\`git config user.name\` returns the correct Bitbucket user name.

\`git remote -v\` returns the correct SSH origin.

SSH test connection command returns successful.

\`\`\`

ssh -T git@bitbucket.org  
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

\`\`\`

I have restarted my IDE and terminal multiple times to try and fix it but I still get this error.  

I have also killed my ssh-agent and restarted it, adding only the key I use for this repo. It still isn't working.

Is there anything else I can check to see what is wrong?


Answers:
author: Allie Mims
body: I figured it out. Somehow the core.sshCommand config that held the SSH key that is used with this repo got wiped from the repo config. I don't know how that happened.

Running this command returned no output:

\`\`\`

git config core.sshCommand

\`\`\`

So I added the key back to the repo, setting the SSH config file option to /dev/null since I don't have any GIT related host entries in my \~/.ssh/config file.

\`\`\`

git config core.sshCommand "ssh -i \~/.ssh/the-bitbucket-key -F /dev/null"

\`\`\`

After that I was able to successfully push and pull again.


Tags: bitbucket-cloud

cloud
Custom ssh port for bitbucket smart mirror
Asked by tidhar_klein_orbach:

Hi,

I configured a bitbucket smart mirror and I wanted to change its default ssh port (7999).

I couldn't find in the documentation a configuration for it and I was wondering if it's possible and if so how?

Thanks!


Answers:
author: Christian Glockner
body: Hi,

While it's possible to change the port by adding **plugin.ssh.port=\<port number\>** to bitbucket.properties on the mirror, you won't be able to update the SSH base URL for the mirror, so the clone URL that users will see in the UI will not be correct.

We have a feature request for this, <https://jira.atlassian.com/browse/BSERV-8393>. Please vote and comment on it to give it more weight and further express your interest.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: tidhar_klein_orbach
body: Excellent, the property is exactly what I needed.

Thanks!


Tags: bitbucket-server

server
How to view who pulls or clones a repository in bitbucket server?
Asked by mostafa teaima:

How to view who pulls or clones a repository in bitbucket server? and is this possible in some latest versions of bitbucket?


Answers:
author: Christian Glockner
body: Hi Mostafa,

You can do this with Audit Logging, provided you have logging turned on at the Full level. See <https://confluence.atlassian.com/bitbucketserver/audit-log-events-776640423.html#Auditlogevents-Enduseractivitycoveragearea> for details.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
Is it possible to block a user from pulling or cloning a repository?
Asked by mostafa teaima:

* We have 2 projects that contain same file, while a user working on that file and editing it in one project. How can i restrict other users from pulling that file from the other project?
* Or is it possible to view that the file what is being edited in one project is already under development by a user, so other users don't work on it in the other project?


Answers:
author: mostafa teaima
body: Hi team,

Can someone update me on this?

Thanks


Tags: bitbucket-administration

bitbucket-development

bitbucket-server

server
?
Asked by mehmet ?zdemir:

Someone has already added that SSH key to another account.


Answers:
author: Nic Brough -Adaptavist-
body: There's no easy way to work this out because the keys that belong to other accounts should not be shared.

If you shared the key with someone, you should know who. If you were given the key by someone, then you'll need to ask them.

If you have no luck chasing it down, you can raise a support request with Atlassian, and they can search out the key for you and hence identify the account you shared it with.

If you don't want to spend ages chasing down the share, then you can (and should) create a new key for your account and use that instead.


author: mehmet ?zdemir
body: I im deleting other sshkey


Tags: bitbucket-cloud

cloud
How do you use bitbucket pipelines?
Asked by Austin Heggen:

Hello,

I want to ask about Bitbucket pipelines. The answers have to be valid to this day.


Answers:
author: Fadoua
body: [@Austin Heggen](/t5/user/viewprofilepage/user-id/5027773)

Please take a look at the following document then let me know if this is what you were looking for:

<https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-bitbucket-pipelines/>

Best,

Fadoua

comments: author: Austin Heggen
body: Thanks for that, [Fadoua](https://community.atlassian.com/t5/user/viewprofilepage/user-id/655791). It really helped.


Tags: bitbucket-pipelines

cloud
Allow write permission for OAuth Consumer in Branch Restriction Workflow
Asked by Viresh Mathad:

Hello Everyone,

I have setup semantics using OAuth Consumer, everything is working fine.

I do not want my team to commit to master branch by mistake, so want to restrict access to few people but semantic bot needs write access to create the tag.

How can I include OAuth consumer in the list?  

![Capture.PNG](/t5/image/serverpage/image-id/215212iEA30409E8189B23B/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Mark C
body: Hi [@Viresh Mathad](/t5/user/viewprofilepage/user-id/2899617)

Thank you for reaching out to the community.  
Unfortunately, it's not possible to add an OAuth consumer to a branch restriction settings.  
Only users or groups can be added there right now.

As a workaround, if you're using a bot Bitbucket Cloud account, I'd recommend adding the bot account in the branch permission setting and then using basic authentication (e.g. username and [app password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/)) when you use the bot account instead of the OAuth consumer.

Let me know if you have further questions.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
SourceTree Not Responding
Asked by Frank Lichtlin:

We are having issues with the most recent version of SourceTree on Windows 2012R2 server.

It keeps freezing up and NOT RESPONDING without even giving it a task. Just by starting the program. It is consuming CPU and RAM.

Any suggestions?


Answers:
author: Reto B?ttig
body: Same here Windows 10, latest version. SourceTree installed from scratch, just keeps freezing. Even after no and installing the latest 2.x version - just won't work.


author: somethingblue
body: Hi Frank,

* Are you receiving any specific error messages in the UI such as "fetching older commits...?"
* Do you see any memory errors in the [logs](https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html)?
* Does restarting SourceTree resolve the issue?

If you do get a "fetching older commits..." error try the following:
> Go to Tools -\> Options -\> General Tab and set Log rows to fetch per load to 0.

Take a look at the [SourceTree logs](https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html) and see if there are any additional errors that may help identify what's going on and we'll go from there.

Cheers,

Branden
Frequent Crashes
Asked by Nathan Pelton:

Since one of the more recent app updates Source Tree has been crashing frequently (roughly 20 times in a day). Typically the crash occurs when I'm trying to stage changes, or update a repository, or commit changes, or occasionally when I'm not even doing anything in the program. Every time it crashes it reverts my open projects and it's generally really frustrating to use now. Any advice on how to stop it from crashing? I've been submitting the bug reports.


Answers:
author: Nathan Pelton
body: It seems like after the latest windows update the problem has stopped.


author: Manju
body: Could you please specify if this happens on macOS or Windows and provide the links to your bug reports here?

Thanks,  
Manjunath  
Sourcetree Mac Developer

comments: author: Nathan Pelton
body: Sure. I'm using Windows, and I'm not sure how to link the bug reports. They are submitted via the "your program has crashed" interface that comes up after the program crashes. Next time it happens I'll see if there's something to indicate how I'd get a link to it.


author: Nathan Pelton
body: It's crashed a few times since I posted this, but in the bug report UI that pops up I don't see a way to be able to get a link to the bug report. Any suggestions?


Tags: crash
Sourcetree for Mac (2.6.x) sends empty password to Bitbucket Server when Browsing it via REST API
Asked by Yury Petrov:

After upgrade of SourceTree to ver. 2.5.3 and 2.6.3 I cannot browse BitBucket repos anymore. SourceTree shows the error "The operation couldn't be completed. (SDNetDomain error 7."

I've checked this with two BitBucket servers (both running ver. 4.12)

I captured authentication request and noticed that SourceTree doesn't send my password in Basic auth header (as seen it sends only base64-encoded username and colon):

```
GET /rest/api/1.0/users/ypetrov/repos?limit=%32%35 HTTP/1.1

Host: devbitbucket.netsertive.local:7990

Connection: keep-alive

Accept: */*

User-Agent: Sourcetree/134 CFNetwork/760.2.6 Darwin/15.3.0 (x86_64)

Accept-Language: en-us

Authorization: Basic eXBldHJvdjo=

Accept-Encoding: gzip, deflate



HTTP/1.1 401 Unauthorized

Server: Apache-Coyote/1.1

X-AREQUESTID: @X1HX1Kx121x3405x0

X-ASEN: SEN-4920128

WWW-Authenticate: Basic realm="Atlassian Bitbucket"

Content-Type: application/json;charset=UTF-8

Content-Length: 197

Date: Wed, 20 Sep 2017 06:01:12 GMT

{"errors":[{"context":null,"message":"Authentication failed. Please check your credentials and try again.","exceptionName":"com.atlassian.bitbucket.auth.IncorrectPasswordAuthenticationException"}]}
```

I wiped [SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html), then installed latest SourceTree. This didn't help.

Rollback to version 2.4.1 fixed the issue.


Answers:
author: Manju
body: Hi [@Yury Petrov](/t5/user/viewprofilepage/user-id/243107),

I just tried adding a bitbucket server account and was able to get a list of remotes in the repo browser window. I am guessing that there was an issue saving your password while adding the account.

Can you please remove the account from accounts tab in preferences and any keychain item with the given host? And add the account again in preferences. This should ideally work.

Thanks,  
Manjunath  
Sourcetree Mac Developer

comments: author: Yury Petrov
body: That was my initial guess - that something is wrong with keychain. So I removed all entries related to bitbucket servers from keychain - still no luck. I even reproduced the problem on two different OS (Maveriks and El Captain) connecting to two different Bitbucket servers.

Need to note that after downgrade to 2.4.1 or 2.6.2 remote browsing works like a charm.

Is there any logs I can check in SourceTree app?
sourcetree does not start anymore
Asked by Jan Eggers:

hi there my sourcetree doesnt start anymore. i upgraded to 2.3.1 and now it doesnt start. version app-2.1.11 seems to work just fine. i uninstalled and reinstalled but the issue persists.

looking at the log it looks like a bug, trying to show notification before mainwindow is opened.

here is the log:

ERROR \[2017-09-20 07:50:44,347\] \[1\] \[SourceTree.Utils.UpdateHelper\] \[GetSquirrelStagedUserId\] - Couldn't read staging user ID  
ERROR \[2017-09-20 07:51:13,002\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  
ERROR \[2017-09-20 07:51:14,941\] \[1\] \[SourceTree.App\] \[OnStartup\] - Failed to start  
System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)  
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](NotificationDialogWindow notificationWindow, Tuple\`2 customAction, VistaTaskDialogIcon icon)  
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](String title, String message, Tuple\`2 customAction, String cancelLabel, String suppressionSetting, Action\`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)  
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)  
at SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()  
at SourceTree.AppRoot.RunPreFlightChecks()  
at SourceTree.AppRoot.OnStartup(StartupEventArgs e)  
at SourceTree.App.OnStartup(StartupEventArgs e)


Answers:
author: Jan Eggers
body: i installed the old version again and it gives me a warning about invalid dictionaries if i delete them i can install the update afterwards and it starts.

so my issue is fixed but there is a nullpointer exception in startup checks

comments: author: Scott Vitale
body: Worked for me too, thanks!
Permission denied (publickey)
Asked by span12:

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.


Answers:
author: jyo
body: Siva,

Is your public key loaded?

```
ssh-add -l
```

If you're on Windows is Pageant.exe loaded with the correct key?

comments: author: span12
body: Hi Jesse,

In the current environment that I work, I use bitbucket and sourcetree. I usually create a feature branch in bitbucket and then checkout using source tree.

Few days back , I had to change my login password. From that day I was unable to checkout into sourcetree. I tried to delete my local branches, and some how now I am encountered with lot of issues.


author: jyo
body: Siva,

Try and add your SSH key and then try again:

```
ssh-add -K ~/.ssh/span12-Bitbucket
```


author: span12
body: Thanks a ton Jesse.

That is magic. Now I am able to checkout. :):)

Regards,  
Siva


author: jyo
body: No problem! An easier way to do this would be to add an entry to your config file, which would make it so you wouldn't have to add your key upon startup:

1. Create a file named "config" under your \~/.ssh/ directory

2. Add this entry:

    Host *  UseKeychain yes  AddKeysToAgent yes  IdentityFile ~/.ssh/span12-Bitbucket


author: span12
body: Hi Jesse,

I see "config" already in there. Here are the contents :

# --- SourceTree Generated ---  
Host span12-Bitbucket  
HostName bitbucket.org  
User span12  
PreferredAuthentications publickey  
IdentityFile /Users/span12/.ssh/span12-Bitbucket  
UseKeychain yes  
AddKeysToAgent yes  
# ----------------------------

But I don't see " Host \* " should I need to add this ?

Regards,

Siva


author: jyo
body: "Host \*" would set the key to be used with any hosts you connect to. If you're only using the key for Bitbucket Cloud, then your entry is fine.

Here's another example of setting up multiple hosts with the same key file: <https://unix.stackexchange.com/questions/16571/multiple-host-in-ssh-config>
Sourcetree doesn't see one repository
Asked by Tony Lush:

I have installed Sourcetree on Windows, and it can see my personal repositories, but it does not see a client repository that is visible in Bitbucket.

How can I debug that?

Thank you


Answers:
author: Tony Lush
body: I forced the issue bu hitting the "clone in sourcetree" button in Bitbucket, which made it available in Sourcetree.