youngmon/atlassian-qna huggingface dataset:
Get 504 Timeout when open one of my repositories.
Asked by Shpy2001:

One of my repositories get 504 when open on web Bitbucket or fetch/push from Sourcetree.

Can see it in list of repositories, just cant open it.

Last update to that repo is 5days ago.

All my other repositories are normally accessible

How can i fix it ?


Answers:
author: Alex Koxaras _Relational_
body: [@Shpy2001](/t5/user/viewprofilepage/user-id/3087742) [@Yahia Alzhrawi](/t5/user/viewprofilepage/user-id/5039090) [@John Smith](/t5/user/viewprofilepage/user-id/3222890)

There is currently a problem with bitbucket. Subscribe here <https://bitbucket.status.atlassian.com/> for more updates.


author: Yahia Alzhrawi
body: Same


author: John Smith
body: same


Tags: bitbucket-cloud

cloud
HTTP 504 error
Asked by w_zhuchenko:

I'm getting HTTP 504 error when trying to access a newly created repository.  
Earlier today I have checked out the repo, and now the push command hung and seemed take forever, so I aborted it. I tried to check in browser if push didn't really failed, but got an HTTP 504 error. At the same time, other repos are accessible. What should I do to resolve this issue?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@w_zhuchenko](/t5/user/viewprofilepage/user-id/5039078)

There seems to be a problem with bitbucket.

Subscribe here <https://bitbucket.status.atlassian.com/> for more updates.

comments: author: Alex Koxaras _Relational_
body: [@w_zhuchenko](/t5/user/viewprofilepage/user-id/5039078) kindly mark my answer as accepted, in order to help others! Thank you.


author: cmdepicciotto
body: Hello! How are you? I am having the same problem. It seems that it is a Bitbucker server side issue.

comments: author: w_zhuchenko
body: Hello! Yes, this seems to be a massive problem. A lot of similar questions have been posted in the past hour


author: John Smith
body: Something is up with bitbuckets side, spent a while debugging but its their server

comments: author: w_zhuchenko
body: Seems like it is


Tags: bitbucket-cloud

cloud
Stuck at Cloning into at git bash
Asked by Hossam Hamdi:

Suddenly can't clone or push. It's stuck and even there is no error.

Screenshot below:

<https://prnt.sc/9e3UmN32b-8l>


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Hossam Hamdi](/t5/user/viewprofilepage/user-id/5039073) and [@skfriese](/t5/user/viewprofilepage/user-id/2073777)

There is a problem with bitbucket. See here <https://bitbucket.status.atlassian.com/> for more updates.


author: skfriese
body: Same issue here:

<https://community.atlassian.com/t5/Bitbucket-questions/Cannot-perform-any-remote-Git-commands-to-BB/qaq-p/2144475>


Tags: bitbucket-cloud

cloud
git clone fails (HTTP/2 stream 5 was not closed cleanly before end of the underlying stream)
Asked by jeikki:

After a rebase and force push to a feature branch no one from the team is no longer able to clone the repository.  

Git log

```

fatal: unable to access 'https://bitbucket.org/<organisation>/<project>.git/': HTTP/2 stream 5 was not closed cleanly before end of the underlying stream
```


Answers:
author: Alex Koxaras _Relational_
body: Hey all,

There is a known problem with bitbucket. Follow this link <https://bitbucket.status.atlassian.com/> for more updates.

comments: author: PETERGABRIEL
body: ok


author: PETERGABRIEL
body: IF I CAN ASK WHY MY CLONE GIT REFUSED TO WORK


author: skfriese
body: Same issue here:

<https://community.atlassian.com/t5/Bitbucket-questions/Cannot-perform-any-remote-Git-commands-to-BB/qaq-p/2144475>


author: CrawfordW
body: Also getting this:  
fatal: unable to access '<https://bitbucket.org/woodmandesigns/new-sm4-frontend.git/>': HTTP/2 stream 5 was not closed cleanly before end of the underlying stream


Tags: cloud

git

http
Someone has already added that SSH key
Asked by Nizar Al-Bahri:

When i try to add my SSH key to my account I get an error

"Someone has already added that SSH key"

How can I know what account is using this key?


Answers:
author: Caroline R
body: Hi, [@Nizar Al-Bahri](/t5/user/viewprofilepage/user-id/5038816), welcome to Atlassian Community!

