youngmon/atlassian-qna huggingface dataset:
Your push failed because the account '<workspace-id>' has exceeded its user limit.
Asked by Jaro Education:

We had a problem with our previous credit card, so we couldn't make the payment on 13th December. We have now changed the credit card details. We want to know when the bill will be paid with that card.

we are getting the below error while pushing the code.

Your push failed because the account '\<workspace-id\>' has exceeded its user limit and this repository is restricted to read-only access.  
Kindly confirm when all services will be restored.


Answers:
author: Theodora Boudale
body: Hi [@Jaro Education](/t5/user/viewprofilepage/user-id/3809169),

Since the billing plan of the workspace was downgraded to free, you will need to manually upgrade it to either standard or premium. If there are no issues with this credit card, then the change of plan should succeed and developers should be able to push again.

You can upgrade the billing plan the following way:  
**1.** On Bitbucket Cloud website, select your avatar \> **All workspaces**   
**2.** Select the workspace that was on a pain billing plan  
**3.** Select **Settings** from the sidebar at the left  
**4.** Select **Plan details**   
**5.** In there, select the option **Upgrade plan**

We've had some reports in the past that users were seeing the same error message even when the plan was upgraded (there might be a delay with the plan syncing between our systems). If you face the same issue after you upgrade the billing plan, please let me know and I can trigger a sync manually.

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

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


author: Jimmy Seddon
body: Hi [@Jaro Education](/t5/user/viewprofilepage/user-id/3809169),

These are the User Community forums for customers to help each other answer technical questions.

If you are looking for someone at Atlassian to help you with billing issues, you will likely get a more helpful response from the support team:

<https://support.atlassian.com/contact/>

Thanks!

-Jimmy


Tags: bitbucket-cloud

cloud
I could not access my workspace and repositories
Asked by Mobile App:

I could not access my workspace and repositories suddenly. When I tried logging in to my account, it registered as a new user.

To access this page, you may need to log in with a different account it says. But the account I am using is the same which I used to create the workspace and repositories.


Answers:
author: Vishwas
body: Hi [@Mobile App](/t5/user/viewprofilepage/user-id/4684573)

Welcome to Atlassian Community !

Do you know your hosting type is it cloud. I would suggest you to reach out to support team they can assist you . Link <https://support.atlassian.com/contact/>

Regards,

Vishwas

comments: author: Mobile App
body: [@Vishwas](/t5/user/viewprofilepage/user-id/1231381) - Hosting type Cloud


author: Vishwas
body: Yes please log a support request, Atlassian Team will help you
Password Issue
Asked by Antanas Samkus:

After I try to git push on Vs code , my terminal gives this line:terminal displays this: "Password for 'https://User-Name@bitbucket.org':"  
But it doesn't let me type or paste anything. So where should i confirm this password? Nothing pops up on vs code, nowhere to type my password.

Anyone else had this problem and knows how to solve it?


Answers:
author: Antanas Samkus
body: Thank You very much Caroline for this answer it helped me a lot. I learned that Terminal reads my password even I can't see.Paste, trust, enter that's all it took to solve it .

comments: author: Srikanth Raj
body: i had installed atllasian crowd jest before 10days

i forget my user id n password

n

also i try to do forget password

but itz not generating in my mail id


author: Caroline R
body: Hi, [@Antanas Samkus](/t5/user/viewprofilepage/user-id/4687404)! Welcome to the community!

Before we start, I would like to confirm that I've properly understood what is happening on your side. Feel free to correct me in case I have misunderstood something here.

Apparently, you are cloning a repository through VSCode, then your terminal opens during this process and it gives you a prompt for a password, but you can't add anything, is that correct? If that's the case, could you please share with us a screenshot of VSCode and the terminal so we can better understand what you see? Please remember to blur any sensitive data in the screenshot.

I would also like to share with you that when a terminal asks for a password, it never actually shows your password and it doesn't show you typing your password for security reasons, but you should still be able to copy-paste or type your password there. So, if you type it and press enter, do you get any error messages?

Looking forward to hearing from you.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
Create a dashboard listing pull requests with more than a specified number of lines
Asked by Rajesh Magham:

Hi Bitbucket community,

We need to create a dashboard with all pull requests that are bigger than a specified limit on the number of lines. Or all pull requests with the number of lines changed.

This could be a dashboard on bitbucket, data exported to google sheets, or a script run on the command line to create a local csv.

Please suggest the best possible way to go about this. We can write code if required.

Regards,

Magham


Answers:
author: Theodora Boudale
body: Hi [@Rajesh Magham](/t5/user/viewprofilepage/user-id/4686982),

I believe that this should be possible if you write a script using our API.

