Forums

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

atlassian-cli -- restoreExport --import a package always 0% complete

huan_yang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2019

i use the command:   

java -jar "/usr/local/atlassian-cli/lib/confluence-cli-8.7.0.jar"  --server 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-421c97d8f586Result 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-421c97d8f586Request 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-421c97d8f586Result 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?

2 answers

0 votes
Sudhir_Appfire_
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.
December 16, 2019

As per the 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.

0 votes
Manisha Kharga _Appfire_
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.
August 26, 2019

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

 


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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events