youngmon/atlassian-qna huggingface dataset:
Bamboo remote agent start fails with message -version of Java specified by wrapper.java.command ...
Asked by yogesh_devi:

I am running a Bamboo remote agent on a Ubuntu server. Startup of the remote agent fails with a message The version of Java specified by wrapper.java.command (14) is greater than the maximum allowed (8)."

I have JDK 1.8 installed and in the bash shell the Java Path ponts to 1.8

if I type java -version on command line I see java version "1.8.0_60"

Basically the systemctl command "systemctl start bamboo-agent" fails

and after the failure if I run "journalctl -xe "

I see following message in output

Dec 16 09:52:10 unbuntu-agent-1 bamboo-agent.sh\[3523\]: Starting Bamboo Agent...  
Dec 16 09:52:10 unbuntu-agent-1 bamboo-agent\[3612\]: --\> Wrapper Started as Daemon  
Dec 16 09:52:10 unbuntu-agent-1 bamboo-agent\[3612\]: Java Service Wrapper Standard Edition 64-bit 3.5.41  
Copyright (C) 1999-2019 Tanuki Software, Ltd. All Rights \>  
<http://wrapper.tanukisoftware.com>  
Dec 16 09:52:10 unbuntu-agent-1 bamboo-agent\[3612\]: Licensed to Atlassian Pty Ltd for Bamboo Remote Agent  
Dec 16 09:52:10 unbuntu-agent-1 bamboo-agent\[3612\]:  
Dec 16 09:52:10 unbuntu-agent-1 bamboo-agent\[3612\]: The version of Java specified by wrapper.java.command (14)  
is greater than the maximum allowed (8).  
Dec 16 09:52:10 unbuntu-agent-1 bamboo-agent\[3612\]: \<-- Wrapper Stopped  
Dec 16 09:52:25 unbuntu-agent-1 bamboo-agent.sh\[3523\]: Waiting for Bamboo Agent..................  
Dec 16 09:52:25 unbuntu-agent-1 bamboo-agent.sh\[3523\]: WARNING: Bamboo Agent may have failed to start.  
Dec 16 09:52:25 unbuntu-agent-1 systemd\[1\]: bamboo-agent.service: Control process exited, code=exited, status=1\>  
-- Subject: Unit process exited


Answers:
author: yogesh_devi
body: This is a workaround ( thats works !)

So it seems like the when bamboo-agent.sh is invoking "systemctl" the desired JDK path isn't set so It uses default java pointed to by /usr/bin/java which is a version later than needed 1.8 - and causes the error

I am using a WORKAROUND to ensure the desired java version is used. You might use that as well

First I set JAVA_HOME and PATH to point right JDK in my .bashrc so I have desired java in my shell environment

# Add following to your .bashrc or .profile

JAVA_HOME=\< your JDK 1.8 path \>   
export JAVA_HOME

PATH=$JAVA_HOME/bin:$PATH  
export PATH

Now I can run the script bamboo-agent-home/bin/bamboo-agent.sh from my shell where JDK is set appropriately by invoking it with an extra argument "sysd" This extra argument prevents the bamboo-agent.sh script from using systemctl and it directly runs from your shell

That way I can get it to start !

so this is how my workaround works

#bamboo-agent-home/bin/bamboo-agent.sh start sysd

comments: author: hemant karole
body: Nice solution :)


author: yogesh_devi
body: another way I figured is

to change the effective JDK is by changing the /usr/bin/java link to point to JDK 1,8

ln -s /usr/java/\<your JDK 1.8\>/bin/java /usr/bin/java


author: hamza sa?
body: Check wrapper.conf file there are some variables to set min-max java version, commenting them out works.


Tags: agent
Limit the amount of parallel jobs running in a stage
Asked by Jurn van Mieghem:

