youngmon/atlassian-qna huggingface dataset:
List all repositories of specific project
Asked by Eyal Goren:

Hi,

How can I detect for specific project which repositories exist in it using an API call ?

I need to implement a process that for specific project displays all the existing repositories.


Answers:
author: Pramodh M
body: Hi [@Eyal Goren](/t5/user/viewprofilepage/user-id/3057588)

Use this API and let me know

```
curl -s -k --request GET --user "username:password" "https://<host>/rest/api/1.0/projects/<projectkey/repos"
```

![Bitbucket API.png](https://community.atlassian.com/t5/image/serverpage/image-id/175180i0CE2D6FA54F18A33/image-size/large?v=v2&px=999 "Bitbucket API.png")

It's working fine for me. Let me know once you use this API

Thanks,  
Pramodh

comments: author: Eyal Goren
body: Yes, this works, thanks!!!

Eyal


author: Pramodh M
body: Hi [@Eyal Goren](/t5/user/viewprofilepage/user-id/3057588)

Using API Ref here

<https://docs.atlassian.com/bitbucket-server/rest/5.15.0/bitbucket-rest.html>

```
curl -s --request GET --user "${username}:${token}" https://stash.atlassian.com/rest/api/1.0/projects/{projectKey}/repos
```

You will get the JSON response from the curl request, which you later extract the data from jq tool

Thanks,  
Pramodh

comments: author: Eyal Goren
body: Hi,

I tried it, it returned nothing-

curl -s --request GET --user "\<user\>:\<token\>" https://\<host\>/rest/api/1.0/projects/\<proj name\>/repos


Tags: atl-gruland

bitbucket-server

server
Remote: error: cannot lock ref 'refs/heads/master' when trying to push commits
Asked by Daryn Clarke:

Hi

I'm getting an error when trying to push local commits (either from VS or SourceTree) to

on private repo <https://bitbucket.org/selfinspect/selfinspect/src/master/>

Remote: Error: cannot lock ref 'refs/heads/master': Unable to create '/opt/micros/data/cvs/vp1435/data/d-549/r-59335549/./refs/heads/master.lock': File exists.  
Remote:  
Remote: Another git process seems to be running in this repository, e.g.  
Remote: an editor opened by 'git commit'. Please make sure all processes  
Remote: are terminated then try again. If it still fails, a git process  
Remote: may have crashed in this repository earlier:  
Remote: remove the file manually to continue.


Answers:
author: Caroline R
body: Hi, [@Daryn Clarke](/t5/user/viewprofilepage/user-id/799290)!

Thank you for reaching out to Atlassian Community!

As we will need to access the repository to remove this lock file, I went ahead and created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Daryn Clarke
body: That's great Caroline, thanks for the quick response.


author: Daryn Clarke
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) I've seen you've been able to resolve this kind of issue before. Is it possible to delete the lock file in question manually as I'm unable to. Thanks.


Tags: bitbucket-cloud

cloud
Azure Devops triggers from Bitbucket are broken ?
Asked by Erwan Lastennet:

Hi,

Since yesterday (maybe), some of our Azure pipelines don't trigger automaticaly when we commit or validate PR on Bitbucket cloud. But some others do...

Is anyone else facing the same problem ?

Is there a link with current incident <https://bitbucket.status.atlassian.com/incidents/r8kyb5w606g5> ?

Thanks

Erwan


Answers:
author: Erwan Lastennet
body: Obviously problem was due to the incident of december 22.


author: Tom Soderling
body: We now have the same problem, since March 10th when this change to the Bitbucket API went into effect: <https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>

Both our CI and PR Validation build triggers are now broken for all branches.

comments: author: mmacagno
body: we have the same issue. PR don't trigger any longer.

Is there a known workaround/solution yet?


author: Charalambos Theodoris
body: Can confirm, we also have the same problem.


Tags: azure

bitbucket-cloud

cloud

devops
Accessing latest pull request on current branch from inside pipeline
Asked by Alexey Vishnyakov:

Good day, Atlassians

Could you please share any expertise about getting information from inside running pipeline? I need to access info written above pipeline's steps, which looks now like on photo below. Mostly I'm interested in information marked with yellow, i.e. pull request # and information, and last merged branch name.

In case I could access linked Jira task (currently ID is blackened with blue paint, but it is there), that could be awesome.

