Connection Connection refused: connect

I am using Jira CLI for some automation project.

But when I try to run the command.. I got this error message.

C:\jira-cli-2.6.0>jira --server "xxxxxx" --user xxxx --p
assword xxxxx --action getServerInfo
Unable to log in to server:
with user: xxxxx.
Cause: ; nested exception is: Connection refused: connect

How can I fix this problem?

3 answers

Make sure you can ping or access from a brower the address: . Then make sure you can go to from a browser as well. Do this from the same system you are trying to run the CLI command from.

Man, formatting this is painfull: -Dhttp.proxyPort=8080

Tnks Bob,

I can access that url from my browser. I am working in company where be enabled proxy server. But that command (jira cli) is executing in shell.

From my observation from netstat -n command, I found one thing.

The jira server request are to its actual IP (resolved one from our dns server) instead of throgh my proxy server.

How can I set my Jira CLI Api to use our proxy server?

How can I set this?????????

I am using Jira CLI. -Dhttp.proxyPort=8080

This will not work for https

Put this in your jira.bat/ or atlassian.bat/ file so you don't need to worry about it. Use the https based version of what was indicated above - is another example.

Tnks Bob,

But even if I set these, the http request not goes to proxy server.. I tested -Dhttp with other java programs, i works correctly. But this JIra Cli CLient skips this settings, and request do not goes to proxy server. I think it the problem of JIra Cli client. Am I right?

Not that I am aware of. I don't have that configuration. Perhaps someone with that configuration can provide more specific configuration information for you.

I have the same problem from our CentOS servers and no such problem from my Ubuntu machine. So, the problem is not with the jira-cli client. Maybe the problem is with java - it is different on machines.

I have faced the same problem. I could open from my Windows desktop, but it could not be opened on Linux server where JIRA was installed. It was caused by iptables, where this conf is written

-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080

While I got

$ wget http://jiratest.a.local/jira/rpc/soap/jirasoapservice-v2
--2014-08-01 13:50:01--  http://jiratest.a.local/jira/rpc/soap/jirasoapservice-v2
Resolving jiratest.a.local...
Connecting to jiratest.a.local||:80... failed: Connection refused.

a little bit change in port number helped

wget http://jiratest.a.local:8080/rpc/soap/jirasoapservice-v2
--2014-08-01 14:01:05--  http://jiratest.a.local:8080/rpc/soap/jirasoapservice-v2
Resolving jiratest.a.local...
Connecting to jiratest.a.local||:8080... connected.
HTTP request sent, awaiting response... 200 OK

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


254 views 0 6
Read article

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