youngmon/atlassian-qna huggingface dataset:
Self-hosted Docker Runner using custom images times out or no such image found (404)
Asked by Casey Local:

I have setup the Docker Runner on a Redhat 8 instance. When executing a simple pipeline, it eventually appears to time out or return a no images found message. Is the following correct? Do I need to define the location of the images, all of which are in Docker Hub?

I'm also seeing the following message on occasions during step1:

"Timed out after 5 minutes waiting for 2 remaining services to be ready"

```
definitions:
```

```
  services:
```

```
    docker-php74:
```

```
      type: docker 
```

```
      image: php:7.4.33-fpm
```

```
    docker-node-erbium:
```

```
      type: docker 
```

```
      image: node:erbium
```

```
      
```

```
pipelines:
```

```
  default:
```

```
    - step:
```

```
        name: Step 1
```

```
        runs-on: 
```

```
          - self.hosted
```

```
          - linux
```

```
        services:
```

```
          - docker-php74
```

```
        script:
```

```
          - docker info
```

```
    - step:
```

```
          name: Step 2
```

```
          services:
```

```
            - docker-node-erbium
```

```
          runs-on: 
```

```
            - self.hosted
```

```
            - linux
```

```
          script:
```

```
            - docker info
```

```
            - echo "This step will use the defult docker service defenition.";
```


Answers:
author: Theodora Boudale
body: Hi [@Casey Local](/t5/user/viewprofilepage/user-id/5080931) and welcome to the community.

You don't need to define the location for Docker Hub images. I suspect that the Docker images you are using may not be dind images, resulting in this error.

Can you try using the **docker:dind** image instead and see if your build succeeds?

I am also unsure why you are trying to use php and node images in the Docker service. If you want to use these images as a build container, you can use them in the definition of each step instead. You could try e.g. something as follows:

```
definitions:
  services:
    docker:
      type: docker 
      image: docker:dind

pipelines:
  default:
    - step:
        name: Step 1
        image: php:7.4.33-fpm
        runs-on: 
          - self.hosted
          - linux
        services:
          - docker
        script:
          - docker --version
    - step:
        name: Step 2
        image: node:erbium
        runs-on: 
          - self.hosted
          - linux
        services:
          - docker
        script:
          - docker info
```

Kind regards,  
Theodora

comments: author: Felipe Rodriguez
body: Thanks Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker

server
How to add all repositories to a new group
Asked by Romeo Bollen:

How can I add all of our 600+ repo's to a new group without clicking them one by one?


Answers:
author: Theodora Boudale
body: Hi [@Romeo Bollen](/t5/user/viewprofilepage/user-id/3844198),

I'm afraid that we don't have the option to select all repos when adding them to a group at the moment. We have a feature request about it that you can vote for: <https://jira.atlassian.com/browse/BCLOUD-21289>

In the meantime, the repositories need to be manually selected in the UI.

Another option would be to use our API. You can use the following endpoint to get all repositories in a workspace:

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

Then, use the following endpoint for each repo to provide access to the group:

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
A Jira Cloud user can't log in to BitBucket using Accept Invitation email
Asked by Robert Wi?niewski:

New Jira Cloud account was created for user. Everything seems fine, user can log in to Jira. After that an invitation to join BitBucket repository was sent. User received a proper email, clicked "Accept invitation" button and the log in page of BitBucket appeared. On this page the email address of the user is already filled in. User enters the password (same as for Jira) and page "Almost done" shows up. Email address is still visible but there's now also a required box "Username" on the screen. And no matter what he types in this box he can't log in to BitBucket because "Username already exists".

User did not have an account on BitBucket before. He's not on the members list in BB.

We have a Standard Plan of BitBucket.

There was no such problem for 50+ other users.

Clearing cookies and opening the invitation link in incognito window doesn't work. Same story happens (checked on Edge, Chrome, Firefox).

New invitations were sent plenty times.

I also tried a method of deleting a Jira account and creating a new one - didn't work.

I ran out of ideas how to fix it.

Any idea how to take care of it?


Answers:
author: Ben
body: Hey Robert,

If a user does not already have a Bitbucket Cloud workspace - the invitation email is essentially forcing them to sign up for a Bitbucket Cloud workspace first before granting them access. They will need to enter a unique username (if one is already taken, try adding underscores/numbers after) to be able to create their personal workspace using this username.

Once the workspace has been created and they are logged into it, they will need to click the link in the email again to actually accept the invite and grant access.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Robert Wi?niewski
body: Hi Ben,

Thank you for your answer. It helped! Problem was to find unique username for this specific user. We checked plenty of names but finaly we found an unused one.

Thanks again!

Greetings!

- Robert.


author: Ben
body: Hey Robert,