If you are interested in pull requests of all repositories in a workspace, the first step would be to get all repositories of this workspace with the following endpoint:

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

Then, for each repository you can get its pull requests with the following endpoint:

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

Please note that by default, this endpoint returns only OPEN pull requests (this is also mentioned in the link above).  
If you are interested in pull requests that are also MERGED or DECLINED, you will need to run additional queries to get pull requests in these states as well.  
An example with curl to get pull requests in MEGRGED state:

```
curl -u <username>:<app-password> https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo-slug>/pullrequests?q=state+%3D+%22MERGED%22
```

When you have the list of pull requests, you can use the following endpoint for each pull request to get its diffstat:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-diffstat-get>

An example call with curl would be the following (for a PR with id 2):

```
curl -u <username>:<app-password> -L https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo-slug>/pullrequests/2/diffstat
```

Please note that the **-L** parameter is needed in the call because this endpoint redirects to the repository diffstat.

The output of this call has the fields **lines_removed** and **lines_added** ++for each file of the pull request++ .  
You will need to add these values for each file of the PR, in order to get the total number of lines of the PR's diff.

<br />

By default, each endpoint returns all the fields available for a resource, and that can be a lot of data.  
You can use the **fields** parameter in the API calls, in order to return only the fields that are useful to you.  
You can read more about that and find examples here:

* <https://developer.atlassian.com/cloud/bitbucket/rest/intro/#partial-response>

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Please make sure the PHP Redis extension is installed and enabled.
Asked by Saddam Hossain:

Step #1: Discovered Package: staudenmeir/laravel-upsert  
Step #1: Discovered Package: tymon/jwt-auth  
Step #1: Package manifest generated successfully.  
Step #1: 65 packages you are using are looking for funding.  
Step #1: Use the \`composer fund\` command to find out more!  
Step #1: \> chmod -R 755 bootstrap/cache  
Step #1: \> php artisan cache:clear  
Step #1:  
Step #1: In PhpRedisConnector.php line 77:  
Step #1:  
Step #1: Please make sure the PHP Redis extension is installed and enabled.  
Step #1:  
Step #1:  
Step #1: Script php artisan cache:clear handling the post-install-cmd event returned with error code 1  
Step #1: error building image: error building stage: waiting for process to exit: exit status 1  
Finished Step #1  
ERROR  

Getting this error from last month but the same code was working before . I don't know why this error coming


Answers:
author: Nic Brough -Adaptavist-
body: There are two things that could have happened here:

* One of your developers has added something to your project that means it now requires the redis connector
* Someone has removed the redis connector from your build environment or the instruction to install it during the build

Either way, the fix is to (re) install the connector.

comments: author: Saddam Hossain
body: 1. We are using Google App Eng for our project

2. We did not change anything in the code repo