I am using cloud-based bitbucket and self-hosted runners

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/175082i0176BD770D9642C1/image-size/large?v=v2&px=999 "image.png")


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

Hope this [Bitbucket API documentation](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-get) will help you.

Regards, Igor.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

jira
Can't create a branch
Asked by Yuliia Zhylovych:

code error : 403

{  
"message": "Failed to create branch.",  
"data": {  
"key": "HOOK_REJECTED"  
}  
}


Answers:
author: Theodora Boudale
body: Hi [@Yuliia Zhylovych](/t5/user/viewprofilepage/user-id/4683495),

Bitbucket Cloud is having a partial outage which I believe is the reason why you get this error. We are currently investigating this and we have updated our status page:

* <https://bitbucket.status.atlassian.com/>

You can subscribe to updates for this incident via the following link, if you would like to receive an email or text when there is an update:

* <https://bitbucket.status.atlassian.com/incidents/r8kyb5w606g5>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to download a backup before rewriting history and running garbage collection.
Asked by Disorder316:

I have a repo that's over the size limit at 2.1gb. I want to backup the repo before I remove large files because I'm going to have to rewrite a lot of history, but I'm prevented from cloning the repo if it's over 2gb. How do we make a backup before cleaning up the repo?  

Can we have garbage collection run to trim the repo down and then remove additional large files?


Answers:
author: Caroline R
body: Hi, [@Disorder316](/t5/user/viewprofilepage/user-id/2672758)!

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Just in case someone else would like to create a backup, as Git is a distributed version control, any clone/pull of the repository is essentially a copy of your code.

So, in order to make backups of your Bitbucket contents, you can create local backups using clones from Bitbucket, more specifically mirror clones as it copies all your repository references locally. You can achieve this by running the following command:

    git clone --mirror <repoURL>

The --mirror flag clones all branches and commits of the specified repository.

Please note that metadata such as settings and Pull requests wouldn't be part of this backup, you would need to re-create this data from scratch if you lost the repository.

Following our suggestion to clone a repository locally as a mirror, you might have questions on how to turn a mirror repository (bare) into a normal repository (non-bare). For that, you can push the mirror-cloned repository into Bitbucket and then clone it without the mirror flag, it will automatically do that for you.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
Can't Push Code to Master Origin. 504 Error
Asked by Mukul Jauhari:

Hey Community!

We're unable to push latest commit to master origin by the any source. Return 502 Getaway (Time Out). :( :(


Answers:
author: Theodora Boudale
body: Hi [@Mukul Jauhari](/t5/user/viewprofilepage/user-id/4683462),

Bitbucket Cloud is having a partial outage which I believe is the reason why you get this error. We are currently investigating this and we have updated our status page:

* <https://bitbucket.status.atlassian.com/>

You can subscribe to updates for this incident via the following link, if you would like to receive an email or text when there is an update:

* <https://bitbucket.status.atlassian.com/incidents/r8kyb5w606g5>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I'm not able to push to origin
Asked by Ajay:

we are not able to push to origin, we are getting 504 Gateway Time-out. Please resolved this issue as soon as possible.

Thanks


Answers:
author: Theodora Boudale
body: Hi [@Dhirendra Raushan](/t5/user/viewprofilepage/user-id/4683465),

Bitbucket Cloud is having a partial outage which I believe is the reason why you get this error. We are currently investigating this and we have updated our status page:

* <https://bitbucket.status.atlassian.com/>

You can subscribe to updates for this incident via the following link, if you would like to receive an email or text when there is an update:

* <https://bitbucket.status.atlassian.com/incidents/r8kyb5w606g5>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to create branch in bitbucket
Asked by deeptis26:

deept@LAPTOP-GEJFK6OT MINGW64 \~/OneDrive/Desktop/Projects/choira (master)  
$ git checkout choira_release10  
Switched to branch 'choira_release10'

deept@LAPTOP-GEJFK6OT MINGW64 \~/OneDrive/Desktop/Projects/choira (choira_release10)  
$ git push origin choira_release10  
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0  
remote: \<html\>  
remote: \<head\>\<title\>504 Gateway Time-out\</title\>\</head\>  
remote: \<body\>  
remote: \<center\>\<h1\>504 Gateway Time-out\</h1\>\</center\>  
remote: \</body\>  
remote: \</html\>  
To <https://bitbucket.org/inouvelleteam/choira.git>  
! \[remote rejected\] choira_release10 -\> choira_release10 (pre-receive hook declined)  
error: failed to push some refs to '<https://bitbucket.org/inouvelleteam/choira.git>'

deept@LAPTOP-GEJFK6OT MINGW64 \~/OneDrive/Desktop/Projects/choira (choira_release10)


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

Bitbucket Cloud is experiencing an incident which I believe is the reason why you get this error. We are currently investigating this and we have updated our status page:

* <https://bitbucket.status.atlassian.com/>

You can subscribe to updates for this incident via the following link if you would like to receive an email or text when there is an update:

* <https://bitbucket.status.atlassian.com/incidents/r8kyb5w606g5>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Can't push to origin (getting pre-receive hook declined)
Asked by omir:

I'm not able to push to origin. I'm getting the following error message:

*** ** * ** ***

git -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/develop:refs/heads/develop

Pushing to <https://bitbucket.org/afrisight/members-web-app.git>

POST git-receive-pack (617 bytes)

remote:

remote:

remote:

remote:

remote:

remote:

To <https://bitbucket.org/afrisight/members-web-app.git>

! \[remote rejected\] develop -\> develop (pre-receive hook declined)

error: failed to push some refs to '<https://bitbucket.org/afrisight/members-web-app.git>'

Completed with errors, see above

*** ** * ** ***

This never happened before and was always able to push. Anyone who can help?

Thanks!


Answers:
author: Theodora Boudale
body: Hi [@omir](/t5/user/viewprofilepage/user-id/4683438) and [@yagodlt](/t5/user/viewprofilepage/user-id/3101083),

We are currently investigating this issue and we have updated our status page:

<https://bitbucket.status.atlassian.com/>

You can subscribe to updates for this incident via the following link, if you would like to receive an email or text when there is an update:

<https://bitbucket.status.atlassian.com/incidents/r8kyb5w606g5>

Kind regards,  
Theodora

comments: author: omir
body: Thanks for the quick response. I subscribed for updates on this issue and hope it will be resolved soon.


author: yagodlt
body: Getting the same problem here. It's only started happening today and on a repo that I had not pushed to for a few months.

Sorry I can't help, but maybe my having this problem too will raise more interest?


Tags: bitbucket-cloud

cloud

push
Getting error like "Unable to find image 'bitbucketpipelines/aws-s3-deploy:1.1.0' locally"
Asked by Santhosh Kumar R:

How can to know the version of the pipe aws-s3-deploy ?

Getting error like "Unable to find image 'bitbucketpipelines/aws-s3-deploy:1.1.0' locally"

![2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/175055i5F0FE0F438D2FBFC/image-size/large?v=v2&px=999 "2.PNG")

Deployment has stopped.

![1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/175056iBF93289D5D8BF953/image-size/large?v=v2&px=999 "1.PNG")

Can you anyone help me with this issue. Thanks.


Answers:
author: Igor Stoyanov
body: [@Santhosh Kumar R](/t5/user/viewprofilepage/user-id/3447229) hi. Thanks for your question.   
You don't have this image on your local machine, so image started to downloading from docker hub.  
It is not the reason why your pipe fail. Please provide your bitbucket-pipeline.yml config and response or screenshot that contains an error.

Regards, Igor.


Tags: bitbucket-pipelines

aws

bitbucket-cloud

cloud

deployment
Not receiving email to complete 2FA for BitBucket
Asked by sebdel:

Hi,

I'm trying to enable 2FA for my BitBucket account, but I never receive the email.

Is my email blocked? Maybe it's related to this <https://community.atlassian.com/t5/Bitbucket-questions/Not-receiving-email-to-complete-2FA-for-BitBucket/qaq-p/1763663>.


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

Does this concern the Bitbucket Cloud account that has the same email as your community account? I checked in our system and this email does not belong in any suppression list. I also checked our logs for any emails sent to that email address from Bitbucket Cloud during the last 24 hours, and I can see that several emails have been sent and all of them have been delivered to your email server. I cannot see whether any of them are 2FA emails or not though.

Could you please let me know:

