youngmon/atlassian-qna huggingface dataset:
Email Notification SES
Asked by Giulio Loffreda:

Hi there

Trying to setup an email notification using AWS SES and I'm getting the message:  
? Failed to send email to [email@server.com](mailto:giulio@loffreda.com.br). Check your configuration settings.  
- step:  
name: Send Email  
script:  
- pipe: atlassian/email-notify:0.8.0  
variables:  
HOST: 'email-smtp.sa-east-1.amazonaws.com'  
PORT: 587  
USERNAME: $AWS_SES_KEY_ID  
PASSWORD: $AWS_SES_KEY_SECRET  
FROM: 'origin@server.com'  
TO: 'email@server.com'  
SUBJECT: 'Task Microservice'  
BODY_PLAIN: \|  
Please find the attached the source code.  
ATTACHMENTS: forward-staging.zip

Tried the port 587 as well.  
Any help ?


Answers:
author: Abhishek P
body: Hi [@Giulio Loffreda](/t5/user/viewprofilepage/user-id/5099450) For FROM and TO email ID you have added them in AWS SES Identities and verified it ?


author: Oleksandr Kyrdan
body: Hi [@Giulio Loffreda](/t5/user/viewprofilepage/user-id/5099450)

Thank you for your question!

Have you tried add DEBUG variable to see more debug logs?  

Best regards,  
Oleksandr Kyrdan

comments: author: Abhishek P
body: Hi [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705) ,

I am getting similar error message. Is there any document which we can refer for using AWS SES SMTP for email-notify pipe.

Thanks

Abhishek P


Tags: bitbucket-cloud

cloud
Can't log into Bitbucket
Asked by David Ergo:

Hello,

I can't log into Bitbucket, I keep getting the "We couldn't log you in" error, whatever browser I use.

I can however log into Trello without issue.

From what I saw in another ticket, it may be because my Bitbucket account has been deactivated, could you please check this ?

Best regards,

David


Answers:
author: Ben
body: Hey David,

Welcome to the Bitbucket Cloud Community! :)

The reason you were unable to login was that your workspace was inactive and marked as DORMANT, due to not logging in to the workspace for a very long time.

I have re-activated your workspace, so you should be able to log in again now :)

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: David Ergo
body: Thank you Ben !


author: Ben
body: No worries David!

Glad to be of assistance.

I hope you have a happy holiday and new year :)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
GitHub to Bitbucket Migration
Asked by Sunil Chhabra:

We are planning to migrate 15-20 repositories from GitHub to Bitbucket,

Is there any checklist of the all the items that we migrate?

It seems that PR, Issues can not be migrated with Bitbucket Import feature, is there any automated way to migrate the same?

Is there anything else that cannot be migrated with Bitbucket Import feature?

Any known issues/problems that can be faced?


Answers:
author: Aron Gombas _Midori_
body: If it is important you can write code to migrate more details than just the code.

Because both GitHub and Bitbucket Cloud has its own REST API, you could e.g. get the list of PRs from GitHub (with the source repo/branch/hash and the target repo/branch/hash) and create their equivalents in Bitbucket Cloud.

(Or, if you have only a few of these, you can even re-create them manually.)


Tags: bitbucket-cloud

cloud

migration
How to use this tool to find all cloud accounts in my name
Asked by italianhamma777:

I am trying to hunt down all my cloud accounts so I can take an inventory but I was hoping there was a tool in here for that.


Answers:
author: Nic Brough -Adaptavist-
body: There is nothing in Atlassian that can do that - the only way to do it would for be you to provide them all the possible email addresses you may have used to create an Atlassian account.

If you mean all the Atlassian systems you may have created, then log into my.atlasian.com and look to your products list.


Tags: bitbucket-cloud

cloud
by mistake one of my developer deleted the branch how to recover?
Asked by shubh:

by mistake one of my developer deleted the branch how to recover?


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

