PDF Size issue

Document Server version: 8.1.1
Type of installation of the Document Server: docker

When opening a PDF file of 104Mb I get the following error:

The file size exceeded the limit set for your server. Please contact your Document Server administrator for details.

I can see olso the following on the logs:

> [2024-08-14T19:59:32.698] [ERROR] [localhost] [545487445] [oc15g94igmmg_reno] nodeJS - error downloadFile:url=http://nginx-server/index.php/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MjI5NzksInVzZXJJZCI6InJlbm8ifQ.vYK-Bdqibc9XI4zRIoSOB-YEGtx6XAFfjKgIePGPoog;attempt=1;code:EMSGSIZE;connect:null Error: Error response body.length
>     at raiseError (/snapshot/server/Common/sources/utils.js)
>     at Request.fData (/snapshot/server/Common/sources/utils.js)
>     at Request.emit (node:events:539:35)
>     at IncomingMessage.<anonymous> (/snapshot/server/Common/node_modules/request/request.js:1080:12)
>     at IncomingMessage.emit (node:events:527:28)
>     at addChunk (node:internal/streams/readable:315:12)
>     at readableAddChunk (node:internal/streams/readable:289:9)
>     at IncomingMessage.Readable.push (node:internal/streams/readable:228:10)
>     at HTTPParser.parserOnBody (node:_http_common:141:24)
>     at Socket.socketOnData (node:_http_client:494:22)
>     at Socket.emit (node:events:527:28)
>     at addChunk (node:internal/streams/readable:315:12)
>     at readableAddChunk (node:internal/streams/readable:289:9)
>     at Socket.Readable.push (node:internal/streams/readable:228:10)
>     at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

Hello,
The default limitation for all files is 100Mb. You can increase it by changing the value of maxDownloadBytes parameter in /etc/onlyoffice/documentserver/default.json (inside the container).

Also, remember that the file should be re-uploaded or you need to change its document.key manually, as information about failed conversion related to the existing document.key remains in database.

Thank you so much!

All sorted!

1 Like