Confluence : CLI : https : Issue when running a simple command

Hi There

I've installed an evaluation license for CLI. In a Confluence page, I've tried to launch a simple CLI command, to get the Space permission list and set the result in a CSV file.

So, in the body of the CLI macro, I set:

-a getSpacePermissionList --file junk.csv

Options: product=confluence; showCommand=true; server=myServer; subDirectory=.; user=raltmaye; password=myPassword

result: an exception:

Unable to log in to server: https://atlassian-dev.hq.k.grp/confluence/rpc/soap-axis/confluenceservice-v1 with user: raltmaye.
 Cause: ; nested exception is: 
	com.atlassian.crowd.exception.runtime.OperationFailedException
I guess there could be a missing setting/configuration, because of my use of https?
Any help is welcome
Regis

2 answers

0 votes
Ann Worley Atlassian Team Sep 16, 2013

We tried this locally using SSL and the CLI tool and it worked. Unfortunately the error in the GUI is pretty generic. You will want to find the fulll error in your atlassian-confluence.log file in the <confluence install>/logs directory and research that error.

0 votes
Ann Worley Atlassian Team Sep 16, 2013

Oops - I gave you the wrong path to the log - it is in your <confluence home>/logs directory!

Don't worry Ann, I know where logs are :)

So, in my log, I can see a strange error message:

{noformat}

2013-09-17 20:23:33,359 ERROR [http-localhost%2F127.0.0.1-8090-11] [crowd.manager.application.ApplicationServiceGeneric] authenticateUser Directory 'Crowd Server TEST' is not functional during authentication of 'raltmaye'. Skipped.
-- url: /confluence/rpc/soap-axis/confluenceservice-v1 | userName: anonymous
2013-09-17 20:23:33,364 ERROR [http-localhost%2F127.0.0.1-8090-11] [ContainerBase.[Catalina].[localhost].[/confluence]] log Unhandled exception occurred whilst decorating page
{noformat}

Strange, for my Crowd server is perfectly running (Confluence authentication is done against it, without any issue); the Users Directory is synchronized without any issue, and I can log on Confluence

Regis

See if it is reproducable running the action directly from a command line. Not sure what that will mean, but, it would make it an easier reproduce scenario.

Hi Bob

You were sure to suggest such a thing :) I had tried it too. The result is consistent, I get the same error message, whatever command I try:

ccli -u raltmaye -p $pwd -a getServerInfo -s https://atlassian-dev.hq.k.grp/confluence
Unable to log in to server: https://atlassian-dev.hq.k.grp/confluence/rpc/soap-axis/confluenceservice-v1 with user: raltmaye.
Cause: com.atlassian.crowd.exception.runtime.OperationFailedException

I've of course checked the remote APIs were enabled on this test server.

Regis

Ok, expected that, so, that simplifies the failure. Since it is a server failure, I think it is most likely reproducible with any soap remote API access and that is something that Atlassian support should be able to work on.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,121 views 2 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