No worries! Glad to hear that this helped you out :)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Garbage Collection
Asked by Jay Requarth:

Hello - I know there is automatic garbage collection, but we just removed quite a bit of storage (nearly 2 GB) from our repository and it looks like garbage collection can take up to 30 days to run automatically.

Would it be possible to run a manual garbage collection against the ending in "Suite" repository associated with my account please?

Thanks

Jay


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

I checked the repositories you have access to and confirmed that the "Suite" repo was over 2GB, so I run a GC against it, but the size didn't change.

In this case, I created an internal ticket with our support team, so we can access this repo through the server and check if there are any large files there.

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


author: Robert Wen_ReleaseTEAM_
body: Hello [@Jay Requarth](/t5/user/viewprofilepage/user-id/5080664) ! Welcome to the Atlassian community!

Let me see if I can get the attention of an Atlassian.


Tags: atl-rvw

bamboo

bitbucket-cloud

cloud
Bitbucket merge using REST calls
Asked by Pranamya B:

We have 2 Bitbucket instances with data center license and are trying to import project, repository of one into the other following <https://confluence.atlassian.com/bitbucketserver0721/export-and-import-projects-and-repositories-1115666538.html>.

While the export works fine, the import doesn't. Even after specifying the correct path to exported tar file, it doesn't pick the file/path. Screenshot of the error is attached.

![Bitbucket.JPG](/t5/image/serverpage/image-id/226013iDE4C207E9A35D075/image-size/large?v=v2&px=999 "Bitbucket.JPG")

Bitbucket version =v7.21.4

$BITBUCKET_HOME = /var/atlassian/application-data/bitbucket

Location of tar file = /var/atlassian/application-data/bitbucket/shared/data/migration/import/

Unable to figure out why the import job is not picking the file correctly.


Answers:
author: Pranamya B
body: We were able to sort out the issue. Turns out the instance we were trying to import the file into did not have Bitbucket running. Just to add, we used Postman for import instead of running curl command on CLI.


Tags: bitbucket-server

server
Revoke oauth authorization api
Asked by Karthikeyan:

In bitbucket, i have created oauth consumer \& implemented authentication flow (Authorization Code Grant)

<https://developer.atlassian.com/cloud/bitbucket/rest/intro/#1--authorization-code-grant--4-1->

After some point of time, if user wants to revoke this authorization it can be achieved in bitbucket website (attached img reference)

![revoke.png](/t5/image/serverpage/image-id/225990iD47D50C4C1317ECC/image-size/large?v=v2&px=999 "revoke.png")

But I couldn't find the rest api document to revoke the authorization from my application..

I can see similar questions raised in the community

* <https://community.atlassian.com/t5/Bitbucket-questions/Revoke-OAuth-integrated-applications-via-Bitbucket-API/qaq-p/828471>
* <https://community.atlassian.com/t5/Bitbucket-questions/How-to-revoke-Oauth-applications-via-API/qaq-p/1307149>
* <https://community.atlassian.com/t5/Jira-questions/How-can-I-programmatically-revoke-access-to-an-Oauth2-app/qaq-p/1217541>
* <https://community.atlassian.com/t5/Confluence-questions/Revoke-access-token-app-via-API/qaq-p/1128713>

Kindly assist me to fix this..

Regards,

Karthikeyan


Answers:
author: Ben
body: Hey Karthikeyan,

Unfortunately - there is no method for revoking OAuth tokens in our REST API, only generating them.

At this stage, the only way to do so is via the UI.

I have raised a formal feature request to our developers on your behalf, you can find this ticket below:  
<https://jira.atlassian.com/browse/BCLOUD-22302>

Feel free to "Watch" this to receive future updates and "Vote" for it to increase its visibility in regard to customer demand.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I can't add ssh key
Asked by Alexander Morozov:

I'm trying to add an ssh key. I write a form for adding a key, click the add key button, but nothing happens


Answers:
author: Syahrul
body: Hey [@Alexander Morozov](/t5/user/viewprofilepage/user-id/5080595)

G'day, and welcome to the community!

Are you following the guide [here](https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/), and when adding the key, it does nothing? If yes, can you try it on a different web browser to ensure it's not a browser-specific issue or in an incognito window, and let me know how it goes?

Cheers,  
Syahrul


Tags: cloud

ssh-key
Fonts are not displaying properly on confluence site
Asked by Einar Skaland:

We have a confluence based web page who seems to have lost its icons somehow.

Images show as only empty squares (see below). I also see some issues with downloading font in the console (see below).

Anyone know what might be going on here?

![confluence1.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/225983i2A3D0B3C50DCEB2B/image-size/large?v=v2&px=999 "confluence1.JPG")![confluence2.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/225984i4FDFA47F73CF6F74/image-size/large?v=v2&px=999 "confluence2.JPG")


