youngmon/atlassian-qna huggingface dataset:
Self-hosted runner, docker container stuck in foreground
Asked by colin_broderick:

I am trying to set up pipelines and it's all working well except the docker component. I don't have much experience with docker, mostly because I can never quite get it to do what I want. I can run the container and it works, but I want it to live in the background in daemon mode. However it always sits in the foreground and I can't exit without killing it. This is true even with the -d option. The command suggested when setting up pipelines in the GUI is the following:

\`\`\`

docker container run  
-it  
-v /tmp:/tmp  
-v /var/run/docker.sock:/var/run/docker.sock  
-v /var/lib/docker/containers:/var/lib/docker/containers:ro  
-e ACCOUNT_UUID={xxxxxxxxxxxxxxxx}  
-e RUNNER_UUID={xxxxxxxxxxxxxxxx}  
-e RUNTIME_PREREQUISITES_ENABLED=true  
-e OAUTH_CLIENT_ID=xxxxxxxxxxxxxxxxx  
-e OAUTH_CLIENT_SECRET=xxxxxxxxxxxxxxxxx  
-e WORKING_DIRECTORY=/tmp  
--name runner-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx  
docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1

\`\`\`

This sits in the foreground. If I remove \`-it\` (for interactive?) it still sits in the foreground but I can no longer interact with it at all, even to close it. If I add -d nothing changes.

Appreciate any help you can offer.


Answers:
author: Theodora Boudale
body: Hi Colin,

If you start the container with the preconfigured command we provide, you can detach it with the keyboard shortcuts **Ctrl+p** and right after **Ctrl+q**.

If you want to attach it later on, first run the command

```
docker ps
```

In the output, look for the line where the **IMAGE** is

```
docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1
```

and copy the **CONTAINER ID** for that image. Let's say that is 939b16b1c580.

If you then run the command

```
docker attach 939b16b1c580
```

you can view the container's output in your terminal.

The argument -d should also work when you start the container, but you need to use it along the other arguments like this:

```
docker container run
   -itd 
   <the rest of the arguments>
```

Please feel free to let me know how it goes and if you have any questions.

Kind regards,  
Theodora

comments: author: colin_broderick
body: \> you can detach it with the keyboard shortcuts **Ctrl+p** and right after **Ctrl+q**

Thanks Theodora, that solves the problem. Wasn't aware of those shortcuts. Still a docker novice.

Regards,

Colin


author: Theodora Boudale
body: You are very welcome Colin, please feel free to reach out if you ever need anything else!


Tags: atl-pipelines

bitbucket-cloud

cloud
How does bitbucket pipelines cache work
Asked by Filip Baszak:

Im a bit confused about bitbucket pipelines cache.

Im using predefined cache:

caches:

- maven: .m2

And each time when I run maven command and I use defined cache, bitbucket says that it is importing cache and extracting it, but pipelines step still fetches dependency from web.

Why does it happen?


Answers:
author: Patrik S
body: Hello [@Filip Baszak](/t5/user/viewprofilepage/user-id/5053103) and thank you for reaching out to Community!

When using a pre-defined cache, you don't need to specify the folder to cache, as Bitbucket Pipelines will get them from the default location used by that framework/took. For Maven, you should define the cache as follows:

```
caches: 
  - maven
