Forums

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

Error 18 when downloading a space export via cURL

Antoine _Klee Group_
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.
November 15, 2021

Hi,

I am downloading spaces exports from Confluence Server 7.3.4.

I first tried downloading directly with the provided download link but it downloads are impossible for .xml.zip files larger than 1 GB (I actually do not understand the reason).

For those files, I decided to perform the following cURL request

curl --user "<user>:<password>" https://confluence.<mydomain>/download/temp/Confluence-space-export-XXXX.xml.zip -o out.xml.zip

For files larger than a GB, it does sometimes work, but also often fails with error 

"curl: (18) transfer closed with 271761185 bytes remaining to read" (in that case the total zip file was 1292 MB and I downloaded only 1032 MB).
What could be the reason to not being able to download?
Note that I do not have a direct easy access to the server and therefore can not perform an sftp or scp to/from it.
Thanks.

1 answer

0 votes
Fabian Lim
Community Champion
December 23, 2021

Hi @Antoine _Klee Group_

This error seems to happen more commonly with a slow, throttled, or troubled connection..

Take a look at this post from the attlassian team: https://community.atlassian.com/t5/Bitbucket-questions/resolution-for-error-RPC-failed-curl-18-transfer-closed-with/qaq-p/969363

Regards,

Fabian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events