Confluence CLI error - connection refused - when attempting to login

We are attempting to run the script. We are getting a "connection refused" error when getting here -



I can access both this page and Confluence from the browser, but I am still refused connection from the script.

Any thoughts?

1 answer

1 accepted

Perhaps you have a proxy or other network issue causing access problems. What is the base url of your server? Have you tried using that?

Hi Bob,

We have no proxy and the network has been verified. I am currently verifying our SAML access.


Our JIRA and Confluence are now using Okta to authenticate. This has required us to modify the seraph file. Our CLI scripts are attempting to authenticate directly with JIRA and Confluence (user accounts were created in the local directories. We are still getting the following error when attempting to authenticate:


Unable to log in to server: with user: sys-jenkins

Cause: (301)Moved Permanently

31: result=253

32: '[' 253 -ne 0 ']'

32: echo 'INFO: Line 32: Exit code 253'

INFO: Line 32: Exit code 253

33: exit 253


We are JIRA 6.4.5, Confluence 5.7.5 and CLI 4.5.0

See this question and related issue. If that doesn't help open a new support request and we can get you some specific help.

We have resolved the JIRA issue but are still having issues in Confluence. I will create a support ticket.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

918 views 47 7
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