Confluence Command Line - restoreExport Not Working
Asked by Derek Dukes:

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&gt;confluence.bat -a restoreExport -f export.zip -vServer address: http://servername:8090/rpc/soap-axis/confluenceservice-v1Successful login to: http://servername:8090/rpc/soap-axis/confluenceservice-v1by user: username. Token is Im58Fxwa1HURL requested: http://servername:8090/admin/restore-local-file.action?os_username=username&amp;os_password=***&amp;buildIndex=true&amp;localFileName=DI1025_export.zipRequest type: GETContent type: application/url_encodedResponse code: 200, message: OK, url: http://servername:8090/authenticate.action;jsessionid=9C544173125941CE90C42B59BB687C30?destination=/admin/restore-local-file.action?os_username=username&amp;os_password=***&amp;buildIndex=true&amp;localFileName=DI1025_export.zipStart of response data: C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;&lt;html&gt;&lt;head&gt;    &lt;title&gt;AdminisRemote error: Could not find indication of a successful start of import processing. Use -v to see some response data.org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Could not find indication of a successful start of import processing. Use -v to see some response data.        at org.swift.confluence.cli.ConfluenceRestClient.parseResultData(ConfluenceRestClient.java:167)        at org.swift.confluence.cli.ConfluenceRestClient.restRequest(ConfluenceRestClient.java:282)        at org.swift.confluence.cli.ConfluenceClient.restoreExport(ConfluenceClient.java:3952)        at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:665)        at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:118)        at org.swift.common.cli.CliClient.doWork(CliClient.java:302)        at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:132)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.


Answers:
author: Bob Swift (personal)
body: [Open an issue](https://bobswift.atlassian.net/secure/CreateIssue!default.jspa).

[CSOAP-155](https://bobswift.atlassian.net/browse/CSOAP-155) was opened - **Secure administrator sessions must be disabled for this action to work.**

comments: author: Derek Dukes
body: I did so after I'd already posted this question. Thanks!


author: WW
body: I realize that this question is 10 years old, but we recently had the same issue.

Disabling secure administrator sessions was not an option for us since that would have created significant vulnerabilities.

For those of you who may come across this later, what we found that fixed it was specifying the server name and port in the URL so that it processes on a specific node in Confluence Data Center.

For example:

Instead of the URL <https://myconfluence.mydomain.com>

we used:

<https://servername.mydomain.com:1234>

1234 being the example port number.