# Bulk load on a large file return error 56 from curl

**URL:** <https://discuss.elastic.co/t/bulk-load-on-a-large-file-return-error-56-from-curl/10073>\
**Category:** Elasticsearch\
**Created:** [December 14, 2012, 12:54am UTC](https://discuss.elastic.co/t/bulk-load-on-a-large-file-return-error-56-from-curl/10073 "2012-12-14T00:54:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuhan](https://avatars.discourse-cdn.com/v4/letter/y/919ad9/32.png) [@Yuhan](https://discuss.elastic.co/u/Yuhan)\
**Post date:** [December 14, 2012, 12:54am UTC](https://discuss.elastic.co/t/bulk-load-on-a-large-file-return-error-56-from-curl/10073/1 "2012-12-14T00:54:54Z")

</div>

Hi all,

I'm trying to perform a bulk load on elasticsearch and received the  
following error code (no response)

curl -s -XPOST localhost:9200/\_bulk --data-binary @bulk\_load\_file.txt  
Fatal error: local() encountered an error (return code 56) while executing  
'curl -s -XPOST localhost:9200/\_bulk --data-binary @bulk\_load\_file.txt

The file is as big as 300MB. on the same file I performed a head and tail  
and take only a part of it to bulk load, and it works just fine.  
what could be the problem? is there any recommended setting change when  
bulk loading large files?

Thank you.

Yuhan

--  
The information contained in this e-mail is for the exclusive use of the  
intended recipient(s) and may be confidential, proprietary, and/or legally  
privileged. Inadvertent disclosure of this message does not constitute a  
waiver of any privilege. If you receive this message in error, please do  
not directly or indirectly print, copy, retransmit, disseminate, or  
otherwise use the information. In addition, please delete this e-mail and  
all copies and notify the sender.

--

---

<div class="post-metadata">

**Author:** ![Yuhan](https://avatars.discourse-cdn.com/v4/letter/y/919ad9/32.png) [@Yuhan](https://discuss.elastic.co/u/Yuhan)\
**Post date:** [December 14, 2012, 1:13am UTC](https://discuss.elastic.co/t/bulk-load-on-a-large-file-return-error-56-from-curl/10073/2 "2012-12-14T01:13:56Z")

</div>

resolved by setting http.max\_content\_length setting = 500mb in the  
elasticsearch.yml file.

Thank you.

Yuhan

--  
The information contained in this e-mail is for the exclusive use of the  
intended recipient(s) and may be confidential, proprietary, and/or legally  
privileged. Inadvertent disclosure of this message does not constitute a  
waiver of any privilege. If you receive this message in error, please do  
not directly or indirectly print, copy, retransmit, disseminate, or  
otherwise use the information. In addition, please delete this e-mail and  
all copies and notify the sender.

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:59am UTC](https://discuss.elastic.co/t/bulk-load-on-a-large-file-return-error-56-from-curl/10073/3 "2017-07-06T02:59:51Z")

</div>