If the remote branch was deleted on Bitbucket Cloud website, as Hana mentioned, one of your developers may have it in their local clone, and they can push it again to Bitbucket.

If a local branch was deleted in a clone of the repo and the branch exists on Bitbucket, it can be pulled locally.

If a local branch was deleted before it was pushed to Bitbucket, you may be able to restore it from the git reflog or dangling commits, you can check the following KB for more details:

* <https://confluence.atlassian.com/bbkb/how-to-restore-a-deleted-branch-765757540.html>

Kind regards,  
Theodora


author: Hana Ku?erov?
body: Hi [@shubh](/t5/user/viewprofilepage/user-id/5098932) ,

welcome to the Atlassian Community!

If somebody has local copy of the repository, it can be easily pushed back.


Tags: bitbucket-cloud

cloud
API: Update the branching model config for a project
Asked by kadelyst.io:

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-branching-model/#api-workspaces-workspace-projects-project-key-branching-model-settings-put>

Created apppassword with every single permission and calls to this method still result in 403 forbidden


Answers:
author: Alex Koxaras _Relational_
body: Hi [@kadelyst.io](/t5/user/viewprofilepage/user-id/5098710) and welcome to the community,

According to the API, 403 means that the authenticated user does not have admin access to the **project**. Can you confirm that the user you run this http request has access to the specific bitbucket project?

comments: author: kadelyst.io
body: Yes

"Created apppassword with every single permission"

I am successfully using many other api methods, this one just seems to be having the issue.

Just was wondering if maybe it's a known issue, otherwise likely my code


author: kadelyst.io
body: Ah, copy/paste laziness, the method is PUT not POST


Tags: bitbucket-cloud

cloud
Username already exists revisited
Asked by Mike Shirk:

Hi, I'm logged into my Atlassian account, but I can't access Bitbucket (haven't used it in a while). I keep getting the error message "A user with that username already exists." I can see the repository here: <https://bitbucket.org/shirkworx/>. Any help would be greatly appreciated!

![sw_bitbucket.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/229996iAD92A5FFDC39F43D/image-size/large?v=v2&px=999 "sw_bitbucket.jpg")


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

The prompt to create a username shows up when there is no Bitbucket Cloud account with the email you logged in as a primary email.

If you don't remember what is the primary email of your Bitbucket account, I would suggest trying to log in to <https://bitbucket.org/> with any of the other email addresses you own, and see if you get access to your account. If you get prompted to create a username when trying to log in with a certain email, this means that there is no Bitbucket account with that email as primary, so you can skip the process for that email. You can use the following link if you don't remember the password and need to request a password reset email: <https://id.atlassian.com/login/resetpassword>

Kind regards,  
Theodora


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

If the account already exists, you don't need to create it again. Try the "return to log in" and then log in with the account (there's a "forgot password" link on the login screen if you need it)


Tags: bitbucket-cloud

cloud
Not receiving Accept Repository Transfer Email
Asked by xinwo:

I just transferred one of my repo to a friend, but he doesn't get the mail.


Answers:
author: Dave Liao
body: [@xinwo](/t5/user/viewprofilepage/user-id/729178) - hi xinwo!

* I would confirm if you have the correct email for your friend
* Have your friend check their Spam folder?
* Ask your friend if they have another email, in case their email domain is in Atlassian's suppression list for some reason?

comments: author: xinwo
body: Thank you.

Got the mail finally.

It seems there is some time lag.


author: Dave Liao
body: Good to know, thanks for confirming!


Tags: bitbucket-cloud

cloud

transfer
I want to download my private repository from bitbucket using api calls from my flutter app.
Asked by Devansh Mathur:

I want to download my private repository from bitbucket using API calls from my flutter code(DART), how can I download?


Answers:
author: Mark C
body: Hi [@Devansh Mathur](/t5/user/viewprofilepage/user-id/5098051),

Welcome to the community.

