youngmon/atlassian-qna huggingface dataset:
Deployment Issue to Azure app service - Zip deployment failed
Asked by Carlos Torres:

Well, I'm new working on Pipelines and Azure. When I deployed the project directly from Visual Studio 2019 to my Azure App Service all look ok, but not with the pipeline.

This is what I have :

![pipeline.png](/t5/image/serverpage/image-id/158167i65852E14D0296DA1/image-size/large?v=v2&px=999 "pipeline.png")

When I executed the pipeline, all looks ok. Built the project, and created the zip file and add the artifact.

![pipeline2.png](/t5/image/serverpage/image-id/158170i6A8231E36BBDFA97/image-size/large?v=v2&px=999 "pipeline2.png")

During deployment, I got this error :

INFO: Starting deployment to Azure app service...  
az webapp deployment source config-zip --resource-group $AZURE_RESOURCE_GROUP --name $AZURE_APP_NAME --src app-107.zip  
ERROR: Zip deployment failed.

![pipeline3.png](/t5/image/serverpage/image-id/158172i61A5DA6A224B79D8/image-size/large?v=v2&px=999 "pipeline3.png")


Answers:
author: Theodora Boudale
body: Hi [@Carlos Torres](/t5/user/viewprofilepage/user-id/4390009),

I see that you're using the microsoft/azure-web-apps-deploy pipe. Checking the repo for this pipe [here](https://bitbucket.org/microsoft/azure-web-apps-deploy/src/master/), I can see that it is not supported:
> Support
>
> This sample is provided "as is" and is not supported. Likewise, no commitments are made as to its longevity or maintenance. To discuss this sample with other users, please visit the Azure DevOps Services section of the Microsoft Developer Community: <https://developercommunity.visualstudio.com/spaces/21/index.html>.

A few suggestions I can make:

(1) You can try using the latest version of this pipe, 1.0.4, instead of 1.0.3

(2) You can also try using the atlassian/azure-web-apps-deploy pipe instead, which was forked from <https://bitbucket.org/microsoft/azure-web-apps-deploy> for future maintenance purposes

* <https://bitbucket.org/atlassian/azure-web-apps-deploy/src/master/>

Kind regards,  
Theodora


Tags: bitbucket-pipelines

azure

bitbucket-cloud

cloud

deployment
Reposiory Access Only Public IP Address
Asked by Hari:

HI,

we are using 2 More reposiory in Bitbucket and we need only access my public IP address what is the steps.  
To access repository in our public IP ?


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

Just to make sure I understand your requirement, do you want to be able to access your Bitbucket Cloud repos from a certain public IP (or IPs) only and restrict access to IPs other than that?

We have an "IP whitelisting" feature that is available for workspaces on the Premium billing plan. In order to make use of that, you'll first need to upgrade the workspace that owns these repos to the Premium plan (if it's not already). You can find more details on the billing plans and also how to upgrade here:

* <https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/>

When the workspace is on the Premium plan, you'll be able to enable IP whitelisting from this workspace's Settings \> Access controls. You can find more details here:

* <https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-your-private-content/>

Please note that this is a workspace feature, so if you enable it, it will apply to all repos owned by this specific workspace.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket Workspace ID Not Available
Asked by Mark Hender:

Hi,

We are moving to Bitbucket but somehow a few years ago someone from the company had already claimed the workspace_id as our company name on their account.

Now luckily, I've resolved this by reactivating that company email address and changing the workspace_id to something else but when going back to create the actual workspace for the company I still get **"This workspace ID is not available."**

Is there a cooldown timeframe to get this workspace_id or is there something else I need to do as well?


Answers:
author: Mark Hender
body: Found the problem by finding another issue  

*If you log in to account A, then go to your avatar (bottom left corner) \> **Personal settings**, you'll find the option to change the username of account A. When you do, 'my-id' should become available again.*

I logged back into the other account and did find their username was also our company name. Changing this to something else then fixed my problem

comments: author: Damir Vamoser
body: You sir, are a lifesaver. I've been twisting my head around this for a while until I stumbled upon this page.


