youngmon/atlassian-qna huggingface dataset:
How to create a micro elastic instance for build agents
Asked by adammiles:

How do you create a micro instance for build agents?

I've tried to create a EBS_i386 instance. It created it as an instance type medium (if I remember correctly). At this point it would build just fine. So I stopped the instance and changed the type to micro and restarted the instance. For some reason after that the builds wouldn't work anymore.

Please help,

Adam


Answers:
author: adammiles
body: So I've figured out how to do it.

Press the gear in the top right, go to 'Overview'

In the left hand nav go to 'Manage Image Configurations'

the instance types are shown there. If you don't see a T1 or T2 instance type then just edit the config, and select the desired instance from the 'Instance Type' dropdown.

Then start a new instance based on that type.

Hope this helps :smile:


author: AlexBussmann
body: We are curious to get an answer to this question as well. We've found that you need to build an AMI yourself. I'm hoping that someone can jump in and let us know if this is the case or not? Perhaps if you have familiarity with AWS AMI's you could achieve this by copying and resizing an existing stock image into an EBS t2.micro?


Tags: cloud
How to insert a custom parameter in Bamboo build?
Asked by Ji?? Havelka:

Hello,

I am solving this: I want to have a custom field in Bamboo build. The value should be asked when I run a job (or at least when "Run customized").

When I set the customValue, it should be added to maven task as:  
-DmyCustomParameter=customValue  
But when I leave the value empty, it mustn?t appear in the maven task at all.

The closest I was able to get was using variable, which value was "-DmyCustomParameter=customValue", but I?d like to fill only the "customValue", not to write the name of parameter every time I run the build.

Is there a solution for that?

Thanx,   
Jiri


Answers:
author: Marcin Gardias
body: No built-in solution that I know, but it is possible to implement a plugin that does it.

plugin interface: TaskProcessCommandDecorator

You can find some implementations in bamboo source:

```
IsolatedTmpDirCommandDecorator,
```

```
Maven2IsolatedLocalRepositoryCommandDecorator
```


Tags: bamboo-administration
Elastic Bamboo Error : EC2 Instance failed to start: EC2 instance order failed.
Asked by Alexey Kalyuzhnyy:

I try to configure bamboo elastic and get error

Elastic Bamboo Error : EC2 Instance failed to start: EC2 instance order failed.

When I'm click to "View error log" I have message with broken codepage:

Image 2014-11-20 at 3.51.29 pm.png  

Could you help me to solve this problem?

<br />