```

This would cache dependencies that maven saves in the directory *\~/.m2/repository.* You can check other available pre-defined caches and their respective directories in our [Cache Dependencies documentation](https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/).

The way that cache works is that the first time you run the build after adding the cache to your YML, the dependencies will be downloaded from the internet, and at the end of the step, all dependencies in the cache directory will be compressed and saved by Bitbucket. In the subsequent builds, at the start of the step bitbucket will download the previously generated cache and extract it to the same directory they were originally generated. The cache lasts for 7 days. After that period, the following build will again download the dependencies from the internet, which will generate a new cache that will last another 7 days, and so on.

You can find more details and learn more about limitations of caches in the following documentation :

* <https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/>

Should you have any questions, feel free to ask!

Thank you, [@Filip Baszak](/t5/user/viewprofilepage/user-id/5053103) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Trouble running nextflow (nf-core) pipeline - docker authorization denied
Asked by Michael Beavitt:

I'm working on a CI nextflow pipeline for some bioinformatics projects. The way it works, is it spawns a docker container for each step of the pipeline to complete the job, and then moves onto the next one. Everything happens in the ./work directory.

For some reason, it is being denied the ability to create new containers in Bitbucket cloud's workspace:

docker: Error response from daemon: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories.

But it seems like I satisfy those requirements:

echo $PWD  
/opt/atlassian/pipelines/agent/build  
echo $BITBUCKET_CLONE_DIR  
/opt/atlassian/pipelines/agent/build  
Can someone help me figure out what's going on?


Answers:
author: Theodora Boudale
body: Hi Michael and welcome to the community!

The argument -v in the docker run command is used to mount directories into the container that starts with this command:

* <https://docs.docker.com/engine/reference/commandline/run/#volume>

For Pipelines builds that run on Atlassian's infrastructure, we don't allow mapping volumes with a source outside $BITBUCKET_CLONE_DIR. You can find a list of all restricted commands here:

* <https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#Running-Docker-commands>

You will need to check the docker run command that starts these containers or the docker-compose.yml in case you use Compose and only mount directories with a source inside $BITBUCKET_CLONE_DIR.

We have a feature request for allowing mounting volumes outside $BITBUCKET_CLONE_DIR: <https://jira.atlassian.com/browse/BCLOUD-20986>

This restriction does not apply to the self-hosted pipeline runners. If you have a Linux machine where you can run your builds, you could also use a Linux Docker Runner:

* <https://support.atlassian.com/bitbucket-cloud/docs/runners/>

Kind regards,  
Theodora

comments: author: Michael Beavitt
body: Thanks Theodora,

Unfortunately it's not possible to use any of the company machines as a runner, but I figured out the issue.

Nextflow was trying to use 'user emulation' in docker, which meant mounting /etc/passwd and some other root directories, and I was able to turn off this feature in the config file.

It runs fine now!

They've also updated nf-core after an issue was raised to remove this default behaviour so this shouldn't be an issue in future..!


author: Theodora Boudale
body: Thank you for the update Michael, it's good to hear that the issue is resolved now!

Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
Git over HTTPS authentication stopped working overnight
Asked by MarcGuay:

I have a Bitbucket user that has read-only access to repos. I have Git configured with my remote origin URL as: <https://username@bitbucket.org/workspace/repo.git>. Yesterday, I could run git pull on the server and it would ask for the password and once entered complete successfully. Today I am getting:

remote: Invalid credentials  
fatal: Authentication failed for <https://username@bitbucket.org/workspace/repo.git>'

Has something changed overnight? "username" is the User name under Bitbucket profile settings and the password is from App passwords. I tried creating a new App password and had the same result.


Answers:
author: MarcGuay
body: It's now working again


Tags: bitbucket-cloud

cloud
How to store my code, written in VSCode on a remote repository in bitbucket
Asked by Chris Watkins:

How do I add this repository as a remote in VSCode?

I have written code in VSCode, and I would like to use the VSCode git tools upload this code to a repository in Bitbucket.

I keep getting authentication failures when I try to add the bitbucket repository as a remote repository to the code.

How can I add my bitbucket repository as a remote to my VSCode git repository?


Answers:
author: Aron Gombas _Midori_
body: The Bitbucket Cloud user manual has a page decidated to BB \<-\> VSCode integration, you should definitely check this out: <https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-vs-code/>


Tags: bitbucket-cloud

cloud
How do I become a Technical contact?
Asked by edwin_g:

Even though I'm the site admin, I'm not able to raise a support ticket


Answers:
author: Julius Davies _bit-booster_com_
body: The account owner can use <https://my.atlassian.com/> to add you as a Technical Contact for the "**Bitbucket (Cloud)**" license they have listed there.


author: Pramodh M
body: Hi [@edwin_g](/t5/user/viewprofilepage/user-id/251837)

I assume the question is related to Bitbucket as the tag associated is bitbucket.

You should have the premium plan to raise the support ticket and also it is mandatory to provide the workspace URL while raising the ticket.

You should be the admin, billing-admin, or billing/technical customer or add one in the ticket participant to approve data access for the Atlassian support team.

Thanks,  
Pramodh


Tags: bitbucket-cloud

cloud
Password reset emails not received
Asked by Ian Leonard:

I am trying to access an old set of Bitbucket repositories but have no password. The password reset email isn't arriving. I can see from other similar posts that addresses can get blocked so guess this is what is happening.

The account would be under email, \<domain\>.

Is someone at Altassian able to fix this?

Thanks


Answers:
author: Theodora Boudale
body: Hi Ian and welcome to the community!

I checked our email logs and our emails were bounced because we received a hard bounce response from your mail server with the error:

```
550 Sender verify failed
```

This is because your mail server is doing [callback verification](https://en.wikipedia.org/wiki/Callback_verification) that is failing.

Password reset emails are sent from noreply+XXXXX@am.atlassian.com (where XXXXX is some string) and that email address has no inbox.

You will need to adjust the configuration on your mail server to be able to receive our emails, and then request another password reset email.

Just a heads up, I removed the email address from your post to protect your privacy.

Kind regards,  
Theodora

comments: author: Ian Leonard
body: Hi Theodora,

Thanks for the assistance. I've disabled 2SV on my account and still not seeing replies to my password resets. I'm assuming this is the correct action (although I will enable it again asap). Can you see any further issues?


author: Theodora Boudale
body: Hi Ian,

I checked our email logs and I see the same error as previously for the newer emails we sent.

2SV is not related to this error. Callback verification is a technique that can be used by a mail server to validate email addresses:

* <https://en.wikipedia.org/wiki/Callback_verification>

Based on the error message I see on our logs, it looks like the mail server of your second email address is using this technique to validate the email address that the password reset email is sent from.

You can reach out to your email provider and ask them if there is any configuration issue with the callback verification or if it is possible to temporarily turn it off so you can receive the password reset email.

Kind regards,  
Theodora


author: Ian Leonard
body: Thanks, I found the magic check box in the email forwarding site used and am getting the emails now.


author: Theodora Boudale
body: That's good to hear Ian, thank you for the update.

Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
When will Bitbucket support Visual Studio Enterprise for using Codeium?
Asked by Sina Pournaeim:

When will Bitbucket support Visual Studio Enterprise for using Codeium?


Answers:
author: Theodora Boudale
body: Hi Sina,

If you are looking for an extension like ["Atlassian for VS Code"](https://support.atlassian.com/bitbucket-cloud/docs/use-the-atlassian-for-vs-code-extension/), we have a request in our issue tracker that you can vote for and watch: <https://jira.atlassian.com/browse/BCLOUD-21902>

I'm afraid that I don't have an ETA to share. Suggestions are implemented 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 ticket I shared.

If it is Codeium that doesn't provide an extension for Visual Studio, you can reach out to the Codeium team with questions about supported IDEs <https://codeium.com/contact>.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Medium sized repositories - regularly get stuck on indexing (like for weeks)
Asked by Turloch O'Tierney:

crucible-2.7.10: Medium sized repositories - regularly get stuck on indexing (like for weeks) Oracle 11gr2 repository.I moved crucible to a new server. The levers I have to pull are: restart a lot, blow the cache, upgrade


Answers:
author: Sergey Svishchev
body: Is there a question here?
Reporting capabilities in crucible
Asked by Rahul Aich [Nagra]:

Hi

I am on crucible 2.7

I want to extract the list of defects and their current status, and reviewer name who raised it. I am not sure if we have any report which captures this information.

Rahul


Answers:
author: Felipe Kraemer
body: Hello Rahul,

Maybe you can try to use this Crucible REST API:

<http://localhost:8060/rest-service/reviews-v1/details>

It will show, among other things, the review ID, who is the creator, who is the moderator and its state.


Tags: fisheye-crucible-administration
Fisheye repository creation
Asked by Rahul Aich [Nagra]:

Hi All

We are trying to add a new repository to our fisheye server (since we wantto perform code reviews using crucible)

However we observed that the path which we have is huge (amounting to a few gigs of data) and it is going to take fisheye few days to populate (to sync for the first time) with the code base corresponding to this path.

My question is - can we tell fisheye to only pick up revisions from changelist (say 12000) as we know that we are never going to revert to a changelist earlier than 12000 since it is very old.

Is it possible?

Rahul


Answers:
author: lpater
body: Hi Rahul,

you can set up a start revision for your svn and Perforce repositories.

Please have a look at the repository settings documentation here: <https://confluence.atlassian.com/display/FISHEYE/Perforce> and <https://confluence.atlassian.com/display/FISHEYE/Subversion> (The 'start revision' and 'initial import' parameters).


Tags: fisheye-crucible-administration
crucible: can administor assign one user to review another user's file?
Asked by Zixuan Li:

As title.

Thx!


Answers:
author: Gurleen Anand _Atlassian_
body: Hi Zixuan, you can choose whom you'd like to nominate as a reviewer on your Crucible review:

<https://confluence.atlassian.com/display/CRUCIBLE/Choosing+reviewers>

Though, without review edit permissions, an admin unfortunately cannot edit a review to choose a reviewer. You might be interested in these feature requests that seem to request a similar feature:

<https://jira.atlassian.com/browse/CRUC-5864>

<https://jira.atlassian.com/browse/CRUC-833>

<https://jira.atlassian.com/browse/CRUC-6033>

Hope this helps.

Thanks,

Gurleen
Fisheye recent changeset gadget and source tab empty when Anonymous read access is disabled for the repository
Asked by Leo Leung:

I've followed the guide below and both JIRA and Fisheye users are using LDAP authentication.

<https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+FishEye>

But the recent changeset JIRA gadget is empty and the source tab is empty when I disable anonymous read access to the respository. I don't want anonymous access for the repository, how do I get JIRA to integrate with Fisheye when anonymous access is disabled?


Answers:
author: Leo Leung
body: This is a bug in the Application Link when the application is not using the default port 443 for HTTPS:

* [Connection problems with https when using non-default port](https://ecosystem.atlassian.net/browse/SAL-233)

Please try the following workaround:

1. Stop FishEye/Crucible
2. Edit FishEye/Crucible \<tt\>config.xml\</tt\>and add a **proxy port setting to force the port to 8440** :  

   ```
   &lt;web-server site-url="https://fisheye:8440"&gt;		&lt;http bind=":8441"/&gt;		&lt;ssl keystore-password="Sanitized by Support Utility" bind=":8440" truststore-password="Sanitized by Support Utility" truststore="C:\cert"&gt;			&lt;proxy-info proxy-port="8440"/&gt;		&lt;/ssl&gt;	&lt;/web-server&gt;
   ```

3. Restart FishEye/Crucible and try again


Tags: fisheye-crucible-administration
How to do pagination on crucible rest api?
Asked by Satish Jonnala:

Hi,

I'm trying to call crucible rest api to get all the open reviews as below :

/rest-service/reviews-v1/filter/allOpenReviews

This service is returning me a ton of results. All i want to do is achieve pagination limiting the number of reviews per page. Is there any way of doing this.

Thanks


Answers:
author: Satish Jonnala
body: Can you please suggest me any work around to achieve this functionality.


author: Jobin Kuruvilla [Adaptavist]
body: Crucible REST API doesn't support pagination AFAIK.


Tags: pagination
Disable smart commits per repository
Asked by Trevan Richins:

We currently have smart commits enabled in fisheye and we have 6 repositories. I want to add a new repository but I don't want smart commits for this one. This question: [https://answers.atlassian.com/questions/133538/when-merging-from-forked-repositories-git-commit-messages-are-imported-multiple-times-how-do-i-deal-with-this](/questions/133538/when-merging-from-forked-repositories-git-commit-messages-are-imported-multiple-times-how-do-i-deal-with-this) seems to indicate that you can disable smart commits for a specific repository but I can't find that anywhere in the UI. I'm running Version:2.10.3 Build:20130318234358 2013-03-19.


Answers:
author: lpater
body: Hi Trevan,

the question you've linked seems to relate to the JIRA DVCS Connector.

FishEye doesn't currently support disabling smart commits for specific repositories.

<https://jira.atlassian.com/browse/FE-4301> is probably the issue you should vote on. Be sure to leave a comment about your specific use case, if it's different from the one described in the issue.

Best regards,

?ukasz

comments: author: Trevan Richins
body: I apparently can't access FE-4301. I can access FE-4300 and FE-4302.


author: lpater
body: Should be visible now.


Tags: fisheye-crucible-administration
How to discard repeated comments from different users on same code
Asked by Rahul Aich [Nagra]:

Hi

This issue is related to crucible 2.7

We usually use multiple reviewers to review the same set of files.

Now how can we discard repeated similar comments from different reviewers on the same code (file).

Crucible does not allow you to delete review comments and at the same time it gets messy when four developers make the same review comment on an obvious error at the same line in the code.

Rahul


Answers:
author: rstephens
body: Hi Rahul,

Unfortunately Crucible does not have a way of detecting duplicate comments like this. Developers shoud be able to delete their own comments in Crucible, so if you see this often you could enforce a strategy such as asking the developer who left all but the oldest comment to delete their comments.

Another strategy you could use might be to adapt a workflow which makes it less likely to have two developers looking at a code review at the same time.

Kind Regards,  
Richard Stephens

comments: author: Rahul Aich [Nagra]
body: Thanks Richards it helps.
Stash or Fisheye email new commits on a regular basis?
Asked by Scott Hung:

Do Stash or Fisheye automatically email a list of commits on a regular basis (e.g. nightly)? We currently have a cron job that I ported to use git log --all but it seems like this would be something everyone would find useful.


Answers:
author: rstephens
body: Hi Scott,

In Fisheye you can do this by navigating to a repository activity stream and adding a Watch to this repository by selecting Watch from the Tools menu in the top-right corner.

Kind Regards,  
Richard Stephens


author: paulwatson
body: Scott,

for FishEye, this documentation may help: <https://confluence.atlassian.com/display/FISHEYE/Watches>

Stash currently sends email notifications for pull request events: <https://confluence.atlassian.com/display/STASH/Notifications>

regards, Paul


Tags: bitbucket-administration

bitbucket-server

fisheye-crucible-administration
Should FishEye reside on the same server as the repositories?
Asked by CodeForCoffee:

I'm doing my initial setup up of Fisheye. With some pains regarding ssh. Now my question is. Are there performance gains or security advantages to having FishEye and svn / git repo's residing on the same server.


Answers:
author: rstephens
body: Hi CodeForCoffee,

There may be some performance gains for accessing SVN repositories hosted locally through the file:// protocol. For git/hg, as Fisheye maintains a clone of the repository anyway, any performance gains will be negligible.

If the repositories are accessible remotely anyway there will be no security benefits.

Kind Regards,  
Richard Stephens


author: CodeForCoffee
body: Thanks.
Exclude blank and comment lines from LOC Metrics.
Asked by Pablo Arango:

As described in <https://confluence.atlassian.com/display/FISHEYE/About+the+Lines+of+Code+Metric>, LOC process in FishEye by default counts blanks and commented lines.

Is there a way to tell fishEye not to count blanks and comments towards de LOC metrics?


Answers:
author: Gurleen Anand _Atlassian_
body: Hi Pablo,

Unfortunately this feature is not yet available in Fisheye, though you might be interested in this feature request:

<https://jira.atlassian.com/browse/FE-2422>

Thanks,

Gurleen
Can FishEye selectively allow smart commit hashtags?
Asked by Thierry Lach:

Is it possible to selectively enable smart commit hashtags in FishEye? For example, I would like to completely disallow transition smart tags while allowing the comment hashtag.


Answers:
author: rstephens
body: Hi Thierry,

It is possible to disable smart commit JIRA integration leaving Crucible smart commit features enabled, but it is not possible to selectively disable parts of JIRA integration.

If you wish to disable JIRA smart commits entirely, you can do so from the Smart commits page in the administration.

Kind Regards,  
Richard Stephens


Tags: fisheye-crucible-administration

smart-commit