youngmon/atlassian-qna huggingface dataset:
Bamboo OnDemand random Client.InvalidZone.NotFound error
Asked by Lionel Orellana:

I have a custom AMI in the Sydney which I created based on the Bamboo stock image.

I can start a micro instance of this AMI from bamboo and attach an EBS volume from a snapshot.

I can start an m3.medium instane of this AMI from bamboo without attching the EBS volume.

Starting an m3.medium instance of the same AMI attaching the EBS volume doesn't work consistently. It was working this morning. Tonight I get
> Creating EBS volume...
>
> Found snapshotId at /root/snapshotId. Snapshot will be restored to /mnt/bamboo-ebs
>
> Cannot find value for 'aws.ebs.deleteOnTermination'. Nothing is written.
>
> mountLocation: /mnt/bamboo-ebs
>
> attachedDeviceLocation: /dev/sdh
>
> instanceId: i-02562d3d
>
> amiId: ami-952db5af
>
> availabilityZone: ap-southeast-2b
>
> Thu Apr 24 11:31:26 UTC 2014
>
> Using snapshotId snap-759bff41
>
> Restoring volume from snap-759bff41...
>
> Client.InvalidZone.NotFound: The zone 'ap-southeast-2b' does not exist.
>
> ec2-create-volume failed (exit code 0). Output:

I have modified the .bash_profile of the root account in the AMI to do

```
export EC2_URL=https://ec2.ap-southeast-2.amazonaws.com
```

After doing that it all started working. Until now when it is failing again for no apparent reason.

-----------------------

As I finish writing this post I try to start the m3.medium instance again and it is working again.

So it seems that I am randomly getting this Client.InvalidZone.NotFound error.

Thanks for any help

Lionel.


Answers:
author: Przemek Bruski
body: Is it a recent stock image? Are you creating new image configurations for your tests or is it always the same configuration?

Try the following: start an instance from an image configuration without an EBS, then add the EBS to that configuration and start it again. It should work from then on.

comments: author: Lionel Orellana
body: I copied ami-270b444e (3.0-SNAPSHOT-bamboo-snapshot-amzn-ami-pv-2013.03.1.x86_64-ebs-1372107828-BDM-1372609769-BDM1378218549) from us-east-1.

What you suggest is what I had done and perhaps that is why it is working again. But why would starting it without an EBS first fix it? Will it happen again? I think it's already happen twice.

<br />


author: Przemek Bruski
body: When you start it without an EBS, the agent starts and reports back the image version - only then Bamboo knows that it should start EBSes, by default it expect the image to do it. We are aware that this is a problem.

It should not happen again, unless there's a bug somewhere.


author: Lionel Orellana
body: Ok I'll keep an eye on it to see if it happens again. Is there a JIRA issue for this?


Tags: aws

cloud
How to Execute few build plans in a sequence irrespective of failures
Asked by Teja Gullapalli:

I have a few DEPENDENT build plans that have to be executed every night in a particular sequence. The build plans are triggered based on a scheduled trigger and whenever a build fails, all the subsequent components are not built. I want the subsequent components also to be built irrespective of any interim failures. Sadly, the "dependency blocking strategy" doesn't help here because it works only for commit based triggers and not a scheduled trigger.

After some searching i've found this feature request [](https://jira.atlassian.com/browse/BAM-12562)<https://jira.atlassian.com/browse/BAM-12562>, but this is still in the open state. Please suggest if there is a work around that can be configured on bamboo to achieve my goal.

Thanks,

Tej


Answers:
author: Teja Gullapalli
body: It's been a month and no replies till now. Atleast tell me if it's possible or not?
How does Gitflow releases work with Deployment projects?
Asked by Ron Chan:

So our suite of versions are Bamboo (5.3), JIRA (6.1.1), Stash (2.8.2). We are trying to leverage the intended workflow of these tools and apply them to our build/release workflow.

