Confluence Command Line - restoreExport Not Working

I am attempting to use the restoreExport command from the Confluence command line client, but I keep receiving an error that says Could not find indication of a successful start of import processing.

When I run the batch file with the -v option, this is what I get back:

C:\Confluence_CLI_Jarvis>confluence.bat -a restoreExport -f -v

Server address: http://servername:8090/rpc/soap-axis/confluenceservice-v1
Successful login to: http://servername:8090/rpc/soap-axis/confluenceservice-v1
by user: username. Token is Im58Fxwa1H
URL requested: http://servername:8090/admin/restore-local-file.action?os_userna
Request type: GET
Content type: application/url_encoded
Response code: 200, message: OK, url: http://servername:8090/authenticate.actio
Start of response data: C//DTD HTML 4.01//EN" "
.dtd"><html><head>    <title>Adminis

Remote error: Could not find indication of a successful start of import processi
ng. Use -v to see some response data.
org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Could not find in
dication of a successful start of import processing. Use -v to see some response
        at org.swift.confluence.cli.ConfluenceRestClient.parseResultData(Conflue
        at org.swift.confluence.cli.ConfluenceRestClient.restRequest(ConfluenceR
        at org.swift.confluence.cli.ConfluenceClient.restoreExport(ConfluenceCli
        at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceCli
        at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClien
        at org.swift.common.cli.CliClient.doWork(
        at org.swift.confluence.cli.ConfluenceClient.main(
Im58Fxwa1H logged out.

I know it's not an authentication issue or an issue with the API not being activated, as I've been successfully exporting and deleting spaces via the command line.

(I should also mention that I have tried this with both version 2.6 and the 2.7 snapshot for the command line client.)

Edit: I'm using Confluence 4.2.12.

1 answer

1 accepted

Open an issue.

CSOAP-155 was opened - Secure administrator sessions must be disabled for this action to work.

I did so after I'd already posted this question. Thanks!

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 ...

1,098 views 56 8
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