youngmon/atlassian-qna huggingface dataset:
Error after Bamboo installation
Asked by Gabriel Henton:

I've followed the instructions (from the Here Be Dragons challenge) to install Bamboo. I have Maven 3.x installed. When I go to localhost:8085/bamboo, it spits out this:

java.lang.NullPointerException at com.atlassian.bamboo.ww2.BambooFreemarkerManager$1.get(BambooFreemarkerManager.java:103)

And there's a lot more after that. What am I doing wrong? Full permissions on folders and JAVA_HOME system variable has been set.


Answers:
author: Gabriel Henton
body: Nowhere in the documentation does it say you need JDK6. This is what it needed. I was on 8, since I was sure that's what it said the other applications needed. I Googled and found a reference to JDK6 in the Bamboo 5.3 release notes. Problem solved.

comments: author: Alexey Chystoprudov
body: [@Gabriel Henton](/t5/user/viewprofilepage/user-id/1153837), thanks for note that problem was solved.

Just want to let you know that Bamboo team released version 6.2.1 last week: <https://confluence.atlassian.com/bamboo/bamboo-6-2-release-notes-938641951.html>


author: Gabriel Henton
body: Thanks
LFS Is not a Command
Asked by Timothy Porter:

Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/local/bin/git lfs logs last failed with code 1.

Working directory was \[/Users/user/Documents/Bamboo_Home/xml-data/build-dir/_git-repositories-cache/29f637727e04d71afc3648b2a81336eb9655811a\]., stderr:  
01-Oct-2017 20:56:23 git: 'lfs' is not a git command. See 'git --help'.

This only happens on my mac... My PC has 0 issues.

I've tried installing LFS again.

It says it is.

Pointing everything to the bin directory and the local directory

Funny thing is if I try and do the command manually it pops out the lfs info.

Not sure what to do. Thanks in advance


Answers:
author: Bill Carreon
body: Hi Timothy,

Have you ensured that LFS is initialized for the user running Bamboo? If LFS was installed for only a single user, Bamboo may not have access to run LFS.

It may also be helpful to clear Bamboo's local repository cache. This documentation, [Git Cache Removal in Bamboo](https://confluence.atlassian.com/bamkb/git-cache-removal-in-bamboo-329982070.html), outlines the steps to do so.

comments: author: Timothy Porter
body: It is installed as root.

I would like to point out that sourcetree works but not bamboo.

Tried clearing the logs to no effect either.

Manually running git clone works fine and running "which git" points back to the git I've told bamboo to use. That one is usr/local/bin/git

Not sure what else to do here.


author: Alexey Chystoprudov
body: Can you please add Script task with command

```
git lfs version
```

and run this plan at your Mac agent. It will show if Git LFS is available for user running Bamboo


author: Timothy Porter
body: Hi Alexey

That appears to have failed!

So what's the remedy?

Thanks in advance,

tim


author: Timothy Porter
body: Maybe the better question is how do I find the user that is running Bamboo on my Mac.....? Or how do I change the user running it?

Tim
After installing Bamboo, I can't set it up
Asked by Gabriel Henton:

It gives me a page that says : (at it just keeps going)

java.lang.NullPointerException at com.atlassian.bamboo.ww2.BambooFreemarkerManager$1.get(BambooFreemarkerManager.java:103) at com.atlassian.bamboo.ww2.BambooFreemarkerManager$1.get(BambooFreemarkerManager.java:99) at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:109) at com.atlassian.bamboo.ww2.BambooFreemarkerManagerSoyHelpers$SoyHelper.renderNoCache(BambooFreemarkerManagerSoyHelpers.java:107) at com.atlassian.bamboo.ww2.BambooFreemarkerManagerSoyHelpers$SoyHelper.render(BambooFreemarkerManagerSoyHelpers.java:94) at com.atlassian.bamboo.ww2.BambooFreemarkerManagerSoyHelpers$SoyHelper.render(BambooFreemarkerManagerSoyHelpers.java:81) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at ...

I've reinstalled JDK, and JIRA, Confluence, and FishEye/Crucible are working fine.

