It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

32 views 2 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you