youngmon/atlassian-qna huggingface dataset:
Cache/reuse docker image? Instead of downloading for each step in bitbucket pipeline?
Asked by cgoodwin:

I'm trying to streamline my pipeline a little bit to speed things up (using parallel steps).

The issue that I'm running into is that it downloads the base image ***for each step***; is there a way to avoid that?

I'd like it to use the image I state, but then use a cached version of that for each step afterward. Is that possible??

I've tried a few things but haven't been able to manage it. My pipelines file looks like this:

    ####### Docker Image######image: my_user/test_ci:latest####### Step Definitions######definitions:    - step: &build-dev        name: Build Project With Dev Branches        caches:          - pip        script:          - git clone --branch dev git@bitbucket.org:my_user/launcher.git          - git clone --branch dev git@bitbucket.org:my_user/reports.git        artifacts:          - reports/**          - launcher/**    - step: &install-requirements        name: Install Requirements        caches:          - pip        script:          - virtualenv venv          - source venv/bin/activate          - pip install -r requirements-dev.txt        artifacts:          - reports/**          - launcher/**          - venv/**####### Pipelines######pipelines:  pull-requests:    dev:      - step: *build-dev      - step: *install-requirements      - parallel:          - step:              name: Test Launcher              caches:                - pip              script:                - source venv/bin/activate                - pytest launcher          - step:              name: Test Reports              caches:                - pip              script:                - source venv/bin/activate                - pytest reports

In the past we just put everything together in one big step that ran the tests in the same step.

I'm trying to break them up to run each independently at the same time (parallel); but downloading our image for every single step is very time consuming.


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

