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" - on Onlyoffice SNAP version with Nextcloud. #111

Closed
nicemicro opened this issue Nov 8, 2022 · 8 comments
Assignees

Comments

@nicemicro
Copy link

I've seen issues opened concerning this problem with different versions of the Onlyoffice document server, such as ONLYOFFICE/DocumentServer#1299, ONLYOFFICE/DocumentServer#685 and ONLYOFFICE/Docker-DocumentServer#354.

However, as I have installed Onlyoffice on my server using the Snap package provided by the snap store, there is no /etc/onlyoffice directory on my system. I am aware of the sudo snap set onlyoffice-ds command which I used to set up the "secret" and the ports required, but I'm not sure if that can be applied on my current situation, and I also have not found any documentation on how to manage that part of the configuration on a server installed from Snap.

Thank you in advance for pointing me towards any resources regarding the issue.

@ShockwaveNN ShockwaveNN transferred this issue from ONLYOFFICE/CommunityServer Nov 8, 2022
@igwyd
Copy link
Member

igwyd commented Nov 8, 2022

Hello @nicemicro, we haven't command to change this parameter, but you can change it in the snap config directory here /var/snap/onlyoffice-ds/current/etc/onlyoffice/

@nicemicro
Copy link
Author

@igwyd Thank you for the help!
I could find the onlyoffice/documentserver/default.json file, which I have changed according to this closed issue, however, I haven't found var/www/onlyoffice/WebStudio/web.appsettings.config in the snap directory, so I couldn't overcome the "file size exceeds limitation" issue.

@igwyd
Copy link
Member

igwyd commented Nov 8, 2022

You also need just restart the onlyoffice sudo snap restart onlyoffice-ds.
web.appsettings.config this config in the ONLYOFFICE CommunityServer, not in the ONLYOFFICE documentserver. Are you using CommunityServer as a DMS?

@nicemicro
Copy link
Author

@igwyd Thank you, I rebooted the whole VPS, to be sure, but it didn't work. Now, at your suggestion, I have also restated the onlyoffice documentserver snap.
However, I still have the same problem.

I probably got confused here on what guide to follow. These are the things I use:

  • Onlyoffice snap 7.2.0 (installed via the sudo snap install onlyoffice-ds command)
  • Nextcloud snap 24.0.6snap1 (also installed from the official repository)
  • Onlyoffice connector 7.5.8 (installed from the Nextcloud interface)

I have modified the following file: /var/snap/onlyoffice-ds/current/etc/onlyoffice/documentserver/default.json by changing the section at the end to the following (added a zero to the end of maxDownloadBytes, and changed everything to 500 MB under all three uncompressed sections:

"FileConverter": {
                "converter": {
                        "maxDownloadBytes": 1048576000,
                        "downloadTimeout": {
                                "connectionAndInactivity": "2m",
                                "wholeCycle": "2m"
                        },
                        "downloadAttemptMaxCount": 3,
                        "downloadAttemptDelay": 1000,
                        "maxprocesscount": 1,
                        "fontDir": "null",
                        "presentationThemesDir": "null",
                        "x2tPath": "null",
                        "docbuilderPath": "null",
                        "args": "",
                        "spawnOptions": {},
                        "errorfiles": "",
                        "streamWriterBufferSize": 8388608,
                        "maxRedeliveredCount": 2,
                        "inputLimits": [
                                {
                                "type": "docx;dotx;docm;dotm",
                                "zip": {
                                        "uncompressed": "500MB",
                                        "template": "*.xml"
                                }
                                },
                                {
                                "type": "xlsx;xltx;xlsm;xltm",
                                "zip": {
                                        "uncompressed": "500MB",
                                        "template": "*.xml"
                                }
                                },
                                {
                                "type": "pptx;ppsx;potx;pptm;ppsm;potm",
                                "zip": {
                                        "uncompressed": "500MB",
                                        "template": "*.xml"
                                }
                                }
                        ]
                }
        }

Did I follow the wrong guide?

@igwyd
Copy link
Member

igwyd commented Nov 9, 2022

You did everything right. Old file won't open, re-upload it. If that doesn't help, maybe your file is larger than 500MB in uncompressed? Check it and increase inputLimits.

@nicemicro
Copy link
Author

@igwyd Thank you! It worked after re-upload.

I have one last question: will this setting be kept when the Snap package is auto-updated?

@igwyd
Copy link
Member

igwyd commented Nov 10, 2022

So that the changes are not reset after update, you need to move them to /var/snap/onlyoffice-ds/current/etc/onlyoffice/documentserver/local.json in the same directive. Read more here.

@nicemicro
Copy link
Author

Thank you for the kind help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants