youngmon/atlassian-qna huggingface dataset:
Does an offline remote agent consume a Bamboo agent license?
Asked by Chad Barnes:

The documentation does not explicitly state if all agents count against the agent license count, or if only ONLINE agents count.

The product "Virtual Agents for Bamboo" seems to imply that offline agents do not use licenses.

Can an unlimited number of remote agents be created? If so, when a remote agent attempts to start, and there are already MAX_LICENSES agents ONLINE, what happens?


Answers:
author: rsperafico
body: Hello Chad,

Thank you for your question.

Lets consider you have a license of 3 remote agents.

You are able to install the following agents:

* agent01, located under /centos65/agent/bamboo-5.7.2
* agent02, located under C:\\agent\\bamboo-5.7.2
* agent03, located under /macosx/agent/bamboo-5.7.2
* agent04, located under /ubuntu/agent/bamboo-5.7.2
* ...

In order to install the agent04, it will be required to bring down a remote agent (agent01, agent02 or agent03) as your license only allows you to have 3 remote agents.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


author: Patrick J Bonk
body: We have a license for 10 agents. So does that mean we can have 10 for our PROD server and 10 for our Developer server??


author: asantos1822
body: Hi Pat,

The active remote agents connections allowed to each server will be the upper limit allowed by the license installed on that server.   
In your case 3 remote agents per server, right?


author: Patrick J Bonk
body: Do agents running on a Developer server count against the agent license count?

We have 3 on our Prod server and three on our Developer server so does that make our count 3 or 6??

Thanks.

Pat


Tags: bamboo-administration

licence

remote-agent
How to clone bamboo instance to dev and adjust application links properly
Asked by Jim Sellers:

Hello.  

We have a mirrored env where we test tool upgrades (bamboo, stash, etc). If our production host is example.com, then the dev env's host is exampledev.com.  

What we have done in the past is export bamboo, unzip the file and find / replace all example.com with exampledev.com, then rezip the file and import it into our dev host. This allows us to make sure that dev is as close as possible to production (and pointing at stash dev). We also mirror stash repos from our prod stash instance to dev using the api and a bit of git cloning.  

We recently changed bamboo to use application links rather than repo urls that contained variables. Bamboo doesn't like it after the find / replace all.  

How should we import into the dev instance and change the plans to point to stash dev?  

Thanks for your time

JIm


Answers:
author: rsperafico
body: Hello Jim,

Thank you for your question.

Please, recreate the application link between Bamboo and Stash (to point to your dev instances) and update the repositories in Bamboo, making sure they are pointing to the correct Stash instance (which seems to be dev). *This will be the safes approach.*

Since you have moved to application links, all the communication between Bamboo and Stash will run through this linkage so only updating the repository URL will not be enough, I am afraid.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


author: Jim Sellers
body: I'm accepting the answer because that's the best that I've got right now.  

I've kept our current possibly-unsafe clone, but rather than manually than update the \~ 500 builds and the 100's of branches I wrote a Selenium script to open each plan / branch, wait for the js to finish loading, and then press save.  

It's not ideal, but it's good enough for now.  

Rafael thanks for letting me know that I wasn't missing something else.


author: Jim Sellers
body: Hi Rafael  

While it wouldn't be too much work to re-create the app link, it would be a lot to update the \~ 500 build plans.  

Taking a quick look at the REST api, I can't see any way to script updating the repos config on plans either.  

Is there a way that's less safe that doesn't involve a day+ of work each time we'd want to do this?  

Thanks for your time,

Jim


Tags: bamboo-administration
gradle dependency download terribly slow
Asked by Jelle Victoor:

I'm running bamboo cloud and starting my gradle build like this with a script task

```
chmod +x gradlew./gradlew clean build
```

This works, but the resolution of my depencencies is very slow. the network on the other hand is fast (4MB/sec)

but my log says otherwise for jars of less than a megabyte.