We have run into an issue trying to implement this:  
[](http://blogs.atlassian.com/2013/05/version-management-jira-bamboo/)<http://blogs.atlassian.com/2013/05/version-management-jira-bamboo/>

Our gitflow workflow goes something like:  
- Create JIRA ticket (e.g. **PROJ-123** )  
- Create **feature** branch from ticket  
- Push changes (with "PROJ-123" in commit message)  
- Merge into **development** branch  
- Create **release** branch from **development** branch  
- Create deployment release from **release** branch build   
- Deploy release to Staging  

So at this point (based on Atlassian documentation), I'm expecting the deployment status panel in **PROJ-123** to contain the deployed details. But it does not.

Now I know this, if I were to push a change (with "PROJ-123" in commit message) into that **release** branch, I would get the result I expect in **PROJ-123**.

But the thing is, I'm already for a release after branching **release** from **development**-- I have no other changes to make at that point.

Were these tools not made to utilize the gitflow release workflow? Or am I missing something here???


Answers:
author: Marcin Gardias
body: Here's the problem: how Bamboo knows that PROJ-123 should be in while say PROJX-980 should be not ? All Bamboo knows about git branch is that it's a tip with certain parents. How far back in time Bamboo should look to collect changes is completely unknown. I admit Bamboo should be smarter in that regard but the *best* we can do is to *try to find* the point when you created the branch. In which case we would still not find PROJ-123 which happened before that.

The possible solution would be to have sth like 'custom range builds', I've opened an improvement request here: [](https://jira.atlassian.com/browse/BAM-14525.)<https://jira.atlassian.com/browse/BAM-14525>. Please vote on it.

comments: author: Ron Chan
body: Since that is the intended behavior/workflow of Bamboo, then it doesn't align with the gitflow release model as advertised.   

For the time being, it seems our workaround will have to be -  
Create deployable release based on **feature** branch UNLESS there are new commits in the **release** branch, in which case, use the **release** branch...otherwise deployment information will not propagate to JIRA's deployment panel.

This would certainly work but feels a little clunky and not a workflow we can standardize for our dev teams.


Tags: bamboo-administration

bitbucket-server

continuous-delivery

deployment

jira-administration

release-management
How do I upgrade stock OnDemand Bamboo images to grails 2.3.7
Asked by Greg Pagendam-Turner:

Latest version of Grails in Ondemand images seems to be 2.1.5

How do I upgrade to the latest?


Answers:
author: Przemek Bruski
body: A new set of images will be released with Bamboo 5.6 (in two weeks time max). It will contain Grails 2.3.7. You can use these images on OnDemand - just download the Bamboo trial and get the AMIs from there.

You can also use the following instance startup script (in your image configuration):

```
grails=2.3.7    grailsZip=grails-$grails.zip    wget ${COMMON_WGET_OPTIONS} "http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/$grailsZip"    echo Unpacking Grails $grails    unzip -q $grailsZip -d /opt    rm -f $grailsZip    grailsMajorVersion=$(echo $grails | sed 's/^\(...\).*/\1/')    ln -s /opt/grails-$grails /opt/grails-${grailsMajorVersion}    rm -rf /opt/grails-*/doc
```

comments: author: Greg Pagendam-Turner
body: What path in the archive are the AMIs in?


author: Przemek Bruski
body: WEB-INF/classes/atlassian-bamboo-agent-elastic-s3-bucket.aws


Tags: cloud
Concurent build and deployment on the same remote agent?
Asked by Constantin Bugneac:

Hi All,  

Does Bamboo allow to run on the same agent a build plan for a project and deploy (existing artefacts from previous builds) for the same project concurrently?  

Considering build agent has enough horse power - is there any way to achieve this?  

I don't want to use/install/etc. a second agent while I've got good hardware on existing one.  

Reason: build process takes long time (including tests) while deployment is quick.  
At the moment I have to wait until build finishes (deployment task is delayed) ...   

Thanks,  
Constantin


Answers:
author: Timothy
body: You can install multiple agents on the same server but one agent can only run one build at any one time.

comments: author: Constantin Bugneac
body: Tahnks Timothy,

I installed the 2-nd instance of Bamboo agent in a separate directory.

Regards,

Constantin
Unable to find accurev
Asked by James Youngman:

This is Bamboo 5.4.2

2014-04-21 15:43:43,272 WARN \[http-apr-8085-exec-17\] \[AccuRevRepository\] setOptionsFromCapabilities(): properties for AccuRev base and binary paths are missing, using defaults

2014-04-21 15:44:05,580 ERROR \[http-apr-8085-exec-17\] \[FieldErrorUsageVerifier\] CreateChain: unreported field errors: Error connecting to AccuRev server : \[Accurev not logged in please contact the system administrator\]

The accurev plugin is installed in Bamboo\\atlassian-bamboo\\WEB-INF\\lib

Don't understand what I am missing.


Answers:
author: James Youngman
body: It seems to work ONLY when run from console. It does not work when run as a service.


author: James Youngman
body: Is item #3 under Setup correct? This webapp directory is empty. It seems that the contents have been moved to atlassian-bamboo/WEB-INF/lib .


author: Timothy
body: Did you check the installation guide ([](https://bitbucket.org/hmcmanus/bamboo-accurev-plugin/wiki/Installation)<https://bitbucket.org/hmcmanus/bamboo-accurev-plugin/wiki/Installation>)?


Tags: bamboo-administration
How do you specify the installation directory for build agents?
Asked by Caleb Tote:

I'm trying to install a build agent on a remote \*nix box, and would like to specify the installation directory (because our /home/ drive has very limited space). How can I do that?

I'm currently using this command: {user@server9:/apps/build/domain} $ /usr/java6_64/bin/java -jar atlassian-bamboo-agent-installer-5.3.jar [http://172.16.10.41:8085/agentServer/\<br\< a=""\>\>](http://172.16.10.41:8085/agentServer/%3Cbr)


Answers:
author: Przemek Bruski
body: ```
By passing -Dbamboo.home=/whatever/dir to the agent process, you can choose any directory you like.

```


Tags: bamboo-administration
Bamboo remote agent on same server as a bamboo server install
Asked by Jordan Packer:

Can anyone think of any problems that might exist if I were to install a remote agent on the same server as an existing Bamboo installation? I have a fairly inactive stage bamboo server that I use for testing upgrades/new plugins/etc, and I'm thinking of using that server as a remote agent for my production bamboo server. However, I need to have Bamboo running on the stage server at the same time as allowing the bamboo remote agent to run. Would there be any problems running both of those services at the same time on the same server?


Answers:
author: Przemek Bruski
body: You can do that, there won't be any issues. You can even run multiple remote agents on that box (just give them separate tmp directories).

comments: author: Jordan Packer
body: Great, thanks for the confirmation! Is there any documentation out there on how to install multiple remote agents on the same server?


Tags: bamboo-administration
Git sandbox on remote agent
Asked by Ajay Singh:

I am having one Git sandbox on remote agent and i want Bamboo to use my git sandbox instead of clonning the Git Repository.

How can i update this info in Build Plan or on Remote Agent.


Answers:
author: Timothy
body: If you want to use the Git sandbox, you might need to use the SSH task to SSH in and execute the Git commands on the box itself.

comments: author: Ajay Singh
body: Thanks Tim, But i am facing below issue :-

I need to provide a custom workspace on Remote Bamboo Agent so that the Build can execute on my customized workspace instead of using the Default Bamboo workspace.

Or is there a way to mention the workpace in Plan / Job configration so that Build can be done against the customized workspace


author: Timothy
body: And what is so special about this workspace? Can you not provide the needed stuff as environment variables available to the build user?
Bamboo Maven builds stopped working. Plugin is installed and enabled.
Asked by Ed Erwin:

Last week one of our Bamboo build plans mysteriously stopped working with the error:

    Could not execute task 'Maven Build of XXX' no Plugin with key 'com.atlassian.bamboo.plugins.maven:task.builder.mvn3' is installed. 

This plan had been working successfully for months. The plugin is installed and is enabled.

The system plugin is called "Atlassian Bamboo Maven Tasks Plugin" key="com.atlassian.bamboo.plugins.maven" version 4.3.3 and it is enabled. The module "task.builder.mvn3" is enabled.

We have tried disabling and re-enabling the plugin. We have tried restarting Bamboo. We have tried creating a new plan that depends on Maven3 and it also fails.


Answers:
author: Ed Erwin
body: The Bamboo agent machine, or one of the services on it, was not finding the correct JDK. We were able to fix the problem by pre-pending the JDK path to the PATH environment variable.
Bulk Update Perforce repository settings
Asked by qainterview:

Hello,

I have hundreds of jobs in Bamboo that are using a perforce user that has been compromised. Is there a way to bulk update all the username/passwords/port or do I have to do this one by one.  

This issue is very urgent.  

Thanks

<br />

Ali


Answers:
author: Felipe Kraemer
body: Hi Ali,

If your repository is [shared](https://confluence.atlassian.com/display/BAMBOO/Configuring+a+shared+source+repository), you can update the user details here and this change will take effect in all the plans configured to use this shared repository.

If you don't use shared repositories, you will need to do this one by one.

Kind regards,  
Felipe Kraemer  
Atlassian Support


Tags: bamboo-administration
Cant't push and other git commands
Asked by payamka:

Hi

I can't push to the remote repo with my password while I can log in to my Bitbucket account with that password!.

I get this error:

fatal: Authentication failed for '<https://bitbucket.org/>...'

What is the problem?


Answers:
author: Caroline R
body: Hi, [@payamka](/t5/user/viewprofilepage/user-id/4793384), welcome to the community!

By your description, it seems that the issue you are facing is related to the recent changes with the removal of support for Atlassian account password for operations GIT over HTTPS and API requests.

This was announced in our Blog post [Deprecating Atlassian account password for Bitbucket API and Git activity](https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity) and shared on multiple email communication sent to our customers in the last few months. This announcement was also included in the terminal message response for HTTPS GIT transactions.

For more details on how to resolve this issue, please refer to our community post here:

* [Bitbucket Cloud account password usage for Git over HTTPS and API ending March 1, 2022](https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231)

This post provides detailed instructions users need to take to help resolve the issue. This community post also provides answers to FAQ, make sure you scroll to the bottom of the page to find the answers.

If after reading the community post you have further questions, please do reach out and we will be happy to help.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
How can I git push with app password on a Mac OS using https and terminal bash
Asked by JERRY MCLAUGHLIN:

I'm on a Mac OS

I'm using the terminal (bsh)

I have all my repos on the Mac and they were working before the change

I have cleared any passwords or credentials in keychain

I do not want to issue pull commands in my repos

How can I implement an app password (preferably globally) to enable

$ git push origin main

and not get an error (right now it is a 403 error)

Thanks,


Answers:
author: Theodora Boudale
body: Hi Jerry,

I see that you created a support ticket for this issue, I just wanted to post a reply here for any other users also who may come across your post.

Apart from the 403 error, it's important to look at any other messages in the output that may provide additional info on why the error occurs. If the output includes the message

```
Your credentials lack one or more required privilege scopes.
```

this means that the app password doesn't have the necessary permissions for the operation that is performed.

If the app password is used only for git clone, git pull and git push operations, then the permissions **Repositories:Read** and **Repositories:Write** are needed.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

https

mac

password
Powershell script always fails
Asked by Marcin Goli?ski:

In my bamboo job I have a powershell 'script' task ('Run as Powershell script' checked) with following content:

```
@"&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;connectionStrings&gt;  &lt;add name="CargoContext" connectionString="" providerName="System.Data.SqlClient" &gt;&lt;/add&gt;&lt;/connectionStrings&gt;"@ &gt; ConnectionStrings.configecho everything in order!
```

Ever since I added this task all builds fail, even though all tests are run and pass. I checked build logs and found following message (in red, probably meaning that this fails the build):
> Unable to find executable at \&('C:\\Program Files\\Bamboo\\temp\\CARGO-GATE2-JOB1-3-ScriptBuildTask-5984229618597029809.ps1'). Will try to run it anyway.

1. Script executes normally (I can see the output in logs). Why is bamboo complaining? Can't it detect script generated by itself?
2. Execution continues until all tests are ran and pass. If bamboo fails because of this task shouldn't it prevent next steps from running?
3. **How can I get this build to pass?**


Answers:
author: Marcin Goli?ski
body: @Marcin Gardias was right, the red warning didn't fail the build. I found following line in logs:

```
simple	18-kwi-2014 16:51:51	Starting task 'NUnit Parser' of type 'com.atlassian.bamboo.plugin.dotnet:nunit'simple	18-kwi-2014 16:51:51	Parsing test results...simple	18-kwi-2014 16:51:51	Failing task since test cases were expected but none were found.simple	18-kwi-2014 16:51:51	Finished task 'NUnit Parser'
```

**Nunit results parser couldn't find any test results (filename changed) and it failed.**

I still don't know why red line didn't fail the build and line that actually failed it was indistinguishable from all the log noise.


author: Marcin Goli?ski
body: 5.3 build 4101 -10 Dec 13


author: Marcin Gardias
body: That 'unable to find executable' is only a warning that program you try to run is neither absolute path nor a path relative to working dir. We put this warning because in *some* cases it might be relevant (as in you expect executable to be on PATH but it's not)

Execution continues because the script didn't fail. It must be sth else. Please show the complete build log.

comments: author: Marcin Goli?ski
body: You were right, see my answer below


author: Jason Monsorno
body: It has also reported that for me too but my build doesn't fail. What version of Bamboo are you running?


Tags: bamboo-administration
Not receiving bitbucket invitation emails
Asked by Le Thanh Binh:

Hi,

I just started working for new empoyer, but I am not able to access their bitbucket workspaces. I am not receiving any invitation emails that are supposed to have been sent. I don't understand why it doesn't work. Please help me.  

My email address is \<email removed due to privacy reasons\>

Regards,  
Binh Le.


Answers:
author: Caroline R
body: Hi, [@Le Thanh Binh](/t5/user/viewprofilepage/user-id/4792587), welcome to the community!

I reviewed your email and confirmed that it had a block on the server that prevented emails from being sent to you. This can occur when the system tries to send an email to the user and the account does not exist, is not activated yet, or rejects the email for some internal reason.

In this case, I have removed the block from your email. Could you please ask your team to **remove** the invitation and send you a new one? They can do this by following the next steps:

In case they have invited you to a **specific repository**:

* Access the workspace \> Go to the repo they have invited you to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "invitation pending";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case they have invited you to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group they have invited you to**;**

* Click on the "invitation pending";

* Select the "Cancel invitation" option to remove the invitation;

* Add your email again to send a new invitation.

Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.

Kind regards,   
Caroline

comments: author: Le Thanh Binh
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) ,  

Thanks for your support. Now everything work fine for me.


author: Caroline R
body: Hi, [@Le Thanh Binh](/t5/user/viewprofilepage/user-id/4792587)! Thanks for your confirmation :)


Tags: bitbucket-cloud

email

invite
Bitbucket Pipeline Page keeps loading forever
Asked by ffleader1:

I can no longer access the pipeline section in one of my private projects.

The page just keeps loading indefinitely.

This is the log when I do F12.

Any help is appreciated.

Thank you

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

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


Answers:
author: ffleader1
body: Turn out I have not turned on Pipeline for this repo. I sure wish the notification system could do better.

It can be done by going into Repository Settings -\> Settings

There should be the option to turn on pipeline.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud