youngmon/atlassian-qna huggingface dataset:
Unable to fetch private repo in composer using various methods
Asked by Amit Sharma:

I have two private repos in Bitbucket.

1. Repo One (User doesn't have access to this repo)
2. Repo Two (User has write access to this repo)

Inside repo two, I am fetching Repo one as dependency  

```
"repositories": [
 {
   "type": "vcs",
   "url": "git@bitbucket.org:myproject/repo-one.git"
 }
],
"require": {
  "myproject/repo-one": "dev-dev"
}
```

I have created auth.json in the project root.  

```
{
  "config": {
    "http-basic": {
      "bitbucket.org": {
        "username": "accessTokenEmail",
        "password": "accessToken"
      }
    },
    "bitbucket-oauth": {
      "bitbucket.org": {
        "consumer-key": "myKey",
        "consumer-secret": "mySecret"
      }
    },
    "bearer": {
      "bitbucket.org": "accessToken"
    }
  }
}
```

I tried all three methods mentioned above but I am not able to fetch the private repo one.

I tried the above method individually in auth.json.

If I have access to both the repos then I am able to access the repo as a dependency in composer and that is normal.

I am using composer version as below

```
Composer version: 2.6.3
```

Am I doing anything wrong in this?

Thanks.


Answers:
author: Theodora Boudale
body: Hi Amit,

I'm not very familiar with composer, but if what composer does is clone the repo, then I see you are using an SSH URL for the repo:

```
git@bitbucket.org:myproject/repo-one.git
```

and the credentials you provide in the auth.json file are for authentication over HTTPS.

If you use an SSH URL, then authentication will be done with the SSH keys available on the machine where the repo is cloned. If these SSH keys are associated with a Bitbucket user account, it is expected that the account will need to have access to the repos.

If you don't need the user's SSH keys on this machine, you can remove them (please take a backup before you do) and then

* generate a new SSH key pair on this machine
* add the public key to the **Access keys** of the repos that need to be cloned (from **Repository settings \> Access keys**). You need to have admin permission to the repo in order to add the Access keys.

If you want to use HTTPS, you'll need to provide an HTTPS URL for the repo, like this

```
https://bitbucket.org/myproject/repo-one.git
```

I'm not sure if the structure of your auth.json is correct, this is best to double-check in a composer-specific forum. However, if you are using a [repository access token](https://support.atlassian.com/bitbucket-cloud/docs/repository-access-tokens/), then the username should be the string **x-token-auth** instead of an email.

If you are using an app password, then the username needs to be the username of the Bitbucket account you generated the app password for and it can be found here if it is your own account <https://bitbucket.org/account/settings/>.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Recover a Deleted Workspace
Asked by Aravinth:

I have deleted a repository while ago. I need to recover it. I need support for this from Atlassian.


Answers:
author: Mark C
body: Hi [@Aravinth](/t5/user/viewprofilepage/user-id/5356119)  

Welcome to the community.  

Unfortunately, it is not possible for us to recover a deleted workspace including repositories.  
Right now, the best I can suggest is for you to recreate your workspace using a different workspace ID and push your repositories there if you have them locally.  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
My team-member unable to login
Asked by Abitha SAT:

Hi,

My team-member forgot his password, When he clicked **"Send recovery link NO EMAIL RECEIVED"** to his Email account. Tried many times, but no luck. I think his account may be blocked or something... Not sure WHY? How to enable his account back as we have projects / repos / sources files under his account?

His Email account is: \[redacted\]

**Any help is highly appreciated! PLEASE!!!**

Thanks a mill in advance!


Answers:
author: Andy Heinzer
body: Hi [@Abitha SAT](/t5/user/viewprofilepage/user-id/5356065)

I found that email address was being suppressed on our side. I have removed this suppression. That user should be able to receive email from our services now. Try to send the recovery link once more.

Regards,

Andy

comments: author: Abitha SAT
body: Thank you Andy!!! The issue is resolved!!!


Tags: bitbucket-cloud

cloud
BitBucket Heroku
Asked by Toyyib Bello:

How do I host to Iroku from bitbucket step by step, I am confuse about the zip file thing. Thank you.


Answers:
author: Igor Stoyanov
body: Hi [@Toyyib Bello](/t5/user/viewprofilepage/user-id/5355928) . Maybe it is a good idea to start using pipes. [See example of the heroku deploy](https://bitbucket.org/bitbucketpipelines/example-heroku-deploy-python/src/master/).

Add this script to the bitbucket-pipelines.yml config file:

```
script:  - pipe: atlassian/heroku-deploy:2.3.0    variables:      HEROKU_API_KEY: $HEROKU_API_KEY      HEROKU_APP_NAME: 'My awesome shiny app'      ZIP_FILE: 'your-app-sources.tar.gz'
```

[More about pipes](https://bitbucket.org/blog/12-days-of-ci-cd?_ga=2.171651046.738164666.1576511398-76384139.1562618375).

Regards, Igor


Tags: bitbucket-cloud

cloud
Recursive Clone With Repo Authentication Token
Asked by Adam:

I am attempting to clone a repository - containing several submodules - to a shared PC. I have created authentication tokens for each repository. When I enter any command requiring user authentication the Atlassian/Bitbucket authentication window appears.  

![bitbucket_signin_2.png](/t5/image/serverpage/image-id/289864i660D57ACB2731CCA/image-dimensions/218x245?v=v2 "bitbucket_signin_2.png")  
Entering my personal account credential triggers an SSO event. I want to avoid this due to the shared nature of the PC. Entering the bot email (@bots.bitbucket.org) and the associated access token causes the authentication to fail.   

Is there a special git syntax that must be used to trigger the use of the authentication token? Why can't I use the bot account and token to login?

Any assistance or guidance would be appreciated.


Answers:
author: Mark C
body: Hi [@Adam](/t5/user/viewprofilepage/user-id/5355912)  

Welcome to the community.  

Could you try to clear your credential manager first and try to authenticate again and see if that works?  
Alternatively, you can also try to use an SSH connection instead and this will avoid using tokens entirely for your repository and submodules.  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Not all, but more than enough users are no longer getting email notifications on pull requests
Asked by Jennifer Taylor:

I have had some reports from more than 5+ users - that they are no longer getting email notifications from Bitbucket or Jira. When I look at our Exchange server, I see some emails for other users but not those 5+(I think there are more; I just need to identify them all). What could be the issue? No changes were made on our Atlassian side.


Answers:
author: Syahrul
body: G'day, [@Jennifer Taylor](/t5/user/viewprofilepage/user-id/4664806)

It looks like there was an issue with your mail server, as most of the email we sent was bounced back with the following error:

```
550 Mailbox does not exist!
```

I highly recommend you check with your mail server team on why this happens.

That said, I have unsupressed your whole domain, so it should no longer put your team domain in our impression list.

Let me know how it goes.

Regards,  
Syahrul


author: Gwen Coveny
body: Same here, re: Jira notifications. Some are coming through the MS Exchange server and some aren't

comments: author: Syahrul
body: Hey [@Gwen Coveny](/t5/user/viewprofilepage/user-id/5328793)

Can you create a new community post so I can review it?

Regards,  
Syahrul


author: Gwen Coveny
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) - Thanks for checking in. I was able to resolve my notification issue within my personal settings by ensuring that changes I make to an issue are visible to me, explained at this link: <https://confluence.atlassian.com/jiracoreserver073/managing-your-user-profile-861257126.html#ManagingyourUserProfile-Preferences>


Tags: bitbucket-cloud

cloud
Not able to commit or pull the code from the repository.
Asked by Harshavardhanreddy_D:

Dear Team,

I'm unable to commit code or pull code suddenly. It's says as "Can't connect to any repository". Please assist for the issue and advise.

Thanks

Harsha


Answers:
author: Patrik S
body: Hello [@Harshavardhanreddy_D](/t5/user/viewprofilepage/user-id/5162822) ,

Thank you for reaching out to Community!

I see the workspace you have linked while posting this question is currently Over the plan limit, meaning it's exceeding the number of users in a Free plan.

As announced in our [Blog post](https://bitbucket.org/blog/billing-model-change) , Bitbucket cloud has changed our billing model. In this new model, any users that are members of a workspace, regardless of their content access are counted towards the billable users.

If you need to reduce the number of users within your workspace, please go to

Workspace Settings \> User Directory \> use action under Activity row to remove any users that no longer need to be part of a workspace.

For workspaces on Free plan, your number of workspace members should not exceed 5.

Alternatively, you may upgrade your plan to a paid plan to be able to collaborate with a larger number of teammates. For more information please refer to [![](https://wac-cdn.atlassian.com/assets/img/favicons/atlassian/favicon.png)Manage your plan and billing \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/)

Thank you, [@Harshavardhanreddy_D](/t5/user/viewprofilepage/user-id/5162822) !

Patrik S

comments: author: Harshavardhanreddy_D
body: Thank you [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) for your feedback.

Thanks

Harsha


Tags: bitbucket-cloud

cloud
Account has exceeded its user limit error but only 1 users in plan
Asked by Ahmed Yasser:

I attempted to push code to our bitbucket account this morning but received the message:

"remote: \[ALERT\] Your push failed because the account 'name' has exceeded its user limit and this repository is restricted to read-only access."

I was surprised to see this as no changes had been made to the account in some weeks (and indeed it was fine yesterday afternoon - approximately 17 hours ago).

I've logged into the account and can see only 1 users on the plan (settings -\> users on plan). We're using the free plan which looks to allow 5 users so I guess there must be some users elsewhere which I can't see?

I checked also the repository permissions and only 3 users have access to it including me

Can anyone tell me where else I should be looking or if this might not be user / plan related?

Thanks


Answers:
author: Patrik S
body: Hello [@Ahmed Yasser](/t5/user/viewprofilepage/user-id/5355567) and welcome to the Community!

As announced in our [Blog post](https://bitbucket.org/blog/billing-model-change) , Bitbucket cloud has changed our billing model. In this new model, any user that is a member of a workspace, regardless of their content access , is counted towards the billable users.

If you need to reduce the number of users within your workspace, please go to :

**Workspace Settings** \> **User Directory** \> use action under **Activity** row to remove any users that no longer need to be part of a workspace.

For workspaces on **Free** plan, your number of workspace members should not exceed 5.

Alternatively, you may upgrade your plan to a paid plan to be able to collaborate with a larger number of teammates. For more information please refer to [![](https://wac-cdn.atlassian.com/assets/img/favicons/atlassian/favicon.png)Manage your plan and billing \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/)

Thank you, [@Ahmed Yasser](/t5/user/viewprofilepage/user-id/5355567) !

Patrik S

comments: author: Ahmed Yasser
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) Thank you very much for the clarification


Tags: bitbucket-cloud

cloud
Deploy SQL Server repository to Live
Asked by Louie Larin:

Good Day!

Just want to check if it is possible to deploy SQL Server repository to Live. I have found video showing pushing changes from SQL Server to bitbucket (<https://www.youtube.com/watch?v=FWAx0pdMLfQ>) But not able to find pushing the changes to existing database to apply changes to an existing SQL Server Database. Thanks

Regards,  
Louie


Answers:
author: Theodora Boudale
body: Hi Louie and welcome to the community!

If you're looking for an automated solution, [Bitbucket Pipelines](https://support.atlassian.com/bitbucket-cloud/docs/build-test-and-deploy-with-pipelines/) allow you to run builds in order to deploy your code. Builds can run on Atlassian infrastructure or with a [runner](https://support.atlassian.com/bitbucket-cloud/docs/runners/) on your own machine.

During a Pipelines build you can use several tools to deploy all or some of your repo's source code, e.g.

* [rsync](https://bitbucket.org/atlassian/rsync-deploy/src/master/)
* [scp](https://bitbucket.org/atlassian/scp-deploy/src/master/)
* [ftp](https://bitbucket.org/atlassian/ftp-deploy/src/master/)
* [sftp](https://bitbucket.org/atlassian/sftp-deploy/src/master/)

You can deploy code to a server, as long as this server is accessible from the internet (or at least from the [IPs used by Pipelines environments](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-Bitbucket-Pipelines-build-environments) if the build runs on Atlassian infrastructure).

After you deploy your code, you can use the [ssh-run](https://bitbucket.org/atlassian/ssh-run/src/master/) pipe in order to run a command or script on that server. For the exact command or script you need to run, you'll need to check SQL Server's documentation.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

database

sql
Pipeline build fails error 500 Maven Java Project
Asked by Sidali DIOUANI:

Hello,  

We sometimes face connection instability on our build pipelines,   

<br />

`[INFO] BUILD FAILURE`  
4925
[INFO] ------------------------------------------------------------------------  
4926
[INFO] Total time: 04:32 min (Wall Clock)  
4927
[INFO] Finished at: 2023-11-02T09:37:44Z  
4928
[INFO] ------------------------------------------------------------------------  
4929
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.1:install-node-and-npm (install node and npm) on project webapp-consultation-intranet: Could not download Node.js: Got error code 500 from the server. -> [Help 1]  
4930
[ERROR]  
4931
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.  
4932
[ERROR] Re-run Maven using the -X switch to enable full debug logging.  
4933
[ERROR]  
4934
[ERROR] For more information about the errors and possible solutions, please read the following articles:  
4935
[ERROR] [Help 1] <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>  
4936
[ERROR]  
4937
[ERROR] After correcting the problems, you can resume the build with the command  
4938
[ERROR] mvn <goals> -rf :webapp-consultation-intranet  
------------------------------------------------------------------------------------------------------------------------------  

<br />

It's a maven java based project, the build passes 99% of the time but we do face this kind of error every now and then, I checked the existance of the library artifact in our S3 bucket and it is there and available ...  

Thanks for the help,  

regards,


Answers:
author: Theodora Boudale
body: Hi Sidali and welcome to the community!

The output shows that the build is trying to connect to a server to install node and npm and this server responds with a 500 status code. It is possible that it is overloaded at certain times and returns this 500 error.

I would suggest reaching out to the support team of the server you are trying to connect to for more details, as the error comes from this server and not from Pipelines.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Impossible to connect to web interface of Bitbucket
Asked by jems22:

Hi.  

I can't connect anymore to my account on bitbucket.org.

When I try to log in, I'm asked for a 2 step verification code, I enter the code provided by google Authenticator, but it doesn't work.

I did a reset, and used the link received by mail. I managed to disable 2 steps verification, but the problem still exist.

Does anyone can help ?


Answers:
author: Mark C
body: Hi [@jems22](/t5/user/viewprofilepage/user-id/2520321),

Thank you for reaching out to the community.

Could you confirm if you're entering the 2FA code from the Google Authenticator app that says:
> Bitbucket: Your_Username

You could also try the [Duo App](https://duo.com/product/multi-factor-authentication-mfa/duo-mobile-app#download) as an alternative.

Regards,  
Mark C

comments: author: jems22
body: Hello [@Mark C](/t5/user/viewprofilepage/user-id/1210823)   

Thanks for your feedback.  
Atlassian support sent me a mail to disable the 2FA, and i succeed to access to my repos.  
So problem is solve. Thanks a lot  

Regards


Tags: bitbucket-cloud

cloud
How to clone GitHub repo in Bitbucket pipeline using OIDC
Asked by long ho:

Hi [@AlL](/t5/user/viewprofilepage/user-id/4117909) , I using pipeline to clone GitHub repo and can using PAT, OAuth app for authentication. But it is possible to use OIDC for authentication. please help me reply as soon as possible.  
Thanks !


Answers:
author: Theodora Boudale
body: Hi [@long ho](/t5/user/viewprofilepage/user-id/5355385) and welcome to the community!

Bitbucket Cloud provides the option to enable and use OIDC with resource servers, but this also needs to be supported by the resource server you are connecting to. If you check our documentation [here](https://support.atlassian.com/bitbucket-cloud/docs/integrate-pipelines-with-resource-servers-using-oidc/) and [here](https://support.atlassian.com/bitbucket-cloud/docs/use-aws-ecr-images-in-pipelines-with-openid-connect/), you can find the Identity Provider URL and Audience in a repo's **Repository settings \> OpenID Connect**(if you are a repo admin), which need to be provided to the resource server.

I'm not sure if GitHub supports this, I would suggest reaching out to their support team in order to ask if this is possible. I searched online for info regarding OIDC and GitHub, but the only info I found is using OIDC from GitHub's CI tool to access other resource servers. I haven't found anything about using OIDC to access GitHub repos.

Kind regards,  
Theodora

comments: author: long ho
body: Thank you for your help. This answer really helped me a lot.


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


Tags: bitbucket-cloud

cloud
Can I disable changing of username in personal bitbucket settings?
Asked by Akhil_kumar1:

Can I disable changing of username in personal bitbucket settings?


Answers:
author: Theodora Boudale
body: Hi Akhil and welcome to the community!

It is not possible to disable changing usernames, every user is free to pick their username and change it at any time.

Are you looking to disable this for your user or for all users in your organization? May I also ask why you are looking to disable it?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Octopilot automate your Gitops workflow
Asked by chekju:

Hello community, I just started using Bitbucket pipeline. I was initially using Github Action.

I need to Automate GitOps workflow, by automatically creating/merging Bitbucket pipeline PRs.

While using GitHub Action I was working with

<https://github.com/dailymotion-oss/octopilot>

and

<https://dailymotion-oss.github.io/octopilot/>

<br />

I do have a question, working with Bitbucket pipeline, does Bitbucket pipeline have any docker image for Bitbucket pipeline to Automate Gitops workflow, by automatically creating/merging Bitbucket pipeline PRs


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

The Docker image you specify in your bitbucket-pipelines.yml file will be used to start a container where a certain build step runs, it won't do anything more. The repo will be cloned in this container, and then the commands of the step (from the bitbucket-pipelines.yml file) will be executed.

I had a look at the links you shared and I understand that Octopilot is a CLI tool to automate creating and merging PRs in GitHub. Atlassian doesn't have any such tool available. If there is one available from a third party, you may be able to use it during a Pipelines build.

Otherwise, you will need to write a script that does what you want and you can make use of our APIs for pull requests (you can check the different endpoints from the left sidebar, we have endpoints for creating and merging PRs):

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I would like to delete our bitbucket account but keep our JIRA
Asked by Vincent Dee:

We are no longer using bitbucket but still need our JIRA and Confluence. We do not want to keep getting charged for Bitbucket if we are no longer using it. How do we go about deleting our Bitbucket account only?


Answers:
author: Thuan_ Do Dang
body: Hi [@Vincent Dee](/t5/user/viewprofilepage/user-id/262175) ,

Bitbucket is a separate product. You can remove your space member below 10 then change your plan to Free plan.

Hope this helps!


Tags: bitbucket-cloud

cloud
Missing repositories
Asked by Mizage:

All my bitbucket repositories are missing. I haven't logged in in a while, and I can still push to my repos, but they are no where on my online account. I don't want to include the provide repo info here, and Atlassian email support refused to help and said I had to ask here, despite this being a sensitive issue.


Answers:
author: Patrik S
body: Hello [@Mizage](/t5/user/viewprofilepage/user-id/5355090) and welcome to the Community!

Checking internally I see your account has access to more than one workspace, and one of these workspaces has no repositories in it, while the other one contains multiple repos, so I suspect you are looking at the wrong workspace.

You can see all the workspace and select the one you want using the following link (you must be logged in) :

* <https://bitbucket.org/account/workspaces/>

That page can also be accessed by clicking in your**Personal Avatar** in the top right \> **All workspaces**.

After selecting the workspace from the list, you can click on the **Repositories** button in the top navigation bar to see all the repositories within that workspace.

Hope that helps! Let us know in case you have any questions.

Thank you, [@Mizage](/t5/user/viewprofilepage/user-id/5355090) !

Patrik S

comments: author: Mizage
body: Hey Patrik,

I only see the 1 workspace on that page, "asdflkjasdlhjkasfdlk", which I was forced to create when I logged in recently, after having not logged in in a few years. I see no other workspaces or repositories.

![Screen Shot 2023-11-02 at 12.11.09.png](https://community.atlassian.com/t5/image/serverpage/image-id/289841i3FE3C4F854BB2207/image-size/large?v=v2&px=999 "Screen Shot 2023-11-02 at 12.11.09.png")


author: Patrik S
body: Hey [@Mizage](/t5/user/viewprofilepage/user-id/5355090) !

It appears the workspace was in a dormant state due to a long time with no login. I've set it to active again, would you try again to access that page and let us now if it appears there now?

Thank you, [@Mizage](/t5/user/viewprofilepage/user-id/5355090) !

Patrik S


author: Mizage
body: It's back, thank you.


Tags: bitbucket-cloud

cloud