youngmon/atlassian-qna huggingface dataset:
Bitbucket reports "An SSL error occurred, please check that the provided resource uses https."
Asked by Helcio Mayor:

* Jenkins 2.361.3
* Atlassian Bitbucket v7.21.3
* Bitbucket Server Integration 3.3.3 plugin
* Jenkins is set to use "Multibranch job", so repo pushes should trigger jobs in Jenkins
* Bitbucket/Jenkins works correctly via a multibranch webhook using HTTP both ways.
* Disabling 443 port gives different error when testing webhook, so I know that Bitbucket is reaching Jenkins
* I don't have **"Application Link to Jenkins"** set in Jenkins, but as it works in HTTP I would expect that this feature is not necessary for Webhook integration
* After moving Jenkins to **HTTPS**, Jenkins sucessfully sets webhook in Bitbucket, but it doesn't work from Bitbucket side. Testing the Webhook generated by Jenkins returns

```
An SSL error occurred, please check that the provided resource uses https.
```

If you have any information which could help sort this issue would be great.

Thanks a lot for reading this issue and possible support in advance!


Answers:
author: Erez Maadani
body: Hey [@Helcio Mayor](/t5/user/viewprofilepage/user-id/5078229)

Did you setup a valid SSL certificate for your Jenkins or is it self-signed certificate?

The best way to debug these kind of errors is to login to the the client machine (BitBucket) and make curl requests to the target machine (Jenkins).

Hope it helps.

comments: author: Helcio Mayor
body: Hi Thanks for your reply. No its not a self-signed. Sure, I have to know what message Jenkins is returning really.


author: Erez Maadani
body: Also, does Jenkins https work from other machines/clients?

The answer to this question will help focusing your search: If you manage to connect to Jenkins https from different client - Look into the BitBucket webhooks setup. If no client manage to connect to Jenkins https, look into Jenkins https configuration.