My image configuration

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------|--------|---------------------------|
| [Ubuntu: EBS x86_64 (Ubuntu)](https://conundra.atlassian.net/builds/admin/elastic/image/configuration/viewElasticImageConfiguration.action?configurationId=98308 "Default Elastic Image Configuration shipped with Bamboo") (stock image) (disabled) | ami-5be8f232 | No EBS | M3 General Purpose Medium |

This is the logging from bamboo, note the timestamps

|----------------------|---------------------------------------------------------------------------------------------|
| 16-Jan-2015 21:29:26 | Download <https://repo1.maven.org/maven2/org/webjars/angularjs/1.2.20/angularjs-1.2.20.pom> |
| 16-Jan-2015 21:33:41 | Download <https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom>    |
| 16-Jan-2015 21:37:55 | Download <https://repo1.maven.org/maven2/org/webjars/d3js/3.4.11/d3js-3.4.11.pom>           |
| 16-Jan-2015 21:46:24 | Download <https://repo1.maven.org/maven2/org/webjars/leaflet/0.7.3/leaflet-0.7.3.pom>       |

Anyone seen this issue? My build runs perfectly on a server instance (but with the gradle plugin)


Answers:
author: Richard Cross
body: Same problem here.

If I log on to the bamboo agent and directory download a large dependency (hadoop-yarn-api, which is 1.8MB) with wget, it arrives in under 0.02 seconds. Running gradle from the script task in Bamboo, it sometimes takes several minutes.

However, I think the problem could be to do with Gradle itself, and how long it takes to resolve dependencies.

Have you tried adding the --profile switch to your gradle command, and then creating a new artifact that saves the report (usually it's un build/reports/profile)?


Tags: cloud
How do I configure Bamboo to correctly show the build reason?
Asked by Robert Victory:

I have Bitbucket set up to send hooks to Bamboo, and Bamboo set to trigger builds when receiving hooks. Functionally, it works fine. However the build reason that Bamboo shows is always "Manual run by (Admin)". How can I get Bamboo to show that it was triggered by code changes from (Developer)?

I also have some scheduled builds, and these work fine but show "Manual run by (Admin)" rather than an appropriate message.


Answers:
author: Steffen Opel _Utoolity_
body: I think this had been caused by the following issue with the Bamboo \<=\> Bitbucket integration which has since been resolved:

* <https://jira.atlassian.com/browse/BAM-13034>
How do I access a task log via script after an Ant task executes
Asked by saywhat42:

I have set up a Bamboo Job that has 4 tasks

Source Code checkout

Ant

Script (bash with grep)

Ant

The script file needs to parse the log created during 1st Ant task, then if a string is present (return 0) launch the next Ant task. I am unsure how to read the log - my script executes but exits with a status of 2 (error from grep)

I tried hard coding in the url for the log, but that did not work, so wondering if I can access the log at this stage of processing.

Any thoughts, pointers, suggestions ??

Thanks, Peter


Answers:
author: Krystian Brazulewicz
body: Peter, what do you mean by
> I'm unsure how to read the log

Do you know the location of the log file produced by ant?


author: saywhat42
body: No, I am unsure where the log is. I thought it was at the result url, but you have to drill down on that. I am running on a linux agent, is there a standard ant log location I can access to parse??

Thanks very much for your help, I am new at this stuff ...

Cheers

comments: author: Krystian Brazulewicz
body: I can't tell where your logs are. You're in control where those logs are created. Get the ANT manual, check the build.xml file and it will be clear.


author: saywhat42
body: Yes, found it - thank you very much - thought about what you said and then it made sense. Appreciate your assistance.


author: saywhat42
body: Thanks, I have switched it to be like you suggested - can I access the log file (feed it to an inline bash script) using $BAMBOO_BUILD_RESULTS_URL , or is another parameter correct?


author: rsperafico
body: Hello Peter,

Thank you for your question.

I would suggest you on splitting your tasks into two jobs, so when running the Script task you can guarantee the previous job has build successfully and you will be able to "grep" its generated log.

```
Default Stage-- Default Job---- Source Code Checkout (task)---- Ant (task)-- Extended Job---- Script (task)---- Ant (task)
```

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support

comments: author: Krystian Brazulewicz
body: This is incorrect solution. If you split your flow into 2 Jobs then these can be executed on different agents and no order is guaranteed.


author: saywhat42
body: Yes, I noticed this unwanted side effect, thank you Krystian.


author: Krystian Brazulewicz
body: This is not a side effect :) - this is how our product works.


Tags: cloud
pipe ssh-run: SERVER variable missing
Asked by nils-m:

When I run the Bitbucket pipeline I always have this error (in bold) I can't resolve:  
In the build log:
>
> <br />
>
> --env=COMMAND="./ansible/deploy-dev.sh" \\  
> --env=MODE="script" \\  
> --env=SERVER="$SSH_JUMP_HOST" \\  
> --env=SSH_KEY="$SSH_JUMP" \\  
> --env=SSH_USER="$SSH_JUMP_USER" \\  
> ...  
> ...  
> Status: Downloaded newer image for bitbucketpipelines/ssh-run:0.4.0  
> INFO: Executing the pipe...  
> /pipe.sh: line 26: SERVER: **SERVER variable missing** .  
>
SERVER variable is set and provided by a repository variable.

bitbucket-pipelines.yml

````

...
branches:
  develop:
    - step:
      script:
        - pipe: atlassian/ssh-run:0.4.0
          variables:
            SSH_USER: $SSH_JUMP_USER
            SERVER: $SSH_JUMP_HOST
            SSH_KEY: $SSH_JUMP
            MODE: "script"
            COMMAND: "./ansible/deploy-dev.sh"
```
````

Someone has a clue ?


Answers:
author: Theodora Boudale
body: Hi [@nils-m](/t5/user/viewprofilepage/user-id/166201),

I've seen this error occur because of incorrect indentation in the bitbucket-pipelines.yml file.

Indentation for **branches:** , **develop:** and **- step:** should be at least 1 space from the parent level.  
Indentation for children of **- step:** (like script:) should be at least 3 spaces from the parent.

Commands in the script do not need to be intended from the parent level **script:** , but you can add indentation for readability.  
For pipes  
the keyword **variables:** needs to be intended at least 2 spaces from **- pipe**   
the actual variables need to be intended at least 1 space from **variables:**

```
pipelines:
  branches:
    develop:
      - step:
          script:
            - pipe: atlassian/ssh-run:0.4.0
              variables:
               SSH_USER: $SSH_JUMP_USER
               SERVER: $SSH_JUMP_HOST
               SSH_KEY: $SSH_JUMP
               MODE: "script"
               COMMAND: "./ansible/deploy-dev.sh"
```

Can you check the content of your bitbucket-pipelines.yml file in our validator here <https://bitbucket-pipelines.atlassian.io/validator> ?

Kind regards,  
Theodora

comments: author: nils-m
body: Oh gosh, that was it !  
This should be documented, imagine the time spent ...

Could we have a reasonable explanation why the yaml is interpreted this way ?

Thanks !!!


author: Theodora Boudale
body: Hi [@nils-m](/t5/user/viewprofilepage/user-id/166201),

It's good to hear that the issue is resolved, and you are very welcome!

I was actually mistaken about the indentation, it needs to be at least 1 and 3 spaces respectively (instead of 2 and 4 exactly that I mentioned).

I will edit my previous response with the correct info. Indentation has to do with the type of data structures used in the yml file, I will create a request with my team to include info about indentation in the documentation.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

ssh
Bitbucket: Security domains within a single workspace/billing plan
Asked by Rodion Alukhanov:

As I understand, there is no possibility to join multiple domains within a single billing plan.  

Is there a solution to split responsibility inside a organization? I need a some sort of administrator on the project level with a permissions to create and manage user groups.  

Very simple and common use-case: 10 repositories of a single project must be accessed by a group of 30 team members. The only way to manage this configuration without being a workspace admin is to add every single users to every single repositories. It is not practical and very error prone.  

Is there a better solution?


Answers:
author: Theodora Boudale
body: Hi Rodion,

I'm afraid that there are no administrators on the project level in Bitbucket Cloud. User groups can only be created and managed by workspace admins.

The user group needs to be created by a workspace admin (members also need to be added to this user group by a workspace admin).

Afterwards, this user group can be added to a certain repo by anyone who has repository - admin permissions (even if they are not a workspace admin).

Kind regards,  
Theodora


Tags: billing

bitbucket-cloud

cloud

project

workspace
Unable to connect to Bitbucket
Asked by PadamB:

Windows machine with Chrome version 1000.0.4896.127 . Getting the connection not private message

Your connection is not private {#toc-hId--556455825}
----------------------------------------------------

Attackers might be trying to steal your information from **bitbucket.org** (for example, passwords, messages, or credit cards). [Learn more](chrome-error://chromewebdata/#)


Answers:
author: Andy Heinzer
body: Sorry for the inconvenience, there was a incident today where we tracked this over in <https://bitbucket.status.atlassian.com/incidents/r6jvgswd238m>

At this time, the incident has been resolved. So this should be working now again for all users.

Regards,

Andy


Tags: bitbucket-cloud

cloud
Can't login to my account
Asked by Archita Agarwal:

I used to use my school email address (say xyz@brown.edu) for Bitbucket. I then graduated and changed the Bitbucket email address to xyz@alumni.brown.edu.

I was able to login to my account until one month back and to my horror, I am suddenly kicked out of my own account without any warning. I have 7 years of work on Bitbucket which I can no longer access. I had to create a new account on Bitbucket just to ask this question.

Someone, please help me out.

Here's a screenshot of what I get when I try logging in using the alumni address.

![Screen Shot 2022-05-03 at 9.49.27 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/195651iF3BE33FF18B71775/image-size/large?v=v2&px=999 "Screen Shot 2022-05-03 at 9.49.27 AM.png")


Answers:
author: Patrik S
body: Hello [@Archita Agarwal](/t5/user/viewprofilepage/user-id/4905685) ,

Welcome to Atlassian Community!  
In order to further investigate this case we will need to check the e-mail addresses you are using to login. Since this is sensitive information, I went ahead and created an internal ticket for you using the email of your community account, so you don't have to share this information here.  
You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.  
Thank you, [@Archita Agarwal](/t5/user/viewprofilepage/user-id/4905685) .  
Kind regards,  
Patrik S


Tags: bitbucket-cloud

cloud
./jfrog-setup-cli.sh: line 13: bash: not found
Asked by keerthi narayan:

I am trying to integrate bitbucket pipeline with jfrog. For that I have used below pipeline code, which is getting failed.

```
script:
```

```
 - pipe: jfrog/jfrog-setup-cli:1.0.0

 - source ./jfrog-setup-cli.sh

 - jfrog rt ping

 - jfrog -v
```

****ERROR:-****  
***`+ source ./jfrog-setup-cli.sh`***  
***`/opt/atlassian/pipelines/agent/tmp/shellScript9576033178271461230.sh: ./jfrog-setup-cli.sh: line 13: curl: not found`***  
***`/opt/atlassian/pipelines/agent/tmp/shellScript9576033178271461230.sh: ./jfrog-setup-cli.sh: line 13: bash: not found`***  
Please provide the solution immediately.


Answers:
author: Patrik S
body: Hi [@keerthi narayan](/t5/user/viewprofilepage/user-id/4905172) ,

Welcome to Atlassian Community!

From the the issue description seems like you are using the **jfrog/jfrog-setup-cli** pipe:

* <https://bitbucket.org/jfrog/jfrog-setup-cli/src/master/>

This pipe is not developed by Atlassian, its developed and supported by the JFrog team.

In this case I would suggest reaching out to their support team using the contact options listed here :

* <https://jfrog.com/contact-us/>

Thank you, [@keerthi narayan](/t5/user/viewprofilepage/user-id/4905172) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
can not login with eclipse
Asked by chuck666:

ubuntu 21.10

eclipse 4.21

egit 5.13 (eclipse plugin)

since the latest bitbucket update, i no longer can connect with eclipse. (\<username\>@bitbucket.org/\<username\>/\<repos\>.git

it was stored in the secure store, but clearing the store did not help, keeps asking username and password.

created also a new ssh key, added pub to bitbucket, added key to eclipse.

still cannot do anything regarding the repos.

any ideas?


Answers:
author: chuck666
body: solved. eventually found out, that https is no longer supported. for ssh i forgot to change the git connection property in eclipse to change to ssh. after that it worked.

comments: author: Rajesh.Pillai
body: Hi Chuck, so you just changed the push config protocol from https to ssh and it worked? It would be great if you could elaborate more. I am facing the same. Did you create any ssh keys and set them before doing this. Kindly advise.


author: chuck666
body: it's quite some time back since i had this issue.

as far as i remember:

1. setup SSH on bitbucket. there are instructions on Bitbucket how to setup SSH. download the private key
2. change eclipse, set up ssh. see screenshots


author: chuck666
body: ![Screenshot from 2023-06-02 07-51-36.png](https://community.atlassian.com/t5/image/serverpage/image-id/260858i6B43AF43D26C2AB7/image-size/large?v=v2&px=999 "Screenshot from 2023-06-02 07-51-36.png")![Screenshot from 2023-06-02 07-56-19.png](https://community.atlassian.com/t5/image/serverpage/image-id/260859iA22C078714E0C4F7/image-size/large?v=v2&px=999 "Screenshot from 2023-06-02 07-56-19.png")


Tags: bitbucket-cloud

cloud
Bitbucket Cloud Dark Mode
Asked by Bitwise DEVS:

Is there a support on Dark Mode for Bitbucket Cloud? As much as possible we do not want to use extensions or third party service just to relax our eyes when reviewing commits. Thank you!


Answers:
author: Patrik S
body: Hello [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676) ,

Thank you for reaching out to Atlassian Community!

At this moment I'm afraid Bitbucket Cloud does not offer a native Dark Mode functionality, but I definitely understand your interest in that feature. We have the following ticket on our public issue tracker to implement this option :

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

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 in mind: <https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html>  

While this feature is not implemented, as a workaround you could make use of some browser add-ons that will simulate the Dark Mode, such as the following :

* Chome : <https://chrome.google.com/webstore/detail/dark-mode/dmghijelimhndkbmpgbldicpogfkceaj?hl=en>
* Firefox: <https://addons.mozilla.org/en-CA/firefox/addon/darkreader/>

Let me know if you have any questions.

Thank you [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676)!

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
My Repository has exceeded 4GB
Asked by Shane Thomas:

A Repository that I have has exceeded the 4GB limit imposed by Bitbucket.

I have pruned my local repository, but I think I need support to temporarily increase the size of my repository so that I can push the changes to the server.

What is the correct process to have this rectified?

Thank you in advance.


Answers:
author: Theodora Boudale
body: Hi [@Shane Thomas](/t5/user/viewprofilepage/user-id/4483092),

I saw one repository over the 4 GB limit from the ones you have access to. I ran a git gc on it and its size is 1.6 GB now.

Does this agree with the size of your local repo if you run **git count-objects -Hv** ?

If you have rewritten history in your local repo to further reduce its size and haven't pushed these changes yet, please feel free to let me know when you do so I can run another git gc on the remote repo.

Kind regards,  
Theodora

comments: author: Shane Thomas
body: Hi Theodora,

Thank you. Yes everything seems to be in order now.

regards

Shane


author: Shane Thomas
body: Hi Theodora,

My local repository is only 2.6 GB and my remotes is saying it is 4.05 GB.

Could you please run another git gc on the remote server. I have exceeded the 4gb AGAIN.

Thanks

Shane


author: Theodora Boudale
body: Hi Shane,

I ran a git gc on the repo that had a size of \~ 4 GB, and its size has been reduced.

Please feel free to let me know if it looks ok now and if you need anything further.

Kind regards,  
Theodora


author: Craig Castle-Mead
body: Hey Shane,

<https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/> has some suggestions on resolving this type of situation

CCM


Tags: bitbucket-cloud

cloud