1. If the email of the Bitbucket account where you are trying to set up 2FA is the same as the community account you used to make this post?  
2. Is the email perhaps in your Spam folder? The email is sent from notifications-noreply@bitbucket.org  
3. Do you receive any other Bitbucket emails in your inbox (e.g. PR or commit notifications)? I am just trying to understand if the issue seems to be specific to the 2FA email, or if you don't receive any Bitbucket Cloud notification emails at all.

Kind regards,  
Theodora

comments: author: sebdel
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ,

Thanks for the answer.

Sorry, I have a rule in my email box that routes emails from noreply@bitbucket.org to another directory. The mail is there.

Everything is OK now!

Best,

Sebastien


author: Theodora Boudale
body: Hi Sebastien,

Thank you for the update, that's good to hear!

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Log4j JndiManager class in Elastic Search
Asked by Alex Young:

Have updated to the latest Bitbucket 7.19.1 on my Windows server as per Atlassian guidance:

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

However the bundled ElasticSearch in this latest version still contains Log4j-core-2.11.1

I have removed the JndiLookup class file from the jar, but the vulnerability scanner im using is still finding issues:

indicator for vulnerable component found in c:\\Atlassian\\Bitbucket\\7.19.1\\elasticsearch\\lib\\log4j-core-2.11.1.jar (org/apache/logging/log4j/core/net/JndiManager.class): log4j 2.9.0-2.11.2

<br />

indicator for vulnerable component found in c:\\Atlassian\\Bitbucket\\7.19.1\\elasticsearch\\lib\\log4j-core-2.11.1.jar (org/apache/logging/log4j/core/net/JndiManager$1.class): log4j 2.4-2.11.2

<br />

indicator for vulnerable component found in c:\\Atlassian\\Bitbucket\\7.19.1\\elasticsearch\\lib\\log4j-core-2.11.1.jar (org/apache/logging/log4j/core/pattern/MessagePatternConverter.class): log4j 2.10-2.11

<br />

indicator for vulnerable component found in c:\\Atlassian\\Bitbucket\\7.19.1\\elasticsearch\\lib\\log4j-core-2.11.1.jar (org/apache/logging/log4j/core/net/JndiManager$JndiManagerFactory.class): log4j 2.9.1-2.10.0

Do i need to delete the JndiManager class files too to be mitigated from all CVE's related to L4j?

Thanks


Answers:
author: gaxelac
body: I'm in the same situation, removed JndiLookup.class thanks to Apache suggestion because we can't upgrade just now: <https://logging.apache.org/log4j/2.x/security.html>

Where is the source of information establishes that this class is vulnerable?  


Tags: bitbucket-server

cve-2021-44228

server
stash-java-client-core log4j 1.x to log4j 2.17 upgrade?
Asked by Eshwar Sundar:

I see stash-java-client-core latest version uses log4j 1.X.

I am aware log4j 1.X is not vulnerable to the Zero Day vulnerability but still I prefer to upgrade to 2.17

Has anyone found how to this? Is there any work around to make sure log4j 1.X is not being used? I see it is a compile dependency which implies stash-java-client-core requires log4j to work.

Any answer would be really helpful. Thanks


Answers:
author: Urmo Luts
body: Hi

I asked same question from support and i did get this answer:

* Although Jira is using the classic version of log4j but the version shipped with our products is forked, developed, and maintained in-house at Atlassian, so it's not the same Apache EOL version, therefore, not vulnerable by default. This is consistently being maintained and updated by our in-house development team.
* Do not update Log4j manually as this could potentially break the application. Some on-premises products use an Atlassian-maintained fork of Log4j 1.2.17, which is NOT vulnerable to CVE-2021-44228. We have done additional analysis on this fork and confirmed a new - but similar - low severity vulnerability that can only be exploited by a trusted party if you have specific, non-default configurations.

I hope it will help You also.

With best

Urmo


Tags: cve-2021-44228

log4j

vulnerability
I'm not receiving verification emails from Atlassian
Asked by Jonathan Lucas:

Hi, I have set up an email with bitbucket but i have not received the verification email.

\<email_removed\>

Can you have a look into this for me please?

Thanks.


Answers:
author: Theodora Boudale
body: Hi [@Jonathan Lucas](/t5/user/viewprofilepage/user-id/4050054),

I see that you created a support ticket for this issue and it has been resolved there.

Just a heads up, I removed the email from your post to protect your privacy.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Output cli colours in custom action
Asked by S Alers:

