youngmon/atlassian-qna huggingface dataset:
Bamboo Internal server error when changing Source Repositories
Asked by Minh Cao:

Hi there,

I have a trouble when trying to change source repositories of my Bamboo plan.

It turns out that there is Internal server error, I try many times but it doesn't change.

I don't know what causes this.

Refer to this screenshot below.

![](../../upfiles/2012-11-27-141213_1280x1024_scrot_1.png)


Answers:
author: Marcin Gardias
body: Hi,

If the problem still exists, please contact support.
Automated EBS snapshots in Bamboo onDemand
Asked by carlos benitez:

I use Bamboo onDemand, which uses Amazon EC2, to build my project. After building it, I would like to create a new snapshot of the EBS volume, so I can use it later in another Amazon EC2 instance and run the built project.

I voted for this proposal to be developed: [Provide functionality for automated EBS snapshot updates](https://jira.atlassian.com/browse/BAM-11525)

But I can't wait for it to be developed, so I followed these steps to do it manually: <https://confluence.atlassian.com/display/BAMBOO042/Configuring+elastic+instances+to+use+the+EBS#ConfiguringelasticinstancestousetheEBS-updatesnapshotUpdatingyourEBSsnapshot>

This works ok, but I need that Bamboo does that for me, so I made this script:
>
> ```
> #!/bin/bashecho 'Superuser...'sudo suecho 'Moving outside the EBS volume...'cd /echo 'Killing all java processes...'killall javaecho 'Generating new snapshot...'generateSnapshot.sh
> ```
>
If I run this script connected to the instance by ssh, it works, but then I tried to use it from Bamboo, and it doesn't. I used the Command task, placing my script inside the job folder, so it could be visible. And I also used the Script task, pasting that code in the "script body" field, but both ways didn't work.

It is wierd because the log doesn't show the echo messages that I added to the script. Is this normal? Do you know how could I make this script work?

Thank you very much.


Answers:
author: Christof Zellweger
body: So did it work using /usr/bin/sudo or was this a dead end? Can you share what you ended up doing Carlos?


author: Przemek Bruski
body: Try using /usr/bin/sudo instead of sudo


author: carlos benitez
body: When I run the script connected to the instance by ssh, I need to remove the "sudo su" line, and execute that command before executing the script. I tried to do the same in Bamboo using two Command tasks, the first one for "sudo su", and the other one for the script, but it failed in the sudo step.


author: Przemek Bruski
body: The problem is that 'sudo su' does not grant root rights to the current session, it opens a new one with root rights.

Assuming you have passwordless sudo set up, does changing the script to

sudo killall java

sudo YOUR_PATH_HERE/generateSnapshot.sh

work?

comments: author: carlos benitez
body: Hello, Przemek, thank you for your answer. I did what you suggested, so the modified script is:

```
#!/bin/bashecho 'Moving outside the EBS volume...'cd /echo 'Killing all java processes...'sudo killall javaecho 'Generating new snapshot...'sudo generateSnapshot.sh
```

But there must be some password, because I get this error:
> sudo: no tty present and no askpass program specified

I also tried "sudo -S ...", but I get a similar error. Then, from the terminal, I added bamboo user to the sudoers file, so it doesn't require a password to run sudo. And now I get this error:
> Killing all java processes...
>
> sudo: : command not found

Any idea? I will keep on investigating to solve the problem.


Tags: beanstalk

cloud

snapshot
Bamboo + Stash
Asked by Shamil Nunhuck:

Hi,

I'm trying to build a CI plan with Bamboo using a Stash repo.

I've filled in the settings, but it would appear that the server local git is having issues getting the repo. In the repo settings, I've supplied the repo as:

<http://dev.domain.com/git/scm/KEY/ils.git>

Git returns: <http://dev.domain.com/git/scm/KEY/ils.git>/info/refs no valid: is this a git repository?

I can't seem to figure out why.
\<body\>\</body\>


Answers:
author: jhinch _Atlassian_
body: Is the base URL for your server Stash server <http://dev.domain.com/git>? If not It looks like your clone URL is incorrect. It should be <http://dev.domain.com/scm/KEY/ils.git>

comments: author: Shamil Nunhuck
body: Hi Jason,

Yep, it is - that said, I've resolved it - git 1.8.0 isn't playing well on CentOS, so I've downgraded to 1.7.12 which does work


author: Ellen Feaheny [AppFusions]
body: wow - thats obscure - but also good. Cool.


author: Colin Goudie
body: Did you supply a username in the http URL?

i.e. [http://username@dev.domain.com/etc..](http://username@dev.domain.com/etc...).

? Just wondering if stash doesn't route it otherwise

Also, I'm assuming you have data in that git repo and you can successfully clone it from commandline on that server?

comments: author: Shamil Nunhuck
body: Hi Colin,

It seems to be failing at server/gitd level, with the same error as in Bamboo. In Bamboo, I didn't supply the credentials, I used the form itself to supply the credentials.


author: Colin Goudie
body: Next thing I would check assuming you can git clone fine from another machine, is from the server can you even get to stash? Like using wget or lynx to browse the stash login screen or something?

That git error is indicating that whatever URL you just hit, it's not a git repo, so wondering if there is some routing issue when doing this from your server


author: Shamil Nunhuck
body: Hi Colin,

I would hope that it would see it given that stash and bamboo are on the same machine.

I tried to clone Atlassian UI/Archive using: git clone git@bitbucket.org:atlassian/aui-archive.git

It seems to want to SSH into that server.


author: Colin Goudie
body: You hope? Have you tested it though?

When you say the git clone 'worked' to bitbucket, is that from the server or your dev machine?


author: Shamil Nunhuck
body: I mean that I hope that it would work - it isn't working.

I'm doing everything from the server which has git installed (and Stash).


author: Ellen Feaheny [AppFusions]
body: Have you taken a look at this thread and referenced documentation?

[https://answers.atlassian.com/questions/79166/problem-integrating-bamboo-with-stash](/questions/79166/problem-integrating-bamboo-with-stash)

comments: author: Shamil Nunhuck
body: Hi Ellen, I think that this is more of a git problem, as I can even reproduce this using git on the server, but I dont know how to resolve it.


Tags: bitbucket-server

git
Bamboo with default windows instance and the user account "Bamboo"
Asked by Pocums:

The default EBS image (Default Image EBS x86_64 (Windows)) runs with two accounts, Administrator and Bamboo. I'm assuming Bamboo elastic agent uses the Bamboo account on the Windows server to execute the jobs.

So how do I log into the Windows as the user "Bamboo"? Where do I find out the password or what is the default password for it?

Or can I have the Bamboo run the agent as the Admin user in the Windows server? If so, how?

**Bit of background on why we want to log into the account:**

Our msbuild executed build process uses .pfx files to sign the assemblies, it works just fine if I import the key to a VS_KEY_\* -container and run the builds on that account. But as I have no control over the Bamboo account of the Windows server, I only know the password to the Admin account and importin the key for the admin doesn't really help with the build process as it's executed by the Bamboo account. And this is all based on my non-existing "how things work, hit it with a rock and find out"-logic when it comes to server management. So there is a lot of assumptions about the server side and how things are run on it.

If I import the key into the container as Admin, I can execute the builds successfully by manually triggering msbuild as the Admin.

Another answer to our problem also could be is to know how to import the key as the Admin for the user Bamboo but for that my google-fu was just not strong enough.

Any tips or possible help to move forward this would be greatly appreciated.

Thank you.


Answers:
author: Przemek Bruski
body: Remote login as Bamboo user is disabled for security reasons. You can do one of the following:

- change that users's password, enable login and save the image.

- use 'runas' to import the key for user Bamboo. The password for user Bamboo is Atlassian1

- run the agent as admin. You'd need to use this guide <https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image+-+Windows> to rewire the agent to run as admin.  


Tags: cloud
How do I trigger a Webhook when a Bamboo CI build fails (or succeeds)?
Asked by Confused Confused:

How do I trigger a Webhook when a Bamboo CI build fails (or succeeds)?

Please would you take me through the steps to set it up.

Thanks, Confused


Answers:
author: Steffen Opel _Utoolity_
body: Unfortunately Bamboo still does not offer webhooks as of today, please vote/watch/comment on the resp. feature request <https://jira.atlassian.com/browse/BAM-14321> to raise awareness for this surprising limitation (given webhooks are meanwhile first class features and powerful extension points in [JIRA](https://confluence.atlassian.com/display/JIRA/Managing+Webhooks) and [Stash](https://confluence.atlassian.com/display/STASH/POST+service+webhook+for+Stash) for example, and have recently seen significant improvements in [Bitbucket](https://blog.bitbucket.org/2015/06/24/the-new-bitbucket-webhooks/) as well).


Tags: cloud

webhook
Build Result Changes Tab
Asked by Dan King:

Is possible to have Bamboo update the Changes tab on a build result. I had modified the check-in message after the fact to include a message and JIRA issue but the build had already been triggered so there is no message in the Changes tab.

Thanks


Answers:
author: Marcin Gardias
body: It's obviously not correct. I've created this bug: <https://jira.atlassian.com/browse/BAM-13116>
svn: E175013: Unable to connect to a repository
Asked by Mary Hsieh:

My bamboo build server v.4.2.1 is running on Windows Server 2008 R2. I installed our compiler along with BSP on the C:\\ drive of the server. There are some parts of the BSP that is checked into subversion. So for my task, I run a windows .bat script that is stored locally on the server to update the code.

The script just contains the line:

svn update c:\\ghs\\int1002

Unfortunately, I get an error from the bamboo log:

svn: E175013: Unable to connect to a repository

The repository is set up in bamboo with working username and password and when I use inline script to do the update, it fails too. I thought it's because bamboo doesn't automatically put in a username and password for svn if you run a script. So I did a local script on the server and it still fails. I'm starting to think it's because I didn't specify a username or password so I did and that's not why either. I'm not really sure if it's a subversion issue or bamboo issue or windows issue or me!

Is there a way to resolve or workaround this? It's just a simple svn update. I don't really understand why it's so hard. Previously, I tried to use the checkout widget but it does not let me specify a location and it this case I need it to update code in a specific location.


Answers:
author: Mary Hsieh
body: Used http: instead of https: to check out and the problem went away. Still think there's a conflict between Windows authentication and SVN authentication.


author: Mary Hsieh
body: Use http instead of https.


author: Felipe Cuozzo
body: If you connect into the server and run the same script does it work?

Does the server have connectivity to the other server where the SVN repository is located? The message seems to be related to networking issues.

AFAIK unless you specify to not cache the credentials, as long you don't remove the credentials cache from the machine where you script is running SVN should be able to re-use the same credentials and just run the update as you expect.

Is Bamboo able to checkout the code from the same place? I didn't understand exactly why do you need a this external script as Bamboo should run a update/checkout on the repository before each build if you configure it correctly.

Not sure you read this page: <https://confluence.atlassian.com/display/BAMBOO/Subversion>

Cheers,  
Felipe

comments: author: Mary Hsieh
body: The problem was solved by using http instead of https. I think the problem was because of Windows. When Bamboo logs in to windows it's probably running as a restricted user and thus had problems using whatever svn user it uses to update the code.

The reason I was doing what I was doing is because the BSPs are updated in the toolchain's directory. I think if I set up svn externals that might help. Not too sure. Thanks for trying.


Tags: cloud
External DB Config throws Java Exception AnnotationAwareAspectJAutoProxyCreator
Asked by lshepstone:

I have installed Bamboo v4.3.1 build 3400 on Ubuntu 12.04, created a dedicated bamboo user, started the server as the bamboo user. The server starts and I can get to the setup wizard.

When I use Express Install, I get a message that says the express install failed, I should choose another option. I've configured MySQL, installed the JDBC driver, created the MySQL bamboo database and user. When I complete the external database form for the Custom Install option, I receive an error message as follows:

Database configuration failed:

Unexpected exception parsing XML document from class path resource applicationContextManagers.xml ; nested exception is java.lang.IllegalStateException: AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher

I have installed Oracle Java 1.8.0-ea

The logs contain no data.


Answers:
author: vkharisma
body: Hi there,

I believe that Oracle Java 1.8 (Early Access) is **not** compatible with Bamboo 4.3.x yet. Please follow the Supported Platform for Bamboo 4.3.x below:

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

Cheers,  
Vicky.


author: margol
body: If you're running Ubuntu-12.04 and installed Java with the oracle-java8-installer package, just install the oracle-java7-installer package and run "sudo update-alternatives --config java" / "sudo update-alternatives --config javac" to default to Java 7


Tags: configuration

custom-field

database

error

install
Grails Build not working
Asked by cartman12:

Hello,

Our grails build is not working. It used to, after which we had to reinstall Bamboo, grails and restore the configurations. But currently the builds in Bamboo fail with error:

19-Nov-2012 16:35:57 Starting task 'Grails' of type 'com.atlassian.bamboo.plugins.bamboo-grails-plugin:grailsBuilderTaskType'

19-Nov-2012 16:35:57

Beginning to execute external process for build 'TPA10 - TPA - 10 - Default Job'

... running command line:

E: Team grails-2.1.1 bin grails.bat

clean

-non-interactive

... in: E: bamboo home xml-data build-dir TPA10-TPA10-JOB1

... using extra environment variables:

JAVA_HOME=C: Program Files Java jdk1.7.0_09

GRAILS_HOME=E: Team grails-2.1.1

Path=C: Program Files Java jdk1.7.0_09 bin;C: Windows system32;C: Windows;C: Windows System32 Wbem;C: Windows System32 WindowsPowerShell v1.0 ;C: Program Files IBM GSK7 bin;C: Program Files IBM GSK7 lib;C: IBM ITM bin;C: IBM ITM TMAITM6;C: IBM ITM InstallITM;E: mysql install bin;E: Team grails-2.1.1 bin;E: Team groovy-1.8.8 bin

19-Nov-2012 16:36:00

19-Nov-2012 16:36:00 Exception: java.lang.StackOverflowError thrown from the UncaughtExceptionHandler in thread \&quot;main\&quot;

19-Nov-2012 16:36:00 Failing task since return code was 1 while expected 0

If I run the same command on command line it works:

E: \&gt;cd E: bamboo home xml-data build-dir TPA10-TPA10-JOB1

E: bamboo home xml-data build-dir TPA10-TPA10-JOB1\&gt;set JAVA_HOME=C: Program File

s Java jdk1.7.0_09

E: bamboo home xml-data build-dir TPA10-TPA10-JOB1\&gt;set GRAILS_HOME=E: Team grail

s-2.1.1

E: bamboo home xml-data build-dir TPA10-TPA10-JOB1\&gt;set Path=C: Program Files Jav

a jdk1.7.0_09 bin;C: Windows system32;C: Windows;C: Windows System32 Wbem;C: Win

dows System32 WindowsPowerShell v1.0 ;C: Program Files IBM GSK7 bin;C: Program F

iles IBM GSK7 lib;C: IBM ITM bin;C: IBM ITM TMAITM6;C: IBM ITM InstallITM;E: mys

ql install bin;E: Team grails-2.1.1 bin;E: Team groovy-1.8.8 bin

E: bamboo home xml-data build-dir TPA10-TPA10-JOB1\&gt;E: Team grails-2.1.1 bin grai

ls.bat clean -non-interactive

\| Application cleaned.

E: bamboo home xml-data build-dir TPA10-TPA10-JOB1\&gt;

<br />


Answers:
author: cartman12
body: the issue here was that Bamboo was installed as a service. As soon as i made it so that the service runs under a local account all seemed to work.

Here are the instructions on hot to get this to work: <https://confluence.atlassian.com/display/BAMBOO/Running+Bamboo+service+on+Windows+as+the+local+user>

Thanks Atlassian support for all your Help.
Deploy to Tomcat from Bamboo
Asked by Greg Kennedy:

Hi I'm working on setting up Bamboo On-Demand to auto-deploy to a staging server (assuming it passes all tests/stages). How/Where do I go to setup deployment to Tomcat 7 (Tomcat 6 would do also)?

Cheers,

Greg.


Answers:
author: James Dumay
body: Hi Greg,

You should checkout our [Using Tomcat with Bamboo for continuous deployment](https://confluence.atlassian.com/display/BAMBOO/Using+Tomcat+with+Bamboo+for+continuous+deployment) guide. If you have any further questions, Ill be happy to answer them :)

Thanks  
James

comments: author: Greg Kennedy
body: Thanks James. I had a read of this document before posting but unfortunately it seems to be for the on-premise version of Bamboo, not the on-demand.

When I choose to Add Task it only offers Heroku deployment. Am I looking in the wrong place for Tomcat deployment? (Jboss deployment would work for me too)

Cheers,

Greg.


author: James Dumay
body: Bamboo 4.3 is making its way to OnDemand by the end of this month and will contain the Tomcat tasks :)


author: Greg Kennedy
body: Brilliant news! I'll be in a three point stance waiting for the release :D


Tags: cloud

tomcat
Does xcode plugin works with Bamboo 4.3.x
Asked by Emmanuel Boudrant:

I can see the plugin in the adm console but disabled because of error, I checked the logs and I cannot find any error message.

Any plan to add support in 4.3.x versions ?

Thanks


Answers:
author: Emmanuel Boudrant
body: Fixed by installing the plugin from Bamboo admistration interface. By mistake I first installed the plugin by copying the jar in the WEB-INF/lib directory.

Thanks James.


author: Emmanuel Boudrant
body: Here my bamboo server logs and a listings of the libs I have in webapp

(bamboo_libs.txt)

(bamboo.log)

Thanks


author: James Dumay
body: Any chance you could provide the bamboo server log? That would help to find out why its not working.

comments: author: Emmanuel Boudrant
body: Hi James,

In the logs I cannot see any error related to xcode :

**cat server.log \| grep xcode**

```
2012-11-19 10:48:42,764 INFO [qtp1764374306-121] [AccessLogFilter] eboudrant GET http://emmanuels-mac-pro.local:8085/rest/plugins/1.0/com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin-key/media/plugin-icon 69048kb2012-11-19 10:48:42,812 DEBUG [qtp1764374306-121] [AccessLogFilter] END: eboudrant GET http://emmanuels-mac-pro.local:8085/rest/plugins/1.0/com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin-key/media/plugin-icon 69048kb-1474kb 50ms2012-11-19 10:48:48,612 INFO [qtp1764374306-141] [AccessLogFilter] eboudrant GET http://emmanuels-mac-pro.local:8085/rest/plugins/1.0/com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin-key?_=1353350928607 50684kb2012-11-19 10:48:48,628 DEBUG [qtp1764374306-141] [AccessLogFilter] END: eboudrant GET http://emmanuels-mac-pro.local:8085/rest/plugins/1.0/com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin-key?_=1353350928607 50684kb-977kb 16ms2012-11-19 10:48:48,633 INFO [qtp1764374306-120] [AccessLogFilter] eboudrant GET http://emmanuels-mac-pro.local:8085/rest/plugins/1.0/pac-details/com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin/1.6 49704kb2012-11-19 10:48:50,612 DEBUG [qtp1764374306-120] [AccessLogFilter] END: eboudrant GET http://emmanuels-mac-pro.local:8085/rest/plugins/1.0/pac-details/com.atlassian.bamboo.plugins.xcode.bamboo-xcode-plugin/1.6 49704kb-651kb 1979ms
```

**cat server.log \| grep xcode** show me only errors related to my plans.

I don't see errors in System Errors or in Plugin Audit Logs tabs

Here the screen I can see in Bamboo administration pages. I run version 4.3.1 build 3400 - 08 Nov 12

![](../../upfiles/Screen_Shot_2012-11-22_at_9.33.35_AM.jpg)

Thanks
Can't find my issues.
Asked by Michael Rickey:

I have three issues open with you right now BBS-1141, BBS-1189, and BBS-1191. I can't see any of these when I log into [support.atlassian.com](http://support.atlassian.com).

Am I doing something wrong? Shouldn't they just be on the list?

<br />


Answers:
author: rverschoor
body: Did you login with the correct username?  
All 3 issues are created by the username "michael@b..b..k.com" (I'm not posting the full name).


author: C. Faysal
body: did you try to find them using the issue navigator?
how to configure the pipeline for CI / CD
Asked by samuel fabiol:

How do we automate the deployments by configuring the pipeline file of bitbukect his project react on the ovh cloud


Answers:
author: Aron Gombas _Midori_
body: I haven't tried it, but OVH provides guides for this integration here:

<https://docs.ovh.com/sg/en/web-paas/integrations-source/bitbucket/>


Tags: bitbucket-pipelines
Bamboo daily summary mail?
Asked by margol:

Hi,

I have a running instance of Bamboo 4.3

Management wants a daily mail showing the up-to-date status of all builds in a certain project (the equivalent of what you'd see if you browsed the project - just in email format). Is there any easy (read: built-in :)) way to do this without needing to scrape the page or writing plugins?


Answers:
author: margol
body: There's no built-in feature.

What I'll do is read the data off of the project results page once a day - likely using the API, but possibly just copy-pasting the HTML of the normal UI.

For folks interested, the Rest API for this is documented at https://developer.atlassian.com/display/BAMBOODEV/Bamboo+REST+Resources#BambooRESTResources-BuildService---SpecificProject

Atlassian Support opened a feature request for this at <https://jira.atlassian.com/browse/BAM-12443>


author: Norman Abramovitz
body: Please see the previous answer to this question

<https://answers.atlassian.com/questions/79189/ability-to-send-daily-weekly-monthly-emails-from-jira>

comments: author: margol
body: That refers to JIRA, whereas my question is about Bamboo


author: Norman Abramovitz
body: Sorry about that.


author: Norman Abramovitz
body: Would you consider using the Bamboo REST APIs or the Bamboo CLI? You still need to write some scripts in your favorite language either supporting http calls or executing a a prgram, but you do not need to write a plugin.


author: margol
body: That's a JIRA answer - I asked about Bamboo


Tags: bamboo-app

email

notification