Tags: bitbucket-cloud

cloud
new VDI session with sourcetree leads to CAPTCHA Error
Asked by John Morales:

Hello Atlassian Community and Support Team,

Our developers use VDI as their virtual desktop and use sourcetree for any related GIT interaction with our BitBucket application.

Our IT organization has recently established a new VDI environment and have requested developers to migrate their old VDI host to a new VDI from the new VDI infrastructure environment. All of their previous software installation, configuration and user file will be retain when they migrate to the new VDI host.

Developers are now encountering numerous BitBucket CAPTCHA errors on a daily basis within their new VDI host.

The following are the steps they are performing to their new VDI host

1. Migrated to the new TriNet VDI environment
2. Before using sourcetree, developers reconfigured their sourcetree software with their current BitBucket Personal Access Token
3. Started using sourcetree and then developers encountered the BitBucket CAPTCHA error

Does sourcetree cache any data related to the old VDI host that may be confusing BitBucket even if the developers have reconfigured their sourcetree software to use their existing BitBucket Personal Access Token??

I found another Atlassian community article in regards to the following

Clear contents of below files placed in your source tree folder.

<br />

{your user path}\\AppData\\Local\\Atlassian\\SourceTree\\userhost  
{your user path}\\AppData\\Local\\Atlassian\\SourceTree\\passwd

Then restart SourceTree.


Answers:
author: John Morales
body: Note; our developers are using BitBucket Personal Access Tokens to access source code via GIT commands via command line or via Atlassian Sourcetree


Tags: bitbucket-server

captcha

server

sourcetree
How to access the labels for a self-hosted runner?
Asked by Jonathan Gjertsen:

We have some machines that we use as self-hosted runners. They have different hardware, and we use labels to indicate their capabilities. Is there a way to access these labels in scripts (for example through environment variables)?


Answers:
author: Justin Thomas
body: [@Jonathan Gjertsen](/t5/user/viewprofilepage/user-id/2377315) Currently Bitbucket doesn't expose labels any Runner related details to the steps. I do understand the use case and the feature request is on our backlog. We are currently working on other high-priority features such as Windows and MacOS support for Runners.


Tags: bitbucket-pipelines

cloud
How do the caches work for Pipeline Runners?
Asked by ntmat:

Hi,

I'm running a group of tests with the Runner feature of Bitbucket Pipelines. Inside the runners I have steps to install pip requirements for testing and have specified pip as a cache for the runners steps. However the runners don't seem to be pulling these requirements from cache on subsequent runs.  

Can anyone point out where I'm going wrong in the high level configuration below:

```
pull-requests:
  "**":
    - parallel:
        - step:
            name: solution_testing_0
            runs-on:
              - self.hosted
              - linux
              - solution.testing
            caches:
              - pip
            script:
              - bash install_system_requirements.sh  # Installs all pip requirements
              - bash run_test.sh --group 0  # Runs subset of tests
        - step:
            name: solution_testing_1
            runs-on:
              - self.hosted
              - linux
              - solution.testing
            caches:
              - pip
            script:
              - bash install_system_requirements.sh  # Installs all pip requirements
              - bash run_test.sh --group 1  # Runs subset of tests
```

<br />

How are caches supposed to be configured for pipeline runners?  


Answers:
author: Justin Thomas
body: [@ntmat](/t5/user/viewprofilepage/user-id/3476129) Caches work the same way for both cloud and self-hosted runners. Be aware that the performance improvement from caches is different between cloud and self-hosted runners. Self-hosted runners are located in your data center, so it might take more time to pull the cache from Bitbucket.

comments: author: ntmat
body: [@Justin Thomas](/t5/user/viewprofilepage/user-id/777223)Thanks for your reply. I can confirm that the cloud and self-hosted runners use the cache as expected, I needed to delete the existing cache so the runner would re-upload and use the new pip cache.  

I see your point regarding performance, what is the alternative? Would you recommend using a docker:dind service to startup a local docker image with all the necessary dependencies preinstalled to avoid cache download from Bitbucket for self.hosted runners?