Due to an integration with BrowserStack I can (currently) only run 2 browser tests at the same time. However I'd like to run all browsers in parallel jobs instead of sequential tasks. Is it possible to limit the amount of jobs that can run simultaneously within a stage using YAML specs.

I have seen something about a concurrent-build-plugin but cannot find any documentation on the YAML specs for that.


Answers:
author: Steffen Opel _Utoolity_
body: You can [configure the default number of concurrent builds](https://confluence.atlassian.com/bamboo/configuring-concurrent-builds-289277193.html) for a plan in the Bamboo administration. The default can then *be overridden on the **Miscellaneous*** *tab of a plan's configuration* (called ***Other*** *tab* in recent Bamboo versions, the docs are outdated).

With [Bamboo Specs (Java)](https://docs.atlassian.com/bamboo-specs-docs/7.2.1/), this can be programmatically handled as documented in the [Miscellaneous plugins (Java)](https://docs.atlassian.com/bamboo-specs-docs/7.2.1/specs.html?java#miscellaneous-plugins) section:

    ConcurrentBuilds concurrentBuilds = new ConcurrentBuilds()    .maximumNumberOfConcurrentBuilds(7);

    Plan plan = new Plan(project, "My Plan One", "PLAN1")    .description("This is an example of a plan")    .enabled(true)    .stages(stage1)    .pluginConfigurations(concurrentBuilds, configurationForPlan);

I haven't tried whether this is also available for [Bamboo Specs (YAML)](https://docs.atlassian.com/bamboo-specs-docs/7.2.1/), but correlating the Java approach and the resp. [Miscellaneous plugins (YAML)](https://docs.atlassian.com/bamboo-specs-docs/7.2.1/specs.html?yaml#miscellaneous-plugins) section seems to suggest that such settings *might* be surfaced via the "other" key in YAML:

    version: 2Build binaries:  ...  other:    clean-working-dir: true

Unfortunately this doesn't seem to be covered by the export plan feature yet (not even the Java version), so as mentioned in the docs, I'm afraid spelunking in the source code or some trial and error is required to identify the key, if any:
> In case a plugin doesn't have a dedicated builder, you can use `AllOtherPluginsConfiguration` to provide configuration for such plugins as a workaround. Refer to plugin documentation to obtain a list of valid keys. Note that keys imported with `AllOtherPluginsConfiguration` are not validated.

Good luck!

comments: author: Jurn van Mieghem
body: Thanks, Steffen for this extended answer and it learned me a thing or two. Unfortunately it does not answer my direct question as I want to limit the number of parallel jobs from my YAML file.
SSRS deployment automation using bamboo
Asked by AYODHYA MOUNICA:

Hi,

We are planning to integrate Bamboo with MSBI SSRS 2016 reports for deployment. Please share if any documents or links are available. Thanks!!

Kindly suggest any other automation ways for SSRS report deployment for 2016 reporting server.

Regards

Mounica


Answers:
author: Steven Villanueva
body: Hi There!

We just bumped into the same requirement - any ideas/help would be appreciated

Regards,

Steven


author: Rajesh Kiran Korrapati
body: Hi

We have the same problem...

Did you find the solution.


Tags: automation

deployment
missing start-bamboo.bat
Asked by Tina Tran:

I bought Bamboo (Server) 10 jobs, 0 Remote Agents. I downloaded the zip file option atlassian-bamboo-7.2.1-source.zip. Extracted it and then followed the instruction and couldn't find start-bamboo.bat in bin folder which to start bamboo.


Answers:
author: Daniel Ebers
body: Hi Tina,

welcome to Atlassian Community!

I have just downloaded  
atlassian-bamboo-7.2.1.zip  
and can confirm the file is in "bin" directory.

All I can imagine is that you did not download atlassian-bamboo-7.2.1.zip (as you wrote "source") or a local virus scanner eliminated the bat-file for whatever reasons.

Regards,  
Daniel
bamboo pipeline configuration is failed
Asked by Sai kiran P:

pipeline configuration is working fine with one set of code and failing with other sets of code.

what might be the issue


Answers:
author: Curtis
body: Please provide more information, as to what tasks are being run. And what is input to it. Is this building a java project from a repository? Perhaps then the code has an issue in the one branch, but not another?

comments: author: Sai kiran P
body: [@Curtis](/t5/user/viewprofilepage/user-id/734074) thanks for your response

Issue is 3/10 tests are failing.if I rerun it some times it works but some times it doesn't it happening with every build. What might be the issue ? Give your valuable suggestions


author: Dave Liao
body: [@Sai kiran P](/t5/user/viewprofilepage/user-id/3744551) - Can you provide more details, like screenshots or error messages? Appreciate any insight!

comments: author: Sai kiran P
body: [@Dave Liao](/t5/user/viewprofilepage/user-id/523242) thanks for your response,

Actually I have got this from client and they are not willing to share. Can you please give a solution In general.

Thank you


author: Sai kiran P
body: Issue is 3/10 tests are failing.if I rerun it some times it works but some times it doesn't it happening with every build. What might be the issue ? Give your valuable suggestions


Tags: bitbucket

bitbucket-pipelines
Usage global vars
Asked by ???? ???????:

Hi!

How i can use global vars in notification section in bamboo specs? For example:

notifications:  
- events:  
- plan-status-changed  
recipients:  
- watchers  
- webhook:  
name: Build webhook  
url: '${bamboo.jirahubBaseUrl}/v1/webhook/bamboo'.

But when i commit this change, i see error in atlassian-bamboo.log

```
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException: webhookRecipient: Argument ${bamboo.jirahubBaseUrl}/v1/webhook/bamboo is not valid URL
```


Answers:
author: ???? ???????
body: I found the answer. The scheme cannot be in variable. For example:

${bamboo.baseUrl} = <http://example.com> - wrong

${bamboo.baseUrl} = example.com - right

And use in notification

url: http://${bamboo.baseUrl}


Tags: spec
Bamboo pipelines and storage issue
Asked by Sai kiran P:

Hi Experts,

I have an issue with Bamboo tool pipelines getting failed as 3/10 cases. when rerun it works fine again. what might be the issue it creates unexpected memory size during the build.it is also creating storage issues at the server level.

please give your valuable suggestions.

Thank you in advance


Answers:
author: Curtis
body: You might try having each job clear out the workspace when it completes. Maybe remnants from the last job is leaving pieces behind that are interfering with the later runs.

Open the *Plan* -\> Open each *Job* (if more than one) -\> Open the *Other' tab* -\> **Select Clean working directory after each build**

comments: author: Sai kiran P
body: [@Curtis](/t5/user/viewprofilepage/user-id/734074) Thanks for your response.

will these solve the storage issues right? and I have doubt will it also solve the unexpected size issues during the build process.


Tags: bitbucket-pipelines

storage
Crowd consolidation tools?
Asked by Erik Husby:

For sundry reasons, we've had two crowd servers in house. However, the latest releases of Crowd give us the flexiablity we need to delegate administration of groups and members from our applications thus allowing us to consolidate the two crowd databases.

Does Crowd have an API, rest or otherwise, that would allow us to recreate the users, groups, and memberships from one Crows into the other one?


Answers:
author: Caspar Krieger
body: Crowd has both REST and SOAP APIs, and java clients for both. We recommend you [use the REST API](https://developer.atlassian.com/display/CROWDDEV/Crowd+REST+APIs).

Note that neither of these APIs will expose the hashed passwords of users; you'll have to query the database directly to get those (from the *cwd_users* table), and then configure your new Crowd instance to use the same password encoder for each directory as was being used for each directory in your old 2 Crowd servers.


Tags: crowd-administration
Crowd war installation doesn't start up
Asked by hoa pham:

Oct 30, 2013 3:32:01 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 14017 ms

Oct 30, 2013 3:35:00 PM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

Oct 30, 2013 3:35:00 PM org.apache.catalina.core.StandardContext start

SEVERE: Context \[/crowd\] startup failed due to previous errors


Answers:
author: Nic Brough -Adaptavist-
body: You are going to need to read more of the log than that. All that says is "It went wrong". Look before it, for any warnings or errors. Is there anything after it?


author: Nic Brough -Adaptavist-
body: You are going to need to read more of the log than that. All that says is "It went wrong". Look before it, for any warnings or errors. Is there anything after it?
Can CROWD be used with non-Atlassian web application [Solved]]
Asked by Dung Hoang:

I'm considering applying SSO for a few of my web application. I have read about Crowd on a few website and was a little confused. Can Crowd work with any web application or Crowd only works with Atlassian products like Jira, Confluence, Bit Bucket, etc?

Thanks a lot.

Edit:

<https://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+a+Custom+Application>


Answers:
author: Bharadwaj Jannu
body: You go through the document <https://confluence.atlassian.com/display/CROWD/Installing+Crowd>

if you want to use Crowd with Other applications.

comments: author: Dung Hoang
body: Thanks, I found it here: <https://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+a+Custom+Application>
How to Configure Crowd Aliases
Asked by Kevin Farnes:

I am currently using Crowd version 2.7. I have imported into the Crowd the user database from JIRA and have now configured JIRA/Confluence/etc to authenticate to the Crowd server. I haven't configured SSO and as yet don't wish to.

I'm now implementing an Active Directory server which I wish to use to hold all the user account information and standardise on username formats. To save having to change all the JIRA usernames to the new format I was planning on using Crowd aliases. However I've hit a slight problem.

Say my user database has the usernames configured a_user, b_user, c_user. My active directory contains the new username for a_user of ad_user. I've configured all the directories and groups within the AD and Crowd and assigned them to the JIRA application. However, when I select the username ad_user and try to create the alias a_user I get an error message back stating the username is already in use. The only way I've found to get around this is to delete the user from the JIRA database then create the alias. However, JIRA documentation recommends not deleting users.

What is the correct way of doing this as all the documentation seem to assume an implementation where the JIRA user database is held within the JIRA application, not within Crowd?

Many thanks for any assistance you can provide and apologies if this has been asked before.


Answers:
author: Tiago Comasseto
body: Hi Kevin,

Just checking to see if I undertood it correctly. You have imported to Crowd the user database from JIRA and you're able to configure the alias only when deleting the username from JIRA directory into Crowd, is that right?

If so, there's no problem with this approach. For JIRA it doesn't matter from which directory in Crowd the user come from. You can safelly delete the user from the directory where you imported JIRA user base in Crowd and define the alias for the LDAP user.

I hope it helps.

Cheers


Tags: alias

crowd-administration

user
Crowd 2.7.0 won't start apache or the configurator. etchedit
Asked by Robert Finley:

Ok, started out with 10-user licenses for Confluence and JIRA. Now, Management is drooling and getting anxious to get 25user licenses except I took 2.6.2 apart to install Crowd and took out the entire system.

Prefer Solaris but stuck in a Windows-only place. Launched start_crowd.bat from a command tool with admin privs. I can only do screen shots at this point since it's not happy enough to start logging anything.

INFO: Deploying configuration descriptor C:\\Program Files\\Atlassian\\atlassian-crowd-2.7.0\\apache-tomcat\\conf\\Catalina\\localhost\\crowd.html

No Spring WebApplicationInitializer types detected on classpath

then

Unable to move C:\\Program Files\\Atlassian\\atlassian-crowd-2.7.0\\crowd.cfg.xml7724346764409221781tmp to c:\\Program Files\\atlassian\\atlassian-crowd-2.7.0\\crowd.cfg.xml

Something is running in the background. But, Apache is clearly not working.


Answers:
author: Caspar Krieger
body: Glad you got it sorted; my guess would have been that the process may not have had write permissions to the directory.. but launching it as an admin should have worked around that. Anyway, next time you run into a "I give up, who knows what's going on" blocker like this, please feel free to raise a support request (especially if it's caused your system to be down!).


author: Robert Finley
body: \*rubs eyes\* ok, now configurator is talking. Wish I had a better reason why than I left it running overnight.


Tags: crowd-administration
Is there any known issues (common practice) with upgrading Crowd from 2.3.3 to 2.7 ?
Asked by Tamara Tchavtchavadze:

Hello,

We are using Crowd for sso in a company with big data and thinking to upgrade Crowd to the latest version, to improve perfomance for other applications. If you have done so already, could you please give some pointers, what/if issues you've faced during the proccess?


Answers:
author: Tiago Comasseto
body: Hi Tamara,

Upgrading Crowd from 2.3.3 to 2.7 should be smoothly, but I'd suggest that you take a look at the following pages:

* https://confluence.atlassian.com/display/CROWD/Crowd+2.7+Release+Notes
* https://confluence.atlassian.com/display/CROWD/Crowd+2.7+Upgrade+Notes

Cheers


author: Tamara Tchavtchavadze
body: Thank you Tiago!  

Release Notes and Upgrade Notes were very helpful. Although we had some issues with x64 platform and tomcat, as well as new jdk issue. At the end we resolved all problems and successfully upgraded Crowd to version 2.7 : )!  

p.s. Also there are two known bugs:

* [CWD-3655](https://jira.atlassian.com/browse/CWD-3655)
* [CWD-3646](https://jira.atlassian.com/browse/CWD-3646)

Kind regards,

Tamara


Tags: crowd-administration
Crowd posixAccount read-write
Asked by Geoffrey Rekier:

Hi all.

I'm trying to integrate my Crowd with OpenLDAP.

My LDAP server is used for user login on some servers. As such, the objectClass is posixAccount. It is my understanding that Crowd can only handle posixAccount as read-only.

I have 2 questions:

1. Why?

2. Does anyone have some recommandations about how to setup crowd with a different objectClass that would work as user login for the servers and eventually how to define a different class in the LDAP client - aka change the setup of the clients?


Answers:
author: Geoffrey Rekier
body: Sorry Nathalie. No updates from Atlassian on this.

What I did was to allow password updates only on LDAP. This works fine even if it restricts the possibilities.


author: Natalie Wenz
body: Any news from Atlassian side about this topic?

We have the same situation. We fist setup a crowd and LDAP (without posix). Everything works fine. Now we want to include our Linux Servers for authentication and need the additional posixAccount objectclass. Read-only is no option for us because we want that everyone is able to reset their password in Crowd and we using the nested group functionality from crowd for all our applications.

We tried to have 2 LDAP Servers (1 posix and 1 non-posix that is connected to Crowd). We didn't found a proper possibility to sync both OpenLDAP Servers. So the easiest and most efficient solution would be to have one LDAP Server with posix that is connected with crowd (read-write).


author: Geoffrey Rekier
body: Would be nice to have someone from Atlassian answer this. Would it be possible?


author: Hayoung Jeong
body: I agree with __geo__. If Crowd supports posixAccount and posixGroup directly, we can manage openLDAP with Crowd.


author: Christopher Anderlik
body: I am also interested in the questions of these answers !!


Tags: crowd-administration
How do I get Crowd to use User logon name NOT pre-Windows 2000 User logon name?
Asked by David Donn:

Hi,

I have a directory setup with the AD connector. How do I get Crowd to use the "User logon name" from Active Directory and NOT the "User logon name (pre-Windows 2000)" for authenticaton of users?


Answers:
author: David Donn
body: Thanks for your reply Tiago. It turned out I had done something stupid. I had set the **User Name Attribute** to something that wasn't present in all the objects I was returning. Once I adjusted the **User Object Filter** it worked.


author: Tiago Comasseto
body: Hi David,

You can change the field **User Name Attribute** of you directory configuration in crowd a different LDAP attribute if you want. By default it uses **sAMAccountName** , but you can use an [LDAP browser](https://confluence.atlassian.com/display/CROWD025/Getting+an+LDIF+Export+of+a+User+or+Group?src=search) to see which attrite has the correct username you want.

Chers


Tags: crowd-administration
LDAP query in crowd to check username or email address
Asked by sundar kanagarajan:

Currently, I am autenticating with username aginst my ldap from crowd. I wanted to check username or emailaddress from crowd to ldap.

This is my existing query check only username:

(\&(objectCategory=Person)(cn=\*)(memberof=cn=\<\<MY GROUP NAME\>\>,ou=Groups,ou=\<\<MY OU\>\>,dc=prod,dc=\<\<MY DC\>\>,dc=com))

This is my updated query check username or email address, but it is not working.

(\&(objectCategory=Person)(\|(mail=\*)(cn=\*))(memberof=cn=\<MY GROUP NAME\>,ou=Groups,ou=\<MY OU\>dc=stage,dc=\<MY DC\>,dc=com))


Answers:
author: Jeremy Largman
body: It's going to be a bit tricky to troubleshoot this remotely, but I can give you a tip. [Apache Directory Studio](http://directory.apache.org/studio/) is a great little utility that'll help you browse your LDAP directory. Hopefully it'll help you play around well:

<http://directory.apache.org/studio/users-guide/ldap_browser/gettingstarted_search.html>


Tags: active-directory

ldap
Is it possible to connect Crowd with OpenID as a client (not CrowdID)?
Asked by Alejandro Salgado:

Hi, we want to use Crowd as a SSO for our Jira and Confluence services. Also we want to integrate Crowd with an Identities server, use Crowd as a Client of OpenID.

Is this possible?

Thank you

Alejandro


Answers:
author: joe
body: This is not currently possible without customisation. There is an open issue to track interest in this feature - [CWD-967](https://jira.atlassian.com/browse/CWD-967).


author: Alejandro Salgado
body: Thanks for the answer.


author: Tiago Comasseto
body: Hi Alejandro, I'm not entirely sure whether it's possible, but the only way I think this could be done is creating a [custom directory](https://developer.atlassian.com/display/CROWDDEV/Creating%20a%20Custom%20Directory%20Connector) to your Identities server and serve SSO with Crowd.

Cheers
Some viable user management options, need clarification, CROWD SSO
Asked by Marcel Montel:

Hello.  

I'm trying to prepare a couple of viable options on how to configure our new Atlassian Crowd+Confluence+Jira+Fisheye setup.  

I have upgraded to latest versions of all applications and previously we were not using Crowd and so there was no option to use single sign-on, authentication was handled by ldap and authorization by the applications internal directories.

<br />

Now i have installed Crowd and have come up with a couple of solutions.  

Option one is Delegated LDAP Authentication, importing current groups from applications internal directories into the Delegated Directory.

Option two is to add Crowd as SSO/OpenID only and use LDAP read+write as user/group management  

Option three, havent found if this is possible, but can you have Crowd as SSO only (with ldap) and still keep the internal directories? Internal directories will be crippled from login from what i can understand, but is there any option i have overlooked that lets me authenticate against crowd and still use the internal directores for authorization, and what implications might it have.

And if go with option two, is it possible to add new users to the ldap from jira? having jira work like a ldap user manager?

What would be your prefered solution. We're talking about a 50 user licenses.

Regards  

Marcel


Answers:
author: AndrewA
body: Hi Marcel,  
For the sake of keeping things clean I would go with option one. That way all our user managment is in a single location and SSO can be handled by Crowd.

Cheers,  
Andrew

P.S I do not believe option three is technically possible.


Tags: crowd-administration