youngmon/atlassian-qna huggingface dataset:
Restoring repositories long gone
Asked by Code Main:

Hi! I would like to restore repositories that used to be stored in a cloud bitbucket account with urls \[REDACTED\]

They are several years old. As far as I know, those are git repos, not mercurial and I haven't found any mentions of git repos restoration among community threads.

Is there any chance or mechanism repos in this account be brought back? Thanks in advance.


Answers:
author: Ben
body: G'day!

I have taken a look at your workspace and cannot see the specific repository you have mentioned present anywhere on the workspace (I have redacted this for privacy purposes as this is a public forum).

As per our [backup policy](https://confluence.atlassian.com/bbkb/does-bitbucket-backup-my-repositories-1168845079.html), support is only able to restore repositories deleted up until 7 days ago. We also only retain repository deletion logs for a maximum retention period of 30 days - so we are not aware of exactly when this repository may have been deleted. Our backend logs indicate that there have been no repository deletion events for your workspace recorded in the last 30 days.

If the repository was not mercurial - this would have been deleted by a user-initiated destructive action, as our system would never delete customers' repository data as per our policies concerning the protection of user-generated content.

I would suggest checking any local storage/local backups, or any colleague's local storage/local backups and pushing this back up to your remote workspace to restore any data that is stored here.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Code Main
body: Hello Ben,

Well that was expected. Thank you for this clarification anyway. Have a good day!


Tags: bitbucket-cloud

cloud
Can't receive email invitation
Asked by Homa-Creatives:

Hello,

I cannot receive an invitation email to the email address linked to this account. We have checked with the admin and retried sending the invitation multiple times in the past 24 hours to no avail.

Can I receive support on the issue, please?


Answers:
author: Andy Heinzer
body: Hi,

I took a look at your account, I can see that we sent 4 messages that appear to be invites to your address in the past 24 hours. All of these show as delivered from our side. I would recommend checking your spam folder for these invites. If they are still not located there, then I'd recommend reaching out to your mail administrator to see if they can help locate these messages.

Andy

comments: author: Homa-Creatives
body: Thank you for checking! Will refer to our admins then.


author: ahmade
body: [@Andy Heinzer](/t5/user/viewprofilepage/user-id/541137) I've same issue, my team tried to invite me multiple times, but didn't receive any invitation, the only thing I received is Bitbucket welcome email. Can you check please from your end? I've checked the Span folder and contacted our IT guys as well to check.


author: Andy Heinzer
body: [@ahmade](/t5/user/viewprofilepage/user-id/5498420) Found there was a suppression on your account. We received a bounce message when trying to send to your address

|--------------------------|----------------------------------------------------------------------------------------------------|
| 2024-05-15T04:02:36.000Z | 550 Invalid Recipient - <https://community.mimecast.com/docs/DOC-1369#550> \[600Fck9YMxmurz7Mvgx-u |

This causes our system to suppress further notifications to your account. I have cleared this from our side, but if this continues, you might want to reach out to your mail admin with this information.

Andy


author: Marko Hoepken
body: Hi,

we have the same problem.

We are on the free programm (\<10 users). The first 7 worked fine.

We try to add the next account, but it did not receice any email.

Even creating an account DIRECT on Atlassian (outside of our company) did no work.

So I guess, THIS email is also blocked.

[@Support](/t5/user/viewprofilepage/user-id/91897)

I would not like to post the email here (protect privacy), can you contact me directly?

<br />

Thanks Marko


Tags: bitbucket-cloud

cloud
Webhook creation via API ignores credentials.password
Asked by Mike Teegen:

After migrating to Bitbucket v8.9.5 we want to change the API based creation of webhooks by moving the credentials from the URL to basic authentication.

According to [Create webhook](https://developer.atlassian.com/server/bitbucket/rest/v814/api-group-project/#api-api-latest-projects-projectkey-webhooks-post) the JSON should contain a credentials element with username and password.

But with both Postman and our own implementation the password is ignored while the username is set in this way.

```
{
    "name": "Post-Push Webhook",
    "events": [
        "pr:merged",
        "repo:refs_changed"
    ],
    "url": "https://host/api/transformation",
    "credentials": {
      "username": "ws_user",
      "password": "qwertz"
    },
    "active": true
}
```

What's wrong with the password parameter?  
Thanks  
Mike


Answers:
author: Mike Teegen
body: Could be that the API works correctly.

The web UI ('Edit webhook') seems to have a bug because even for a working webhook the password is always lost and the connection cannot be tested after the initial creation.


Tags: bitbucket-server

server
API for Workspace Member Removal
Asked by cm devops:

Is there an API endpoint that allows us to programmatically remove members from a workspace? We want to automate the process of deleting workspace members.


Answers:
author: Theodora Boudale
body: Hi [@cm devops](/t5/user/viewprofilepage/user-id/5276179),

There are two types of user access:

* Group access. The user belongs to a workspace's user group.
* Direct repo access. The user has been added explicitly to a certain repo (not via a user group).

<br />

For group access, if you haven't moved your administration from Bitbucket Cloud to admin.atlassian.com, you can use the groups endpont (see section **DELETE a member**)

* <https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/>

If you have moved your administration from Bitbucket Cloud to admin.atlassian.com, you will need to use the Cloud Admin Rest APIs:

* <https://developer.atlassian.com/cloud/admin/about/>

<br />

For direct repo access, you can use the following endpoint to remove a user from a repo:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-users-selected-user-id-delete>

You can first use the following endpoint to list users that have direct access to each of your repos:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-users-get>

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
An error occurred whilst uploading data to media.
Asked by Ramniwas Chhimpa:

\[2023-10-19 18:10:06,670\] Updating runner state to "ONLINE".  
\[2023-10-19 18:10:28,647\] An error occurred whilst uploading data to media.  
com.atlassian.pipelines.media.client.exception.MediaRequestTimeoutException: Response Summary: HttpResponseSummary{httpStatusCode=408, httpStatusMessage=Request Timeout, bodyAsString=}  
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:  
Error has been observed at the following site(s):  
\*__checkpoint ? 408 from PUT <https://api.media.atlassian.com/upload>


Answers:
author: Theodora Boudale
body: Hi Ramniwas,

You posted here a part of your runner's log. Does the error mentioned in the log occur when a build is running? If so, could you perhaps post the log for the whole build or step (after sanitizing any private/sensitive data)?

We have a 10-minute timeout limit for artifact uploads, so if the step is failing during artifact upload, and the upload takes more than 10 minutes, this is the most likely reason for the error. However, I would need to see the logs for the whole step to verify.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Awaiting response ... 404 not found using Envoyer deployment
Asked by Don Jones:

The folks over at Envoyer.io told me the issue we are having is on Bitbucket's side. This is the error message we are receiving when trying to deploy from Envoyer.

```
Downloading the code repository.Found tarball URL: https://bitbucket.org//xxxxhiddenxxxxx//get/469c1c3e05a83bdaXXXHIDDENXXXXfc2fc1e90e0.tar.gz--2023-10-19 23:54:41--  https://bitbucket.org//xxxxhiddenxxxxx//get/469c1c3e05a83bdaXXXHIDDENXXXXfc2fc1e90e0.tar.gzResolving bitbucket.org (bitbucket.org)... 18.205.93.0, 18.205.93.2, 18.205.93.1, ...Connecting to bitbucket.org (bitbucket.org)|18.205.93.0|:443... connected.HTTP request sent, awaiting response... 404 Not Found2023-10-19 23:54:41 ERROR 404: Not Found.
```

Any tips or ideas I can try?


Answers:
author: Theodora Boudale
body: Hi Don and welcome to the community!

Are you using a **wget** command to get the tar.gz file with the repo's source code?

If so, the most likely reason for this error is that we return a 404 error code for unauthenticated requests. The wget command always waits for the 403 challenge from the server before it sends the credentials to the server. However, our server initially sends a 404 status to the client and wget doesn't send credentials later on.

You can use the **--auth-no-challenge** flag with the wget command to solve this issue.

Alternatively, you could also use **curl** to download the file.

Please feel free to let me know how it goes and if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Source IP for Fetch Host Fingerprint
Asked by Jacob Bushnell:

We are having issues getting our pipeline setup. It appears to be because our webservers firewall blocks port 22 by default.

When I opened the port to all inbound traffic it was able to successfully fetch the fingerprint. However we cannot leave our host exposed on port 22 to the world as that is too risky.

I added ALL the known Outgoing Connections IP ranges from this list here:  
<https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/>  

However even after doing that it still is not allowing BitBucket to Fetch the host fingerprint OR setup Pipelines. We get this error after setup.

```
ssh: connect to host 13.58.160.93 port 22: Connection timed out
```

Are there more IP addresses that are not on the list, or is there a way to identify what IP BitBucket is using to establish the Pipelines?  

Thank you,  
Jacob


Answers:
author: Theodora Boudale
body: Hi Jacob,

You can find the IPs used by Bitbucket Pipelines environments on this page, section **Valid IP addresses for Bitbucket Pipelines build environments**:

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-Bitbucket-Pipelines-build-environments>

You need to whitelist these IP ranges for a successful SSH connection from Pipelines.

Please feel free to reach out if you have any questions!

Kind regards,  
Theodora


author: Jacob Bushnell
body: [@Saxea _Flowie_](/t5/user/viewprofilepage/user-id/5230209) that is interesting... How can I get terminal access to the BitBucket servers? I did not think such a thing was possible!  

I will check into accessing the weblogs to see if I can identify the address in use.

comments: author: Saxea _Flowie_
body: You can't access the terminal. My understanding is that you are trying to access this server via the pipelines? If that is the case you put the command in your pipeline script.


author: Saxea _Flowie_
body: Hi [@Jacob Bushnell](/t5/user/viewprofilepage/user-id/4463017)

You try 'curl icanhazip.com' to double check the ip, but additionally to that, I think it's more reliable to check the firewall logs.


Tags: bitbucket-cloud

cloud
Could not detach head
Asked by Helen Xu:

I have this error when I tried to commit a change on SourceTree and tried to pull or push the change: is there anyone can help me? ![error.jpg](/t5/image/serverpage/image-id/287359i860D24FFE846B17C/image-size/large?v=v2&px=999 "error.jpg")


Answers:
author: Theodora Boudale
body: Hi Helen,

This is the error from the output that indicates the cause of this issue:

```
Filename too long
```

This comes from a limitation in Windows as it does not properly support files and directories longer than 260 characters.

In order to solve this, you can change the Git configuration by executing the following command in a terminal/Git Bash:

```
git config --system core.longpaths true
```

This will apply to all users on the Windows machine and it will allow file paths of 4096 characters.

You can also configure it for your Windows user only with the command

```
git config --global core.longpaths true
```

You can find more info on the following knowledge base article. This article is from Bamboo knoweldge base, but it applies in cases where Bamboo is not used.

* <https://confluence.atlassian.com/bamkb/git-checkouts-fail-on-windows-with-filename-too-long-error-unable-to-create-file-errors-867363792.html>

Please feel free to reach out if you have any questions!

Kind regards,  
Theodora

comments: author: Helen Xu
body: It really helps! Thanks a million!


author: Theodora Boudale
body: That's good to hear and you are very welcome!

Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
Remove account
Asked by Nitin Gupte:

I am having trouble cloning or downloading repo, what are my options?


Answers:
author: Theodora Boudale
body: Hi Nitin!

We would need some additional info so we can better help you.

Could you please let us know:

* Are you cloning the repo via HTTPS or via SSH?
* What is the full output of the clone command?
* Are you trying to clone from a terminal or are you using a Git GUI client?

You also mentioned issues downloading the repo.

* Are you trying to download the repo's source code from browser, from the **Downloads** page of the repo located here <https://bitbucket.org/workspace-id/repo/downloads/>?
* What is the exact error/issue you encounter when you try to download the repo?

Kind regards,  
Theodora


Tags: cloud
Please execute a GC on my repo
Asked by Barnaby Mercer:

We've recently removed a ton of unwanted large files and their history. Repo is much smaller now, but still showing2.2Gb on the origin.

Thanks for your help!


Answers:
author: Syahrul
body: G'day, [@Barnaby Mercer](/t5/user/viewprofilepage/user-id/958373)

I have triggered the Git GC on your affected repository, and the size has been reduced to 192 MB. Could you review it and verify it with me?

Regards,  
Syahrul

comments: author: Barnaby Mercer
body: That's super. It's much better now.

Thank you!


Tags: bitbucket-cloud

cloud
Exclude repo from branch restrictions set in Project settings
Asked by chris_flynn:

Is it possible to exclude a repo from the branch restrictions set in the Project settings? All repos except for one follow the same branch restriction rules. I would like to setup one repo with different branch restrictions, without removing it from the Bitbucket project.


Answers:
author: Theodora Boudale
body: Hi Chris,

I'm afraid that it is not possible to disable branch restrictions inheritance from project settings. If you don't want to move the repo to another project, you can set up the branch restrictions on the repository level for each repo.

We have a feature request for what you are asking in our public issue tracker:

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

I would suggest adding 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 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 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.

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

Kind regards,  
Theodora

comments: author: chris_flynn
body: Thank you very much for your help.


author: Theodora Boudale
body: You are very welcome, Chris. Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
Can migration to Git be executed on server side
Asked by Ed Gow:

I want to migrate from hosted SVN to hosted Git. Unfortunately, I live on the wrong side of a slow network. It will be very painful to import the entire SVN repository to my host, do the conversion, and send it back to Atlassian's host. Can this process be executed entirely on the Atlassian side? Could you make a cloud host available that can perform the migration? Do you provide any scripts that would help in the migration?


Answers:
author: Harry Chan
body: Hi, OnDemand doesn't support Git. If you do need hosted Git, you can take a look at Bitbucket.

Otherwise, you will need to move away from OnDemand and find a 3rd party hosted solution if you still need fisheye/crucible with Git[.](http://www.queryfoundry.com)


Tags: cloud
Fisheye login won't redirect me after entering username and password.
Asked by Jay Barra:

After I put in my username/password it goes to a blank white page and refreshing the will show that I am still not logged in. I have to clear my browsers cache to be able to log in when this happens. It will work normally after I clear the cache but this happens frequently.


Answers:
author: Jay Barra
body: This is a jetty issue with the version that ships with Fisheye 2.X. Supposedly in Fisheye 3 an updated version of jetty will be shipped with it that resolves an issue in jetty 6.


author: Conor
body: You don't say what browser you are using or what version of FishEye you are using. Are you going directly to FishEye or through a webserver such as Apache?

Have you tried other browsers? Do they behave the same way? That would help to know if it is a browser problem (I suspect something odd because clearing the browser cache fixes the issue)


Tags: login
Removing reviewers from crucible
Asked by Raoul Kaiser:

I am using Jira on Demand with Crucible. A review was generated and I was unable to select the participants so it sent it out to everyone. How do I remove the reviewers I don't need?


Answers:
author: Adam Saint-Prix
body: Not sure if this still applies:

<https://confluence.atlassian.com/display/CRUCIBLE023/Removing+Reviewers+From+An+Active+Review>

comments: author: Raoul Kaiser
body: thanks that was the link I was looking for.


Tags: fisheye-crucible-svn-ondemand

jira-cloud
When doing crucible code review, it would be nice to be able to attach an HTML file (such as a report) that is not treated as code to be reviewed but as a document with information pertinent to the review
Asked by Sean deBardelaben:

When doing crucible code review, it would be nice to be able to attach an HTML file (such as a report) that is not treated as code to be reviewed but as a document with information pertinent to the review


Answers:
author: Renjith Pillai
body: You can always attach additional files to the review, but I guess the best way is to use the Objectives section in the Review that is specifically meant for this purpose and it supports Wiki formatting which is great.

<https://confluence.atlassian.com/display/CRUCIBLE/Creating+a+Review+within+Crucible#CreatingaReviewwithinCrucible-Editthereviewdetails>
tag/label individual files in Crucible
Asked by Sasa:

We need a way to tag or label individual files in Crucible.

Is there a mechanism for it?


Answers:
author: SimonS
body: Hi Sasa

I'm afraid it is not possible to tag Crucible files or reviews out-of-the-box. There may be another way to acheive what you are trying to do though - would you mind explaining what you were hoping to accomplish with being able to tag files?

-Simon


Tags: tag
Extract a list of reviewed (or unreviewed) files
Asked by John McComb:

Is it possible to get a list of the files that have been reviewed? We're trying to figure out how to determine our code review coverage. We can get a list of changed files via svn. We'd like to compare that to the files that are contained in one or more reviews.


Answers:
author: John Werner
body: I use a EyeQL query to do this. The query essentially checks for all revisions that are not the HEAD revision on a BRANCH that are in the listed set of reviews (REVIEWID_1 \& REVIEWID_2).

```
select revisions from dir "/BRANCH" where not (in review REVIEWID_1 or in review REVIEWID_2) and not is deleted and is head on BRANCH order by date desc  group by changeset return path, revision, author, date, reviews
```

To get to where you can enter the EyeQL, view your repository under Source. Then select "Search" from the right pane header. Finally select "Switch to EyeQL Search" on the bottom of the left pane.


author: SimonS
body: Hi John,

You can check out the Fisheye Commit Graph, which will show you which changesets have been reviewed, which are currently under review, and which are not reviewed at all:

<https://confluence.atlassian.com/display/FISHEYE/Viewing+the+commit+graph+for+a+repository>

I don't think the list is extractable per se, and it won't show you "file" review status, but it will tell you about changesets.

-Simon
How do I search for Bugs based on the contents of the Code Review field?
Asked by AldeepA:

On the bugs there is "Reviews" tab, how can i search for bugs which does not have code review done?


Answers:
author: SimonS
body: Hi Aldeep,

JIRA doesn't have the ability to query review status out-of-the-box, since that information is delivered from Crucible.

If you are using Fisheye with Crucible, you can view the commit graph which will tell you which changesets have been reviewed and which have not:

<https://confluence.atlassian.com/display/FISHEYE/Viewing+the+commit+graph+for+a+repository>

If you mandate that each commit has a JIRA issue key in the commit message, then this will be as easy as checking the commit graph to see which changesets are not reviewed.

-Simon
Single sign-on between crowd/jira/fisheye not working
Asked by Keith McDuffee:

I've followed all steps noted for establishing SSO between jira/fisheye/crowd and it's not carrying over between applications. I've confirmed authentication is working for each through crowd, but logging into one does not enable the other to also be logged in. I made the changes in jira's seraph-config.xml as well. We're running the latest version of each product.


Answers:
author: JohnA
body: Hi Gudlyf,

There are a number of reasons that SSO could be failing with Crowd, so I would suggest that you start by reviewing this document and checking whether this provides any solutions to the problem: <https://confluence.atlassian.com/display/CROWD/Troubleshooting+SSO+with+Crowd>

The most likely reason is that you haven't set each application to use centralised SSO authentication, as described in the above linked document, but in the event that you still aren't able to find a solution then please open a support tickets so that we can assist you with this implementation.

All the best,  
John