author: Justin Thomas
body: Unfortunately, there is no easy way around it. Using a docker:dind service is a workaround and can help, but I think in long term it might complicate the setup. It depends on the performance impact.

Cheers,

Justin


Tags: bitbucket-pipelines
How do I configure crontab to git push with SSH-keys?
Asked by Jonas Tidstr?m:

I have a script that automatically adds, commits and pushes to Bitbucket. It runs as expected and it backs up my Obsidian folder containing markdown files.

I want to run this script through crontab but I don't fully succeed. Adding and committing works as expected, but when I try to connect to Bitbucket I get:

*fatal: could not read Password for '<https://---@bitbucket.org>': Device not configured*

It seems to me that cron can't access my credentials. Now, I am not sure how to tackle this as I am not 100% sure how the credentials are handled... When I was setting up my credentials I followed this guide (for MacOS): <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

With that background: how do I tell, either in crontab or my script, to use the credentials (that I *think* are stored in my keychain).

Help is much appreciated!


Answers:
author: Theodora Boudale
body: Hi Jonas,

If you want to use SSH for interacting with Bitbucket repos, apart from setting up SSH keys, you'll also need to use the SSH URL for the repo.

Based on the error that you get, it looks that you're using an HTTPS URL instead, <https://---@bitbucket.org>

If you specify the URL in your script, you'll need to replace the URL in the script from HTTPS to the SSH one, which has the format

```
git@bitbucket.org:<workspace-id>/<repo-slug>.git
```

If you don't specify the URL in your script, I assume that the script is using the URL defined for the clone of this repo on your machine, so you'll need to change that.

If you navigate to the clone directory from a terminal on this machine, you can run

```
git remote -v
```

and the output should look as follows:

```
origin https://<Bitbucket_username>@bitbucket.org/<workspace-id>/<repo-slug>.git (fetch)
origin https://<Bitbucket_username>@bitbucket.org/<workspace-id>/<repo-slug>.git (push)
```

You can change that URL to an SSH one with the command

```
git remote set-url origin git@bitbucket.org:<workspace-id>/<repo-slug>.git
```

If your remote name is different than 'origin', replace 'origin' with your remote name.  
\<workspace-id\> should be replaced with the workspace id of the workspace that owns this repo  
\<repo-slug\> should be replaced with the repository slug

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Why Clojure code is not syntax highlighted?
Asked by xavi__:

I think Clojure code was syntax highlighted in Bitbucket years ago.

Now the syntax of Clojure files in my repositories is not highlighted.

Why?


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

I'm afraid that this is a bug that has been reported in our issue tracker here:

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

You can see in the comments the latest update, our team has been focusing on a project to add syntax highlighting to the (new) pull request experience, and we expect changes to how we highlight syntax throughout the application that could/should resolve issues like this.

The progress of our syntax highlighting work is tracked here:

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

You can add yourself as a watcher (by selecting the **Watch this issue** link) if you'd like to be notified via email on updates.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Something went wrong
Asked by howardlee:

### when I open src show that : {#toc-hId-1260989488}

### Something went wrong {#toc-hId--546464975}

Wait a few moments, then try again. If this keeps happening, check the current operational status of Bitbucket Cloud at [bitbucket.status.atlassian.com](https://bitbucket.status.atlassian.com/)

`839e9493db3a43eda4e493636eec4a5c`

If the problem persists, contact Support and include the code displayed above, if one is provided.

please help me ,thanks


Answers:
author: ??
body: Well,I meet the problem just minutes age.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/279697i7BB4456F46E34B66/image-size/large?v=v2&px=999 "image.png")

comments: author: ??
body: Thankfully,I just solved the problem.Note that you shuold enter your profile just via you profile button.


author: Theodora Boudale
body: Hi [@howardlee](/t5/user/viewprofilepage/user-id/4535120),

I checked that error code in our system, but I'm afraid I haven't found any matching issues for that code.

