WOPI Integration, Session Expiration and configuration settings

Hi,

i successfully managed to create a WOPI endpoint and can view and edit documents. However i wonder if there is a setting to configure the session expiration. Sometimes i get an expiration message after ca. 60 seconds and sometimes immediately after opening a document.

Second. I have set the autoassembly interval and step to 0m in local.json. I found that in an article to force ONLYOFFICE to do a post to the PutFile endpoint on saving. Otherwise iam always getting a version mismatch message. Is there any known better solution than just forcing to post every change back? I saw a question on github issues with exactly that problem, but the issue was closed without leaving an answer there.

The configuration file has multiple options and for most of them i couldnt find documentation. Is there a document available which describes the various documentation options?

Iam using ONLYOFFICE 7.1 docker container as WOP Client.

Thank you in advance

Stefan

1 Like

Hello @StefanW
Sorry for the late reply.

Second. I have set the autoassembly interval and step to 0m in local.json. I found that in an article to force ONLYOFFICE to do a post to the PutFile endpoint on saving. Otherwise iam always getting a version mismatch message. Is there any known better solution than just forcing to post every change back? I saw a question on github issues with exactly that problem, but the issue was closed without leaving an answer there.

As far as I understand you are looking for ForceSave feature. Please note, that we are still working on this feature for WOPI. Recently we discussed the situation here: Running OnlyOffice with Docker-Compose - WOPI - Connection refused while connecting to upstream - #21 by Alexandre

However i wonder if there is a setting to configure the session expiration. Sometimes i get an expiration message after ca. 60 seconds and sometimes immediately after opening a document.

Please provide us with details of your desired scenario. default.json file contains sessionidle and sessionabsolute parameters which regulate editing session expiration.

“sessionidle” parameter is responsible for the disconnection user from the editor if they are inactive for some time. It can be set in /etc/onlyoffice/documentserver/default.json inside the container with the Document Server this way:

                        "expire": {
                                "sessionidle": "0",

Value can be “1h” for 1 hour, “3d” for three days, “20m” for 20 minutes and so on - any time period that meets your requirements. Please execute supervisorctl restart all after you make any changes to the default.json to apply them.

“sessionabsolute” parameter. This parameter is responsible for forcing the closing of the file after a certain amount of time.

I am also facing unexpected “The document editing session has expired. Please reload the page.” like @StefanW, mostly after minutes, especially on inactivity, e.g. if the tab is inactive.
We are using the onlyoffice/documentserver Docker image, and customized the /etc/onlyoffice/documentserver/production-linux.json with the default [1] services.CoAuthoring.expire block.
Are such timeouts to be expected, even before the specified 1h in certain scenarios? If that is the case, is the behavior documented somewhere?

[1] server/Common/config/default.json at f2bdecedf00da59ec70d265048590b1dad02f08a · ONLYOFFICE/server · GitHub

Hello @jbi

Please specify if Document Server is integrated with your solution via WOPI protocol too.
Also, please let me know version of Document Server and type of server OS on which Document Server is installed.

Hi @Constantine,
thanks a lot for getting back. Yes, it is integrated via WOPI, using this image, where the OS is Ubuntu 22.04.4 LTS running Document Server 8.1.3.4.

Please note that newer version is available. I recommend updating your instance for sure and checking the situation again. If it reproduces, please enable debug level logging, reproduce the issue and share logs of Document Server.

Extended logging can be enabled in /etc/onlyoffice/documentserver/log4gs/production.json config by changing value ´ to "DEBUG". Once changed, make sure to restart services with supervisorctl restart all command from inside the container.

To connect to the container use docker exec -it ID bash, where ID is the ID of container with Document Server that you can find by running docker ps.

1 Like

Thanks @Constantine, I will investigate and get back to you.

Looking forward to it.

1 Like