Unable to log in to server: http://osiinc.jira.com/confluence/rpc/soap-axis/confluenceservice-v1 with user: automation.

David Rodriguez June 28, 2012

We've been using Confluence CLI successfully for about 6 months then several week ago when our JIRA-ON-DEMAND was upgraded, Confluence CLI stop working with the following error:

Unable to log in to server: http://osiinc.jira.com/confluence/rpc/soap-axis/confluenceservice-v1 with user: automation.

Cause: (301)Moved Permanently

I tried "atlassian-cli-2.6.0" but had no success. When I put the url http://osiinc.jira.com/confluence/rpc/soap-axis/confluenceservice-v1" in the browser, I get the following:

confluenceservice-v1

Hi there, this is an AXIS service!

Perhaps there will be a form for invoking the service here...

Anyone have this problem!

3 answers

1 vote
TimT
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2012

Try using https in the URL instead of http. All Atlassian OnDemand instances require https connections for security reasons, and redirect http URLs to https ones. It looks like the CLI is not following the redirection, but if you give it https in the first place, that should work.

David Rodriguez June 28, 2012

Tim,

I'm using "atlassian-cli-2.6.0" downloaded from url
https://bobswift.atlassian.net/wiki/display/ACLI/Atlassian+Command+Line+Interface
.

This CLI was developed by by Bob Swift, and I using it to post pages to our
space. Is this something that Bob Swift should fix?

THanks,
David

TimT
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2012

Well, yes I think the CLI should be fixed to follow redirects, but what I mean is that if you pass the URL with https to the CLI in the first place, that should work as-is. So what I mean is to pass "https://osiinc.jira.com/confluence/rpc/soap-axis/confluenceservice-v1" when you call the CLI program.

David Rodriguez June 29, 2012

Hi Tim

We running jdk1.6.0_11

Our confluence.sh file contains the following:

java -jar /opt/atlassian-cli-2.6.0/lib/confluence-cli-2.6.0.jar --server http://osiinc.jira.com/confluence --user automation --password !automation+! "$@"

The command executed to push the page to our space is:

/opt/atlassian-cli-2.6.0/confluence.sh --action storePage --space NX --title "vcds_6.4.0 Build Report" --file /opt/osi_confluence/6.4/vcds_6.4.0 --parent 6.4

Where in my command line do I pass the URL with "https://osiinc.jira.com/confluence/rpc/soap-axis/confluenceservice-v1"


TimT
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 29, 2012

Also, "/confluence/" redirects to "/wiki", so the base URL you use should be "https://osiinc.jira.com/wiki".

David Rodriguez June 29, 2012

Tried it and got the following message.

Unable to log in to server: https://osiinc.jira.com/wiki/rpc/soap-axis/confluenceservice-v1 with user: automation.

Cause: No such operation 'login'

David Rodriguez July 13, 2012

Created case "ACLI-71" assigned to Bob Swift. He was able to reproduce the problem on his on demand site. He said to use https and now it works. When I tried it earlier after you suggested it, it didn't work. Not sure what changed after he got involved.

The performance is real slow compared to when it used to work with http. Takes about 6 seconds to do the following command:

jira --action getServerInfo

Can something be done to improve the performance?

0 votes
Romit Sen August 19, 2012

I am having the same issue:

./jira.sh --server "https://hofdvjira1.searshc.com:1643" --user automation --password automation --action getServerInfo

Unable to log in to server: https://hofdvjira1.searshc.com:1643/rpc/soap/jirasoapservice-v2 with user: automation.

Cause: (400)Bad Request

0 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 28, 2012

Have the permissions changed on the RPC? Maybe the OnDemand upgrade changed the permissions?

David Rodriguez June 28, 2012

Need to ask our hosting site. We've asked them about the problem, but they're no help.

Suggest an answer

Log in or Sign up to answer