If the issue still persists, I would like to ask for the following info, so I can better help you:

- Please navigate again to the page that gives this error. A new error code should be there, could you please provide me with this new error code?

- When you see this error, are you logged in to <https://bitbucket.org/> with the same email as the one of your community account?

- Could you please let me know the repo name, but masked (i.e. include some asterisks in the repo name, like \*\*a\*\*n\*\*o\*\*)? I can then check in our logs for any 5xx errors related to accessing this repo.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Invitation accepted, yet user is still "pending"
Asked by Jakub Gaw?cki:

Hi,

my friend accepted the invitation for the Jira, multiple times. He can freely move throughout the project, add comments. But his status is still "invited". So he does not appear in the groups to which he has been added.

Adding his account to the bitbucket went successfully, but he did not appear on the list there. I just had to copy and paste his email.

Any suggestions for that issue? Thank You:)

![Screenshot 2021-08-29 at 14.25.20.png](https://community.atlassian.com/t5/image/serverpage/image-id/158032i163D6D04C6029A8E/image-size/large?v=v2&px=999 "Screenshot 2021-08-29 at 14.25.20.png")![Screenshot 2021-08-29 at 14.32.24.png](https://community.atlassian.com/t5/image/serverpage/image-id/158031i3BC9DD4831E80E77/image-size/large?v=v2&px=999 "Screenshot 2021-08-29 at 14.32.24.png")![Screenshot 2021-08-29 at 14.24.42.png](https://community.atlassian.com/t5/image/serverpage/image-id/158033iE6F16250345C3181/image-size/large?v=v2&px=999 "Screenshot 2021-08-29 at 14.24.42.png")


Answers:
author: Ang?lica Luz
body: Hello [@Jakub Gaw?cki](/t5/user/viewprofilepage/user-id/4535130),

Welcome to the Atlassian Community!

On User management, the "Last activity" about a user is updated every four hours. So if the invite was accepted and they are already working on the project, it may take a while until it updates this information on the administration page.

Here on our side, I can see that the Last activity of Kalin was yesterday.

Is the issue still happening?

Is Kalin able to access id.atlassian.com and your site normally?

Kind regards,  
Ang?lica

comments: author: Jakub Gaw?cki
body: Sorry for not responding here. It all works as it supposed to now so you were right, thanks:)


author: Paul
body: I have exactly the same issue. My users have full access to the board and have interacted numerous time but many hours later they still show as "invited" and not "active" and their last activity isn't available.


author: Paul
body: After a day this has resolved the problem.


author: EwaBo
body: I have a similar issue where a user is not only "invited" in the admin portal but also cannot be assigned to one of my projects despite giving them all permissions. What could be the issue here?


Tags: cloud

jira-software

jira-software-cloud
Unable to connect to mysql8 service container
Asked by Balakrishnan S:

I am unable to connect to mysql running in service container, it's throwing the folllowing error  
+ mysql -uroot -ptest_user_password -h127.0.0.1 -e 'SHOW DATABASES;'  
ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/x86_64-linux-gnu/mariadb18/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory

I even set the MYSQL_DEFAULT_AUTH to mysql_native_password

Edit: I wanted to use mysql 8 and not 5.7 or earlier version

below is by pipeline config

```
# Template NodeJS build

# This template allows you to validate your NodeJS code.

# The workflow allows running tests and code linting on the default branch.

image: node:14

pipelines:

default:

 - step:

name: Build and Test

caches:

 - node

services:

 - mysql

script:

 - apt-get update -y

 - apt-get install -y mysql-client

 - mysql -uroot -ptest_user_password -h127.0.0.1 -e 'SHOW DATABASES;'

definitions:

services:

mysql:

image: mysql:8.0.22

variables:

MYSQL_DATABASE: test_db_1

MYSQL_ROOT_PASSWORD: 'test_user_password'
```


Answers:
author: Mark C
body: Hi [@Balakrishnan S](/t5/user/viewprofilepage/user-id/2193703)  

Thank you for reaching out to the community.