3. in the project root directory we have a [php.ini](https://cloud.google.com/appengine/docs/standard/php7/config/php_ini) file to install the Redis extension

If we removed the \`php artisan clear:cache\` command from the composer.json file (  
post-install-cmd"), the deployment is working without any issue. Also, after deployment Redis connector also worked properly.


author: Nic Brough -Adaptavist-
body: Ok, so your build has been modified such that the dependency is now met again. Well spotted!


Tags: bitbucket-pipelines

google
In build pipelines, how to access private maven dependency hosted on artifactory
Asked by Abhishek Sharma:

My project has some maven dependencies that are hosted on Jfrog Artifactory. On our development machines, we have configured settings.xml file to access Artifactory with credentials to download those dependencies.

Now, we want to make use of build pipelines offered by bitbucket. But how can we configure bitbucket such that it can access those dependencies from Artifactory while generating build?


Answers:
author: Theodora Boudale
body: Hi [@Abhishek Sharma](/t5/user/viewprofilepage/user-id/1446682),

On your development machines, are these credentials stored in the settings.xml file?

In Bitbucket Cloud, it is possible to configure environment variables for your builds. You can do that either on the workspace level (from workspace **Settings** \> **Workspace variables** ) and these variables will be available for all repos of the workspace, or on the repository level (from **Repository settings** \> **Repository variables**), and these variables will be available for this repo only.

You can create variables for the credentials (you can make them **Secured** when you defined them, so that their value won't be visible in the build log) and then use them in the settings.xml file of your repo. E.g. if you have defined a variable named **PASSWORD** , you can reference it in the file as **${PASSWORD}**

You can read more about user-defined variables here:

* <https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#User-defined-variables>

Is this something that works for you?

Kind regards,  
Theodora

comments: author: Abhishek Sharma
body: Thanks a lot, this was helpful


author: Theodora Boudale
body: You are very welcome!

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Pipeline with parallel test deployment followed by production deployment
Asked by mingchi:

We have a parallel step for multiple test environments (namely, dev0, dev1, dev2...) and a single production environment:  

- parallel:  
- step:  
name: 'deploy to dev0'  
deployment: dev0  
trigger: manual  
- step:  
name: 'deploy to dev1'  
deployment: dev1  
trigger: manual  
...  
-step:  
name: 'deploy to product'  
deployment: product  
trigger: manual

With parallel steps for test environment, one can decide to deploy to either one of dev#.

However, to deploy to production environment, all parallel steps for test environment must be performed.

Is there any way to deploy to the production environment when at least one of the steps in the previous parallel step (for test environment) is performed?


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

I'm afraid that this is not possible, the whole parallel set must complete before the next step (or parallel set) can run.

We have a feature request for what you are asking:

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

The use case described in that feature request sounds exactly like yours. I would suggest adding your vote in that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
JENKINS CAN NOT ACCESS
Asked by joshuazhong:

```
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- https://{USERNAME}@bitbucket.org/{USERNAME}/{REPOSITORY}.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:stdout: stderr: remote: Too many invalid password attempts. Log in at https://id.atlassian.com/ to restore access.
```

```
fatal: unable to access 'https://bitbucket.org/{USERNAME}/{REPOSITORY}.git/': The requested URL returned error: 403
```


Answers:
author: Nic Brough -Adaptavist-
body: You need to do what it says in the error message.


Tags: bitbucket-cloud

cloud
Is it possible to change the network used by the docker service created in Bitbucket Pipelines.
Asked by Noah Guttman:

So when using Bitbucket pipelines docker service (to build docker images), the service runs with a bridge network of 172.17.0.0.

Is it possible to override this when defining the service?  

Every thing we have tries has been unsuccessful


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

I'm afraid that this cannot be configured.

Could you perhaps share some more details about your use case, why you want to change that, and what you are trying to achieve?

Kind regards,  
Theodora

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

Its really quite simple, we happen to use parts of the 172.17.0.0 in our internal networking.  

So in this case when pipelines tries to run the docker build, that build cannot gain access to any of the internal resources that we have on that network (which in this case include a PyPy repository, and a file server).  

This causes all builds run through pipelines to fail.  

And since we can't change this configuration, it means that pipelines as an offer is useless to us.  

And given that we must now seek another solution, it is causing to to reevaluate if we are going to continue using Bitbucket cloud at all.   

Noah


author: Theodora Boudale
body: Hi Noah,

Thank you for your reply and additional info.

You mention accessing internal resources; are you using Pipelines Runners for your builds or Pipelines on Atlassian infrastructure?

Kind regards,  
Theodora


author: sathi reddy
body: yes it's possible.

comments: author: Petter Gon?alves
body: Hello [@sathi reddy](/t5/user/viewprofilepage/user-id/4686322)

Welcome to the Atlassian Community.

You are welcome to share your experience and provide detailed steps that might help other customers, but we would like to kindly ask you to avoid adding short answers not containing further details on how to achieve the request of the community question.

In other words, please ensure your answer can properly show a path to achieve the goal required in the question, so we can keep the community as a useful resource to Atlassian customers/experts.

Thanks!

Petterson Gon?alves - Atlassian Support


Tags: bitbucket-pipelines

cloud

docker

network
Facing error while building docker image in bitbucket pipeline
Asked by Priyank Keni:

Please find the error below

error during connect: Get "<http://docker:2375/v1.24/version>": dial tcp: lookup docker on 10.32.0.10:53: no such host


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

That means what it says; nothing is responding to your call on the URL you have given it. You'll need to change it to use the actual address of the host you're trying to reach.

comments: author: Priyank Keni
body: Can you help me out in this? Actually we are trying to shift from Gitlab to Bitbucket.

I have created a runner on Google Kubernetes Engine. We use Google container registry as to save our docker images. I.m trying to setup a pipeline where my image gets build and pushed to google container registry.


author: Priyank Keni
body: This is my bitbucket-pipelines.yml file . Go through it might be you get some idea what I am trying to achieve.

definitions:  
services:  
docker:  
image: docker:20.10.7-dind  
variables:  
DOCKER_OPTS: "--mtu=1300"  
DOCKER_DRIVER: overlay2  
DOCKER_HOST: tcp://docker:2375  
DOCKER_TLS_CERTDIR: ""  
pipelines:  
default:  
- step:  
name: publish  
image: docker:latest  
runs-on:  
- 'self.hosted'  
- 'linux'  
script:  
# - export IMAGE_NAME=asia.gcr.io/$GCLOUD_PROJECT/$BITBUCKET_REPO_SLUG:$BITBUCKET_COMMIT  
# - export ENVIRONMENT=uat  
- apk add --update make ca-certificates openssl build-base python3-dev python3 libffi-dev libressl-dev bash git gettext curl  
- update-ca-certificates  
- echo $GCLOUD_SERVICE_KEY \> ${HOME}/gcloud-service-key.json  
- wget <https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz>  
- tar zxf google-cloud-sdk.tar.gz \&\& ./google-cloud-sdk/install.sh --usage-reporting=false --path-update=true  
- google-cloud-sdk/bin/gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json  
- docker version  
- docker login -u _json_key --password-stdin <https://asia.gcr.io> \< ${HOME}/gcloud-service-key.json  
- docker build -t $IMAGE_NAME .  
- docker tag $IMAGE_NAME "asia.gcr.io/$GCLOUD_PROJECT_ID/$IMAGE_NAME:$(echo $CI_COMMIT_SHA \| cut -c1-8)"  
- docker push "asia.gcr.io/$GCLOUD_PROJECT_ID/$IMAGE_NAME:$(echo $CI_COMMIT_SHA \| cut -c1-8)"  
services:  
- docker

- step:  
name: Deploy  
image: google/cloud-sdk:alpine  
runs-on:  
- 'self.hosted'  
- 'linux'  
script:  
- echo $GCLOUD_SERVICE_KEY_KUBE \> ${HOME}/gcloud-service-key.json  
- gcloud components install kubectl  
- gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json --project $GCLOUD_PROJECT_ID  
- gcloud container clusters get-credentials $CLUSTER_NAME --zone $CLUSTER_ZONE  
- kubectl -n $ENVIRONMENT set image deployment/$K8S_DEPLOYMENT $K8S_IMAGE=asia.gcr.io/$GCLOUD_PROJECT_ID/$IMAGE_NAME:$(echo $CI_COMMIT_SHA \| cut -c1-8)  
services:  
- docker  
options:  
docker: true


Tags: bitbucket-pipelines
'We couldn?t log you in' (inactive account flag?)
Asked by ludions NA:

Hello there,

I'm getting the 'We couldn't log you in' page on bitbucket login attempt. I can login to atlassian id page OK. Haven't used either in some time, could be that bitbucket account is flagged as inactive. Would appreciate help on this. id is same as that used to post this msg.

Many thanks

ludions


Answers:
author: Caroline R
body: Hi, ludions! Welcome to the community!

I confirmed that your Bitbucket account was set as inactive, so I reactivated it. Could you please try to access it now and let me know how it goes?

Looking forward to hearing from you.

Kind regards,   
Caroline

comments: author: ludions NA
body: Many thanks, all working now. ludions


author: Caroline R
body: Hi, ludions!

Thanks for your confirmation, I'm glad to know everything is working fine now!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

error

login
Pipeline step executing pipe only
Asked by Diego:

I have a Bitbucket Pipeline step that runs a Bitbucket Pipe, and just that, like this:

```
- step: &upload
  name: Upload apk to Bitbucket project downloads
  image: alpine:3.15
  clone:
    enabled: false
  script:
    - pipe: atlassian/bitbucket-upload-file:0.3.2
      variables:
        BITBUCKET_USERNAME: $BITBUCKET_USERNAME
        BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
        FILENAME: "artifacts/*.apk"
```

I see that the Pipeline actually downloads alpine docker image first and then the atlassian/bitbucket-upload-file docker image:

1. is there any use for the alpine docker image considering no explicit command is run on it?
2. if there's no use, is there a way to speed up the process and have the Pipeline download just the atlassian/bitbucket-upload-file docker image?

Thanks


Answers:
author: Igor Stoyanov
body: [@Diego](/t5/user/viewprofilepage/user-id/1201184) hi. Thanks for your question. Firstly you should define your docker image for the pipeline infrastructure. In example: atlassian/default-image:3

Then inside a script section you define which pipe to use, and this pipe has its own docker image, that has its own logic for the pipe, but not for the pipeline infrastructure.

Also image inside a script section is optional.

Example:

```
image: atlassian/default-image:3

pipelines:
  default:
    - step: &upload
      name: Upload apk to Bitbucket project downloads
      script:
        - pipe: atlassian/bitbucket-upload-file:0.3.2
          variables:
            BITBUCKET_USERNAME: $BITBUCKET_USERNAME
            BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
            FILENAME: "artifacts/*.apk"???
```

For more details refer to the [configure bitbucket pipeline guide](https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/).

Regards, Igor

comments: author: Diego
body: Thanks [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492) .

So I'll go ahead and answer my own question(s) based on your feedback.
>
> * is there any use for the alpine docker image considering no explicit command is run on it?
>
It looks there isn't any explicit use, but "you should define your docker image for the pipeline", whether it is at the top level or at the step level.


Tags: bitbucket-pipelines