On 11/17/22 12:51, samuel oliveira wrote:
Hello Everybody,
I am facing the following error to upload files via Solr.
"null:org.apache.commons.fileupload.FileUploadBase$IOFileUploadException:
Processing of multipart/form-data request failed. Early EOF"
This error is present into the log file and via UI I receive
connection lost.
Small files are uploaded with no issues. The full log its attached.
I also tried to increase the limits via
solr-webapp/webapp/WEB-INF/web.xml file
<Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"
connectionUploadTimeout="36000000" disableUploadTimeout="false"
connectionTimeout="60000" redirectPort="8443" />
I really appreciate any advice.
If small files work, I bet it's a size limit.
Solr defines a default limit on a POST body of 2MB. It can be
increased. There is no need to edit the webapp, that is configured in
solrconfig.xml.
Are you using the ExtractingRequestHandler (SolrCell)? If so you will
find limit configuration info here:
https://solr.apache.org/guide/8_0/uploading-data-with-solr-cell-using-apache-tika.html#solr-cell-parameters
And this is for general Solr without ERH:
https://opensolr.com/faq/view/opensolr-wiki-q-a/97/Content-length-exceeds-upload-limit-of-2048-KB
I hope that is helpful.
Thanks,
Shawn