Answers:
author: Steven Mustari
body: I remember something similar to this happening to me previously many years ago. I want to think it had to do with a security setting somewhere maybe even in the browser. It's been a few years so that may not be helpful.

Does it do this for all users, in all browsers? Have you tried incognito/private browsing and the usual first suspects of clearing cache ect?

comments: author: Einar Skaland
body: It does happen for all users and for all browsers.

I tried incognito mode right now, and the same thing happened there.

I have also tried to clear the cache, and again the same layout appeared.


Tags: bitbucket-server

confluence

server
Create A PR from cli or postman
Asked by Amir Shaikh:

I found some old blogs which seem to be irrelevant can someone provide me/point me towards a working example of creating PR's from cli or postman.


Answers:
author: Charlie Misonne
body: Hi! Welcome to the Atlassian Community.

I do not have a working example but if you follow the REST API documentation and provide a value for the parameters it should work.

Did you try this already and are you having issues with it?

--\> [Create a pull request](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-post)


Tags: bitbucket-cloud

cloud
Self-hosted runner ECR OIDC/ApiKeys Queued
Asked by Roberto Silva:

Good morning,

I'm having a problem when I try to setup a build step on a self hosted runner running on docker.

I'm trying to pull an ECR image from my aws account with:  

image:  
name: XXXX.dkr.ecr.eu-central-1.amazonaws.com/image:version  
aws:  
access-key: $AWS_ACCESS_KEY  
secret-key: $AWS_SECRET_KEY  
but the job remains queued and is not executed.  
It also happens with OIDC setup:  

image:  
name: XXXX.dkr.ecr.eu-central-1.amazonaws.com/image:version  
aws:  
oidc-role: $AWS_OIDC_ROLE_ARN  
If i change the image to a public one, it works without problem on the self-hosted runner.  
Is there any bug with this setup?


Answers:
author: Mark C
body: Hi [@Roberto Silva](/t5/user/viewprofilepage/user-id/5080324),  

Welcome to the community.  

Would you be able to confirm if the private image is accessible locally?  
Also, could you confirm as well if Bitbucket Cloud Pipelines is allowed to pull the image?

Regards,  
Mark C


Tags: aws

bitbucket-cloud

bitbucket-runners

cloud
atlassian/ssh-run:0.4.1 running a script file wont export variables
Asked by Maxim Andersen:

Hi,

I am running a .sh script inside atlassian/ssh-run:0.4.1 runner framework. In that script I would like to define local variables and/or export them, to be used later in the same script. However, the framework does not let me do that. Both local and exported variables are undefined when I try to use them later. For example:

