atlassian-cli -- restoreExport --import a package always 0% complete
Asked by huan_yang:

i use the command:

java -jar "/usr/local/atlassian-cli/lib/confluence-cli-8.7.0.jar" --server [https://xxxxx.xxx](https://xxxxx.xxx?) --user admin --password "xxxx" --action restoreExport --file backup-2019_08_01.zip

Waiting for task completion: 0% complete. Initializing... .........................................................................  

and i add --debug . get this:

Request type: GETContent type: application/json; charset=utf-8Request property Cookie, value: \[JSESSIONID=0B06\*\*\*\]Request property X-Atlassian-Token, value: \[no-check\]Request property Content-Type, value: \[application/json; charset=utf-8\]Response code: 200, message: null, url: <https://xxxx.xxx/rest/api/latest/longtask/bf9c258b-d24e-4fe6-8a30-421c97d8f586>Result data: {"id":"bf9c258b-d24e-4fe6-8a30-421c97d8f586","name":{"key":"import.data.task.name","args":\[\]},"elapsedTime":266031,"percentageComplete":0,"successful":true,"messages":\[{"translation":"Initializing... ","args":\[\]}\],"_links":{"base":"<https://xxxx.xxx","context>":""}}task data{"id":"bf9c258b-d24e-4fe6-8a30-421c97d8f586","name":{"key":"import.data.task.name","args":\[\]},"elapsedTime":266031,"percentageComplete":0,"successful":true,"messages":\[{"translation":"Initializing... ","args":\[\]}\],"_links":{"base":"<https://xx.xxx","context>":""}}.URL requested: <https://xxx.xxx/rest/api/latest/longtask/bf9c258b-d24e-4fe6-8a30-421c97d8f586>Request type: GETContent type: application/json; charset=utf-8Request property Cookie, value: \[JSESSIONID=0B06\*\*\*\]Request property X-Atlassian-Token, value: \[no-check\]Request property Content-Type, value: \[application/json; charset=utf-8\]Response code: 200, message: null, url: <https://xxxx.xxx/rest/api/latest/longtask/bf9c258b-d24e-4fe6-8a30-421c97d8f586>Result data: {"id":"bf9c258b-d24e-4fe6-8a30-421c97d8f586","name":{"key":"import.data.task.name","args":\[\]},"elapsedTime":269054,"percentageComplete":0,"successful":true,"messages":\[{"translation":"Initializing... ","args":\[\]}\],"_links":{"base":"<https://xxxx.xxx","context>":""}}task data{"id":"bf9c258b-d24e-4fe6-8a30-421c97d8f586","name":{"key":"import.data.task.name","args":\[\]},"elapsedTime":269054,"percentageComplete":0,"successful":true,"messages":\[{"translation":"Initializing... ","args":\[\]}\],"_links":{"base":"<https://xxxx.xxx","context>":""}}.URL requested: <https://xxx.xxx/rest/api/latest/longtask/bf9c258b-d24e-4fe6-8a30-421c97d8f586>  

percentageComplete is 0 all the time?what's wrong with there?


Answers:
author: Sudhir_Appfire_
body: As per the [SUPPORT-2830](https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-2830) ticket, here are the further steps:

After changing the configuration of the acli.properties file of CLI client 9.0, space is importing successfully with all the details including **all-updates** and **people** section.


author: Manisha Kharga _Appfire_
body: Hi huan_yang,

Thanks for providing the information.

We have gone through the details, in order to proceed further can you please try the below in your Test environment and provide the below details.

1. Please execute the restoreExport with below parameters.

```
--action restoreExport --file "exportSpace.zip" --noIndex
```

<br />

2. Please check if restore folder is already there. If not then please create a restore folder and place the ".zip" file in this folder.

3. Please create a new space and export this space. Then try to restore this space using CLI action.

4. Are you able to import other any other space?

Thanks,  
Manisha


Tags: cli