Help with JIRA CLI setup..


When I try using the jira CLI command I get this error. I am trying to set up JIRA CLI:

./ --server "" --user XXXXX --password XXXXXX --action getServerInfo

Unable to log in to server: with user: rsen0.

Cause: ; nested exception is: Connection refused

The user id and password do exists and I have also created the default user id and password automation and also tried with that.

./ --server "" --user automation --password automation --action getServerInfo

Unable to log in to server: with user: automation.Cause: (400)Bad Request

The entry in the file I have is :

java -jar `dirname $0`/lib/jira-cli-2.5.0.jar "$@"

The JIra CLI version is 2.5.0. JIRA version is 4.2.1-b588. Server is Linux 2.6.18. Soap API is already enabled on our JIRA.

1 answer

This widget could not be displayed.
Joe Clark Atlassian Team Aug 19, 2012

It's possible that your local JVM is not configured to trust the SSL certificate being presented by your JIRA server - do you know if your JIRA server is using a self-signed certificate or a certificate issued from a third-party Certification Authority?

This page might give you some hints to trouble-shooting it:

Is there a way to set up the JVM to not check any certificates (since I am runnign this on the Jira Server itself)?

for example this works fine:

wget --no-check-certificate

--2012-08-20 10:23:01--
Connecting to||:1643... connected.
WARNING: cannot verify's certificate, issued by `/C=US/ST=XXXXX/L=XXXXXXXXXX/O=XXX/CN=XXX':
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `Dashboard.jspa.3'

[ <=> ] 33,290 --.-K/s in 0.001s

Joe Clark Atlassian Team Aug 30, 2012

I don't think so, sorry - when you execute 'java', are you using the same java executable being used by JIRA? Presumably the JIRA Server JVM has to import your certificate from a trust store somewhere, so you should be able to pioint your CLI jvm at the same one :-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

140 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you