[GH-ISSUE #770] The file size exceeds the limitation set for your server (100M hardcoded) #351

Open
opened 2026-02-26 10:32:00 +03:00 by kerem · 5 comments
Owner

Originally created by @jejbq on GitHub (Sep 5, 2024).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/770

Bug: Nextcloud AIO: The file size exceeds the limitation set for your server

What is the current behavior?

While trying to open a PPTX of 233.2 MB in OnlyOffice part of Nextcloud AIO:

The file size exceeds the limitation set for your server.
Please contact your Document Server administrator for details.
Press "OK" to return to document list.

What is the expected behavior?

Open the file in OnlyOffice

Did this work in previous versions of DocumentServer?

No

DocumentServer Docker tag:

nextcloud/aio-onlyoffice:latest (8 weeks ago, a94390b52086)

Please note that nextcloud/aio-onlyoffice:latest is derived directly from onlyoffice/documentserver:8.1.1.2
https://github.com/nextcloud/all-in-one/blob/main/Containers/onlyoffice/Dockerfile

There is no files named default.json or local.json in volumes/nextcloud_aio_onlyoffice/_data
so I don't know how to modify OnlyOffice DocumentServer in Nextcloud AIO and
no limit can be set in Nextcloud AIO Admin web settings for OnlyOffice App (/settings/admin/onlyoffice).

REFERENCES
https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/354
https://github.com/ONLYOFFICE/DocumentServer/issues/1812
https://github.com/ONLYOFFICE/DocumentServer/issues/1674
https://github.com/ONLYOFFICE/DocumentServer/issues/1138
https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/236
https://github.com/ONLYOFFICE/snap-documentserver/issues/111
https://forum.onlyoffice.com/t/unraid-docker-container-onlyofficedocumentserver-the-file-size-exceeds-the-limitation-set-for-your-server-error/6799
https://www.reddit.com/r/OnlyOffice/comments/ue15s1/how_to_increase_file_size_limit_on_docker_version/

Host Operating System:

Linux Debian 12

Originally created by @jejbq on GitHub (Sep 5, 2024). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/770 **Bug: Nextcloud AIO: The file size exceeds the limitation set for your server** **What is the current behavior?** While trying to open a PPTX of **233.2 MB** in **OnlyOffice part of Nextcloud AIO**: The file size exceeds the limitation set for your server. Please contact your Document Server administrator for details. Press "OK" to return to document list. <OK> **What is the expected behavior?** Open the file in OnlyOffice **Did this work in previous versions of DocumentServer?** **No** **DocumentServer Docker tag:** nextcloud/aio-onlyoffice:latest (8 weeks ago, a94390b52086) Please note that nextcloud/aio-onlyoffice:latest is derived directly from onlyoffice/documentserver:8.1.1.2 https://github.com/nextcloud/all-in-one/blob/main/Containers/onlyoffice/Dockerfile There is no files named default.json or local.json in volumes/nextcloud_aio_onlyoffice/_data so I don't know how to modify OnlyOffice DocumentServer in Nextcloud AIO and no limit can be set in Nextcloud AIO Admin web settings for OnlyOffice App (/settings/admin/onlyoffice). **REFERENCES** https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/354 https://github.com/ONLYOFFICE/DocumentServer/issues/1812 https://github.com/ONLYOFFICE/DocumentServer/issues/1674 https://github.com/ONLYOFFICE/DocumentServer/issues/1138 https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/236 https://github.com/ONLYOFFICE/snap-documentserver/issues/111 https://forum.onlyoffice.com/t/unraid-docker-container-onlyofficedocumentserver-the-file-size-exceeds-the-limitation-set-for-your-server-error/6799 https://www.reddit.com/r/OnlyOffice/comments/ue15s1/how_to_increase_file_size_limit_on_docker_version/ **Host Operating System:** Linux Debian 12
Author
Owner

@igwyd commented on GitHub (Sep 6, 2024):

Hello @jejbq, This is not our repository and we do not support it. I think you should contact them https://github.com/nextcloud/all-in-one/issues.
However, if our container is used there, the configuration files you need will be inside this container /etc/onlyoffice/documentserver/.

<!-- gh-comment-id:2333443973 --> @igwyd commented on GitHub (Sep 6, 2024): Hello @jejbq, This is not our repository and we do not support it. I think you should contact them https://github.com/nextcloud/all-in-one/issues. However, if our container is used there, the configuration files you need will be inside this container ```/etc/onlyoffice/documentserver/```.
Author
Owner

@jejbq commented on GitHub (Sep 6, 2024):

This is not our repository and we do not support it

It is

# From https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/Dockerfile
FROM onlyoffice/documentserver:8.1.1.2

https://github.com/nextcloud/all-in-one/blob/main/Containers/onlyoffice/Dockerfile

I think you should contact them https://github.com/nextcloud/all-in-one/issues

I did it
https://github.com/nextcloud/all-in-one/issues/5212

However, if our container is used there, the configuration files you need will be inside this container /etc/onlyoffice/documentserver/.

Yes but it's not part of a volume in Nextcloud AIO docker containers
so if I modify it, it will not keep it or apply it on restart

docker exec -it -u ${1-109:112} -w /etc/onlyoffice/documentserver $(docker ps --filter name=nextcloud-aio-onlyoffice -q) grep maxDownloadBytes default.json
			"maxDownloadBytes": 104857600,

What is the exact procedure?

Do I need to change it in default.json or add it to local.json somehow?

How to apply the change in current running container?
(reload, restart via supervisord, etc.)

Thank you in advance for your help.

<!-- gh-comment-id:2333522953 --> @jejbq commented on GitHub (Sep 6, 2024): > This is not our repository and we do not support it It is ``` # From https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/Dockerfile FROM onlyoffice/documentserver:8.1.1.2 ``` https://github.com/nextcloud/all-in-one/blob/main/Containers/onlyoffice/Dockerfile > I think you should contact them https://github.com/nextcloud/all-in-one/issues I did it https://github.com/nextcloud/all-in-one/issues/5212 > However, if our container is used there, the configuration files you need will be inside this container /etc/onlyoffice/documentserver/. Yes but it's not part of a volume in Nextcloud AIO docker containers so if I modify it, it will not keep it or apply it on restart ``` docker exec -it -u ${1-109:112} -w /etc/onlyoffice/documentserver $(docker ps --filter name=nextcloud-aio-onlyoffice -q) grep maxDownloadBytes default.json "maxDownloadBytes": 104857600, ``` What is the exact procedure? Do I need to change it in default.json or add it to local.json somehow? How to apply the change in current running container? (reload, restart via supervisord, etc.) Thank you in advance for your help.
Author
Owner

@jejbq commented on GitHub (Sep 6, 2024):

I implemented a workaround but it's not persistent.

docker exec -it -w /etc/onlyoffice/documentserver $(docker ps --filter name=nextcloud-aio-onlyoffice -q) \
bash -c 'sed -i -e "s/104857600/1073741824/" default.json; supervisorctl restart all'

Can you modify the maxDownloadBytes parameter in your default.json file to 1073741824 (1GB instead of 100MB)?

Can your create a Docker configuration parameter such as ONLYOFFICE_MAX_DOWNLOAD_BYTES to tune it if needed?

This is a recurring issue and as 100MB is too small for some PowerPoint presentations.
https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/354#issuecomment-824678415

<!-- gh-comment-id:2333565461 --> @jejbq commented on GitHub (Sep 6, 2024): I implemented a workaround but it's not persistent. ``` docker exec -it -w /etc/onlyoffice/documentserver $(docker ps --filter name=nextcloud-aio-onlyoffice -q) \ bash -c 'sed -i -e "s/104857600/1073741824/" default.json; supervisorctl restart all' ``` Can you modify the maxDownloadBytes parameter in your default.json file to 1073741824 (1GB instead of 100MB)? Can your create a Docker configuration parameter such as **ONLYOFFICE_MAX_DOWNLOAD_BYTES** to tune it if needed? This is a recurring issue and as 100MB is too small for some PowerPoint presentations. https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/354#issuecomment-824678415
Author
Owner

@igwyd commented on GitHub (Sep 6, 2024):

I have created ticket #70074 with your suggestion. At the moment, to increase the file size permissions in our container you need:

  1. Сhange nginx /etc/nginx/includes/ds-common.conf in the container, after service nginx restart.
  2. Increase in /etc/onlyoffice/documentserver/local.json parameters FileConverter.converter.maxDownloadBytes and FileConverter.converter.inputLimits.zip.uncompressed, link. Please note that this is only for pptx;ppsx;potx;pptm;ppsm;potm, for others there are parameters above.
  3. supervisorctl restart all

But to make it persist after restarting the container, you need to modify it yourself, for example using a Dockerfile, until we add this feature.

<!-- gh-comment-id:2333690245 --> @igwyd commented on GitHub (Sep 6, 2024): I have created ticket #70074 with your suggestion. At the moment, to increase the file size permissions in our container you need: 1. Сhange nginx ```/etc/nginx/includes/ds-common.conf``` in the container, after ```service nginx restart```. 2. Increase in ```/etc/onlyoffice/documentserver/local.json``` parameters ```FileConverter.converter.maxDownloadBytes``` and ```FileConverter.converter.inputLimits.zip.uncompressed```, [link](https://helpcenter.onlyoffice.com/installation/docs-developer-configuring.aspx#:~:text=potm%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22zip%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22-,uncompressed,-%22%3A%20%2250MB%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22template%22). Please note that this is only for pptx;ppsx;potx;pptm;ppsm;potm, for others there are parameters above. 3. ```supervisorctl restart all``` But to make it persist after restarting the container, you need to modify it yourself, for example using a Dockerfile, until we add this feature.
Author
Owner

@jejbq commented on GitHub (Sep 6, 2024):

Thank you.

Can you remove the invalid label from this ticket?

I think you should contact them https://github.com/nextcloud/all-in-one/issues

FYI Nextcloud AIO doesn't want to take care of this as they are using your image
https://github.com/nextcloud/all-in-one/issues/5212#issuecomment-2334255576

<!-- gh-comment-id:2334024143 --> @jejbq commented on GitHub (Sep 6, 2024): Thank you. Can you remove the **invalid** label from this ticket? > I think you should contact them https://github.com/nextcloud/all-in-one/issues FYI Nextcloud AIO doesn't want to take care of this as they are using your image https://github.com/nextcloud/all-in-one/issues/5212#issuecomment-2334255576
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#351
No description provided.