Unfortunately, we don't have an official API endpoint for you to use to download a repository.

Right now, we have the following workarounds:

To download or get a specific file from your repository, you can use this API endpoint. - [Get file or directory contents](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-commit-path-get)

To download a repository as a compressed folder, you can use the endpoint below which is also used in your repository **Downloads** section.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that it only downloads specific revisions from your repository (e.g. the latest commit or tags or branches)

```
curl -u bbusername:app_password https://bitbucket.org/{workspace}{repo}/get/master.tar.gz -o master.tar.gz
```

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

Regards,  
Mark C

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

Thank you for the answer.

I already know about this API to download files I was only searching for an API to download the repository.

And I got the API for which I was looking.

Regards,

Devansh


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

Can you provide the documentation for this curl.

curl -u bbusername:app_password <https://bitbucket.org/{workspace}{repo}/get/master.tar.gz> -o master.tar.gz

I am not able to hit API through my flutter code.


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

And please do let me know the response type or the encoding technique used in the response of this API.

I am not able to process the data received from this API using my flutter code.

I have used both Dio and HTTP packages in flutter for API call and an exception is received that is

"XMLHttpRequest error"

I have tried this link <https://stackoverflow.com/questions/65630743/how-to-solve-flutter-web-api-cors-error-only-with-dart-code/66879350#66879350>

it says to disable the security.

and after disabling the security the API gives me the response.

so is there any way to hit the API without disabling the security?


Tags: bitbucket-cloud

cloud
How to create Access Token for my account
Asked by Mukundhan R:

I need to create Authorization token to use rest API of Bitbucket.   
The documentation showing to create HTTPS token inside manage account, there I can find only create API token which is not working in postman also..


Answers:
author: Aron Gombas _Midori_
body: This is the documentation related here: <https://support.atlassian.com/bitbucket-cloud/docs/repository-access-tokens/>

Note that after creating the token, that should *not* be used as a BASIC auth token! It should be used like this:

```
Authorization: Bearer <repository_access_token>
```

See: <https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/>


author: Nat Tsai
body: Hi,

Maybe you can try the app password in personal settings.


Tags: bitbucket-cloud

cloud
How to create a branch using the cloud api
Asked by Mohammed Muthahhar:

I tried to use the api to create a branch. But it gives some error..

What exactly we want to give in the payload in post?

What commit hash value we want to enter??

curl <https://api.bitbucket.org/2.0/repositories/seanfarley/hg/refs/branches> \\ -s -u seanfarley -X POST -H "Content-Type: application/json" \\ -d '{ "name" : "smf/create-feature", "target" : { "hash" : "default", } }'


Answers:
author: Aron Gombas _Midori_
body: \> What commit hash value we want to enter??

The hash identifies the commit from which you want to start your new branch, I guess.


author: Fabio Racobaldo _Herzum_
body: Hi [@Mohammed Muthahhar](/t5/user/viewprofilepage/user-id/5070356) ,

please try the following api :

```
curl https://api.bitbucket.org/2.0/repositories/{repo_slug}/src/ --F "parents={parent_hash}" --F "branch={branch_name}"
```

Keep in mind that you need to be authenticated first.

Hope this helps,

Fabio


Tags: bitbucket-cloud

cloud
HTTP Status 404 ? Not Found
Asked by Mathavan:

Hi Team,  

I did some changes in **"Server.xml"** file and later unable to login Bitbucket.  

This is an UAT.  

![UAT Bitbucket.PNG](/t5/image/serverpage/image-id/229790iAE03388745473D95/image-size/large?v=v2&px=999 "UAT Bitbucket.PNG")  

Please help me with it.  

Thanks,  
Mathavan Mathiyalagan


Answers:
author: Christian Glockner
body: Hi,

If you undo the changes (what did you change by the way?), does it work again?

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Mathavan
body: Thanks for your response.  