Hope this [answer](https://community.atlassian.com/t5/Bitbucket-questions/Caching-a-public-Docker-Hub-image/qaq-p/1045777#M41121) and this [article](https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/) can help you.

Regards, Igor.

comments: author: cgoodwin
body: I wasn't able to implement either of those in a way that did what I was looking for unfortunately.

We've since reverted our pipeline to just do everything in one step.

I'll keep looking and hopefully eventually we'll find something.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker
I stopped receiving email notifications for Bitbucket
Asked by bschiavone:

I have stopped receiving email notifications for bitbucket. Could you please check if my email is in the suppression list?

Thanks


Answers:
author: Norbert C
body: Hi [@bschiavone](/t5/user/viewprofilepage/user-id/4467363)

Thank you for contacting Atlassian Community. I'm Norbert from Bitbucket Cloud Support, it's nice to meet you! Also welcome to the Atlassian Community.

When I checked the logs, I could see that your email address was on our bounce list as we received the following message from your mail server: 550: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 <https://support.google.com/mail/?p=NoSuch>... - gsmtp 2021-10-31T23:59:58+00:00  
at 2021-11-02T02:26:51+00:00.

I removed this bounce from our system.

Can you tell us whether if the emails are getting delivered to you now?

We're looking forward to hear from you.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: Alex Mason
body: Hi Norbert,

I suspect I'm suffering from the same issue, would you be able to check mine also?

Thank you!


author: Norbert C
body: Hi Alex,

Welcome to the Atlassian Community! It's nice to meet with you as well :).

I can confirm that your email address was also on our bounce list with the same reason since starting at 2021-11-05T07:20:11+00:00. I removed this bounce as well.

Can you confirm if you receive the emails from us, please?

I'm looking forward to hear from you.

Have a great day!

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: Alex Mason
body: Thanks for that Norbert, all working now!


author: Rod
body: [@Norbert C](/t5/user/viewprofilepage/user-id/1190200)I'm having the same issue:  

I have stopped receiving email notifications from bitbucket. Could you please check if my email is in the suppression list?

Thanks

comments: author: Norbert C
body: Hi [@Rod](/t5/user/viewprofilepage/user-id/3557202)

Please excuse me for the late reply. Can you tell me if you're still having difficulties with receiving emails? Based on my observation the emails are getting delivered to your email address.

Please let me know.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: Rod
body: Hi [@Norbert C](/t5/user/viewprofilepage/user-id/1190200)

It's fine, this issue was already solved in:

[https://community.atlassian.com/t5/Bitbucket-questions/I-stopped-receiving-bitbucket-email-notifications/qaq-p/2042832?utm_source=dm\&utm_medium=unpaid-social\&utm_campaign=P:online\*O:community\*I:social_share\*](https://community.atlassian.com/t5/Bitbucket-questions/I-stopped-receiving-bitbucket-email-notifications/qaq-p/2042832?utm_source=dm&utm_medium=unpaid-social&utm_campaign=P:online*O:community*I:social_share*)

Thank anyways for your reply

Best Regards,  
Rod


Tags: bitbucket-cloud

cloud
Maximum number of failed login attempts in Atlassian Cloud
Asked by Marilyn Hannan:

What is the maximum number of failed login attempts for unmanaged Atlassian Cloud users?


Answers:
author: Norbert C
body: Hi Marilyn,

Thank you for contacting Atlassian Community! I'm Norbert from Bitbucket Cloud Support, it's nice to meet you!

Currently when a Cloud domain is using Atlassian ID, there is no maximum login attempts, only the Captcha that is offered after 10 failed attempts.

Please let us know if you have any further question, we're here to help :).

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud
I have changed my mail id to new mail, not yet received mail i performed action many times but no us
Asked by Arundathi:

I have changed my mail id to new mail, not yet received any mail i performed action many times but no use


Answers:
author: Caroline R
body: Hi, [@Arundathi](/t5/user/viewprofilepage/user-id/4667242)! Welcome to the community!

I checked our logs and confirmed that the email you used to create this question had a block on the server that prevented emails from being sent to you:

```
550: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 https://support.google.com/mail/?p=NoSuch ... - gsmtp
```

This can occur when the system tries to send an email and the account does not exist yet, is not activated, or it rejects the email for some internal reason.

In this case, I removed your email from this suppression list. Could you please confirm if you receive the emails now?

Kind regards,  
Caroline

comments: author: Arundathi
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) ,

getting below error as **daily limit reached.**

![email_resend.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/173250i18287B7FDF047D15/image-size/large?v=v2&px=999 "email_resend.JPG")


author: Caroline R
body: Hi, [@Arundathi](/t5/user/viewprofilepage/user-id/4667242).

Thanks for the additional information. By the error message you shared here, it seems you might have tried to change the email address multiple times. So after 24 hours, you should be able to change your email again, and now that we have removed the block from the server (in our first response), you should be able to receive this email.

Could you please confirm if you tried to change it again and received the email this time?

Looking forward to hearing from you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
"Something went wrong" error when deleting a repository
Asked by leonlombard:

I am busy cleaning up my unused repositories.

I wa able to delete several resporities. However, there is one repository that, when deleting, shows an error in the bottom left corner saying "Something went wrong". It gives no clue as to what went wrong.

How can I resolve this error?


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

Thank you for reaching out to Atlassian Community!

The "Something went wrong" message usually comes with a 5xx response that shows a Sentry ID code. This code may give us some indication of what is causing this issue. In this case, could you please follow the next steps to find the Sentry ID, so I can further investigate this case?

* Open the "Developer tools" in the browser you are using (click on the three dots \> More tools \> Developer Tools):

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

* Then navigate to the Bitbucket page that gives you this error (in your case, try to delete the repo)

* In "Developer tools", select the **Network** tab

* Find and select the request that gives a 5xx response

* In the **Headers** panel (after you select the request with 5xx response), check if there is a field named **sentry id**.

* If you can provide us with the value of that field, I can look it up in our system for further info.

Thank you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Atlassian Bitbucket v7.9.1 with starter license for 10 users reinstallation.
Asked by Surya H:

Hello all, I am using Atlassian Bitbucket v7.9.1 with starter license for 10 users.

I am facing some problem in my Linux server in which this bitbucket is running. I want to reinstall my server and bitbucket, But I don't know how do I reinstall my license for the same.

Can somebody help me with the procedure or steps to be followed. it would be great help!

Thanks in Advance.

regards,

Surya


Answers:
author: Daniel Eads
body: Hi [@Surya H](/t5/user/viewprofilepage/user-id/4662295) , welcome to the Community!

The license key can be retrieved by a contact (someone who originally purchased the license, or was added to the license by the purchaser) from [my.atlassian.com](https://my.atlassian.com) .

Alternatively you can retrieve the currently-installed license from the database [using this KB article -](http://using this KB article -) I've copied the relevant SQL here for your convenience:

    select prop_value as "license_key" from app_property where prop_key = 'license';

Once you've ensured that you have a copy of the license key, you can follow the installation instructions [in the Bitbucket Server installation guide](https://confluence.atlassian.com/bitbucketserver/bitbucket-installation-guide-867338382.html) . The packages for previous versions of Bitbucket Server [are available in the Bitbucket Server download archives](https://www.atlassian.com/software/bitbucket/download-archives) .

Cheers,  
Daniel

comments: author: Surya H
body: Hi [@Daniel Eads](/t5/user/viewprofilepage/user-id/1527694) Thanks for your input, this worked for me.


Tags: bitbucket-server

install

licence

server
Bitbucket server keeps crashing after few minutes
Asked by Rohit Dalvi:

I have a staging bitbucket server version 6.10 running in aws cloud which we migrated few days ago. It runs fine for 30 minutes or so and all of a sudden it stops working. When it stops working I completely loose access to the service in browser, I have to manually stop and then start service in ec2 instance in order to get it working. But it dies again in next 30 minutes. I did look at the logs but I did not find anything specific. Another thing I noticed is that it keeps on consuming 90% of the memory which is weird as the same version in prod runs fine. So I was wondering if there is anything I can check on bitbucket side which I had missed during installation. Thanks a lot in advance.


Answers:
author: Rohit Dalvi
body: Thank you Craig, it was the heap memory, earlier it was 1g-2g, I set it 512m-1g and it is working fine. It did not crash since more than 20hrs so I believe thats all needed to fix the problem. The reason I think it needed to lower the heap was we are also running BB with elasticsearch locally.


author: Craig Castle-Mead
body: Hey [@Rohit Dalvi](/t5/user/viewprofilepage/user-id/4570869)

You may wish to post your logs (redact anything sensitive) as others may be able to spot issues you looked past.

Re: memory - what are your XMS/XMX settings for the app, how much memory does the server have, and what other services is it running?

<br />

CCM


Tags: bitbucket-server

server
My repository is public but still asking for credentials
Asked by jcrphx:

I have a repository setup as Public following this instruction project --\> repository setting--\>Access Level (unchecked up the option "this is a private repository" --\> save . I did the change 2 days ago and still is asking for credentials when I try to clone the project in a different laptop .


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

Thank you for reaching out to Atlassian Community!

I tested cloning a public repository and it didn't ask me for a password, so in order to further investigate what's happening on your side, could you please share the following information with us?

* The repository URL, so we can confirm if there is something wrong with this repo;

* A screenshot that shows the clone command you are executing and the output;

* Are you cloning this repo from the command line/terminal or a Git client (if so, which one)?

Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: jcrphx
body: Hello Caroline,

This is my repository URL

```
https://bibhcket.org/jcrphx/simpletimeservice/src/master
```

As an anonymous user I found, that if I try to clone the repository via SSH I am getting the fatal message below,

```
git clone git@bitbucket.org:jcrphx/simpletimeservice.git
cloning into 'SimpletimeService'
git@bitbucket.org: Permission denied (publickey).
fatal: could not read from remote repository.

Please make you have the correct access rights
and the repository exists
```

but If I try via https ..it works fine as expected

```
git clone https://jcrphx@bitbucket.org/jcrphx/simpletimeservice.git
```

If this is the right behavior expected please then disregard and thank you very much for your support.

Juan-Carlos


author: Caroline R
body: Hi, Juan Carlos!

Thanks for getting back to us! Indeed, this is expected. I'm glad to know this is working! :)

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Can we use the repo variables inside the terraform code by referring them as a environment variables
Asked by salluri:

I am trying to refer the repo variables inside my terraform code as shown below

export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID

Is this the actual way to declare or is there any other way to declare the variables in the code?


Answers:
author: Patrik S
body: Hello [@salluri](/t5/user/viewprofilepage/user-id/4639866)

Welcome to Atlassian Community!

Bitbucket Pipelines allows you add, edit, or remove variables at the account, repository, and deployment environment levels. These are called user-variables, and along with the default variables, they are configured as environment variables in the build container of each of your pipeline's steps.

You can reference those variables in your bitbucket-pipelines.yml file or in any script you invoke using the following syntax :

```
$MY_BITBUCKET_VARIABLE_NAME
```

However, each programming/configuration language has it's own way of fetching the value from an environment variable. For this particular case, where you are using Terraform, looking at their documentation about using environment variables, I've found the following :

* Each input variable accepted by a module must be declared using a `variable` block:

      variable "aws_code_access_key" {  type = string}

* Terraform searches the environment of its own process for environment variables named **`TF_VAR_`** followed by the name of a declared variable. For the example variable above, on your build script you would have to set a environment variable named **TF_VAR_aws_code_access_key** using the value of the pipeline variable **$MY_BITBUCKET_VARIABLE_NAME**, like this:

      $ export TF_VAR_aws_code_access_key=$MY_BITBUCKET_VARIABLE_NAME
      $ terraform plan

* Within the module that declared a variable, its value can be accessed from within [expressions](https://www.terraform.io/docs/language/expressions/index.html) as `var.<NAME>`, where `<NAME>` matches the label given in the declaration block:

      resource "aws_instance" "example" {  instance_type = "t2.micro"  access_key           = var.aws_code_access_key}

The information above was extracted from the official terraform documentation. For more details on how terraform references environment variables you can check the following link:

* <https://www.terraform.io/docs/language/values/variables.html>

Hope that helps to address your questions! Let us know if you need further assistance.

Thanks you!

Best regards,

Patrik S


Tags: bitbucket-cloud

cloud
Not able to find source branch in search while creating a new branch
Asked by Ayushmaan Bahukhandi:

Hi,

I have been facing this issue where I'm not able to find **uat** branch in **From Branch**drop down (Attached image). Is there any other way to do it online only and not using SourceTree to create a branch.

Thanks

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/172889i3A481F1EF18D0D7B/image-size/large?v=v2&px=999 "Capture.JPG")


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

When you create a branch on Bitbucket website, the "From Branch" dropdown displays only 25 branches and I'm afraid that it doesn't pull best/exact matches first. We have a bug report about this in our issue tracker:

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

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the bug report) if you'd like to get notified via email on any updates. You can also select the **This affects my team** link to indicate you are affected by this issue.

Until the bug is fixed, the only workaround is to create the branch locally and push it.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Possible to fork a repository from a branch other than master?
Asked by Adam Leung:

I have a repository where I have branched from master. For personal reasons, I am currently unable to merge this branch back into master, but I currently need to fork this repository with the changes from this fork. I was wondering if it was possible to fork a repository from a branch other than master.

Thanks!


Answers:
author: Adam Leung
body: Found the solution:  
When you fork a repository on Bitbucket, it also carries over all the branches. Solution was the fork, then merge the branch in the fork.


Tags: bitbucket-cloud

branch

cloud

fork

git
We couldn?t log you in
Asked by Sergey Storchay:

I have an old Bitbucket account which I haven't used for year. Probably, last time I used it was before merging with id.attlassian.com.

Now I need to access it again, but each time I try to login to Bitbucket, I get infamous "We couldn't log you in" page.

It couldn't be some cache issue. I tried to clear everything, I tried incognito mode, I tried freshly installed browser - nothing helps.

My Trello login with the same account works fine. Also I tried my secondary account (also an old one, I think from 2014) and it works fine too, even with Bitbucket.

So what are my options? Is my old account gone for good?


Answers:
author: Caroline R
body: Hi, [@Sergey Storchay](/t5/user/viewprofilepage/user-id/4665740)! Welcome to the community!

Could you please confirm if the Bitbucket account you are trying to access is linked to the email you used to create this question? If that's the case, I confirmed it was inactive, this happens when the account is not accessed for a long time.

In any case, I have enabled this account, so you should be able to access it now.

Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: Sergey Storchay
body: Thanks for your help, Caroline!

Now it works, I can access the repos


author: Caroline R
body: That's, awesome, Sergey! Thanks for your confirmation!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
New setup failing - no access methods
Asked by IanHobson:

My machine lost ts magic smoke, so I have had to restore to a temporary machine (windows). The sources are on a Linux VM, (restored) with a share.

Therefore I work in windows, editing sources via the share.

To save the changes, I use gitgui to set up the commit (done) and the push.

However the push is failing, and git gui refused to save the fingurprint (bug??).

So I set up a putty session, using SSH and stored the fingerprint.

Now it is failing with "FATAL ERROR: No supported authentication methods available (server sent: publickey) fatal: Could not read from remote repository."

What do I need to set up? I'm guessing it is something for git on the windows end, but I know not what.

I do have password access to bitbucket, so I can get into the account.

More info. I had not set up .ssh under my new user, and then found I could not read the keyfile (on the restored D: drive). Now I get this....

```
ian@ganymede MINGW64 /d/TempFiles/Temp4
$ git clone git@bitbucket.org:coachmaster/coachmaster.git
Cloning into 'coachmaster'...
FATAL ERROR: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.

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

ian@ganymede MINGW64 /d/TempFiles/Temp4
$ ssh -T git@bitbucket.org
authenticated via ssh key.

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

ian@ganymede MINGW64 /d/TempFiles/Temp4
$
```

Ideas anyone?

Ian


Answers:
author: IanHobson
body: The answer is that git has changed the way it discovers how to drive SSH!

The magic incantation is to enter

```
git config core.sshCommand "ssh -i ~/.ssh/id_rsa"
```

into the git bash terminal (opened in the directory above the .git). Clearly your id file may be different.

This adds the text in quotes to the \[Core\] section of .git/config


Tags: bitbucket-cloud

cloud