[](https://community.atlassian.com/t5/Bamboo-questions/Elastic-Bamboo-Error-EC2-Instance-failed-to-start-EC2-instance/qaq-p/385186?attachment-id=4779){#link_11695b96bdfe4b}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/12138/1/Image%202014-11-20%20at%203.51.29%20pm.png){#display_11695b96bdfe4b_0}


Answers:
author: Brent@Pedago
body: Just encountered this issue ... Any ideas?


author: Craig Otis
body: To anyone else encountering this - the error log issue, at the very least, is caused by: <https://jira.atlassian.com/browse/BAM-15046>


author: Amine Mouafik
body: Bump.


Tags: cloud
Auto-assign public IP for Elastic agent issue
Asked by Alex Cherkesov:

Last days we experienced an issue with starting of agents on EC2. Our instances started in public VPC and right now they can't obtain public IP for external access.

As I remember in image configuration there was option related with IP association but I can't found it right now. Is it removed permanently?


Answers:
author: Przemek Bruski
body: Currently there is a problem with that option when spot instances are used with VPCs. It all should go back to normal within a couple of days.

The option has been removed, public IPs will now be always assigned when you use VPC on Bamboo Cloud, you can't disable it.

Users of Bamboo Server can still choose to not use public IPs for VPC instances.


author: Alex Cherkesov
body: Przemyslaw, thanks you for your answer. We also solved this problem with enable always auto-assign public IP for all new instances for this VPC subnet in AWS.


Tags: cloud
Elastic Agent Stuck in Pending
Asked by Ruben Jimenez:

My elastic bamboo instance is stuck in the pending state and never seems to proceed until it is eventually just shut down. I'm using the image "[Ubuntu: EBS x86_64 (linux)](https://openqinc.jira.com/builds/admin/elastic/image/configuration/viewElasticImageConfiguration.action?configurationId=45776898 "Default Elastic Image Configuration shipped with Bamboo") (stock image)" AMI id is ami-5be8f232. I can start the instance without issues if I don't use a startup script but when I add the following as my startup script it just hangs on the agent startup step.

Startup Script:

apt-get install rubygems  
gem install compass

If started normally I'm able to ssh to the instance and run these commands using sudo without any issues so there should be no issues with the ability to execute these. I've also tried changing the startup script to include sudo as part of the commands, but that doesn't work either.

I've tried connecting to the running instance to check for logs and can't seem to find anything to help me debug the issue. Where should I be looking for logs? Also any ideas as to what I might be doing wrong here?


Answers:
author: Przemek Bruski
body: Redirect the output from these to files and see what they're trying to tell you. Also run apt-get with the '-y' switch

comments: author: Ruben Jimenez
body: Thanks the -y option solved it for me. To debug it I changed my script to be:apt-get -y install rubygems \> /tmp/log.txtgem install compass \>\> /tmp/log.txtI then ssh'd to the machine to look at the log file as the agent was starting up. Without the -y option it was stuck waiting for a response to a question.


Tags: cloud
Why only releases from your default branch make use of the release version naming scheme?
Asked by Ian Kent:

In our deployment projects we have setup a release naming scheme using variables: ${bamboo.lein.version}-${bamboo.buildNumber}

<br />

The ${bamboo.lein.release} variable is injected from version stored in leingen (clojure build tool) project.clj file in source repository.

This naming scheme works great from integration/master build plan.

However, when we deploy from a release plan branch the naming scheme is changed to \<branchname\>-\<incremented number\>. This is messing up our release version naming scheme.

Why only releases from your default branch make use of the release version naming scheme??


Answers:
author: Marcin Gardias
body: Good question...

I guess our idea was that people will typically deploy from single branch and we wanted release sequence to be easy to grasp. Since there seem to be significant demand to change it, we will reconsider this decision. I can't promise you any specific release number/date atm. though.

Please vote here: <https://jira.atlassian.com/browse/BAM-14422>
Why are manual builds queued for several minutes?
Asked by Paul Fink:

I have a bamboo dev server. It runs build locally.

Currently I am the only one using it and I'm doing manual builds, one at a time.

SOmetime manual build will kick-off after a few seconds but sometime they sit in the queue for a few minutes.

Why are they queued up for minutes? Nothing else is going on.


Answers:
author: Krystian Brazulewicz
body: This might be this bug: <https://jira.atlassian.com/browse/BAM-15187> It is fixed in upcoming 5.7.1 version


author: Marcin Oles
body: Hi Paul,

which version of Bamboo are you using? Always try to upgrade to the newest, there might have been some bugs fixed related to the build queue.

Optionally, when you expect a build to start immediately, you can go to **Build** ? **Build activity** and monitor the build queue to verify that nothing is actually being executed at that time.

Regards,  
Marcin Ole?


Tags: bamboo-administration
Bamboo/Stash In Progress Builds
Asked by Nick Kleinschmidt:

We use Stash for Git hosting. We're in the process of replacing Jenkins with Bamboo as our CI server. With Jenkins, once a build has started, it shows up as "In Progress" in the Stash web UI, then updates to succeeded/failed when it finishes. With Bamboo, it seems like builds only show up once they've passed or failed. Is there a way for Bamboo builds to show in progress in Stash when they start?


Answers:
author: qainterview
body: I am using jenkins with stash. I have a post build step 'Notify Stash Instance'. When I commit a change to Stash, the webhooks end up kicking the build in Jenkins. At the of the jenkins build the post commit plugin posts pass/fail status to stash along with a link to the build.

A couple of days ago, I noticed that Stash showed '`INPROGRESS`' when the jenkins build was kicked off. I don't see this anymore. Any idea why this would disappear?


author: Mike Friedrich
body: Currently Bamboo does not support this.

I wrote a plugin which does this by replacing the whole Stash-Notification modules. Unfortunately is not ready for public release and i have no permission yet to publish this.
EC2 instance cannot start
Asked by advoryanskiy:

Hello.

I have the following error when trying to run Bamboo instance to build our application:

*Elastic Bamboo Error :* EC2 Instance failed to start: EC2 instance order failed.  
(com.amazonaws.AmazonServiceException : EBS block device mappings not supported for instance-store AMIs. (Service: AmazonEC2; Status Code: 400; Error Code: UnsupportedOperation; Request ID: 54f72959-0e69-4250-a25f-7205a6e33354))

Best regards,

Alex


Answers:
author: Przemek Bruski
body: Bamboo version delpoyed yesterday on OnDemand contains a bug that prevents the use of EBSes on instances with S3 root volumes. Atlassian will fix that, in the meantime the only workaround is to use an EBS image.


author: advoryanskiy
body: Ok, thank you.

Could you please tell how much time it will take to fix?

comments: author: Przemek Bruski
body: Rollout for all customers will happen next week, if you contact support you will get it earlier.


Tags: cloud
Bamboo mail server not work
Asked by max gulturyan:

I have a JIRA and crucible on the same server - mail is sent (through SMTP).

I want send mail through SMTP (smtp.gmail.com)

bamboo-mail.png

When i try Test email configuration - i receive

504 Gateway Time-out  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-mail-server-not-work/qaq-p/40972?attachment-id=4920){#link_11695c3412f94e}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/1279/1/bamboo-mail.png){#display_11695c3412f94e_0}


Answers:
author: Krystian Brazulewicz
body: Please contact [Bamboo support](https://support.atlassian.com/servicedesk/customer/portal/10) and attach Bamboo server logs to your report.


Tags: email
user integration between onDemand and locally installed
Asked by Jelle:

Hi

Our company is using atlassian onDemand (JIRA and confluence). We also added bitbucket. It is a pain the users don't integrate with each other, but I guess this is not going to change.

We now added Bamboo to this stack, but we are running bamboo on a separate server, on premise, since this one is not critical.

Is there a way to integrate the users of the onDemand instance with the on premise server? Via a webservice api or such?


Answers:
author: rsperafico
body: Hello Jelle,

Thank you for your question.

Since you are running JIRA (OnDemand), you are able [Allow Other Applications to Connect to JIRA for User Management](https://confluence.atlassian.com/display/JIRA044/Allowing+Other+Applications+to+Connect+to+JIRA+for+User+Management).

In order to do it so, it will be required to:

* [Securing Bamboo with Apache using SSL](https://confluence.atlassian.com/display/BAMBOO/Securing+Bamboo+with+Apache+using+SSL) or [Securing Bamboo with Tomcat using SSL](https://confluence.atlassian.com/display/BAMBOO/Securing+Bamboo+with+Tomcat+using+SSL)
* [Linking JIRA OnDemand with self-hosted](https://confluence.atlassian.com/display/BAMKB/Linking+JIRA+OnDemand+with+self-hosted+Bamboo)

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

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support

comments: author: Jelle
body: The link you send me says: (warning) The information on this page does not apply to JIRA OnDemand.


Tags: bamboo-administration
Why bamboo remote agent uses IP as a name?
Asked by kalash-:

I tried to install build agent on my Windows Server 2012 R2, and revealed that I got IP address as a remote agent name. I want to use computer name as an agent name.


Answers:
author: kalash-
body: I resolved the issue by adding an entry with my IP adsress (other than 127.0.0.1) to the hosts file.


author: ssetayeshfar
body: Hi Alex,

When done with the installation, you can name your agents by selecting them from under Bamboo Administration - \> Overview - \> Agents and clicking on "Edit" next to the agent you want to rename.

Hope this helps!

Cheers,

Sepideh


Tags: bamboo-administration
How to modify the Bamboo plan permission default
Asked by Dirk Bromberg:

Hi,

when I create a new plan it is by default visible to all "Logged in users" and "Anonymous users" is there a way to aviod this?

Thanks!


Answers:
author: Marcin Oles
body: I think it's not possible to change the defaults. You can only edit permissions after a plan has been created.

A workaround for this would be to create an empty plan, configure it's permissions, and instead of creating new plans just clone the existing plan - it's permissions will be preserved.


author: jlbruno
body: Agreed. Vote for the issue here:

<https://jira.atlassian.com/browse/BAM-15383>


author: DO NOT USE Rob Biggs
body: This really needs to be addressed.


Tags: bamboo-administration
Issue with ssh keys
Asked by Berenice:

Hey there! I have an issue and I've tried everything but still have the same issue. The thing is I have two different bitbucket.org accounts, and I defined ssh key for both of them, the issue is the first ssh key I've created (for one of my accounts) is working but the second one I've created (for the other account I have) is not working. I've trying to differentiate them with the config file but I'm not having success with this, could anyone help me to solve this?

Thanks :)


Answers:
author: Rob van der Lee
body: There is not much info that you give here to go off on. However, you can try and debug why the SSH is failing.

A good resource to start would be [Atlassian's own troubleshooting guide](https://support.atlassian.com/bitbucket-cloud/docs/troubleshoot-ssh-issues/):

A quick method to debug:

* Check with \`ssh-add -l\` what keys are listed in the current keyring
* Optionally use \`ssh-add \~/.ssh/id_rsa_other_key\`
* Check if Bitbucket is in your \`\~/.ssh/known_hosts\` file
  * You can check the current print in the troubleshooting guide

Other than that I'd say we need some more information on what is going wrong. What do you get back when running the commands?

comments: author: Berenice
body: Hi Rob, thanks for anwering!

\*This is the error I get "The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.  
fatal: Could not read from remote repository."

\*And I have my config file like this

Host bitbucket.org-berenice_twb  
HostName bitbucket.org  
User git  
IdentifyFile \~/.ssh/twb  
IdentitiesOnly yes

Host bitbucket.org-berenicerappachiani  
HostName bitbucket.org  
User git  
IdentifyFile \~/.ssh/professional-bemoon  
IdentitiesOnly yes

\*Once I added the config file it throws me another error "/home/berenice/.ssh/config: line 4: Bad configuration option: identifyfile  
/home/berenice/.ssh/config: line 10: Bad configuration option: identifyfile  
/home/berenice/.ssh/config: terminating, 2 bad configuration options  
fatal: Could not read from remote repository."

\*\`ssh-add -l\` lists me both ssh keys

\*I'll try adding \`\~/.ssh/known_hosts\`


author: Berenice
body: still not working, thanks anyway Rob


author: Berenice
body: I'VE FOUND A SOLUTION! My problem was Bitbucket wasn't recognizing my shh keys since I have two ssh keys for different Bitbucket accounts, so I found this solution <https://support.atlassian.com/bitbucket-cloud/docs/set-up-additional-ssh-keys/> here it explains how to create correctly the additional ssh key (since the first one I've created is the default) to differentiate it from the first one and so Bitbucket will be able to recognize which user corresponds for each key. I hope this helps someone else with the same problem.


author: Rob van der Lee
body: Awesome. I left for vacation that day but good to see that you found the problem and also updated this ticket with the solution to your problem to help others :)


Tags: cloud

ssh
Unable to mirror repository
Asked by Hardik Fefar:

I am trying to mirror the BitBucket repository to an external repo source but it says Unauthorized even after entering correct username and password


Answers:
author: Theodora Boudale
body: Hi [@Hardik Fefar](/t5/user/viewprofilepage/user-id/1266108),

Are you using the password of your Bitbucket Cloud account?

We deprecated the use of account passwords for Git over HTTPS and API:

* <https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>

The password of a Bitbucket account can be used when you log in to the website.

For operations like cloning, pulling, pushing and for API calls, you will need to generate an app password and use it instead of a password:

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

If what you are doing is cloning the repo, then permissions **Repository:Read** for the app password should be enough. If additional operations are performed, the app password may require additional permissions.

Kind regards,  
Theodora


author: Fabio Racobaldo _Herzum_
body: Hi [@Hardik Fefar](/t5/user/viewprofilepage/user-id/1266108) ,

even if you have access to target repo, please veify that you have grants to write and that there are no limitation at branch level.

Hope this helps,

Fabio


Tags: bitbucket-cloud

cloud

login

mirror
Error while cloning respository from gcts app
Asked by Swapnil Girhe:

Hi Team,

We are getting below error while cloning repository using gcts app

GCTS.CLIENT.3302: Cloning a repository into a new working directory failed: invalid advertisement of \<!DOCTYPE html\>\<html lang="en"\>\<head\>\<meta charset="utf-8"\>\<meta http-equiv="X-UA-Compatible" content="IE=edge"\>\<title\>Log into Atlassian - Bitbucket Test\</title\>\<script\>

Please let me know if anyone faced similar kind of issue.


Answers:
author: Theodora Boudale
body: Hi [@Swapnil Girhe](/t5/user/viewprofilepage/user-id/4881420) and welcome to the community.

I have never used this app nor have I seen this error reported by other users before. I would suggest reaching out to the developers/support team of this app, as I think they'll be able to provide better insight on why this error occurs.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I am unable to find HTTP access tokens in my profile.
Asked by Vinay K:

Hi,

I need to setup http access tokens for bitbucket.

I am following this link to do so - <https://confluence.atlassian.com/bitbucketserver0719/http-access-tokens-1108481385.html#HTTPaccesstokens-CreateHTTPaccesstokens>  

In this document, I should be able to see "HTTP access tokens" once I perform :

**Profile picture** \> **Manage account** \> **HTTP access tokens** .

But in my profile I am not seeing "HTTP access tokens" only.

How do I proceed ? Please provide any inputs.  

Regards,

Vinay


Answers:
author: Sudheer M
body: I found only the options below options, but not **HTTP access tokens** .  

![Bitbucket.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/265060iCA8502A2EBF7FE1D/image-size/large?v=v2&px=999 "Bitbucket.jpg")


author: Fabio Racobaldo _Herzum_
body: Hi [@Vinay K](/t5/user/viewprofilepage/user-id/4881066) ,

welcome to the Atlassian community!

It depends form your Bitbucket version. In the latest versions, that menu is "Personal Access tokens"

![Immagine.png](https://community.atlassian.com/t5/image/serverpage/image-id/193236i96A722029188F33A/image-dimensions/410x143?v=v2 "Immagine.png")

Do you see that?

Fabio

comments: author: Vinay K
body: Hi Fabio,

Thanks for writing back. This is another problem I have, I am not able to see this page itself when I select my profile, I see the screens as attached.

What am I missing. ?

![Capture_1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/193247i6320057E69B62E55/image-size/large?v=v2&px=999 "Capture_1.PNG")![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/193248i2A278F3145D9A4B5/image-size/large?v=v2&px=999 "Capture.PNG")

Regards,

Vinay


author: Fabio Racobaldo _Herzum_
body: Hi [@Vinay K](/t5/user/viewprofilepage/user-id/4881066) ,

you are trying on the wrong place. You need to access your bitbucket instance and not the community.

Fabio


author: Vinay K
body: Hi [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528)

Can you please share me the bitbucket instance link.

Regards,

Vinay


author: Fabio Racobaldo _Herzum_
body: [@Vinay K](/t5/user/viewprofilepage/user-id/4881066) I don't know which instance you are talking about. You should know URL of your instance


author: lelic
body: fucking bitbucket navigation that lead to misunderstanding

so if you try to click on profile icon here

<https://bitbucket.org/> you wont find any Profile Setting menu mentioned above in help

you need to type directly in browser this link to achieve Profile Settings page

<https://bitbucket.org/account>

shame, bitbucket team i i've spent hours to find this page


author: lelic
body: atlassian products, together with the company, turn into a clumsy big machine with a lot of problems in navigation and logical perception of UX  

ps. consider this as my butthurt


Tags: bitbucket-server

server