I didn't backup "Server.xml" file, So don't know about what are the changed I made.  

Can you please guide with this.  

Thanks,  
Mathavan Mathiyalagan


author: Mathavan
body: Hi Team,  

Can you assist me about above query?  

Thanks,  
Mathavan Mathiyalagan


Tags: bitbucket-server

server
Unable to push in read only mode
Asked by hemant chauhan:

i am unable to push one of my repository as it shows

"remote: repository is in read only mode (over 2 GB size limit)

! \[remote rejected\] develop -\> develop (pre-receive hook declined)

error: failed to push some refs"


Answers:
author: bgannin
body: This is a response from your hosting service (Bitbucket or GitHub) indicating this repository reached their specified limit. To resolve that you'll need to either increase the size of that repo on the service, enable LFS and move out large items, or prune commits with large contents to shrink the overall size of the repo on disk. HTH.
SSH key not created from PuttyKeygen not cloning any Remote repository
Asked by Monny Walia:

SSH Key that is not created from Putty Keygen (created from GitUI) is not cloning any Remote repository irrespective of adding it under 'Pageant.

Permission denied error gets displayed.

I was able to configure it successfully when I created a Key from Putty Keygen and was successfully able to add it and Clone the Remote Repository.


Answers:
author: Kurt Klinner
body: [@Monny Walia](/t5/user/viewprofilepage/user-id/1201327)

Can you provide some more details.

Was the pub key correctly added on the remote site?
remote: Invalid username or password.
Asked by ZenPhysics:

was working fine, updated embedded git, updated embedded mercurial

windows 10

using source tree v 2.4.7.0

error below:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master  
fatal: HttpRequestException encountered.  
An error occurred while sending the request.

fatal: HttpRequestException encountered.  
An error occurred while sending the request.

remote: Invalid username or password.  
fatal: Authentication failed for '<https://github.com/CCurra/VoodooEscape.git/>'

Pushing to <https://github.com/CCurra/VoodooEscape.git>  
Completed with errors, see above.


Answers:
author: minnsey
body: Hi  

GitHub changed their protocol support, removing TLS 1.0 and 1.1 you will need to install Git 2.16+ and set Sourcetree to use it.  

We have an update coming soon that will update the embedded version of Git in Sourcetree to this version, but for now you need to update and use System Git.
SourceTree 2.4.8.0 installation on windows: broken GUI?
Asked by Herbert Wurst:

Hi,

I'm currently trying to install SourceTree 2.4.8.0 on Windows 7, but when I hit "use an existing account" in step 3 of the installation a new window with no GUI opens and nothing happens.

I already created an Atlassian account and also tried re-downloading the installation file.

Anyone?


Answers:
author: Ana Retamal
body: Hi Herbert! Are you getting a blank screen? Or is it something different? If you're on Windows, one of the first things you should check is that Internet Explorer is updated to the latest version, as Sourcetree relies on it for Authentication.

If you're still having issues after that, you can use the following workaround:
> From a working install collect the accounts.json and passwd files.
>
> Delete the Atlassian folder from the AppData/Local directory for your user. Run the installer for 2.3.1, close it when you get the blank login window. Place the account.json and passwd files into the Atlassian/SourceTree folder. Rerun the installer. It should detect the account and password from those files and bypass the request for a login.

Note that in order to be in compliance with the Atlassian EULA you must ensure the email address used in the file is valid, yours and associated with a valid Atlassian account.

Let us know if you need any further assistance!

Cheers,

Ana


Tags: install
Downloading sourcetree has an issue connecting to https://common-admin-cdn.atlassian.com/
Asked by shravya muppidi:

I tried installing sourcetree on one of the new machines.(We have it installed and up and running on many machines in our company from several days) and facing issue while connecting to existing account or creating a new one( See below screen shot). I tried to ping the same url from my phone and home network and it says access denied.