Please help!


Answers:
author: somethingblue
body: Hi Gabriel,

* When you say you can't set it up what error do you run into and can you take a screenshot of the error you're seeing?
* What version of the JDK are you using and is this the one that came with Bamboo or did you install your own?
* What OS are you using?
* Is the JAVA home set correctly per Setting [JAVA_HOME?](https://confluence.atlassian.com/crowd/setting-java_home-61604243.html)

The first thing I would do is [verify the JAVA version](https://www.java.com/en/download/help/version_manual.xml). Next, post a screenshot of the step you get to when you receive this error.

Cheers,

Branden
Uncaught exception thrown by REST service
Asked by Danny Boevee:

Hi All,

I'm new to bamboo and trying out bamboo 6.2.1. I want to create a build branch with every new branch in bitbucket. Only bamboo does not create the new branch. When I restart bamboo the build branch is created. When I check the logs i'm getting every couple minutes the same error.

Thank you,

Danny

```
2017-10-01 22:13:13,250 ERROR [http-nio-8085-exec-8] [ThrowableExceptionMapper] Uncaught exception thrown by REST service: Illegal character in scheme name at index 0: \https://bamboo.server.com/rest/remote-event-consumer/latest/events/stash-branch-changed-remote-event

java.net.URISyntaxException: Illegal character in scheme name at index 0: \https://bamboo.server.com/rest/remote-event-consumer/latest/events/stash-branch-changed-remote-event

 at java.net.URI$Parser.fail(URI.java:2848)

 at java.net.URI$Parser.checkChars(URI.java:3021)

 at java.net.URI$Parser.checkChar(URI.java:3031)

 at java.net.URI$Parser.parse(URI.java:3047)

 at java.net.URI.<init>(URI.java:588)

 at com.atlassian.event.remote.impl.http.DefaultHttpUtil.getUrl(DefaultHttpUtil.java:93)

 at sun.reflect.GeneratedMethodAccessor1210.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:498)

 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)

 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)

 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)

 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

```


Answers:
author: Jeremy Owen
body: Hey Danny,

Check your *\<bamboo-install\>/conf/server.xml* , specifically the **scheme** attribute on your port 8085 connector. Looks like there's a backslash in-front of *https* which needs to be removed.

That's pretty odd though, I'd expect your entire instance be behaving *very* strangely if that was the case.

Just double check the Base URL at **Bamboo Administration \> Overview \> General Configuration**too, but it has formatting validation that would have prevented that entry.

I recommend deleting \& re-creating the application link between Bitbucket and Bamboo, if you have to fix anything unusual in the above configurations (or have fixed it previously).
Network communication between Bamboo, BuildAgent and other
Asked by Arkadiusz Czapiewski:

I'm searching for a complete information about network communication between Bamboo, remote Agents, repositories and deployment, e.g.

1) When Agent downloads code from repository - does it download source code directly from repository or does it connect to Bamboo server and receives code through Bamboo?

2) When Agent deploys artifacts, e.g. to Artifactory - does it connect to Artifactory directly or does it upload artifacts to Bamboo server and then Bamboo server uploads them to Artifactory?

I'm interested on it, because I want to know how much network traffic is directed to / from Bamboo server and if Agent's machines are required to have possibility to connect to repositories or deploy machines directly (e.g. on firewalls, network routing etc.) or should they only be able to contact Bamboo server and everything will work, but all traffic will go through Bamboo server?


Answers:
author: Christian Glockner
body: Hi Arkadiusz,

Remote agents connect to source code repositories directly, and the same goes for anything else that a remote agent does really.

A remote agent only uses the Bamboo server in the following cases:

* When starting, it pulls down the latest binaries for the agent software to keep itself updated
* When publishing a shared artifact, the agent uploads the artifact to the server
* When using a shared artifact, the agent downloads the artifact from the server

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Arkadiusz Czapiewski
body: Thank you very much for that explanation. It is exactly what I needed.


Tags: developer
Bamboo service does not start (error code 1)
Asked by Benoit Lavallee:

