Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The file size exceeds the limitation set for your server (100M hardcoded) #770

Open
jejbq opened this issue Sep 5, 2024 · 5 comments
Open
Labels
feature request Issues that request new features to be added to OnlyOffice

Comments

@jejbq
Copy link

jejbq commented Sep 5, 2024

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
#354
ONLYOFFICE/DocumentServer#1812
ONLYOFFICE/DocumentServer#1674
ONLYOFFICE/DocumentServer#1138
#236
ONLYOFFICE/snap-documentserver#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

@igwyd
Copy link
Member

igwyd commented 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/.

@jejbq
Copy link
Author

jejbq commented 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
nextcloud/all-in-one#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.

@jejbq
Copy link
Author

jejbq commented 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.
#354 (comment)

@jejbq jejbq changed the title Nextcloud AIO: The file size exceeds the limitation set for your server The file size exceeds the limitation set for your server (100M hardcoded) Sep 6, 2024
@igwyd
Copy link
Member

igwyd commented 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.

@jejbq
Copy link
Author

jejbq commented 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
nextcloud/all-in-one#5212 (comment)

@Rita-Bubnova Rita-Bubnova added feature request Issues that request new features to be added to OnlyOffice and removed invalid Issues that are invalid labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to OnlyOffice
Projects
None yet
Development

No branches or pull requests

3 participants