Hi,

I have been using git-up through commandline for a while now and decided to make a custom action for it in Sourcetree. Love the possibility to do this however the output does not give cli colours.

I don't mind that there are no colours, but the output is a bit off this way:

Fetching origin

\[1mdevelop \[0m\[32mup to date\[0m

master \[32mup to date\[0m

while in cli it looks like:

Fetching origin

**develop**up to date

master up to date

Is there a way to either process this output to make use of available colours in the sourcetree window, or could these standard CLI colours be incorporated into the output?

Even better, I don't know if this is a feature request yet, but git-up is very handy to rebase all remote branches at once, I think it would be ideal as a feature for sourcetree.

Thanks in advance, love the product!


Answers:
author: Seth
body: I don't think there is a way to enable color support (or even color ignore).

Sounds like you have two good feature requests. Create them at [jira.atlassian.com](http://jira.atlassian.com)and post links here so others can find them and vote them up.

comments: author: S Alers
body: Thanks for the suggestion of creating issues. I have done so:

- Formatted CLI output support ([](https://jira.atlassian.com/browse/SRCTREE-2583)<https://jira.atlassian.com/browse/SRCTREE-2583>)

- Rebase all branches at once ([](https://jira.atlassian.com/browse/SRCTREE-2581)<https://jira.atlassian.com/browse/SRCTREE-2581>)
Bitbucker repository 500 error
Asked by Bahadir Malkoc:

Constantly getting on git console,

- \`504 Gateway Time-out\`,

- The requested URL returned error: 500

- Repository not found

etc. errors on my repository. Right now cannot push anything or even online push. service statuses fine. not sure what to do, as it is not possible to report anywhere. move to github instead?


Answers:
author: chirvasitua
body: This is only to confirm that I am getting this too (as of Dec 22 morning, US Eastern): pushes fail with either

504 gateway timeout

or

502 bad gateway


author: j
body: I am also having problems. Pushing a branch gives me a 502 Bad Gateway.

Trying to Delete a stale branch from the Bitbucket UI and I got "Unable to Delete Branch".


author: Theodora Boudale
body: Hi everyone,

We are currently investigating this issue and have updated our status page:

* <https://bitbucket.status.atlassian.com/>

You can subscribe to updates for this incident via the following link, if you would like to receive an email or text when there is an update:

* <https://bitbucket.status.atlassian.com/incidents/r8kyb5w606g5>

Kind regards,  
Theodora


author: datadiscovery
body: I'm also having the same issue. "502 Bad Gateway" when I'm trying to push to any of my repositories. Using SSH. Yesterday everything was fine.


author: Frank Buijze
body: 13:52 CET same issue 502 or 504


author: Charles REY
body: Same for me 502/504 errors but nothing seems to be wrong here [Atlassian Bitbucket Status](https://bitbucket.status.atlassian.com/)


author: Stefan Prelle
body: Same problem here.


author: Marek Siwiec
body: Same situation. I cannot push to remote. Also when I try eg. remove branch for repository then I got error: *We have failed to delete the selected branches. Please try again!*


author: eaigner
body: Same, can't push. Gateway error 504


author: Edgars Neimanis
body: Same here. Can't push to remote. 502 bad gateway.


author: Tiep Nguyen
body: i got that issue too


author: Wojciech Gajewski
body: Same here, 02:01PM GMT+1


author: Charles REY
body: The incident just appeared here : [Atlassian Bitbucket Status - Bitbucket reliability web and api reliability and performance is degraded](https://bitbucket.status.atlassian.com/incidents/r8kyb5w606g5)


author: George Chailazopoulos
body: Same here


author: Duane Wood - DW !
body: Same here.


author: James Dunn
body: 504 Gateway Time-out here


author: Dmitry
body: 13:56 CET  
Same 504 Gateway Time-out on git push


author: Max Edlund
body: same


author: Adrian Nastase
body: Same for me, **502 Bad Gateway** or **504 Gateway Time-out**.


author: Nehir Poyraz
body: Same. Push fails with 504 in both console and git gui. I could not even create a branch on bitbucket.org


author: sean820816
body: same here


author: antoscenco_v
body: Same here


author: exposebox_ran
body: Same cannot push

504 Gateway Time-out


Tags: bitbucket-cloud

cloud