As we will need to know the public ssh key to further investigate this case, I have 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 feel free to let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Nizar Al-Bahri
body: Thank you [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) , I have received an email with a ticket number from bitbucket support system. I'll follow up on the ticket then.


author: Fabio Racobaldo _Herzum_
body: Hi [@Nizar Al-Bahri](/t5/user/viewprofilepage/user-id/5038816) ,

welcome to the Atlassian community!

my suggestion is to raise a support ticket to Atlassian team (<https://support.atlassian.com/contact/>)

As per this thread (<https://community.atlassian.com/t5/Bitbucket-questions/Someone-has-already-added-that-SSH-key/qaq-p/1998707>) Atlassian can perform a check on your cloud instance.

Hope this helps,

Fabio

comments: author: Nizar Al-Bahri
body: Hi [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) ,

thank you for your reply.

I have used the first contact link you provided, it showed me at the end 2 options to "View Documentation" or "explore community" hence my question here.


Tags: bitbucket-cloud

cloud
Pipeline with scan an image and then push docker image to ACR
Asked by Jamal Ashraf:

I would like to add scanner to scan an images during my pipeline and then push that image to Azure Container Registry. Would anyone please help me in this regard or someone has some solution for this problem? So for reference i have shared two solutions. If anyone has some sort of solution recommendation, it is welcome. Please share that. Otherwise anyone can transform the below solutions for**BitBucket Pipeline PLEASE..**

**Solution for GitHub:**

<https://www.letsdevops.net/post/letsdevops-build-docker-image-scan-and-push-to-acr-ci-cd-using-github>

**Solution for GitHub (from MICROSOFT) but expensive**

<https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-containers-cicd>


Answers:
author: Bo Christensen
body: H [Jamal Ashraf](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5038808)i, I read that you seems to have the same problem as me, thus I hope you found a solution and you are able to help me?

I have tried to solve this problem but have failed.

I need to build a docker image using bitbucket-pipelines and ACR.

I need examples of how to write the bitbucket-pipelines.yml

using 'az acr build' and how to push the image into ACR.

Regards

Bo Christensen

Email: huskatskrivetilmig@hotmail.com


author: Mark C
body: Hi [@Jamal Ashraf](/t5/user/viewprofilepage/user-id/5038808),

Welcome to the community.

For scanning Docker image vulnerabilities, we partnered with [Snyk](https://bitbucket.org/blog/security-code-scanning) that can achieve that.  
Having said that, you can check the following links below that may help and get you started with Bitbucket Cloud Pipelines + Snyk integration.

* [Bitbucket Pipelines integration](https://docs.snyk.io/integrations/ci-cd-integrations/bitbucket-pipelines-integration-overview)
* [Application Scanning in your pipeline](https://docs.snyk.io/more-info/getting-started/atlassian-integrations/atlassian/devops-pipeline-with-bitbucket-cloud-and-kubernetes/module-2-bitbucket-pipelines/application-scanning-in-your-pipeline)

Hope it helps and do let me know if you have further questions.

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
package.json files field is ignored in Bitbucket npm publish pipeline
Asked by Justin George:

Trying to publish to private npm repo from bitbucket. The bundle is built and added to a folder called ***dist.***

```
image: node:14

pipelines:

default:

 - parallel:

 - step:

name: Build and Test

caches:

 - node

script:

 - npm install

 - npm test

 - step:

name: Lint the node package

script:

 - npm install eslint

 - npx eslint .

caches:

 - node

branches:

master:

 - parallel:

 - step:

name: Build and Test

caches:

 - node

script:

 - npm install

 - npm run build

 - step:

name: Security Scan

script:

# Run a security scan for sensitive data.

# See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security

 - pipe: atlassian/git-secrets-scan:0.5.1

 - step:

name: Deploy to Production

deployment: Production

script:

# Bump versions before publishing

 - npm --no-git-tag-version version "2.0.$BITBUCKET_BUILD_NUMBER" -m "Upgrade to new version"

# Publish package

 - pipe: atlassian/npm-publish:0.3.2

variables:

NPM_TOKEN: $NPM_TOKEN
```

Problem is that publishing to npm, **dist folder**is not published.

Folder structure after building (locally and expected)

```
- package-name
  - dist
   - index.ts
  - package.json
```

But with the Bitbucket pipeline, only package.json is added to the package, and dist is ignored.   

Inside package.json, I've added the property

```
"files": [
  "dist"
]
```

According to [npm docs](https://docs.npmjs.com/cli/v8/configuring-npm/package-json#files) , files always take precedence over gitignore and npmrc.   

Verified with **npm publish --dry-run**locally to make sure the right files are built. And it is working fine in that case.

I was able to make it work by adding entries in npmignore files (not adding dist in npmignore and adding in gitignore). But this creates a lot of redundancy.   

**Will [Bitbucket pipeline](https://bitbucket.org/atlassian/npm-publish/src/master/README.md) consider files attribute in package.json?**   


Answers:
author: Igor Stoyanov
body: [@Justin George](/t5/user/viewprofilepage/user-id/4226568) hi.Thanks for question. Try to use folder parameter according to the docs:

```
script:  - pipe: atlassian/npm-publish:0.3.2    variables:      NPM_TOKEN: $NPM_TOKEN      FOLDER: 'dist'
```

Regards, Igor

comments: author: Justin George
body: Needed a few changes to get this working.

- Used **artifacts** to retain the **dist** folder

- used **LOCAL_PATH** instead of **FOLDER**


author: Mladen Or?oli?
body: would you post a whole example pleae, not sure what would artifacts part look like  
EDIT:   
figured it out, and if it'll help anyone else :  
branches:  
production:  
- parallel:  
- step:  
name: Build and Test  
caches:  
- node  
script:  
- npm install  
- npm run rollup  
- npm test  
artifacts:  
- dist/\*\* \<\<\< the artifacts part

<br />

<br />


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

npm
Government Sales
Asked by rich_shealer:

I've sent three messages over the last month and a half to the Government contact request page and have not received a response email or call. I'm about to give up.  

<https://www.atlassian.com/government/contact>  

Any suggestions on contacting Atlassian? If they are this hard to reach trying to give them money I worry that support will be terrible in general.


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@rich_shealer](/t5/user/viewprofilepage/user-id/3280415) ! Welcome to the Atlassian Community!

I work for an Atlassian Solutions Partner. For Government sales, we work with Carahsoft. Maybe you can contact them with your query?

<https://www.carahsoft.com/>

comments: author: rich_shealer
body: Thank you. I'll give them a try.


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

Apologies for the delay you have experienced.

I have reached out internally so that we look into your contact and issue and get you connected to the correct teams.

Did you fill in this form using the same email as the email of your community account?

Kind regards,  
Theodora

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

I have talked with the Government Team and we cannot find any request from the email of your community account.

Please let me know if you used a different email in the contact form.

If so, could you please log in to <https://community.atlassian.com/> with the email you used in the contact form, and then leave a reply to my answer here?

I will then be able to view that account's email so we can check for requests from that email.

Kind regards,  
Theodora


author: rich_shealer
body: Thank you for getting back to me.  

I simply sent requests at the contact link that I posted in my original post. If you aren't finding it I would suggest there may be a problem with the page. I used Chrome on a PC.  

Carahsoft put me in touch with Gavin Hockett \<email_removed\>.

He told me:

*"We do not currently have a separate government cloud and are in the process of having a Fedramp Moderate approved Cloud in FY24."*

That answers my reason for contacting at this point.


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

Thank you for your reply, we are looking into whether there is a problem with the contact form.

It's good to hear that you got in touch with someone from Atlassian and that your question was answered.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot perform any remote Git commands to BB
Asked by skfriese:

Cannot perform remote commands to BB via Git Bash this morning (\`fetch\`, \`pull\`, etc). CLI just hangs on \`git-remote-https.exe\`.

Already checked the BB status, and while it states that all services are operational, this issue is occurring on two separate machines. I've installed the latest version of Git, and have ensured credentials are refreshed.  

The error which finally appears:
> fatal: unable to access '[https://bitbucket.org/\*\*\*/\*\*\*.git/](https://bitbucket.org/***/***.git/)': HTTP/2 stream 5 was not closed cleanly before end of the underlying stream


Answers:
author: Alex Koxaras _Relational_
body: [@skfriese](/t5/user/viewprofilepage/user-id/2073777) [@ggree1](/t5/user/viewprofilepage/user-id/2850991) [@RyteGate](/t5/user/viewprofilepage/user-id/4888528) [@ilvito](/t5/user/viewprofilepage/user-id/1835672) [@cursed](/t5/user/viewprofilepage/user-id/5039089)

There is a problem with bitbucket. See here <https://bitbucket.status.atlassian.com/> for more updates.

comments: author: skfriese
body: Thanks for the update, Alex!


author: Alex Koxaras _Relational_
body: Kindly mark my answer as accepted, in order to help others! Thank you.


author: Negi Paras
body: [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) By when this issue will be fixed? Is there any workaround for it?


author: Alex Koxaras _Relational_
body: [@Negi Paras](/t5/user/viewprofilepage/user-id/5039149) Atlassian investigate this. Currently this is not know and since i'm not part of Atlassian, it will be kinda difficult to know this ahead of you. Best is to watch the status.


author: Negi Paras
body: [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) Thanks for the update!


author: knroy
body: Facing the same issue.


author: cursed
body: Experiencing the same issues, cant push, pull or fetch :(


author: Alexander Prietl
body: We are having the same problem. Two different machines, two different networks.


author: ilvito
body: Same issue here with different accounts and networks

comments: author: RyteGate
body: Experiencing the same issue here


author: ipeyeDeveloper
body: Same problem:  
fatal: unable to access: HTTP/2 stream 3 was not closed cleanly before end of the underlying stream


author: ggree1
body: Same with my local machine or oracle cloud vm too.


Tags: bitbucket-cloud

cloud
Bitbucket pipeline URL
Asked by Krishna Kumar Singhal:

I need to fetch the test reports generated and for that I need to fetch the artifacts but I can't find from where this UUID is being generated:

pipelines/results/11/steps/**%7B79920d42-8222-4cc8-9d7e-c9d1be5631cd%7D**

I have tried, pipeline UUID, steps UUID and other available uuids.


Answers:
author: Krishna Kumar Singhal
body: Turns out it is step UUID only


Tags: bitbucket-cloud

cloud
Create a new Workspace Runner in Bitbucket
Asked by manoj kumar:

Hi Team,

I am following below article for workspace runner in Bitbucket. My Runner is showing online but I am getting below error while executing the Bitbucket-pipeline. Please help and suggest.

URL which I am referring:

<https://itgcommerce.com/how-to-run-self-hosted-bitbucket-pipelines-runners-in-kubernetes/>

Error which I am getting while running the simple pipeline.  

##### **Error** {#toc-hId--1621060940}

**Status 400: {"message":"OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting \\"cgroup\\" to rootfs at \\"/sys/fs/cgroup\\" caused: stat /sys/fs/cgroup/freezer/kubepods-besteffort-podb050d4ff_1107_4c37_8ec2_32387c8f192c.slice:cri-containerd:dc51ef68c3d645739fb09db724d8c85b53a50ce108068bc44b11c92b1ef09574/docker/6c6131fb8c05fbd8b2f0ef6b29f2dc7631a41a2c61955230fa28731fd1167668: no such file or directory: unknown"}**

Pipeline code.  
pipelines:  
custom:  
pipeline:  
- step:  
name: Step1  
runs-on:  
- 'self.hosted'  
- 'linux'  
script:  
- echo "This step will run on a self hosted runner with 32 GB of memory.";  
**GCP K8s cluster.**  
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME  
k8s-master Ready control-plane 8d v1.25.0 X.X.X.X \<none\> CentOS Linux 7 (Core) 3.10.0-1160.76.1.el7.x86_64 containerd://1.6.8  
k8s-node-01 Ready \<none\> 8d v1.25.0 10.X.X.X.X \<none\> CentOS Linux 7 (Core) 3.10.0-1160.76.1.el7.x86_64 containerd://1.6.8  
k8s-node-02 Ready \<none\> 8d v1.25.0 X.X.X.X \<none\> CentOS Linux 7 (Core) 3.10.0-1160.76.1.el7.x86_64 containerd://1.6.8  
Regards,  
Manoj Kumar


Answers:
author: Caroline R
body: Hi, [@manoj kumar](/t5/user/viewprofilepage/user-id/5038264), welcome to the community!

I would recommend you follow the example of Kubernetes spec for a self-hosted runner that we have in our official documentation:

* [How do I setup Pipelines Runner with Kubernetes?](https://support.atlassian.com/bitbucket-cloud/docs/pipelines-runners-frequently-asked-questions/#How-do-I-setup-Pipelines-Runner-with-Kubernetes)

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Pipeline not triggered when pushing multiple tags
Asked by Yulong Ruan:

I have a monorepo setup that contains a set of projects. When start a new release, multiple projects will get released at one time.

That means we will do version bump and tagging for the projects at one time, then we have bbpl configured on the tags that run the release steps accordingly.

**But we noticed that the pipeline configured on tags never gets triggered if multiple tags are pushed at one time(6 in my case).** I have to manually push the tags in sequence to get the pipeline triggered.

Is there a bitbucket configuration to turn off this constraint?


Answers:
author: Theodora Boudale
body: Hi [@Yulong Ruan](/t5/user/viewprofilepage/user-id/3793262),

This is by design. Accidentally triggering build pipelines can quickly use up your build minutes. To prevent this, we don't run any pipelines for pushes that involve more than five tags or branches. See below the section "Push limits":

* <https://support.atlassian.com/bitbucket-cloud/docs/limitations-of-bitbucket-pipelines/>

I'm afraid there is no way to turn this off at the moment. We have a feature request about the ability to opt out of this limit:

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

I would suggest voting (by selecting **Vote for this issue**) and commenting on it to give it more weight and further express your interest.

In the meantime, if you push up to 5 tags at a time pipelines builds should run.

Kind regards,  
Theodora


Tags: bitbucket-pipelines

cloud
How to revoke access to repository to users and groups after sometime?
Asked by Dev Joshi:

Hi,

I would like to know how to revoke all the access given to users and groups(except Admins) for a particular repository if that's possible.

This is a feature in GitLab which has expiration date field after which the access to that repository will be revoked for that particualar user. I would like to know if that can be mimicked in BitBucket or not

Thanks


Answers:
author: Syahrul
body: Hey Dev,

Welcome to the community.

It's pretty simple to revoke groups or user access for a specific repository. This can be done via the repository settings or under the Workspace group settings.

We have an existing KB for this at:

* [Update user or group access for a repository](https://support.atlassian.com/bitbucket-cloud/docs/grant-repository-access-to-users-and-groups/#Update-user-or-group-access-for-a-repository)

As for the expiring access grant, I believe Bitbucket doesn't have this option available yet but do let me know if you interested to raise a feature request I can help you with that.

Cheers,  
Syahrul

comments: author: Dev Joshi
body: Hello, Syahrul. Thank you for your prompt answer.

Yes, if this function is ever included into Bitbucket, I would love to have it because it satisfies the needs of our business. Could you kindly inform me how to create a feature request ticket?

Peace,

Dev


author: Syahrul
body: Hi Dev,

Only Atlassian can create the feature request for now.

Nevertheless, can you share with me what is your expectation and why this will help your business need?

Having this information would help me to build a good case for the feature request.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Unable to locate bundle-plugins dir on Bitbucket Server
Asked by Mousa Ebrahimi:

Hi

As a part of resolution to fix Bitbucket plugin is to clear the cache and the instructions in documentation says

1 Stop bitbucket service

2 Backup or remove following dirs

bitbucket_home/plugins/.bundle-plugins/

bitbucket_home/plugins/.osgi-cache

3 Restart Bitbucket

I managed to find the .osgi-cache (hidden) dir but not able to locate bundle-plugins.

Is it good enough to remove osgi-cache and restart Bitbucket? or any advise where I should look for bundle-plugins?

Please note this is Bitbucket server not cloud

Thank you

Moses


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Mousa Ebrahimi](/t5/user/viewprofilepage/user-id/4996618) ,

in the latest versions, it is enough to delete .osgi-cache (<https://confluence.atlassian.com/bitbucketserverkb/bitbucket-server-does-not-start-unable-to-clean-the-cache-directory-779171207.html>)

Try and let us know,

Fabio

comments: author: Mousa Ebrahimi
body: Hi [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528)

Thank you for your reply, I renamed the .osgi-cache to -old and then restart the Bitbucket application.

It recreated the .osg-cache again and start successfully, however the SonarQube plugin status on repos still shows "Unknown".

Not sure if there is anything else I could try?

Thank you

Moses


Tags: bitbucket-server