youngmon/atlassian-qna huggingface dataset:
Bug report: Bitbucket - JS is blocked because of Issue
Asked by Benedikt Keller:

Hello,  

currently new repositories can not be created because an JS issue prevents functionality:

Uncaught TypeError: o.Integrations.RewriteFrames is not a constructor  
at 10717 (sentry.js:1:1480)  
at n (sentry.js:1:110)  
at sentry.js:1:902  
at sentry.js:1:915

Browser Google Chrome (latest version)


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

I don't think that the Javascript errors are related to the issue you are facing.

Does this issue occur with the Bitbucket Cloud account that has the same email as your community account?

If so, this account does not have access to any workspaces. Repositories belong to workspaces, and you need to create a workspace first before creating a repo. Do you see an option to create a workspace when you log in to your account?

Kind regards,  
Theodora


author: Pavel Junek
body: Hi [@Benedikt Keller](/t5/user/viewprofilepage/user-id/5144026),

Reporting bugs on this forum (<https://community.atlassian.com/>) is not ideal. The Atlassian community is all about "Atlassian users helping other Atlassian users".

Your problem is in Bitbucket Cloud, where no application logs are available, please open an official Atlassian support ticket <https://support.atlassian.com/> for assistance.

Best Regards

Pavel


Tags: bitbucket-cloud

cloud

issue
HI Team, How can I communicate with 2 repos at build time?
Asked by Sandeep Maheshwaram:

am trying to communicate 2 repos at time of build , in the 1st pipeline the code will take from 2 repo , but am getting Error git@bitbucket.org permission denied .npm ERR! /usr/bin/git ls-remote -h -t ssh://git@bitbucket.org/ . can you help to resolve this am added my SSH keys also still am not able to get the solution...........


Answers:
author: Ben
body: Hey Sandeep,

I would suggest reading through this blog post below - it will show you how to clone from another repo at build time if you just need read permissions for the build:  
<https://bitbucket.org/blog/cloning-another-bitbucket-repository-in-bitbucket-pipelines>

You can also set an AppPassword or use SSH to push back to another repository by following the steps below if write permissions is what you need:  
<https://support.atlassian.com/bitbucket-cloud/docs/push-back-to-your-repository/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Markdown: nested bullet lists not indented correctly unless using 4 spaces or more
Asked by hsandt:

This is a reboot of <https://jira.atlassian.com/browse/BCLOUD-18483>, so more a bug report than a question, but the bot at the end asked us to reach the Contact form which led me to this space. (but I noticed users can still create new issues on JIRA, so maybe we should just reopen a new one instead?)

Summary:

- the markdown reader (such as README.md display on repository top page) doesn't recognize indentation with 2 spaces and only seems to recognize 4 spaces or more

- this is part of the CommonMark spec (<https://spec.commonmark.org/0.29/#lists>), so understandable

- however, many markdown editors will indent by 2 spaces by default. BitBucket's own Markdown editor defaults to 4, but if you have already started writing the file with 2-space indent in an external editor, when you edit it in the browser, BitBucket's editor will adapt and set the space indent to 2 (so you will think it's normal).

The issue is now well known as proven by <https://stackoverflow.com/questions/37575916/how-to-markdown-nested-list-items-in-bitbucket>

My suggestions would be:

a. Support different numbers of indent spacing (at least 2, possibly 1 and 3 although less common)

and/or

b. Add some warning below the editor if detected indent spacing is less than 4 and bullet lists are present

Honestly I'm not sure why the original issue was closed, an issue tracker seems a better place than the Question hub for this, but I'll wait for some replies here first.


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

Thank you for the feedback. There is another open feature request about this here:

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

You can add your vote to it by selecting the **Vote for this issue** link and 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.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Trouble cloning respository
Asked by Robert Albarran:

Hi,

I am trying to clone a repository to a remote server. Once logged into the remote server I run the following command:

git clone <https://ALBARRAN1@bitbucket.org/aplkaiju/kaiju.git>

and I then enter the password. It says that the password is does not work. I then reset my password several times and get the same error.

I am not sure what to do.

Thank you,

Robert


Answers:
author: Bastian Stehmann
body: Hi [@Robert Albarran](/t5/user/viewprofilepage/user-id/5144223) ,

You could try tonuse a token instead of the password.

<https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>


Tags: bitbucket-cloud

clone

cloud

repository
User does not receive invitation
Asked by Matheus Victor:

The user requested access to Bitbucket but the invitation had already been sent but it expired, when we tried to send it again the user did not receive the invitation in the email.  
Are there any platform locks in this scenario?


Answers:
author: Syahrul
body: G'day, [@Matheus Victor](/t5/user/viewprofilepage/user-id/5143870)

I believe there was an issue with the email delivery last week which might be why the resent invite did not reach the user.

Can you try to cancel the invite and re-invite the user again and let me know if that works?

Cheers,  
Syahrul

comments: author: Matheus Victor
body: Good morning Syahrul

Thanks, we'll try again that way and get back to you shortly.


author: Matheus Victor
body: Good morning Syahrul  

The user still hasn't received the email even after canceling the invitation and sending it again, is there any other way to add it?  


author: Syahrul
body: Hey [@Matheus Victor](/t5/user/viewprofilepage/user-id/5143870)

Thanks for the update. I have created a support ticket for you to continue the investigation.

You can view the ticket [here](https://support.atlassian.com/requests/BBS-198428/)

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Need GC on Remote ASAP!
Asked by Taylan ?zdo?an:

Hello my repo size exceeded its limits I need another remote GC asap please.  

url: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*


Answers:
author: Ben
body: Hey Taylan,

I have censored out the repo URL as this is a public forum.

I executed a gc, but the size did not reduce - it has remained at 4.1GB. I will be opening a ticket on your behalf in our support portal so I can gain access to your repo in the backend and check what might be causing the size issue.

Please check your email inbox for further correspondence.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to get last modified or created date using rest api?
Asked by Hidayat Ullah:

Hi,

I want to get date for a file last modified or for created mean when the file is created or when it's was last modified.

Is there any api I can used to fetch the date ?

Thanks


Answers:
author: Theodora Boudale
body: Hi [@Hidayat Ullah](/t5/user/viewprofilepage/user-id/5013135),

You can use the following API endpoint to list all commits that modified a certain file:

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

If you use the parameter **?fields=%2Bvalues.commit.date** in the URL you will also get the date of each commit, e.g.:

curl -u Bitbucket_Username:App_Password -X GET -H "Content-Type: application/json" <https://api.bitbucket.org/2.0/repositories/{workspace-id}/{repo}/filehistory/master/{myFile.css}?fields=%2Bvalues.commit.date>

The commit with the earliest date should be the one that created the file, while the one with the latest date should be the last modified for this branch.

Please note that the API URL needs a commit hash or a branch name and it looks for commits on a specific branch or reachable from the commit hash you provide. If you want to check the last modified date for different branches, you will need to run one API call per branch.

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

Kind regards,  
Theodora

comments: author: jcraig
body: Thanks, Theodora,

Is this curl statement for BitBucket Cloud? I'm using BitBucket Server and I'm not sure how to incorporate my server name into the curl statement. This doesn't work...

```
curl -u user:pass -X GET -H "Content-Type: application/json" https://host:7990/rest/api/2.0/repositories/vrc/vrc/filehistory/master/README.md?fields=%2Bvalues.commit.date
```

I get the response:

curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid

The Server REST API doesn't seem to have a "filehistory" command: [REST Resources Provided By: Bitbucket Server - REST (atlassian.com)](https://docs.atlassian.com/bitbucket-server/rest/5.10.0/bitbucket-rest.html#idm532027351696)

Thanks for your help!

Joel


author: Theodora Boudale
body: Hi Joel,

The info I shared is for Bitbucket Cloud only, Bitbucket Server has different APIs.

The following API endpoint for Bitbucket Server has the query parameter path:

* <https://developer.atlassian.com/server/bitbucket/rest/v810/api-group-repository/#api-api-latest-projects-projectkey-repos-repositoryslug-commits-get>

You can use that to get all commits that modified a certain file, for example;

```
http://{baseurl}/rest/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits?path=src/file.txt
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
ModuleNotFoundError: No module named 'semver'
Asked by Nozim Khodjaev:

Hello! I'm running into an issue when "semver" package are installed in one of the step in the bitbucket-pipelines.yml, but upon running the python code I see the following error:

Traceback (most recent call last):  
File "/opt/atlassian/pipelines/agent/build/<MyRepo>/main.py", line 2, in <module>  
import semver  
ModuleNotFoundError: No module named 'semver'  
In the requirements.txt, SemVer is set to: **semver==2.13.0**  
Any thoughts?


Answers:
author: Igor Stoyanov
body: [@Nozim Khodjaev](/t5/user/viewprofilepage/user-id/5143440) hi. Try to install requirements in the same step where you run you script:

```
- step:
    name: Test
    script:
      - pip install -r requirements.txt
      - python main.py
```

Also check that the last supported python version is 3.7  

Regards, Igor.

comments: author: Nozim Khodjaev
body: Thanks a lot [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492) ! That worked. Not sure if a different python version was the culprit


Tags: bitbucket-cloud

cloud
Can I Change repository environment variable value from shell script?
Asked by Mustafa Abdelhakam:

I know that I can set repository environment variable from repository setting,  
but I need to change it's value inside my script and use it's new value some where else.  

Is that possible?  

my goal is sharing text message that is generated in build_script.sh to slack-notify message.  

<br />

```
image: atlassian/default-image:4
pipelines:
custom:
new_publish:

- step:
name: new publish
script:
- echo "This step runs once you click the 'Run' button"
- /bin/sh build_script.sh

- pipe: atlassian/slack-notify:2.0.0
variables:
WEBHOOK_URL: $WEBHOOK_URL
MESSAGE: '"$MESSAGE that is generated in build_script.sh "'
```


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

Yes, this is possible. If you use a command like

```
- myVar="some text"
```

where **myVar** is a Repository variable, then the changed value will be used in the following commands of the same step. Please note that this will change the value of the variable for that specific step only, not for any other steps, and it won't change the value set in the Repository settings.

If you want to change the value of a variable in the Repository settings you can use the following API endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-variables-variable-uuid-put>

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

environment-variable

script
i am not getting invitation email
Asked by Adil Jabbar:

one of my client invite me on bitbucket for code access. but i could not get any email on my inbox.


Answers:
author: Ben
body: Hey Adil,

We had an issue yesterday with emails not being sent properly, this has since been fixed by our development team. I cannot see any internal blockage for your particular email address and our SMTP logs appear to be showing that you are able to receive emails.

Are you able to ask your client to cancel the invitation and re-send it?

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Auto-Suggested Pull Requests
Asked by Chase Barrett:

We recently moved from on-prem Bitbucket to Bitbucket Cloud. One of the nice features about on-prem was that whenever you made a commit to a repository, the next time you came to the bitbucket home page, it would show the repository and branch for that commit, and then ask if you wanted to create a pull request for it.

Our entire dev team loves that feature, and wishes it was on the cloud version. As it is now, you need to 1) drill in from the home page to the repository of interest 2) click on the pull requests nav bar item 3) click create pull request and 4) select the source branch. All four of these steps were accomplished in one click in the on-prem version.

Is this possible to do in Bitbucket Cloud? I've searched the open issues in the Bitbucket bug tracker, as well as the discussions and questions in Bitbucket community, but I don't see mention of this feature.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Chase,

+1 for your request.

I do miss this feature, too. What I usually end up doing in BB Cloud is to go to repo \> branches and find the branch(es) with the most recent updates on top of the list.

From there I do create a pull request.

Not ideal as you still need to locate the repository...

Best, Ulrich

// Izymes


Tags: bitbucket-cloud

cloud
Where are Bitbucket wikis and page histories stored?
Asked by Allen Huffman:

I just noticed one of my repository wikis was gone, thought the readme link to it was still there (so I know it was this repository).

Where are the wiki pages actually stored? There is a support page here that says they are part of the DCVS and can be edited locally. I'd like to find history showing how they got deleted or at least know where they were so I can retrieve a local mirror of them that might exist.

Thanks!


Answers:
author: Allen Huffman
body: It appears cloning the repository with /wiki at the end gives me the Wiki. Unfortunately, it only has the files from when I "enabled" the Wiki again last week, with no earlier history. Perhaps something happened to disable the Wiki, and it is lost, but we are hoping there is a backup at Bitbucket. Re-enabling started everything over with just the one generic help page.


Tags: bitbucket-cloud

cloud

wiki
deploy the code to ec2 machine using jump server via anisble getting Connection closed by UNKNOWN
Asked by Muhammad Ahtisham Ul Haq:

I try to use ansible in bitbucket pipeline to deploy to ec2 using a jump server. but whenever i try to run the pipeline i get the error  
Failed to connect to the host via ssh: kex_exchange_identification: Connection closed by remote host\\r\\nConnection closed by UNKNOWN port 65535"  
the ansible code is working fine to my local machine when i manual try to update the code.  
I have also try to remove the host key checking in the ansible host or inventory file but no luck on bitbucket pipeline.


Answers:
author: Theodora Boudale
body: Hi [@Muhammad Ahtisham Ul Haq](/t5/user/viewprofilepage/user-id/4878140),

I would like to ask some questions to better understand your setup:

**1)** Are you using Pipelines builds that run in our own infrastructure or are you using [Runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/)?

**2)** If you're using runners, which type of runner are you using (Linux Docker, Linux Shell, Windows, or MacOS)? What is the version of the runner?

**3)** In order to connect to your server via SSH, are you using the SSH key pair generated in the Bitbucket UI from Repository settings or an SSH key pair you generated yourself?

**4)** Can you add the argument **-vvv** to the SSH command in order to get more verbose output, and paste the output here?

Kind regards,  
Theodora

comments: author: Muhammad Ahtisham Ul Haq
body: I am using atlassian/default-image:4 in pipeline.

i generated the public and private ke from the pipeline ssh-key from bitbucket UI setting and add the public key to the server.

When i try ansible on my machine using that key i am able to configure the server but in bitbucket pipeline i get the error "Failed to connect to the host via ssh: kex_exchange_identification: Connection closed by remote host\\r\\nConnection closed by UNKNOWN port 65535".  

Will try to use -vvv in the host of the ansible and share


author: Theodora Boudale
body: Hi,

Are you using Pipelines builds that run in our own infrastructure or are you using one of our [Runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/) listed on this page? I see that your workspace doesn't have any Pipelines build minutes usage for the current billing period. If you're using a runner, then the **bitbucket-pipelines.yml** file will have the **runs-on** parameter for the steps that run on a runner.

Please let me know, and it would also be useful to have the output of the ssh command with the -vvv argument.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unabe to see my recently added files from git
Asked by LakshayChinda:

Unable to see my recently added files from git through Source tab on online website but when I try to see them through commit I see them .

Is this a bug ?

Also When I try to Get I am not able to get the un seen files


Answers:
author: Manju
body: Can you please explain your issue in detail?   
What version of Sourcetree are you using and on what OS?  
Where did you add the file?  
What website are you referring to?
Sourcetree Notification
Asked by Arjun Jadhav:

I am new in this,

Suppose, i am working on abc.txt file on my local system and didn't commit my change. And another user also trying to modify same file, that time he will get notification or email,xyz user already working on it.

is it possible in sourcetree or you have any alternative for this issue.?

Thanks in advance


Answers:
author: Hugo Zijlmans
body: Can you please elaborate a bit? Are you using git and are you expecting this feature?

*And another user also trying to modify same file, that time ++he will get notification++ or email,xyz user already working on it.*

comments: author: Arjun Jadhav
body: Hi Hugo,

Yes, I am using Git and I am expecting this feature.

is any way to alert another user don't modified particular file something like.

Thanks


author: Hugo Zijlmans
body: I guess you're looking for sharepoint or SVN 'lock' like feature. I don't think git allows you to 'lock' files. Pop-ups are also out of the question. I don't think you will find a feature like this in git. Especially on non text based document I do get you would want to but unfortunately it's not meant to do this. Just commit your changes, and the 'second' editor will see that something is up when he fetches and then tries to commit his changes based on previous commit (which precedes your changes).

<https://stackoverflow.com/questions/13662255/is-there-a-way-to-lock-individual-files-or-directories-on-fork-when-using-github>
Sourcetree crashes
Asked by Aliaksandr Lindarenka:

Sourcetree crashes on repo opening.

Process: Sourcetree \[20839\]  
Path: /Applications/Sourcetree.app/Contents/MacOS/Sourcetree  
Identifier: com.torusknot.SourceTreeNotMAS  
Version: 2.7.6 (177)  
Code Type: X86-64 (Native)  
Parent Process: ??? \[1\]  
Responsible: Sourcetree \[20839\]  
User ID: 501

Date/Time: 2018-07-24 18:38:14.285 +0300  
OS Version: Mac OS X 10.13.6 (17G65)  
Report Version: 12

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)  
Exception Codes: 0x0000000000000001, 0x0000000000000000  
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4  
Termination Reason: Namespace SIGNAL, Code 0x4  
Terminating Process: exc handler \[0\]

Application Specific Information:  
Crashing on exception: \*\*\* -\[__NSCFConstantString substringFromIndex:\]: Index 2 out of bounds; string length 0


Answers:
author: Manju
body: Can you please file a ticket on our [public issue tracker](https://jira.atlassian.com/browse/SRCTREE) with the relevant steps and crash log?


Tags: mac
Newly-Added files don't show up in source tree
Asked by VictorValencia63:

I just have a master branch. I added some files committed and pushed to bitbucket.

The info for my commit shows that I added a files to a subdirectory. When I

browse using source tree though I don't see the new files. I've tried refreshing

the page etc but no luck. If I click on "filter files" my newly-added files show

up in the list. Why can't I see them in the default source tree view?

Victor


Answers:
author: Hugo Zijlmans
body: Dear Victor,

please understand that sourcetree (especially default view) is not meant for file browsing. You can view 'all' files by changing the filter to include 'show only' -\> 'All'. However in sourcetree it's meant to show you the (pending) changed files only as they (their changes) would be a part of your next commit. If you want to browse your files, feel free to use your file explorer of choice.

comments: author: VictorValencia63
body: Hi Hugo,

Thanks for your response. I may be using the wrong term. By source browser

I mean clicking on "Source" when viewing my repository on bitbucket.org. I

am expecting to see all the files in a specific subdirectory. One of the files

in question is called "baseStation.c" It shows up in the commit as shown

here:

![commit.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/27848iB9CF48388A6C97A9/image-size/large?v=v2&px=999 "commit.jpeg")

But it does not show up in the source view as shown here:

![browse.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/27849iDD3F8DA01470FA18/image-size/large?v=v2&px=999 "browse.jpeg")


author: Hugo Zijlmans
body: I think you've committed but haven't pushed the sources towards bitbucket. I can see the files are marked 'A' as in added but I think something went wrong transferring the files. Can you try to push again from sourcetree? I that doesn't work, you have to figure out the rights git commands to do it.


Tags: bitbucket

bitbucket-cloud

cloud