export IMAGE_TO_DOWNLOAD=\`python ./nkytestrepository/fetch_downloads_names.py --workspace wysscenter --slug ncdgui --command latest\`  
and then:  
echo ${IMAGE_TO_DOWNLOAD}  
End result, nothing is printed.


Answers:
author: Mark C
body: Hi [@Maxim Andersen](/t5/user/viewprofilepage/user-id/4788199),  

Thank you for reaching out to the community.  

Would you be able to confirm if you're using [Bitbucket Cloud Pipelines Runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/) when you used the Pipes script (atlassian/ssh-run:0.4.1)?  

If yes, would you be able to confirm what type of [Runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/) are you using at the moment?  

Regards,  
Mark C

comments: author: Maxim Andersen
body: Yes, I am using Bitbucket Cloud Pipelines Runners, the runners are selfhosted, but the pipeline management is all cloud.


author: Mark C
body: Hi [@Maxim Andersen](/t5/user/viewprofilepage/user-id/4788199)  

Since there's a new version of the Pipes script, would you be able to use the new version (atlassian/ssh-run:0.5.0) and see if you're still unable to export variables? - <https://bitbucket.org/atlassian/ssh-run/src/master/>  

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-runners

cloud

ssh-run
SSH keys verification failed in bitbucket: Unable to acsess git repository in bitbucket.
Asked by Yuvraj:

Facing the error ***SSL certificate problem: self signed certificate in certificate chain***while trying to clone the repository from windows bash terminal

Steps followed as mentioned in <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

1. Generated SSH key pair (public and private) on windows

2. Added the public ssh key in bitbucket account

But running the below command to verify key is getting timed out.

**ssh -T git@bitbucket.org**

Error : ***kex_exchange_identification: read: Connection timed out***

Back to the same error as mentioned in the first line.

Can you help in fixing the error ?


Answers:
author: Ben
body: G'day Yuvraj!

The error you have mentioned is a little vague but generally occurs when there is some kind of localized network issue on your end that is preventing you from accessing Bitbucket Cloud. This is generally caused by SSH port 22 being blocked, or our BBC website IP addresses being blocked.

Please ensure you whitelist our IP addresses within your firewall contained in the article below, and also ensure that port 22 is not blocked to allow for SSH traffic to pass through:  
<https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

You can also refer to our article below for networking troubleshooting steps that you may follow to diagnose the issue:  
<https://confluence.atlassian.com/bbkb/troubleshooting-network-issues-389778693.html>

Once you have performed the above, please let me know if any further issues.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Yuvraj
body: hi Ben.

Thank you for your response. I missed the reply as the issue was resolved earlier after doing the ssh key setup again.

Cheers


Tags: bitbucket-cloud

cloud

git
How many APP Password can be created? Is there an upper limit?
Asked by Anubis Chen:

How many APP Password can be created? Is there an upper limit?

In addition, if there are many application passwords, do they have a query function?


Answers:
author: Theodora Boudale
body: Hi [@Anubis Chen](/t5/user/viewprofilepage/user-id/5080145) and welcome to the community.

There is no way to view the value of app passwords, either via the UI or via API, after they are created. They are intended to be replaced with a new app password rather than recovered or modified.

I'm not sure if there is an upper limit on the number of app passwords, I have asked the development team and I'll get back to you as soon as I have an answer.

Kind regards,  
Theodora

comments: author: Theodora Boudale
body: Hi [@Anubis Chen](/t5/user/viewprofilepage/user-id/5080145),

We don't have an upper limit on the number of app passwords that can be created.

If you have any other questions, please feel free to reach out.

Kind regards,  
Theodora


author: Anubis Chen
body: That's great to know, thank you Theodora.


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


Tags: bitbucket-cloud

cloud
How to avoid Windows GCM to ask for sourcetree access ?
Asked by xicond:

How to avoid Windows GCM to ask for sourcetree access ?  

<br />

I just want to clone with command line as in production, I just want to use read only access, but end up GCM always trigger sourcetree modify access

![Screen Shot 2022-11-16 at 12.24.22.png](https://community.atlassian.com/t5/image/serverpage/image-id/225883iE4C411E6D034890A/image-size/large?v=v2&px=999 "Screen Shot 2022-11-16 at 12.24.22.png")


Answers:
author: Nic Brough -Adaptavist-
body: You don't, you need to grant Sourcetree the accesses it need to be able to work.

comments: author: xicond
body: why ? I dont get it,

If I need to grant modify access, then what's the purpose of bitbucket token access   
when I create the bitbucket token access, it allow to choose permissions

but when I just want to pull via http and clone, it need access to modify

or, any misunderstand from me ?


author: Nic Brough -Adaptavist-
body: Because you have set up GCM to apply that profile to sourcetree.


author: xicond
body: But How can I skip sourcetree ?   
In linux, it doesn't need it


author: Nic Brough -Adaptavist-
body: Sourcetree and GCM don't work on Linux, so now I'm completely lost on what you're doing.


author: xicond
body: I only want to clone same like in linux  
But now in windows,   
I only know to handle authentication is using GCM, but now it requested Sourcetree access ass well,  
I want to reduce complication, just be same like linux


author: Nic Brough -Adaptavist-
body: Ok, so you'll need to stop using GCM. It's obviously causing you problems.


author: xicond
body: So, How to stop using it ? as I know in Windows need to use it


author: Nic Brough -Adaptavist-
body: Sourcetree, nor Windows, "need" you to use it. I can't tell you how to stop using it, I don't know what you've set it up to do (or why)


Tags: bitbucket-cloud

cloud

sourcetree
IP Blacklisted 104.192.141.1
Asked by Ephraim Mohan:

Hi there,

Apparently bitbucket.org's IP address is being flagged as being blacklisted, potentially hacked. Is this something that is known and being worked on?

Currently being blacklisted by a dynamic ip firewall setting for the IP ( 104.192.141.1 ).

![2022-11-15 12_27_22-Window.png](/t5/image/serverpage/image-id/225780i50FB9DA739878525/image-size/large?v=v2&px=999 "2022-11-15 12_27_22-Window.png")


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

That IP address, although it directs you to Bitbucket if you try it, is not a supported IP address for it. See <https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/>

comments: author: Ephraim Mohan
body: Thank you !
Unable to login Bitbucket - We couldn?t log you in
Asked by karen smith:

Hello team,

Today I find that I cannot login to bitbucket, it is showing **We could't log you in**

I tried to clean my browser's cache, even tried with multiple browsers but seems didn't work.

Would you please help me resolve the issue?

Thanks!


Answers:
author: Ben
body: Hi Karen,

Please refer to the ticket you have logged with us.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: atl-rvw

bitbucket-cloud

cloud