Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Regis September 16, 2013

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
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 16, 2013

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

Regis September 16, 2013

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

Bob Swift
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.
September 17, 2013

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.

Regis September 17, 2013

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

Bob Swift
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.
September 17, 2013

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.

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events