author: Helcio Mayor
body: Sure and thanks! Yes I can connect from different clients using HTTPS. The webhook I am testing was created from Jenkins when I saved the multibranch setup which is what Jenkins does. I have used steps similar to [Adding a certificate to Jenkins on Windows. - things from here and there (joeypiccola.com)](https://www.joeypiccola.com/adding-a-cert-to-jenkins/) to make Jenkins to use HTTPS (I use Windows). Slight different to convert keys as I had to use powershell. I am just wondering when the api call is from Bitbucket it may try to find certificate in another path.


Tags: bitbucket-server

integration

jenkins

server

webhook
Bitbucket pipeline ip whitelisting issue
Asked by Tagnpin:

Hi,

I am using the bitbucket pipeline to run our unit test cases.

In my package.json file, I am using the project host on bitbucket with the IP whitelisting enabled security.

I also whitelisted the IP mentioned on the bitbucket portal

IPv4: 18.205.93.0/25, 18.234.32.128/25, and 13.52.5.0/25

IPv6: 2406:da00:ff00::0/96

Still getting the error while installing npm packages.

**ERROR: npm ERR! remote: To access this repository, an admin must whitelist your IP.**

PFA for your reference

![Screenshot 2022-11-14 at 12.36.20 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/225491i81C2E8A4799119A4/image-size/large?v=v2&px=999 "Screenshot 2022-11-14 at 12.36.20 PM.png")


Answers:
author: Ben
body: G'day!

I would suggest reading the following documentation for IP addresses that need to be whitelisted - particularly the section **"Valid IP addresses for Bitbucket Pipelines build environments"** and whitelist these accordingly:  
<https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

You can determine the exact IP address for a given build by adding the following to your pipelines YML - this should be a part of the list linked above:

```
curl http://checkip.amazonaws.com/
```

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Tagnpin
body: Thanks, Ben I have whitelisted entire Valid IP addresses for Bitbucket Pipelines build environments.

Now its working


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Cannot see artifact in the interface
Asked by Andy Tomlin:

I added an artifact to collect a logfile from the test run. The instruction say select artifact tab in the pipeline review results - but I cannot see any tab. I am guessing that somehow my artifact is not collected as either I have configured it wrong or its because the test failed. Looking for suggestions.


Answers:
author: Andy Tomlin
body: Use artifacts: not artifact:

dont use ./ in path


author: Mark C
body: Hi [@Andy Tomlin](/t5/user/viewprofilepage/user-id/4868605),

Thank you for reaching out to the community.  
For the artifacts you've configured, would it be possible for you to confirm if the file is located within the clone directory (**BITBUCKET_CLONE_DIR** ) as mentioned in the [documentation](https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/)?

Could you also share your artifacts configuration?  
For example:

```
        artifacts:          - some_folder/**
```

Regards,  
Mark C

comments: author: Andy Tomlin
body: artifact:  
- ./ascari.log


author: Andy Tomlin
body: I did an additional test:  
- step:  
name: artifact test  
image: justinjones/qi-dev:v1.00  
script:  
- echo test \> ascari.log  
artifact:  
- ./ascari.log  
Still do not see and log


author: Andy Tomlin
body: Nevermind. I see my issue artifact not artifacts

Doh!


author: Andy Tomlin
body: Well, almost. at least I now see the artifact tab. But it says no artifact uploaded


author: Andy Tomlin
body: - step:  
name: artifact test  
image: justinjones/qi-dev:v1.00  
script:  
- echo test \> ascari.log  
artifacts:  
- ./ascari.log  
Creates the artifact tab but there is no file


author: Andy Tomlin
body: ok looks like dropping ./ works


Tags: bitbucket-cloud

cloud
Unable to sign in
Asked by John O_shea:

*** ** * ** ***

I'm getting the following error regardless of what browser I use and even in private browsing modes

![A482B02F-09CC-49B4-A47F-9EA5EBC22F5C.png](https://community.atlassian.com/t5/image/serverpage/image-id/225411i2F2CF20B82711D42/image-size/large?v=v2&px=999 "A482B02F-09CC-49B4-A47F-9EA5EBC22F5C.png")


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

The Bitbucket Cloud account with the same email as your community account was deactivated, which I believe is the reason for the error you were seeing.

I went ahead and reactivated it, could you please try to log in now and let me know if it works?

Kind regards,  
Theodora


author: Fabio Racobaldo _Herzum_
body: Hi [@John O_shea](/t5/user/viewprofilepage/user-id/5077265) ,

welcome to the Atlassian community!

There is a similar thread <https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-login-Bitbucket-We-couldn-t-log-you-in/qaq-p/1896018> and it seems that could be related to an inactive account.

Try to raise a support request <https://support.atlassian.com/contact/>

Hope this helps,

Fabio


Tags: bitbucket-cloud

cloud
Why are my markdown tables not working?
Asked by Paul Smith:

Markdown tables are included in the syntax guide. However they do not appear to work with README.md files.

```
HEADER

| one | two | three |

|---|---|---|

| one | two | three |
```


Answers:
author: Paul Smith
body: The problem turned out to be with prettier trying to format the table incorrectly. In order for the table to display correctly in Bitbucket, all of the borders must be aligned perfectly.

```
HEADER


| one | two | three |

|-----|-----|-------|

| one | two | three |

```


author: Theodora Boudale
body: Hi Paul and welcome to the community.

You need to remove the triple backticks (unless they are part of code blocks before and after the table) and also leave a new line between HEADER and the table.

The following should work:

HEADER

\| one \| two \| three \|  
\|---\|---\|---\|  
\| one \| two \| three \|

Kind regards,  
Theodora

comments: author: Paul Smith
body: The backticks were not in my actual MD file. Added them to try and format my question, but they did not work as expected on this forum.


author: Denis Baltor
body: This is the smallest form I could find that worked for me:

```
header1|header2|header3
---|---|---
one|two|three
one|two| three
```


author: Eugenio Mir?
body: I think the correct syntax is to have at least a space between the pipe character and the hyphens, That's how it's shown in the [Markdown Syntax Guide](https://confluence.atlassian.com/bitbucketserver/markdown-syntax-guide-776639995.html#Markdownsyntaxguide-Tables), but it still doesn't work for me.


Tags: bitbucket-cloud

cloud

markdown
Unable to build/push Windows container via Windows Runner
Asked by Casey Wise:

Brand new to Windows runners, thanks for reading.

Here's where I am {#toc-hId--521302568}
---------------------------------------

* I was able to get the Windows Runner operating as expected on my Windows machine.
* When I review workspace runners in the Bitbucket Settings \> Runners I see a green ONLINE
* Confident Bitbucket and my Windows runner are communicating as, in pipeline execution logging, I observe expected output from PowerShell commands like **docker --version** , **ls** and **Get-Content** (on my Dockerfile)

What am I trying to do? {#toc-hId-1966210265}
---------------------------------------------

1. Build docker image
2. Upload to image repo (AWS ECR)

What's the problem? {#toc-hId-158755802}
----------------------------------------

* I'm stuck on #1. In my pipeline yaml, I navigate in to the Dockerfile's directory and build an image against my Dockerfile (**docker build .** )  

  ```
  - step: &winrun
      runs-on:
          - self.hosted
          - windows
      script:
          - cd src
          - docker build -t example .
  ```

* I see the following error

  ```
  error during connect: Post "http://localhost:2375/v1.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&target=&ulimits=null&version=1": dial tcp [::1]:2375: connectex: No connection could be made because the target machine actively refused it.
  ```

What have I done to try and fix this? {#toc-hId--1648698661}
------------------------------------------------------------

* Questioning *"Is there a problem with this Dockerfile?"* I head over to my Windows runner, drop my Dockerfile in to the filesystem, **docker build .** I see what I expect and the Docker engine goes to work pulling. Dockerfile is fine.
* I've looked around here in the community forum, no luck.
* Googling is returning all sorts of content around **No connection could be made because the target machine actively refused it.** which is not relevant to my issue


Answers:
author: Mark C
body: Hi [@Casey Wise](/t5/user/viewprofilepage/user-id/4413030),

Thank you for reaching out to the community.

I checked this internally with our Pipelines team and this appears to be an issue where Pipelines is automatically setting **DOCKER_HOST** with the default host.

For that, would it be possible for you to empty it and try to run Docker commands again?  
To empty the variable on Windows PowerShell, you can use the command below.

```
    script:        - $Env:DOCKER_HOST = ""        - cd src        - docker build -t example .
```

Hope it helps and do let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-runners

cloud

docker

windows
Cannot Delete Comment
Asked by echui:

I used to be able to delete comments in any issues inside my repositories. Starting about two weeks ago, I got this error whenever I tried to delete a comment:

This page isn't working {#toc-hId--521302475}
---------------------------------------------

If the problem continues, contact the site owner.  
HTTP ERROR 400  
Since it has been two weeks and still happening, this is not a bitbucket server glitch only.  
Could the Bitbucket team please help fix the issue? Thanks.


Answers:
author: Ben
body: G'day!

Welcome to the Bitbucket Cloud Community! :)

I have checked your workspace and can see that you are the workspace owner, meaning you should have admin privileges.

I have tested on my own repository (where I am the admin) and was able to delete comments on my issues without a problem, so was unable to reproduce this on my end.

May I ask which browser you are using? Can you try to delete the comment in a different browser with addons disabled and let me know if there is any difference? If using Chrome please try this in Incognito mode.

Also, if the error shows "Something went wrong" it should give you an error code, if you have this please reply with this code in the thread.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: echui
body: Hi Ben,

I have been using Chrome. As of today, I still cannot delete my comments.


author: echui
body: Tried in Incognito mode and still the same error message  

This page isn't working {#toc-hId--495708011}
---------------------------------------------

If the problem continues, contact the site owner.  
HTTP ERROR 400


author: echui
body: I also tried on Safari on Mac and it gave the same error as in Chrome. That led me to think it's an issue with the bitbucket website.


author: Ben
body: Hey again,

To troubleshoot this issue further - we would need you to share some further details. I have raised a support ticket on your behalf so we may discuss this further, as these details should not be shared on a public forum.

Please check your email for the link to the support portal for that ticket.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Campbell Brown
body: I am having the same issue.

*This page isn't working*

*If the problem continues, contact the site owner.*  
*HTTP ERROR 400*


Tags: bitbucket-cloud

cloud
Repo Size Request to Run GC
Asked by Philipp Waibel:

Hello,

unfortunately we have two repositories that crossed the size limit. We already reduced the size by using the bfg tool and pushed the changes. This reduced the size locally but not on the Bitbucket servers. Would it be possible for someone to run garbage collection for us and see if that reduces the repository size?

Thank you in advance!


Answers:
author: Syahrul
body: Hey [@Philipp Waibel](/t5/user/viewprofilepage/user-id/5077086)

G'day and welcome to the community!

I have triggered Git GC on both affected repositories which I believe are huge in size on your Workspace.

Once the GC is complete I can see both repositories size has been reduced below 1GB so can you check and verify this with me?

Cheers,  
Syahrul

comments: author: Philipp Waibel
body: Hi,

thank you for triggering the GC. It worked for both repositories.

Cheers,

Philipp


Tags: atl-rvw

bitbucket-cloud

cloud
Why does the Bitbucket trigger pipe fail?
Asked by Dominik Bregovic:

I am following the instructions for the Bitbucket trigger pipe and get this error.

**X Account, repository or branch doesn't exist.**

script:  
- pipe: atlassian/trigger-pipeline:5.0.1  
variables:  
BITBUCKET_USERNAME: 'myUserName'

BITBUCKET_APP_PASSWORD: 'myAppPass'

REPOSITORY: 'nameOfRepo'

ACCOUNT: 'workspaceName'

**for USERNAME**: looked it up in personal settings and tried as Repository variable and without it (just in quotes)

**for APP_PASS:** Created a App Pass and added the value into a repository variable which i then used as $myAppPass with and without quotes

**for REPOSITORY:** tried severel repos but does not help

**for ACCOUNT:** tried with the Account and without it and i tried workspace name and workspace id

When i add **DEBUG: 'true'** i get this additional info:

DEBUG: Starting new HTTPS connection (1): [bitbucket.org:443](http://bitbucket.org:443/)  
DEBUG: [https://bitbucket.org:443](https://bitbucket.org/) "GET /bitbucketpipelines/official-pipes/raw/master/pipes.prod.json HTTP/1.1" 200 None  
DEBUG: Starting new HTTPS connection (1): [api.bitbucket.org:443](http://api.bitbucket.org:443/)  
DEBUG: [https://api.bitbucket.org:443](https://api.bitbucket.org/) "POST /2.0/repositories/<workspaceID>/<repository>/pipelines/ HTTP/1.1" 404 61

I want to note that i have the structure \<Workspace\>/\<Project\>/\<Repository\>

I have tried creating several app passwords, several usersnames and several repositories.

I have tried several permission settings and the permissions that are suggested.

The information from the error doesn't give me enough information to see what i am making wrong.


Answers:
author: Mark C
body: Hi [@Dominik Bregovic](/t5/user/viewprofilepage/user-id/5077011)

Welcome to the community.

You mentioned that you have the structure below:

```
<Workspace>/<Project>/<Repository>
```

Would you be able to confirm where did you use that structure?  
Also, for the **REPOSITORY** variable, would you be able to confirm if you only used your repository name?

For example, if your repository URL is: <https://bitbucket.org/workspace_id/repo_name/>

Your variables should be:

* **BITBUCKET_USERNAME**: my_bb_username
* **BITBUCKET_APP_PASSWORD**: my_app_password
* **REPOSITORY**: repo_name
* **ACCOUNT**: workspace_id

Regards,  
Mark C

comments: author: Dominik Bregovic
body: Hallo Mark,

Thank you for your response.

The URL you posted helped me to resolve my issue:

My repository is written with a**uppercase** letter at the beginning. \<**M**yrepo\>

Because of your example i was able to see that it is all lowercase in the URL. \<**m**yrepo\>

I changed that and everything worked fine.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

trigger
Cloning from a local drive repo to Bitbucket?
Asked by Paul.Holmes:

I have two git repos locally.  

I'd now like to sync them to Bitbucket.  

The import is asking for a URL, but these repos are not on hosted service. How do I import a repo from my local drive?  


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@Paul.Holmes](/t5/user/viewprofilepage/user-id/5077033) ! Welcome to the Atlassian Community!

Take a look at Import an existing Git project on this reference page.

<https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html>


Tags: bitbucket-cloud

cloud
Bitbucket Pipelines dubious ownership error
Asked by Nabil Becker:

Ive started getting the "detected dubious ownership in repository" Error when I have a pipeline push commits to my repo. The push is successful, but subsequent pipelines on the commit fail  

/usr/bin/git exited with 128: fatal: detected dubious ownership in repository  
at '/opt/atlassian/pipelines/agent/build'  
To add an exception for this directory, call:  
git config --global --add safe.directory  
/opt/atlassian/pipelines/agent/build


Answers:
author: Theodora Boudale
body: Hi Nabil,

Does this error show in the output of a command that is running during the build?

This error shows by Git due to a change introduced in Git 2.35.2 (and newer) to prevent a user from executing git commands in a repository owned by a different user.

The user who owns the files in the build container is **root** by default. If you are running Git commands with a different user, this error will show mentioning that the directory is owned by another user.

You can add an exception for the clone directory by adding the following command in the script of your bitbucket-pipelines.yml file prior to the command that gives the error:

```
git config --global --add safe.directory /opt/atlassian/pipelines/agent/build
```

You can find more details on this knowledge base article we have:

* <https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html>

Please feel free to let me know if this works for you and if you need further assistance.

Kind regards,  
Theodora

comments: author: Tristan Ramseyer
body: It would be nice if the Bitbucket Pipelines Runner would do this on its own after cloning in "Build setup".


author: Theodora Boudale
body: Hi Tristan,

During the build setup, the repo is cloned in a a different Docker container than the build container, and then the clone directory is mounted in the build container. Executing this command during build setup would have no effect on this error, as the config would apply to the clone container and not the build container. The command mentioned in my previous reply needs to be executed in the build container by adding it to the yml file.

This feature request <https://jira.atlassian.com/browse/BCLOUD-23217> would solve the issue if implemented, as it would allow you to specify the owner of the clone dir to be the same as the user that Pipelines runs as.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Sourcetree doesn't keep me logged in.
Asked by jhkerschner:

I'm using sourcetree on a Macbook Pro running High Sierra. I constantly have to connect my account. I never had this problem before. I signed in once and was good to go. Any advice?


Answers:
author: bgannin
body: We're investigating several sources of authentication oddness. 2.7.1 is currently in late beta and will be rolling out to all users over the next week. If you're still encountering issues please let us know and we'll reach out with a more thorough debugging version of Sourcetree. Our apologies for the hiccup.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: jhkerschner
body: It seems to be when using OAuth. I changed to basic and it is working as expected now.


author: bgannin
body: Thanks for the followup, we'll add a note.


author: Manju
body: Can you please share some details on what host you are trying to connect to, and if the account added in Sourcetree is OAuth/Basic and https/ssh?

Also, please check if the repository's remote URL protocol and account's protocol match.

If you are using ssh, please check if the ssh-agent has your keys loaded. If not, please add them to the agent.

Run below commands in terminal to do so,

To check if keys are loaded:

```
ssh-add -l
```

To add keys to agent:

```
ssh-add <path_to_key>
```

more like,

```
ssh-add ~/.ssh/id_rsa
```

Key in the passphrase used while generating the ssh key and you should be good to go.
Sourcetree won't start
Asked by Cheryl:

How do I run SourceCode. I continue to get a Windows error that I am suppose to choose the program to open it with. Adobe didn't work and now it is stuck on always opening with Adobe. See attached screen shot. How do I link it and use it with Gitlab and BitBucket. Who can I ask questions about Gitlab?


Answers:
author: Ana Retamal
body: Hi Cheryl, Sourcetree is an executable so opening it with Adobe won't work. You'll need to check your Windows configuration and tell it how to open .exe files, this article might help you [Exe files open with Adobe](https://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/exe-files-open-with-adobe-reader/16be61fe-76ef-4b91-9f60-3338cbcefb97?auth=1)

To link it to your Bitbucket and Gitlab accounts, you can follow the instructions at [Connect your Bitbucket account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html1) and [Using Sourcetree with GitLab](http://jaredleonmorgan.net/2016/03/16/Using-Source-Tree-to-Access-Git-Lab.html).

For any questions about Gitlab you should try contacting their [Support team](https://about.gitlab.com/getting-help/).

Hope that helps!

Ana


author: bgannin
body: Hi Cheryl,

I'm not quite clear about your question.

1) is Sourcetree, a file version management app, not launching?

2) or are you having difficulties opening a file from inside Sourcetree (which goes through Windows' file opening logic)

3) we need a bit more details about "link with GitLab and Bitbucket" - what are you trying to do?

* link an existing repository
* clone a new repository
* add an account to work with the Remotes list

Could you please attach the screenshot as well that you referenced?

Thanks,

Brian Ganninger  
Senior Mac Developer, Sourcetree