youngmon/atlassian-qna huggingface dataset:
failed to pull and unpack image "docker.io/library/python:3.10.6-windowsservercore-ltsc2022"
Asked by screado:

I am trying to pull in a docker image python:3.10.6-windowsservercore-ltsc2022 but I get an error failed to pull and unpack image "docker.io/library/python:3.10.6-windowsservercore-ltsc2022". What is the best way for me forward?


Answers:
author: Patrik S
body: Hello [@screado](/t5/user/viewprofilepage/user-id/1520499) !

Thank you for reaching out to Community!

The image you are trying to download is for Windows architecture as you can see on the dockerhub page [python/3.10.6-windowsservercore-ltsc2022](https://hub.docker.com/layers/library/python/3.10.6-windowsservercore-ltsc2022/images/sha256-ef925c7fb65b2acdef4e7446b7d84f253cdc00f64ab4ec080e1fe23e3cf8f84b?context=explore).

Currently, Bitbucket pipelines only support the usage of Linux-based docker images, so this is the reason why the image you tried fails to be unpacked.

We do have a feature request to allow building Windows applications on pipelines as well :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

If you want to build a Windows application using pipelines, you can explore [Windows Self-Hosted Runners](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/) . However, if you are not actually building a Windows application and does not require Windows features, you can change the image you are using to one that is based on Linux.

Thank you, [@screado](/t5/user/viewprofilepage/user-id/1520499) !

Patrik S

comments: author: screado
body: Thank you for the update.


author: Patrik S
body: You're welcome [@screado](/t5/user/viewprofilepage/user-id/1520499) ! Feel free to reach out to Community if you ever need help :)


Tags: bitbucket-cloud

cloud
Delete just bitbucket cloud account (leave the rest of my atlassian products)
Asked by Devin McBride:

Can you assist me in deleting *just* our BitBucket Cloud subscription?

We only want to use jira, confluence and service management.


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

I see you currently only have access to one workspace, of which you are an Admin. The workspace is already on the Free plan, but if you would like to delete it anyway, you can do so by following the below instructions :

1. Navigate to bitbucket.org and login
2. Find your workspace by clicking on your avatar in the top right and selecting "All workspaces", then click on the one you wish to delete.
3. After opening the workspace, click on the gear icon in the top right corner and then click on "Workspace Settings" option.
4. On the new page that shows up, click on the "Delete workspace" button.
5. Go through the warning messages and confirm the deletion.

For future reference, the article [How to delete a bitbucket workspace](https://confluence.atlassian.com/bbkb/how-to-delete-bitbucket-cloud-workspace) may also be of help :)

Thank you, [@Devin McBride](/t5/user/viewprofilepage/user-id/5340500) !  
Patrik S


Tags: bitbucket-cloud

cloud
docker: command not found
Asked by adam_dwvd:

I'm really at a loss here, for some reason I keep getting the following error when I try to use atlassian/scp-deploy:1.4.1 for deploying a tar file.  

My YML:

```
image: node:18.16.0

options:

max-time: 15

docker: true

definitions:

caches:

npm: $HOME/.npm

services:

docker:

memory: 3072

steps:

- step: &NodeProd

name: Build Production

# image: node:18.16.0

script:

 - cd ./app

 - npm ci

 - npm run build

 - cd ..

 - tar -zcf build.tar.gz ./app

artifacts:

 - ./build.tar.gz

caches:

 - npm

 - step: &DeployProd

image: atlassian/default-image

services:

 - docker

script:

 - docker version

 - pipe: atlassian/scp-deploy:1.4.1

variables:

USER: $USER

SERVER: $IP

REMOTE_PATH: $PATH

LOCAL_PATH: './theme.tar.gz'

DEBUG: 'true'

branches:

main:

 - step: *NodeProd

 - step:

<<: *DeployProd

name: "Deployment to Production"

trigger: automatic

deployment: production
```

As soon as it hits the deploy step it errors out on \`docker version\` with the following error output:  

```
+ docker version

bash: docker: command not found

bash: lesspipe: command not found

bash: dircolors: command not found
```

As far as I know I'm doing everything according to the book and I have other pipelines where I dont explicitly have declared the docker service and it seems to work.  

I initially opted to just use scp, but apparently I'm also getting a "scp: command not found", hence the reason i opted for scp-deploy but that also doesn't seem to work.

So what am I doing wrong here?


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

From the symptoms of the issue, I think you might have an [user-defined environment variable](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#User-defined-variables) configured either at the workspace, repository, or deployment level that is replacing the **PATH** variable, causing the shell to not find the **docker** binary inside the image.

So I would suggest checking if a variable named PATH does exist and if yes, either delete it or rename it. The default **PATH** environment variable where the binaries exist can get overridden with this user-supplied **PATH** variable, and therefore result in these binaries not being able to be located.

Thank you, [@adam_dwvd](/t5/user/viewprofilepage/user-id/2257529) !  
Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How can I run a runner as a service on linux?
Asked by ryanjmp:

I've installed a runner on my linux instance, but it will only work while I am ssh'd into the machine. If I close my terminal session, the runner no longer works. How can I have the runner always running?


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

If you are referring to Linux Shell runners, you can run it as a service/daemon by configuring the runner in systems. Systemd service will run in the background and will not require your session to be active. It will also automatically start the runner service when the host is booted.

Following are the instructions on how to configure it :

1. Open a terminal session in the runner's host and create a system unit file :

       sudo nano /lib/systemd/system/bitbucketrunner.service 

2. Add the following content to the file :

   ```
   [Unit]
   Description=Bitbucket Runner Service
   ?
   [Service]
   WorkingDirectory=/home/ubuntu/atlassian-bitbucket-pipelines-runner/bin/
   ExecStart=/home/ubuntu/atlassian-bitbucket-pipelines-runner/bin/start.sh --accountUuid {REDACTED} --repositoryUuid {REDACTED} --runnerUuid {REDACTED} --OAuthClientId REDACTED --OAuthClientSecret REDACTED --runtime linux-shell --workingDirectory ../temp

   [Install]
   WantedBy=multi-user.target
   ```

   where :
   **WorkingDirectory** : the absolute path to *bin* folder where you extracted the runner in the host.  

   **ExectStart :** the runner **start.sh** script command you received when you created the runner. Please note the path to the script must be an absolute path (start from **/** ), as systemd does not support relative paths ( like home directory **\~** ).  

3. Reload systemd to read the new service created :

       sudo systemctl daemon-reload

   Whenever you make any changes to the **.service** file, you will need to reload the daemon for the changes to take effect.  

4. Enable the service to start on the system boot  

       sudo systemctl enable bitbucketrunner.service

5. Start the service

       sudo systemctl start bitbucketrunner.service ?

6. Verify if the runner started successfully by checking the status of the service

       sudo systemctl status bitbucketrunner.service 

If the service status reports that the runner started successfully, you can check the runner state in the UI as it should be showing as Online already, which means it's ready to run your pipelines :)

Hope that helps! If you have any questions, feel free to ask.

Thank you, [@ryanjmp](/t5/user/viewprofilepage/user-id/5349606) !

Patrik S


Tags: bitbucket-cloud

cloud
what kind of access token is needed to call List Workspaces for User
Asked by proctor_bitbucket:

The support page says that you cannot use workspace/project/repository access token to call List Workspaces for User API. Then what kind of access token should be used? I thought Bitbucket Cloud only has these three types of tokens.

Support page: <https://confluence.atlassian.com/bbkb/this-api-is-not-accessible-by-this-authentication-mechanism-1283492398.html>

List Workspaces for User API doc: <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-get>


Answers:
author: Saxea _Flowie_
body: Hi [@proctor_bitbucket](/t5/user/viewprofilepage/user-id/5349620) ,

You can also authenticate using [app passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/). Additionally, there are JWT tokens, which used by apps.


Tags: bitbucket-cloud

cloud
is there a way to deploy to some envs in one tier and then to some in another tier?
Asked by Mateusz Kyc:

I have building pipeline which performs multiple of steps. Then after some build, test, and publishing steps I want to give option do deploy to environments to developers. There is multiple environments on each level (test, staging, production), and it's not required to deploy to all of those at some level. It's enough that some build goes through one of test environments, then on of staging environments to be allowed to prod.

In this screenshot I prepared there is visible parallel section with manuall triggers on test level environments, and one step on staging level environments. As presented I was able to trigger deployments to two environments (which I like and it's cool) but I'm unable to deploy to staging environment without deploying to all test envs. That is problematic because I cannot force developers to deploy to all environments. Also when pipeline starts it's unknown which environment would be "free" (because in reality I also have more than one staging envs not presented here).

Is there a way to allow now to click Deploy to last environment without deploying to previous one?

![Screenshot 2023-10-25 at 16.30.56.png](https://community.atlassian.com/t5/image/serverpage/image-id/288267iEFDDB648AB718D51/image-size/large?v=v2&px=999 "Screenshot 2023-10-25 at 16.30.56.png")


Answers:
author: Saxea _Flowie_
body: Hi [@Mateusz Kyc](/t5/user/viewprofilepage/user-id/4753226),

I'm afraid it is not possible. See [this](https://community.atlassian.com/t5/Bitbucket-questions/optional-steps-without-blocking-pipeline/qaq-p/1863626) and [BCLOUD-21235](https://jira.atlassian.com/browse/BCLOUD-21235) for more details.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Issue with commits (not in sync)
Asked by Sander Schadenberg:

Hi, I just pushed several commits to Bitbucket and they are available and visible in the browser (bitbucket.org). But when trying to pull the commits the response is "Already up to date", also in GitKraken on multiple devices the new commits aren't available to pull.

It sounds like an Bitbucket issue, could there be an issue on Bitbucket?


Answers:
author: Patrik S
body: Hello [@Sander Schadenberg](/t5/user/viewprofilepage/user-id/5349475) !

And welcome to the Community!

It might have been the case that the commits you are looking at on the UI are in a different branch than the branch you are pulling locally.

In this case, could you try to do a fresh clone of the repository using the command below and let us know if the commit is present?

* For **SSH** clone :

  ```
  git clone git@bitbucket.org:<workspace>/<repository>.git
  ```

* For **HTTPS** clone

  ```
  git clone https://{username}:{app_password}@bitbucket.org/{workspace}/{repository}.git
  ```

Once the repository is cloned, you can use the **git show** command in the local repo directory to find the commit by its hash :

```
git show <commit hash>
```

Let us know if you have any questions or if you run into any issues executing the commands above.

Thank you, [@Sander Schadenberg](/t5/user/viewprofilepage/user-id/5349475) !  
Patrik S

comments: author: Sander Schadenberg
body: Hi Patrik, thanks for your reply. I was working \& looking in the right branche.

The problem (\& solution) was to renew my App password in Bitbucket, afterwards everything worked as expected again.


Tags: bitbucket-cloud

cloud
Cannot create repo (limit reached)
Asked by bitanmallick:

I cannot create new repos as have reached trhe 30 repo limit for a day. Can this please be reset?


Answers:
author: Ben
body: Hi Bitan!

Can you try to create repositories now? I have actioned this.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: bitanmallick
body: Thanks Ben


Tags: bitbucket-cloud

cloud
Adding group to a repository via access token
Asked by Sachin:

Hi,

As per Documentation i am trying to add group to repository via access token and i am getting following error   

curl --request PUT \\ --url '<https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/permissions-config/groups/{group_slug>}' \\ --header 'Authorization: Bearer \<access_token\>' \\ --header 'Accept: application/json' \\ --header 'Content-Type: application/json' \\ --data '{ "permission": "read" }'

message": "This API is only accessible with the following authentication types: apppassword, session"}}

Documentation   
[The Bitbucket Cloud REST API (atlassian.com)](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-groups-group-slug-put)  

I tried to do the same with app password and its working, however i want to achieve this with access token for automation, providing app password for organization level is not good idea, if in future my account is deactivated this Api will fail with app password authentication.


Answers:
author: Patrik S
body: Hello [@Sachin](/t5/user/viewprofilepage/user-id/5349458) !

Welcome to the Community!

Access tokens are indeed currently not supported in the Repository permissions endpoints, but we already have a feature request with our development team to add that authentication option to those endpoints :

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

We encourage you to Vote in that feature so our product managers can better understand the interest. If you would like to be notified whenever an update is posted on that feature, feel free to follow it by clicking on Start watching this issue option.

While that feature is not available, the authentication to the repository permissions endpoints are username and app password. One alternative is to create a new account to act as a "bot account" under which you can create the app password, so the password is not attached a an actual user account.

Thank you, [@Sachin](/t5/user/viewprofilepage/user-id/5349458) !

Patrik S

comments: author: Sachin
body: Thank you for the update, Pratik.  

I have voted the same.


Tags: bitbucket-cloud

cloud
Fisheye + Crucible licensing
Asked by Shamil Nunhuck:

Hi,

I've got my development website setup with JIRA, Confluence, Stash and {Fisheye + Crucible} installed as Fisheye, connected together with Crowd.

At the moment, only JIRA is licensed, and I will be purchasing Confluence and Stash at a later date. However, I am not entirely sure on Fisheye and Crucible. Whilst I can see the benefits, I don't think I'll be using it as much.

I've installed Fisheye with Crucible as a plugin. If I decide to go ahead with Crucible but not Fisheye, would I need to install a new instance of Crucible, or what?


Answers:
author: Conor
body: Technically, Crucible is not a plugin. If you want to use Crucible without FishEye you can just remove the FishEye license and provision a Crucible license. You will not need a new instance. The FishEye features will be deactivated.


Tags: licence
Oracle database size requirements for Crucible/Fisheye
Asked by Anthony Galati:

We will be install Crucible/Fisheye. Our DBA's want to know the space we need for this product, as far as database space.

We are a company of about 100 developer with 100's of applications. Is there anyone to come up with an estimate on the database size requirements to atleast last 1.5 years before the next budget cycle?


Answers:
author: SimonS
body: Hey there,

We have some estimates in the hardware requirements for Fisheye;

<https://confluence.atlassian.com/display/FISHEYE/Supported+platforms>

Take a look at Joe's comment on this related question too:

[https://answers.atlassian.com/questions/59868/fisheye-crucible-crowd-database-usage](/questions/59868/fisheye-crucible-crowd-database-usage)

-Simon


Tags: database

oracle
Disable Pre commit reviews in Crucible
Asked by Avdhesh Chauhan:

Is it possible to disable pre commit reviews Crucible - is yes how can it be done


Answers:
author: SimonS
body: Hi Avdhesh,

It isn't possible to disable pre-commit reviews in Crucible through the Crucible UI. It should be fairly easy to hide it by customizing the Crucible JSP files that come included with your commercial Crucible license, though.

-Simon

comments: author: Avdhesh Chauhan
body: Is there any documentation on how to do this - please let me know


author: SimonS
body: Since this would have to be done through custom development, I'm afraid we don't have any documentation for it.

The best place to start is our developer portal. This work will require some time and effort though.

<https://developer.atlassian.com/>
Running Fisheye behind Nginx Proxy
Asked by Shamil Nunhuck:

Hi, I'm trying to run Fisheye behind a proxy. So far, I've managed to get Jira and Stash to work behind the proxy, but not Fisheye.

Here's my config file in Nginx:

```
server {listen   80;server_name  dev.int.com;access_log off;location / {    proxy_pass http://IP:8080;    proxy_set_header    Host            $host;    proxy_set_header    X-Real-IP       $remote_addr;    proxy_set_header    X-Forwarded-for $remote_addr;    port_in_redirect off;    proxy_redirect   http://IP:8080/jira  /;    proxy_connect_timeout 300;    } location ~ ^/stash {    proxy_pass http://IP:7990;    proxy_set_header    Host            $host;    proxy_set_header    X-Real-IP       $remote_addr;    proxy_set_header    X-Forwarded-for $remote_addr;    port_in_redirect off;    proxy_redirect   http://IP:7990/  /stash;    proxy_connect_timeout 300;    } location ~ ^/crucible {    proxy_pass http://IP:8060;    proxy_set_header    Host            $host;    proxy_set_header    X-Real-IP       $remote_addr;    proxy_set_header    X-Forwarded-for $remote_addr;    port_in_redirect off;    proxy_redirect   http://IP:8060/  /crucible;    proxy_connect_timeout 300;    }     error_page   500 502 503 504  /50x.html;    location = /50x.html {    root   /usr/local/nginx/html;    }}
```

and in Fisheye:

```
&lt;web-server site-url="http://dev.int.com/crucible" context="/crucible"&gt;        &lt;http bind="http://dev.int.com/" proxy-port="80" proxy-scheme="http" proxy-host="dev.int.com/crucible"/&gt;    &lt;/web-server&gt;
```

However, it just isn't pushing stuff out properly, and is a Fisheye problem --\> When I visit /crucible, it does show the Crucible page, however, it doesn't load any page resources or ajax. Trying to login takes me to /login, so it's apparent that Fisheye is still on / for its context path despite its config file. I have restarted both Fisheye and Nginx server to no avail.  
Any guidance would be appreciated :)


Answers:
author: Douglas Fabretti
body: Hi Shamil.

Looking at the FishEye/Crucible config and based on the NGINX proxy config I can see a few problems with the config.xml:

\* `<http` `bind``=``"http://dev.int.com/"> - here it should contain the port where FishEye/Crucible runs - ``<http`` ``bind``=``":8060">`  
`* <``proxy-host``=``"dev.int.com/crucible"``/> - here the value should be only the name of the proxy host - ``<``proxy-host``=``"dev.int.com"``/>`

The rest of the configuration does seems ok.

Cculd you please do the modifications above and restart FishEye/Crucible? After that please let me know if the problem was solved.

Cheers,  
**Douglas Fabretti**   
**Atlassian Support**

comments: author: Shamil Nunhuck
body: Yep, that fixed it - Thanks :)


author: Ryan Hass
body: You may also want to add "proxy_buffering off;" to your location as it will force nginx to send reponses syncronously. This will give a more reponsive feel as the user will not have to wait for the page to completely load into the buffer before nginx sends the data to the user.


Tags: nginx

reverse-proxy
Can Fisheye/Crucible be installed using a domain administrator account?
Asked by KMcKenzie:

Documentation for FE/Crucible suggests a dedicated user account be created for production installations:

For production installations, we recommend that you create a new dedicated user that will run FishEye on your system. This user:

? Should *not* have admin privileges.

? Should be a non-privileged user with read, write and execute access on the FishEye home (install) directory and instance (data) directory. These directories are described below.

? Should only have read access to your repositories.

If you created a dedicated FishEye user, ensure you are logged in as this user to complete the remaining instructions.

Is it acceptable to have a domain administrator account created to install and run Fisheye/Crucible?


Answers:
author: Vishwajeet Singh
body: That's recommended for security reason but it does not imply that it can not be done or it has limitations from product perspective.


Tags: install
Accidentally completed review early
Asked by Tini Good:

If I accidentally completed my review early in Crucible, is there a way to roll that back?


Answers:
author: Conor
body: Yes. You can "Uncomplete" the review.

If you go to the Crucible dashboard, the review will be listed in your Crucible "Outbox" in the "Completed" section. You can then load the review and click the "Uncomplete" button at the upper right seciton of the review page.
How do you prevent author summarizing reviwers have not yet finished
Asked by D K:

In Crucible the author of the code can simply click 'Summarize Anyway' even if the reviewers have not completed the code review.  

Likewise, the reviewer can simply complete the review without actually looking at each file.

Is there anyway to prevent this?


Answers:
author: Sergey Svishchev
body: There isn't at the moment, but you can (and should) let Atlassian know that you want this feature -- vote for (f.e.) <https://jira.atlassian.com/browse/CRUC-6320>
url rewrite in fisheye crucible
Asked by Brad Erickson:

We are having an issue with fisheye/crucbile.

Atlassian support had us update crucible/fisheye and reindex our svn repository. After this was done, our browse url for code has changed.

OLD:

<http://crucible/browse/SVN/>

NEW:

<http://crucible/browse/something/>

The SVN directory has been replaced by a different directory in our SVN repo. We used the same index spot that we used last time. My question is has anyone had experience doing a rewrite or redirect rule in fisheye to rewrite the URL from old to new? I have tried using the urlrewrite.xml and doesn't seem like it is honored.

Worst case and probably something I would have to do is put crucible behind apache and have apache do the rewrite rule.


Answers:
author: CelsoA
body: Hi there,

Did you change the Base url for FishEye after the process made with support?

Please go to FishEye administration, then Server settings and change the url there.

Maybe this link can help you:

<https://confluence.atlassian.com/display/FISHEYE/Configuring+the+FishEye+web+server>

Regards,

Celso Yoshioka