I've tested the Docker image **mysql:8.0.22** as a service on my Pipelines build as well.  
However, I'm getting the same error.

I went ahead and searched the error message online.  
It appears that Mysql 8 version is now using **caching_sha2_password** as the default authentication plugin instead of the native one which is **mysql_native_password** . [More info here](https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html)

For this, to enforce the native authentication for Mysql 8 version, the best I can suggest is for you to create your own Docker image with the Mysql version 8 and by enforcing the authentication plugin **mysql_native_password** .  
You can upload that in [Docker Hub](https://hub.docker.com/) as well and use it as a Docker service for your Pipelines build.

You can also use this sample [Dockerfile](https://hub.docker.com/r/bondas83/mysql-native-password/dockerfile) to build your own Docker image.

Hope it helps and let me if you have further questions that I can help with.

Regards,  
Mark C

comments: author: Balakrishnan S
body: Thanks Mark.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

mysql
Migrating from dead server
Asked by Jessica Mulein:

I have a fully shutdown copy of each of my services (jira confluence stash bamboo) which was basically just for me, and is not really in a runnable state. previously dockerized.  
How do I get from that to XML I can import into jira cloud?  
I don't have much data, but what I have is essential. Can anyone help?


Answers:
author: Nic Brough -Adaptavist-
body: What backups were you running?

By default, the atlassian stuff runs regular simple xml backups regularly, so if you just installed and ran with them, they probably have backups you can import into a new clean system (server or cloud). For Jira and Confluence, the backups will be zip files under the export/backup directories in the home directory for them, plus you'll need a copy of the attachments directory, also in home. For bitbucket, you'll also need to think about the git repositories.


Tags: bitbucket-server

server
Pipeline failed on apt-get update / debian-git
Asked by artgana:

This is my bitbucket-pipeline.yml, which has worked for years:

```
image: samueldebruyn/debian-git

pipelines:
branches:
master:
- step:
name: deploy to prod site
deployment: production
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_LIVE_USERNAME --passwd $FTP_LIVE_PASSWORD $FTP_LIVE
```

And now I get this error on build:

```
+ apt-get update
Ign:1 http://security.debian.org/debian-security stable/updates InRelease
Get:2 http://deb.debian.org/debian stable InRelease [113 kB]
Err:3 http://security.debian.org/debian-security stable/updates Release
404 Not Found [IP: 151.101.250.132 80]
Get:4 http://deb.debian.org/debian stable-updates InRelease [36.8 kB]
Get:5 http://deb.debian.org/debian stable/main amd64 Packages [8178 kB]
Reading package lists...
E: The repository 'http://security.debian.org/debian-security stable/updates Release' does not have a Release file.
```

I understand that this issue is related not to bitbucket, and the problem is exactly with missing Debian image, but still, any ideas on how this can be fixed?


Answers:
author: inerds
body: It seems the issue is with the outdated Docker image in samueldebruyn/debian-git.

I have managed to get my pipelines working using the updated Docker image from bitnami.

Simply replace the image to the following on your bitbucket-pipelines.yml

```
image: bitnami/git
```

comments: author: artgana
body: thanks!


author: Theodora Boudale
body: Hi [@artgana](/t5/user/viewprofilepage/user-id/2050925),

We've had reports from other customers using the same Docker image (samueldebruyn/debian-git), the issue seems to be with this Docker image since Debian 11 was released.

It has been raised with the maintainer of this image here:

* <https://github.com/sdebruyn/docker-debian-git/issues/2>

which has a link to this stack overflow discussion:

* <https://stackoverflow.com/questions/68787732/debian-11-update-broke-samueldebruyn-debian-git>

Until the issue is fixed in samueldebruyn/debian-git, you can either use a different Docker image in your bitbucket-pipeline.yml file or create your own custom Docker image and use that instead.

Kind regards,  
Theodora

comments: author: artgana
body: thanks Theodora for explanation, changing image to

```
image: bitnami/git
```

helped me!


Tags: bitbucket-cloud

bitbucket-pipelines

cloud