Loosing data while saving a cloud based document when internet connection is lost

When editing a cloud-hosted document via Synology WebDav the OnlyOffice editor does not detect or warn the user when the connection to the document server is lost. The editor continues to accept input, but all unsynchronized edits are lost once the session is closed or refreshed.

Steps to reproduce:

  • Open a document stored in the cloud
  • Start editing.
  • Disconnect the network (e.g. disable Wi-Fi) or stop the OnlyOffice DocumentServer process.
  • Continue typing for a few minutes — the editor shows no warning.
  • Reconnect or reload the page.
  • All changes made while disconnected are lost.

Expected behavior:

  • The editor should immediately detect the loss of connection.
  • It should display a clear “Connection lost / Offline mode” warning.
  • Local unsaved edits should be cached and recoverable once the connection is restored (similar to Google Docs or Collabora Online).

Actual behavior:

  • No visible warning is shown.
  • The status indicator still shows “Saved” or no status change.
  • All edits made during disconnection are lost permanently.**

Environment:

  • OnlyOffice DocumentServer: 9.1.0.167 (x64 exe)
  • Integration: Synology NAS
  • No Reverse proxy
  • Network conditions: LAN and Wi-Fi drop simulated

Additional notes:
This behavior can cause severe data loss for users working with unstable connections. It would be highly useful if the editor implemented:

a clear offline detection mechanism (WebSocket/HTTP heartbeat),
a visible “offline” indicator,
and an autosave cache or recovery option for local unsynced changes.

:bulb: Suggested enhancement

Implement an offline detection system similar to:
navigator.onLine status in browsers
WebSocket ping/pong with a visible reconnect indicator
Local temporary file caching (so users can recover unsaved changes)

Hello @HW88

Please provide more information about your environment:

  • version of Desktop Editors;
  • how Desktop Editors are connected to Synology WebDAV;
  • version of Synology WebDAV.

It seems that incorrect category is set to the topic, because the description of the issue clearly refers to Document Server. If Document Server is used, please share its installation type and version too.

Thank you for your prompt response!

Your questions:

Version of Desktop Editors: Community version 9.1.0.167 (x64 exe)

Synology DSM Version 7.2.2

How Desktop Editors connect to Synology WebDAV: Only for Windows 11 users. WebDAV access is via File Explorer > Add network location. The link then appears permanently under My PC. There were never any problems like the ones described here with the previously used MS Office 2021.

Version of Synology WebDAV: 2.4.6 20133

Regards

Thank you for the reply. I assume in this case cloud based WebDAV server of Synology is used, is that correct? If so, can you share a link to it?

The Synology NAS is operated by a company, and WebDAV access is only available to company employees.

For this purpose, a dedicated access point has been set up via the File Explorer function “Add network location” and configured with a username and password.

Users can then access the server’s directory using File Explorer and open and edit Office documents stored on the NAS by double-clicking them.

Is there a documentation on that from Synology? Adding a location implies using certain protocols, some of which are not enabled by default. I’d like to see how to configure Synology to work via WebDAV to run some tests.

Only standardized procedures are used here.

Supported: WebDAV over HTTP and HTTPS.

The server supports “DavDepthInfinity,” which allows access to and deletion of files even with deep path lengths or subfolders—even in complex directory structures.

Access logs (transfer logs) can be enabled to track who accessed which files and when.

In short: WebDAV behaves like a file server over HTTP/S—NAS shares can be mounted practically like network drives, and files can be directly opened, moved, deleted, etc.

But this is no Synology issue!
The problem can be reproduced with any WebDAV server: OnlyOffice doesn’t detect that the connection to the server has been lost. Clicking “Save” appears to execute, but it doesn’t save anywhere, not even locally for safety!

As a workaround, it would help if OnlyOffice offered a setting to perform local backups at definable intervals. Then at least all the work on the document wouldn’t be lost.

The problem is worse than expected. OnlyOffice doesn’t even notice that a client>server network connection via SMB is interrupted and saves the file to nirvana.
Ldap Client (SMB) opens document on the file server
Then I unplug the Ethernet cable
Edit the document and click Save
OO takes a few seconds longer to save and then continues to display the document for editing without an error message.
If I close the document, all changes made are lost.
It couldn’t be worse!

Thank you for the information. We’ll do local test from our end and then I’ll provide an update.

Is your Synology connectable via SMB or CIFS? Kindly asking to check out if the same issue occurs with one of these types.

We are using SMB3, but if clients would need the server also understands SMB2.
SMB1 is deactivated.
Regards

Initially you stated:

Was it changed? What protocol is actually being used?

WebDav always HTTPS via Port 5006 on Synology

But OnlyOffice doesn’t recognize a missing connection wirh SMB too. It seems to save and there is no feedback that the operation went wrong.

and off course the document was changed. Otherwise my error report wouldn’t make sense.

I was mostly referring to “protocol” as WebDAV/SMB/CIFS and whether it was changed, not the document.

In the original post you mentioned Synology WebDAV, but then about SMB3 usage, thus I wanted to clarify.

Sorry if I was unclear.

No problem!
First we found the problem in WebDav (by https).
Later, we discovered that even with SMB2/SMB3, OnlyOffice is unable to handle a lost connection to the server.

There appears to be no error handler for the situation where a document is opened and edited in the cloud or on a file server, and then the connection is interrupted.

In any case, no warning message appears; it seems you can still save and close the document. This results in the loss of all changes.

Thanks for the reply. Just to make sure that we are on the same page: you have mentioned Document Server in your original topic:

However, the category is set to Desktop Editors. Can you please specify which one is actually being used? There is a big difference in the way they operate with connected storages per se.

Sorry If you missunderstoode.
We are talking about the Desktop Version and Not your document Server!
Regards and Felice navidad from spain
H.Wuertele

1 Like

Thank you for the clarification. To sum up: the same behavior with saving is produced via WebDAV and SMB, is that correct?

This ist Correct!