Our Bamboo installation has been running fine for 6 months and today it just stopped working for no apparent reason. We have not made any changes recently. When we try to start the Bamboo service, it refuses to start and returns the following message "Windows could not start the Atlassian Bamboo Bamboo on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1". The Windows Event log message is "The Atlassian Bamboo Bamboo service terminated with service-specific error Incorrect function."


Answers:
author: somethingblue
body: Hi Benoit,

* What do the Bamboo logs show happened before this occurred?
* What do the Windows logs show you around the time this first occurred?

At this point I would remove the service and re-create it using the instructions in Running Bamboo as a Windows Service:

***Be sure to note:***

* If you run Bamboo as a Windows service, make sure that the user has 'Full Control' access to the following directories:
  * In version 5.1 or later:
    * \<*Bamboo_install_directory*\>/temp
  * In version 5.15 or later:
    * \<*Bamboo_install_directory*\>/temp
    * \<*Bamboo_home_directory*\>/xml-data/configuration/cipher

**To re-reate the Service:**

1. Click on the **Start menu** in Windows,
2. Select **Bamboo** from the programs list,
3. Click on **Install Service** option to install Bamboo as a service in Windows.
4. Click **Start Service** to start the service.

Let me know if that works.

Cheers,

Branden

comments: author: Benoit Lavallee
body: Thank you Branden,

I think we had a power outage in our lab last night. Could this have caused Bamboo to be corrupted? I will try to re-install the service.


author: Benoit Lavallee
body: Hi Branden,

By the way, re-installing the service has not fixed my problem that time, so I ended up reloading a previous image of that PC. Last night the same PC got corrupted again with the same error. Is that a known recurring problem? Has it been fixed in more recent Bamboo versions? It is obviously not a viable solution for us to reload an image of our build server every time it corrupts itself. Are there some configurations we should check to make sure it doesn't get corrupted? If Bamboo keeps on corrupting itself, we may have to look at other solutions. Thanks.
Python unittest failed
Asked by Andrey Petrov:

Hi All, I am running python unittests (about 90 tests - some of them success, some of them failed) and Junit doesn't work.

It looks like I need to have success on "unittest step". Does anybody have the similar issue?


Answers:
author: somethingblue
body: Hi Andrey,

In the instances where they fail what do the logs say?

One post I found recommends using python's ***-p*** flag. You can find that post at [Running python unit tests as part of bamboo build](https://stackoverflow.com/questions/45420212/running-python-unit-tests-as-part-of-bamboo-build).

Reproduce the issue and either post the log snippet from the failure or attach a copy of the log file and we'll take a look.

Cheers,

Branden

comments: author: Andrey Petrov
body: Hi Branden, thanks a lot for you r reply. In general, I have found another solution - in python's docs i read about next point:

```
if __name__ == '__main__':
    unittest.main(exit=False)
```

The good point here - exit=False.


Tags: python

test
Integrating xUnit with Bamboo
Asked by vjijo:

We are using xUnit to run our Unit testing for our .NET Core project . I'm a newbie to Bamboo and we are using Bamboo for CI and Octpopus for CD.

What's the best way to implement the xUnit testing framework and also best practice to run the Unit test whether its before or after a deployment.

Thanks,


Answers:
author: Wes
body: **Always run unit tests before deploying!** The whole point is to fail the build if tests fail so that you do not deploy faulty code.

**xUnit Integration to Bamboo:**

It's a one-line script:

1. Create a "Script" task in your Bamboo job.
2. Set the script to use whatever shell you are comfortable with
3. Enter the below command in the inline editor:
   1. dotnet test --logger "trx;LogFileName=*someNameForResults* .trx" *mySolution.sln or test.csproj path*
4. Add a task for MSTest Parser
5. Give the parser the folder path to where someNameForResults.trx is saved.

It may be helpful to run the dotnet test command outside of Bamboo to see where the files are being saved. You can also view the logs to see where Bamboo is saving and looking at for the .trx