![source tre1.png](https://community.atlassian.com/t5/image/serverpage/image-id/17855iB30426358BCB0840/image-dimensions/430x197?v=v2 "source tre1.png")

![source tre.png](/t5/image/serverpage/image-id/17854i4FC1959071392B21/image-size/large?v=v2&px=999 "source tre.png")


Answers:
author: yangwudong
body: This issue is happen again, please check by <https://common-admin-cdn.atlassian.com/atlassian-id/front-end/2.6.11>


author: bgannin
body: Hi,

In your screenshot you appear to have connected to the server itself, not the complete URL specified on the error page in your second screenshot. What happens when you try that full one instead of attempting to access to the root of the server?

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: bgannin
body: The second screenshot typically indicates a network restriction imposed by an administrator about loading JS.


author: shravya muppidi
body: I get the same error as the one when connecting to the server which is access denied. I get the same error from my phone and home network so it is not something related to network restriction

Url: <https://common-admin-cdn.atlassian.com/atlassian-id/front-end/2.4.27>

Error:

\<Error\>\<Code\>AccessDenied\</Code\>\<Message\>Access Denied\</Message\>\<RequestId\>9D811F1E746728BA\</RequestId\>\<HostId\>4mrC7hc9AHsQ9oRv9INzrLRFBECW48FUYbSIyDZlZ7RS4N1EjJh4UFcTwjp4Zz+ePeBVaGnF+Vc=\</HostId\>\</Error\>


author: Mike Corsaro
body: Hello! This is a problem with our identity provider. I'll ping them and see if there's any issues. Thanks!

comments: author: shravya muppidi
body: Thank you. Please let me know once the issue is resolved


author: Chris Jones
body: Hi Mike, any update?
SourceTree failed to start
Asked by pankaj thorat:

Hi,

I am using SourceTree software about 1 year but after some months it's intermittently getting crahsed or not getting start. So I need to reinstall it everytime.

Is there any system configration required for this software or there is any other causes ?

Please let me know.

Thanks.


Answers:
author: Dmytro Vasyliuk
body: Hello! Could you please provide us with the log message from %localappdata%\\Atlassian\\SourceTree\\sourcetree.log file when application got crashed next time? Of course if you're using it on Windows:)

Thanks.
Commit, pull and push fail because of unresolvable problem with index.lock
Asked by Jeremy Wyatt:

Recently I have this problem all the time when I try to commit, push or pull.

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree pull origin master

From <https://github.com/ferdianjovan/phd_thesis>

\* branch master -\> FETCH_HEAD

error: Unable to create '/Users/jlw/Documents/phds/ferdi/phd_thesis/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.

an editor opened by 'git commit'. Please make sure all processes

are terminated then try again. If it still fails, a git process

may have crashed in this repository earlier:

remove the file manually to continue.

Updating 9af7830..8772a55

Completed with errors, see above

This happens across multiple repos, and operations. Any suggestions?


Answers:
author: Jeremy Wyatt
body: By the way, I've tried killing stray git processes, restarting, and deleting the index.lock file. These don't seem to work (at least not reliably)

comments: author: sicklesart
body: Did you find an answer to this problem?
How to show the git log of files named .content.xml in SourceTree?
Asked by Hans-Peter St?rr:

The Adobe Experience Manager (AEM) uses truckloads of files named .content.xml. When I try to examine the git log of such a file, it refuses to do so with the error message:  

Potential security issue detected in the specified URL. Sourcetree determined this URL is in an unsupported format.

Is it possible to configure it somehow that it allows this? Or should I file a bugreport?

Thanks so much,

Hans-Peter St?rr


Answers:
author: bgannin
body: Please file a bug report, <https://jira.atlassian.com/browse/SRCTREE> (macOS) or <https://jira.atlassian.com/SRCTREEWIN> (Windows), and we'll follow up asap. Thank you for your patience and the note.

Brian Ganninger  
Senior Mac Developer, Sourcetree