Errors when co-editing online (via Nextcloud): Cannot open files / Internet connection restored

We use Only Office in combination with Nextcloud to edit documents online. Recently, two problems have been occurring when documents are opened in the browser and are edited in the Only Office editor:

Firstly, some members of our team have the problem that some documents cannot be opened. The following error message appears: “An error occurred while opening the file”.

On the other hand, there is the error message “The internet connection has been restored and the file version has been changed.”

This always occurs when a document has been opened online in Nextcloud via Only Office, but you have not edited it for a while or the device was in standby mode. After refreshing the page, the message no longer appears and everything works again.

Unfortunately, even after intensive internet research, we were not able to find out how to solve these two problems.

Do they also occur with others, and are you aware of any possible solutions?

Many thanks in advance for your help!

Kind regards
Kim

OS: Mac & Windows
Browser version: Firefox, Safari, Google Chrome

Hello Kim.

Your description looks like an error with mutual accessibility between Document server and Nextcloud. But we need more details to check it out.

Please provide us with information about your installation:

  1. OS of the server where Document Server is installed.

  2. Type of installation of Document Server (docker, deb/rpm, exe).

  3. Version of Document Server. Version of Nextcloud and connector version.

  4. How you performed Document server installation, point me to the link of the guide you used.

  5. Are Document server and Nextcloud installed separately?

  6. Please try to reproduce the first issue and provide us with whole Document server logs folder (you can use external storage and post a link to download logs). They are located here:

docker /app/onlyoffice/DocumentServer/logs/documentserver/

deb\rpm /var/log/onlyoffice/documentserver/

Windows Program Files (x86)\Ascensio System SIA\DocumentServer\Log

Recently, two problems have been occurring when documents are opened in the browser and are edited in the Only Office editor

Please clarify when the issues arose? What actions on the server side preceded?

some members of our team have the problem that some documents cannot be opened

Does the issue always arise with specific documents\specific users?

As for the second issue (“The internet connection has been restored and the file version has been changed.”) , it looks like disconnection between the client and the Document server. Probably you have some issues in your network. This message just means that connection is restored.

I’m facing the same issue, with the “internet connection has been restored and the file version has been changed” dialog. Makes it very annoying to use OnlyOffice on a train, for example.

Our installation is Seafile + OnlyOffice. Both latest versions as of today. Is there any way to improve the behavior? Probably in all cases so far, the state of the document before the reload and after the reload was the same. Is there a way OnlyOffice could check this, and just continue in edit mode if this is the case?

Hello @hydrandt
This is expected behavior.
Please let me provide you with details.
The “internet connection has been restored and the file version has been changed” pop-up message is related to editing session. This message usually appears if the client-server connection was lost and then got restored in standard time. As soon as the connection between the client and the server is “lost”, the reconnection function is activated.
This message needs to notify a used about the situation and possibility of data loss even if it didn’t happen.

About the reconnection feature in details. This feature is controlled in the following section of the default.json Document Server config:

"reconnection":{           "attempts": 50           "delay": "2s" 

The main point that editor should reconnect a user to editing session. Sometimes it’s not possible without browser refresh. For example:
Scenario with only one user edits a file and runs to connection ‘lost’\reconnect events:
a) if the connection loss is momentary (up to 12 seconds), user doesn’t need to refresh a browser page. He\she will be reconnected to current session.
b) connection is lost for 12 seconds to 1 min 40 seconds - page refresh is needed, but user can download a file as well.
c) connection is lost more than 1 min 40 seconds - I believe this is worst case. Page refresh is needed, without this step a user can’t download a file.

About scenarios with a few users and the same file:
a) connection is lost up to 12 seconds - no actions are needed. A user will be available to get back to current editing session.
b) connection is lost mote than 12 seconds - page refresh is needed.
c) connection is lost up to 12 seconds and some changes have been made to a file by other user during this period - page refresh is necessary.

As you can see, you can be available to get back to editing session without additional actions if the period of disconnect is shortly.
About your questions to change default behavior, sorry we don’t have such plans at the moment.