author: Ashvin Narayanan
body: [@vjijo](/t5/user/viewprofilepage/user-id/1153533) Not sure if there's an xUnit task available out of the box; the lack of documentation for xUnit on Bamboo leads me to believe there isn't.

Having said that, there's always the Script task, so you can just execute the xUnit CLI as part of a script.

As for whether it's best practice to run unit tests before or after, that's the same as answering the question: "Is it better to catch bugs and fix them before your product gets released or after?".


Tags: .net

xunit
Not able to login after reboot with Trial Babmboo CI
Asked by Amit Bisht:

Not able to login after reboot with Trial Babmboo CI on linux .

For got password also no working please help


Answers:
author: somethingblue
body: Hi Amit,

I'm sorry to hear that you're not able to access Bamboo. If you have access to the database you can reset the password using the instructions in Restoring passwords to recover admin users. As long as you're sure the admin is an internal user here are the instructions to Replace the Administrator password:

Bamboo does not store passwords in plain text in the database, but uses hashes computed from the original password. You instead cut and a paste a hash, rather than the plain password, over the existing password. Below is the hash for the password `admin`

    x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A==

**To change the password to `admin` for a given username:**

1. Shutdown Bamboo
2. Connect to your database. run this SQL on your database: ***select \* from USERS where NAME='admin'***

3. If you are using LDAP integration for user managment (not only authentication) then your admin user will be in a different table. The SQL to run is:

       update USERS set PASSWORD = 'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A==' where NAME = 'USER_NAME_FROM_STAGE_ONE'

4. Start Bamboo
5. Login with your username and your password is now `admin`

Cheers,

Branden

comments: author: Alexey Chystoprudov
body: There're two possible passwords: <https://confluence.atlassian.com/bamboo/restoring-passwords-to-recover-admin-users-289277354.html>
Bamboo notification stopped working
Asked by Amrik Birdi:

Hello,

Broken build notifications used to work fine before but now this has stopped. All of our projects are configured as follows:  
Failed Builds And First Successful Committers (users who have committed to the build)

we are using Bamboo v5.15.5


Answers:
author: somethingblue
body: Hi Amrik,

* Do you see anything in the Bamboo logs?
* Does anything in your mail logs stand out?

I would suggest that you increase the logging to ***Debug*** per the information in [Troubleshooting Notifications (Email \& IM)](https://confluence.atlassian.com/bamkb/troubleshooting-notifications-email-im-216957451.html?_ga=2.25125690.1466639186.1506348915-996291770.1503954617):

#### Debugging Mail Server {#toc-hId-1369973367}

Bamboo uses JAVA Mail library to send email notification, To debug JAVA Mail:

1. Shutdown Bamboo;
2. Add the following parameter to the [bamboo startup script](https://confluence.atlassian.com/bamboo/configuring-your-system-properties-289277345.html):

       -Dmail.debug=true

3. Add the following lines to `<bamboo-install>/atlassian-bamboo/WEB-INF/classes/log4j.properties`:

       log4j.logger.com.sun.mail=DEBUGlog4j.logger.com.atlassian.bamboo.mail=DEBUG

4. Start Bamboo and test the mail server configuration.

Once you have the logging turned to Debug, reproduce the issue and take a look at the log snippet from the time the message should have gone out and see if you can identify the issue. If not, post the log snippet or attach the log and we'll take a look.

Cheers,

Branden
JSM not working
Asked by Namrata S Dyaganatti:

I am having issues with JSM as it is displaying an error message, which is shown in the attached screenshot.![Screenshot (95).png](/t5/image/serverpage/image-id/307723iDF406A36A2E70AE0/image-size/large?v=v2&px=999 "Screenshot (95).png")![Screenshot (96).png](/t5/image/serverpage/image-id/307724iCC8BA2CED5D834D4/image-size/large?v=v2&px=999 "Screenshot (96).png")


Answers:
author: Nikola Perisic
body: Hello [@Namrata S Dyaganatti](/t5/user/viewprofilepage/user-id/5293429) ,

According to <https://status.atlassian.com/> all systems are operational.

* Have you cleared your cache?
* Have you also started JSM using incognito mode in the browser?
* Have you logged out and logged in again?
* Which browser are you using?


Tags: cloud

jira-service-management

jira-service-management-cloud
JSAM not working
Asked by Namrata S Dyaganatti:

![Screenshot (95).png](/t5/image/serverpage/image-id/307720i2D66188216E7721A/image-size/large?v=v2&px=999 "Screenshot (95).png")![Screenshot (96).png](/t5/image/serverpage/image-id/307721i63332C5D0110EC7C/image-size/large?v=v2&px=999 "Screenshot (96).png")I am having issues with JSM as it is displaying an error message, which is shown in the attached screenshot.  

<br />


Answers:
author: Jack Brickey
body: Hi [@Namrata S Dyaganatti](/t5/user/viewprofilepage/user-id/5293429) ,

I checked the [status page](https://status.atlassian.com/) and all is showing operational. Can you check another browser, though I don't believe this to be a Browser issue. If reproducible please report to [Atlassian support](https://support.atlassian.com/contact/#/).

comments: author: Namrata S Dyaganatti
body: Hi @ jack Brickey

<br />

Now Seems working fine. Thanks!!


Tags: cloud

jira-service-management

jira-service-management-cloud
Setting a resolution
Asked by Drew Montagna:

Hello,

I'm trying to set a resolution for my 'DONE' status transition, but I'm not seeing the option after selecting the transition. I'm working with a Service Management project, General Service Management, Business Teams - Team Managed project.

See attached. It Illustrates the transition I am trying to configure. ![Resolution.png](/t5/image/serverpage/image-id/307702iB733DAB8F5EC17E1/image-size/large?v=v2&px=999 "Resolution.png")


Answers:
author: Dexter de Vera
body: Hi [@Drew Montagna](/t5/user/viewprofilepage/user-id/5426440) ,

Team manage project dont have field resolution. To solve it you can create Automation role instead.

Go to - Automation - Create role

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

Trigger: Issue transitioned - set from and to status

(Optional) Condition: Issue fields condition - Issue tpe (if its only for specific Issue type)

Action: Edit issue - Set the Resolution.

Then turn on the rule.

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

comments: author: Drew Montagna
body: Hi Dexter,

I'm back in my projects' workflow.

I chose the transition I want the rule to apply to, but I don't see the rule as an option.

![Screenshot 2024-02-21 at 9.22.54 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/307785i55A7B21B5ED1B573/image-size/large?v=v2&px=999 "Screenshot 2024-02-21 at 9.22.54 AM.png")


author: Dexter de Vera
body: Please follow the instruction I gave. Go to project settings and click Automation not issue type workflow. You need to create automation rule, not in workflow.


author: Rebekka Heilmann _viadee_
body: Hi [@Drew Montagna](/t5/user/viewprofilepage/user-id/5426440)

you need to add a Rule "Update an issue field". Remember to also clear the Resolution field when transitioning back out of a Done status. It works with the same rule.

![Screenshot 2024-02-21 114511.png](https://community.atlassian.com/t5/image/serverpage/image-id/307706i6EC9D46A732EDEBB/image-size/large?v=v2&px=999 "Screenshot 2024-02-21 114511.png")

comments: author: Drew Montagna
body: Hi Rebekka,

My 'Transition Rule' window looks different than what you provided. Does it have something to do with the transition I chose? It's coming from a 'To Do' status: Delivered/Completed. See attached.![Update.png](https://community.atlassian.com/t5/image/serverpage/image-id/307708i6DBF8B3761E503F8/image-size/large?v=v2&px=999 "Update.png")


author: Rebekka Heilmann _viadee_
body: Ah, sorry. You are in a team managed project. Resolution is not supported in Team managed projects. Check out this: [Set Resolution Field for Team Managed Project Jira Issues \| Jira \| Atlassian Documentation](https://confluence.atlassian.com/jirakb/set-resolution-field-for-team-managed-project-jira-issues-1236437014.html)


author: Drew Montagna
body: Okay, thanks.


Tags: cloud

jira-service-management

jira-service-management-cloud