youngmon/atlassian-qna huggingface dataset:
DynamicBash.sh is not recognized while executing the Bamboo build. how to solve?
Asked by Arunprasath J:

As of Nov-2020: By using gitbash versioned code changes to bitbucket. Through Bamboo changes has to be deployed to Salesforce Org.   
Bamboo build fails with the error: "'dynamicBash.sh' is not recognized as an internal or external command, operable program or batch file". Was working fine previously. suddenly getting this error. Please suggest solutions.![ere.png](https://community.atlassian.com/t5/image/serverpage/image-id/119609iC7E449107EC82079/image-size/large?v=v2&px=999 "ere.png")

Update: 14-june-2021:  
Again we are getting the same error for another sandbox of same project.


Answers:
author: Nic Brough -Adaptavist-
body: It looks to me like you are trying to run a shell script on a windows server - unless the windows server has a Unix-like command shell installed and configured, this isn't going to work.

You'll need to go to the windows server running the build and configure it such that the shell script is runnable by the Bamboo agent

comments: author: Arunprasath J
body: Hi Nic, its for Salesforce cloud. Its was working fine previously. Suddenly getting this error.


author: Nic Brough -Adaptavist-
body: As you can't run build agents on Salesforce Cloud, I have no idea what this has to do with your problem.

As I said, you'll need to configure your build such that the build agent has an environment that includes the scripts it needs


Tags: bitbucket

git

github
Good Backup practices around Database (Postgres)
Asked by Subhi Andrews:

Hi,

We are running Bamboo and Postgres on the same Linux server. We are taking snapshots of the whole machine multiple times a day as backups (and possibly restore in case of a failure) Is this a sufficiently good practice? Should we worry that the snapshot will happen in the middle of a DB write and therefore will leave the DB in an inconsistent state?  

Should we also do an export from Bamboo periodically? The only expected downtime for Bamboo is early hours on Sunday (so maybe not frequent enough).  

Please advise,


Answers:
author: Daniel Ebers
body: Hi Subhi,

from my own experience the PostgreSQL backups are done best using stock backup techniques of PostgreSQL. This way the database is agnostic to what it is serving (PostgreSQL just 'don't care' if there is a Bamboo, a Jira or something else stored in it).  
For this, you can simply refer to PostgreSQL documentation - nothing special.

With snapshot it depends - they have to produce a consistent output, yes - best is to do several test restores on a non-production environment to check if they are done correctly.

Last but not least you can do backups from Bamboo within (via Application). For that kind of approach I will link the documentation on this for you:  
<https://confluence.atlassian.com/bamboo/data-and-backups-289277245.html>

Cheers,  
Daniel


Tags: backup

best-practice

bitbucket-server

database

postgres
Bamboo deployment plan/environment webhooks
Asked by James Deuchar:

Bamboo v6 didn't have support for webhooks but there was a plugin that provided that functionality and allowed triggering of a webhook post deployment of each deployment plan/env.

Bamboo v7 does have support for webhook and even has an out-of-the-box 'Deploy webhook' template but it seems only to be triggerable as part of the build plan/jobs and not the deployment plan/envs. There is no equivalent plugin for v7.

Any ideas on the best way to do this?


Answers:
author: James Deuchar
body: Ooops - found it - new undocumented webhook environment notification option <https://confluence.atlassian.com/bamboo/notifications-for-deployment-environments-342754193.html>
Cannot access Bamboo plans wallbaord with a direct URL link
Asked by Alexander Semenov:

Hello,

I am working on wallboards and would like to display the Bamboo plans default wallboard by using a single URL link. This URL looks something like this:

*[https://bamboo.server.net/login.jsp?os_username=\<my_username\>\&os_password=\<my_password\>\&os_destination=telemetry.action]()*

My Bamboo on bamboo.server.net has version 6.5.0 and just paste this link to the private chrome tab, everything works fine and I get my plans wallboard displayed.

But when I do exactly the same but change for my other Bamboo server bamboo.serverNumber2.net which is on 7.0.3, I get **login.jsp:1 Failed to load resource: the server responded with a status of 404 ()**

*[https://bamboo.serverNumber2.net/login.jsp?os_username=\<my_username\>\&os_password=\<my_password\>\&os_destination=telemetry.action]()*

What could be the reason and how can I fix it?

Thank you very much

Alexander


Answers:
author: Daniel Ebers
body: Hi Alexander,

welcome to the Atlassian Community!

While I found the URL you mentioned corresponding with the one in documentation:  
<https://confluence.atlassian.com/bamboo/displaying-the-wallboard-289276971.html>

I am not sure about the authentication part (os_username).  
Probably this was just removed during the step somewhere in between v6.5.0 and v7.0.3 as there is a potential risk of spying out your provided password in the URL (at least for some cases this could apply).

Does the wallboard load when you manually open it?

Cheers,  
Daniel
Failed NUnit tests show as skipped
Asked by Mattias:

I created a NUnit test and it works fine when everything passes, however once a test fails, then that test is shown as Skipped/Quarantined rather than failed. I found this [issue](https://community.atlassian.com/t5/Bamboo-questions/NUnit-test-result-not-displaying-correctly-in-Bamboo/qaq-p/121652) which got solved by adding ";format=nunit2" to the result option. In our Bamboo version (7.0.3 build 70016) this gets done automatically already.

How to make Bamboo understand NUnit results?

Test result from log:

```
build	17-Nov-2020 14:49:39	Test Run Summarybuild	17-Nov-2020 14:49:39	  Overall result: Failedbuild	17-Nov-2020 14:49:39	  Test Count: 1, Passed: 0, Failed: 1, Warnings: 0, Inconclusive: 0, Skipped: 0build	17-Nov-2020 14:49:39	    Failed Tests - Failures: 1, Errors: 0, Invalid: 0build	17-Nov-2020 14:49:39	  Start time: 2020-11-17 13:49:30Zbuild	17-Nov-2020 14:49:39	    End time: 2020-11-17 13:49:39Zbuild	17-Nov-2020 14:49:39	    Duration: 8.910 secondsbuild	17-Nov-2020 14:49:39	build	17-Nov-2020 14:49:39	Results (nunit2) saved as TestResults.xmlsimple	17-Nov-2020 14:49:39	Parsing test results under D:\Bamboo\xml-data\build-dir\TEST-TEST-TESTS...
```


Answers:
author: Mattias
body: I think I fixed it. Needed to add

```
--result TestResults.xml;format=nunit3
```

into the console parameters. It seems the NUnit parser expects nunit3 style, but the runner by default still produced nunit2 style

comments: author: Mattias
body: While this fixed the test showing incorrectly as skipped and it shows correctly as failed, it does not show the error log why it failed.

Edit: Turns out it does not show lines written to TextContext.Error. When using the error messages in Assert.Fail() or similar it works


Tags: nunit
Bamboo bootstrap failed: Could not make directory
Asked by Edrian Purnama:

Hello i want to install Bamboo but when the service is running, it runs like this:

You cannot access Bamboo at present. Look at the table below to identify the reasons:

TimeLevelTypeDescriptionException

|---------------------|-------|-----------|-----------------------------------------------------------------------------------------------|---|
| 2020-11-17 18:42:33 | fatal | bootstrap | Bamboo bootstrap failed: Could not make directory/ies: C:\\Users\\EdrianPS\\Documents\\BAMBOO |   |

Please contact us at <https://support.atlassian.com/> if you have any queries.

does anyone know the answer for this? thanks in advance


Answers:
author: Daniel Ebers
body: Hi Edrian,

welcome to the Atlassian Community!

On first sight it looks like a permission problem.  
Please kindly make sure you followed all the steps described in the installation guide as well as some additional information for let Bamboo run as a Windows service:  

<https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html>

Cheers,  
Daniel

comments: author: Biswajit Sahu
body: Hi Daniel,

I go through your link, I setup my users in my local, but still got same issue,![Bamboo.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/173799iB3924301C4FA495B/image-size/large?v=v2&px=999 "Bamboo.PNG")

I am using Version 8.0.5, I have tried alsot. Please help me on this.

Thanks,

Biswajit


author: Daniel Ebers
body: Reading the error message I would think this is a permission-related problem for the directory the installation should go into.  
Have you checked if the user which is used by the bamboo-installer is able to write to that directory properly?


author: Devendar Gangapuram
body: Hi [@Daniel Ebers](/t5/user/viewprofilepage/user-id/800113) ,

For me everything was fine, I was able to set up BAMBOO as service and I could make stop/start using this service. But suddenly today, it was giving this "fatal" error as Biswajit posted.

Please help me on this, as it is blocking our further work


Tags: bootstrap
Bamboo | Twilio integration
Asked by mukund tm:

Can we integrate bamboo with Twilio to receive SMS/Phone calls when a plan/build fails ?


Answers:
author: Jimmy Seddon
body: Hi [@mukund tm](/t5/user/viewprofilepage/user-id/4163103),

Welcome to the Community!

I don't believe there is a direct integration with Twilio, but you might want to check out this post where some others are discussing other options for sending SMS notifications from Bamboo.

<https://community.atlassian.com/t5/Answers-Developer-Questions/Bamboo-sms-notification/qaq-p/509126>

You might find some helpful ideas here.

I hope that helps!

-Jimmy

comments: author: mukund tm
body: Thanks Jimmy.

The plugin which they mentioned in that link is archived and I don't know its available for download.


author: Jimmy Seddon
body: ugh! That is a problem. The only other suggestion I can make at this point would be to look at this Bamboo feature request. I know that it is request SMS notifications for a manual step, but it might be worth adding your specific use case which (I think) would make this capability more useful.

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


author: mukund tm
body: Yeah I wish they get this feature rolled out quickly.


Tags: confluence

server
Remove users in delegathed group if removed in ldap
Asked by Francesc Arbo:

Hi all,

I have the LDAP sync with a group (called AD Group) in crowd. I manually sync this group with a delegathed one (called AD Delegathed Group).

One I restart Crowd AD is syncronized with the LDAP and the users removed from LDAP are removed in the AD Group. However, when I manually syncronize the AD Delegathed with the AD Group, users are not removed in the delegathed one because I don't enable the Overwrite Destination Directory option (I don't want to loose the assigned groups for each user).

Is there a way to automate the deletion of users in the AD Delegathed Group?


Answers:
author: Francesc Arbo
body: Hi Septa,

I upgraded crowd to version 2.6.2. However, the Incremental Synchronization is only possible to enable or disable in the Active Directory and not in the Delegathed directory.


author: Francesc Arbo
body: Hi Septa,

I guess you refer to 2.6 version. The fact is that I have the 2.3 version so the best would be upgrading it to 2.6.

Thanks in advance. I'll try it.


author: Septa Cahyadiputra
body: Hi Francesc,

On your directory configuration, under the "Connector" tab you should be able to see an option named "Incremental Synchronization". Please disabled it to automate user deletion in every syncrhonization process when the changes made in your AD.

This is actually a bug logged here:

<https://jira.atlassian.com/browse/CWD-3093>

Hope it helps.

Cheers,  
Septa Cahyadiputra


Tags: crowd-administration
gitversion throws errors when running a build in a container
Asked by Joost Van den Cruyce:

When you run the gitversion dotnet tool it throws nullpointer errors


Answers:
author: Joost Van den Cruyce
body: created this question to help ppl running into the same problem, the answer:

you can disable caching, a better solution is however to also mount the caching folder in your docker instance:

![Screenshot 2020-11-17 at 09.27.10.png](https://community.atlassian.com/t5/image/serverpage/image-id/118585i317D9DE9F0B44393/image-size/large?v=v2&px=999 "Screenshot 2020-11-17 at 09.27.10.png")

comments: author: Joost Van den Cruyce
body: still got issues when running this on a linux host, turns out the container distro needs to be alpine or ubuntu:18.04


author: Joost Van den Cruyce
body: see <https://github.com/GitTools/GitVersion/issues/2308>


Tags: git

version
Crowd - redirect to login page
Asked by Jeff Bennett:

Is there a way I can redirect the crowd application to the login page. We set up a dns entry (ie <http://crowd> which points the default admin page. It works if we specify <http://crowd/crowd> What I'd like to do is redirect to that so its seamless to the user.


Answers:
author: Tiago Comasseto
body: Hi Jeff,

I believe you need to remove the context path, see this [documentation](https://confluence.atlassian.com/display/CROWD/Removing+the+%27crowd%27+Context+from+the+Application+URL) for more details.

Cheers
Jira doesn't sync users from crowd internal directory
Asked by Maxim Kraynov:

Hi, all! The problem is Jira doesn't get users and groups from Crowd Internal Directory.

Connection between Crowd and Jira is correct, I just unactivated old LDAP directory in Crowd and add new Internal directory. I see all my users in crowd console, but after sync, i can't see any users in Jira. No any errors in LOGs. What can you advice in such case? Thank you


Answers:
author: Yilin
body: Just a quick check, did you assigne the new user directory to the JIRA application on Crowd?


author: Maxim Kraynov
body: Just so! Thank you very much =)
Bamboo
Asked by Kritika Vayur:

Hi, I want to know how to obtain the license key for the software (Bamboo) that will be installed on a computer without internet access.


Answers:
author: Kurt Klinner
body: [@Kritika Vayur](/t5/user/viewprofilepage/user-id/4137358)

Hi Kritika

welcome to the Atlassian community.

Via <https://my.atlassian.com> you should be able to generate the required license key by providing your Server ID that you then can use on your instance

Cheers

Kurt

comments: author: Kritika Vayur
body: Hi Kurt, thanks for the response. Does this still apply when the computer I am trying to install the tools on does not have internet access?


author: Kurt Klinner
body: [@Kritika Vayur](/t5/user/viewprofilepage/user-id/4137358)

Hi Kritika,

yes that should be the case

Cheers

Kurt
Stash AD nested groups
Asked by Dave:

Hi,

I've ticked the nested groups option in stash for AD intergration.

My group shows up, but none of the groups that are nested in the group (I have multi layers of nesting happening, I would like these groups to show up).

atlassian-stash.log isn't showing me anything when I hit he sync button.

I've tried turning off incremental sync as well, same issue.

Any suggestions as to what I can look for?

Thanks,


Answers:
author: Bryan Turner
body: dkaing,

Please open a support request at [https://support.atlassian.com](https://support.atlassian.com.). Answers is not intended for troubleshooting complicated issues.

Best regards,  
Bryan Turner  
Atlassian Stash

comments: author: Dave
body: Done - <https://support.atlassian.com/browse/SSP-1304>

Thanks,


author: cofarrell
body: Hi Dkaing,

Sorry for the delay. At this stage your best bet is raise a support ticket so we can collect some more diagnoistics and have our Crowd people help you from there.

<https://support.atlassian.com/>

Cheers,

Charles


author: Dave
body: ```
My config summary
```

```
Had to put it on pastebin as it was too long.
```

```
http://pastebin.com/eJk1UwTr
```


Tags: active-directory

bitbucket-administration

bitbucket-server
Crowd Directory - Group Configuration with multiple OUs - syntax
Asked by Andrei [errno]:

what would be the correct syntax for the situation like:

base DN:

```
DC=example,DC=com
```

would want to include groups from both:

```
OU=Global Groups,OU=Global,DC=example,DC=comOU=E-mail Distribution Lists,OU=Email Resources,DC=example,DC=com
```

my current Group Object Filter (filters out curly braces - a bug in Confluence 5.1.2):

```
(&amp;(objectCategory=Group)(!(CN=*{*}*)))
```

I understand I could create 2 directories, but my gut feeling tells me there should be a better way...


Answers:
author: John Plut
body: Is there any update on support for this?


author: Abhishek Verma
body: Andrei,

Have you found a solution yet?

comments: author: Andrei [errno]
body: no... I had to create 2 directories, which is a pain to maintain, but it works


author: Teck-En
body: (\&(objectCategory=Group)) itself should have return all the groups within both OUs. Did you want to only include certain specific groups from both OUs?


author: Tiago Comasseto
body: You may try the example [here](https://confluence.atlassian.com/display/DEV/How+to+write+LDAP+search+filters):

`(&(objectClass=group)(|(ou:dn:=Chicago)(ou:dn:=Miami)))`

Or you can use a different approch like using the infomation of another attribute to "*mark*" the groups you want to retrieve in your filter. i.e.:

`(&(objectClass=group)(description=atlassian))`

I hope this helps.

Cheers

comments: author: Andrei [errno]
body: thank you - have found this page as well and as [Philip Parkinson](https://confluence.atlassian.com/display/~philip.parkinson@tns-global.com "") writes - MS ActiveDirectory might be not willing to play by the rules and does not filter groups correctly... will keep digging  

tried:

```
(&amp;(objectClass=group)(ou:dn:=Email Resources))
```

=\> "no results were found"


author: Andrei [errno]
body: i hoped this would work - but it returns "No results were found from your search." thanks


author: Zul NS _Atlassian_
body: Should be
> (\&(objectCategory=Group)(!(CN=\*{\*}\*))(\|(OU=Global Groups)(OU=E-mail Distribution Lists)))

according to [this](https://jira.atlassian.com/browse/JRA-24128).


Tags: active-directory

crowd-administration

directory
CROWD - How to extend the LDAP connector to get more user attributes ?
Asked by Valerie AQUILA:

Hello,

I'm evaluating Crowd and I'm particularly interested to extend the LDAP connector to get more users attributes (and maybe also more groups attributes).

At this time, I've not yet a Crowd licence.

The doc says:

"If you need support for additional LDAP attributes, the Crowd LDAP connector can be extended. With a license purchase, full source is available and the LDAP connectors can be modified to support any number of attributes."

But how could I evaluate this feature without having the full source? this is one major point that makes us decide to buy a licence.

Also, is there somewhere a doc that explains how to extend the LDAP connector ?

Thanks in advance !


Answers:
author: Tiago Comasseto
body: Hi Valerie,

[Here](https://docs.atlassian.com/crowd/latest/) you can find all Crowd classes and which methods you can use. As for the source, I'd suggest that you get in touch with our sales department ([sales@atlassian.com](mailto:sales@atlassian.com)) if you have any question about the license.

I hope this helps.

Cheers

comments: author: Valerie AQUILA
body: Hi Tiago,

Ok, thank you for the answer.

I'll wait my management decision and contact your sales department.

Regards


author: Jobin Kuruvilla [Adaptavist]
body: Check this out: <https://developer.atlassian.com/display/CROWDDEV/Creating+a+Custom+Directory+Connector>

comments: author: Valerie AQUILA
body: Hi Jobin,

First, thanks for your quick answer.

I've a look on <https://developer.atlassian.com/display/CROWDDEV/Creating+a+Custom+Directory+Connector>

I understand I've to write my own code. Nevertheless, in the MyCustomDirectoryServer template shown in the doc, the comment says

// The source code to the InternalDirectory, which comes with your commercial license is a good implementation example.

But as long as I'm evaluating Crowd, I don't have a commercial licence, so I don't have the source code, and I can't find what to write here in this class ??

Could you point me to an example ?


author: Jobin Kuruvilla [Adaptavist]
body: I am afraid I don't have an example with me. Yes, getting source code would be the best thing to do but that requires license (even a $10 license will do). Check with Atlassian as Tiago suggested about questions on licensing.


Tags: crowd-administration
Before I stick my neck out and deploy Crowd in a live IT department...
Asked by Robert Finley:

First time deploying alongside an Active Directory Server. I need to assure IT I can't break/hack their stuff with Crowd.

What allows/prevents Crowd from making changes in Active Directory?


Answers:
author: Colin Goudie
body: Two ways.

1. The user that crowd is setup to bind to AD can be configured in AD to not be able to write to AD.

2. The directory permission setup can be configured to only READ not WRITE to AD.
Account locked after email change
Asked by super cometa:

Hello,

I have a problem with an account after it\`s email was changed in AD. The account became locked. It still has the old email address.

I\`ve noticed that a new account was generated having the new email address. This account is locked too.

Do you know how this issue can be solved ?


Answers:
author: EddieW
body: What tool are you using? is it backed by crowd?


Tags: user-management
How to configure Crowd to get some groups from the Active Directory and manager the rest internally?
Asked by Sorin Sbarnea (Citrix):

As usually Active Directory is read-only for all incorporated mortals... still Jira users do need to be able to use and manage groups.

As the Jira administrators time is very limited, it's i not possible to manage these groups (inability to rename them being just agravating factor).

As an workaround I managed to trick the Active Directory to get a limited number of groups inside Jira by adding them to AD mailing list that I own. This means that by (de)subscribing mailing lists from my Meta-Jira-Groups mailing list I can add and remove AD groups one by one.

The great thing about this is that each of this groups has its own managers so the management of these groups is externalized to the real owners, falling back to IT but never to Jira admins (great!).

Now the big problem is that we still need to be able to manage same groups inside jira, while having few managed on AD.

How can we do this?


Answers:
author: Tiago Comasseto
body: Hi Sorin,

I think in your case the best option is use the [Delegated Authentication Directory](https://confluence.atlassian.com/display/CROWD/Configuring+a+Delegated+Authentication+Directory):
> A Delegated Authentication directory combines the features of an internal Crowd directory with delegated LDAP authentication. This means that you can have your users authenticated via an external LDAP directory while managing the users and groups in Crowd.

I hope it helps.

Cheers


Tags: active-directory

crowd-administration

ldap
Crowd with Apache integration Windows support
Asked by Bhushan Nagaraj:

Will Windows ever be supported for Crowd-Apache-Connector?

<https://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Apache>


Answers:
author: Harry Chan
body: The old version still works <https://confluence.atlassian.com/display/CROWD020/Integrating+Crowd+with+Apache>

comments: author: joe
body: There's a (long) open issue to support the new connector on Windows ([CWDAPACHE-7](https://ecosystem.atlassian.net/browse/CWDAPACHE-7)) but, for now, this is the way to go.


author: Bhushan Nagaraj
body: Well the documentation for the old version needs to be updated as the ppd 's are no longer available at those locations. mod_perl is unavailable in the location mentioned on the document.


Tags: apache

crowd-administration

integration