issue with document server cache
This issue is unique.
- [x] I have used the search tool and did not find an issue describing my bug.
Operating System of DocumentServer
Docker
Version information
8.3.3.1
Expected Behavior
After editing a document, closing it. Then opening it again it should allow me to edit the document again. It is also expected that after the last person editing the document closes the document, the cache is removed. But...
Actual Behavior
I am trying out document server to integrate document editing in our app but I am having problem with the cache. I am using @onlyoffice/document-editor-react and I can successfully open a document, edit it, on close it's calling my webhook and I update my file on azure files storage. I double check directly on azure and the file is correctly updated. If I then shortly after try to open the file again, I get error message "Version changed. The file version has been changed. The page will be reloaded". And then in read only more opens the original version before the edit.
I thought the issue is that my docker container has no write permissions to write the cashed file on disk, and then signed up for a cloud version but I am having the issue with your own cloud hosted document server as well.
In addition to this I confirmed that autosave is on, colaborative editing works fine etc and when self hosting the docker console does not produce any errors in the logs when saving the file. The file that is received by the document server is always the same. I have a dedicated controller route that makes hides all the getting temporary SAS token from Azure, and always serve the file through the same URL to the document server.
It takes exactly 5 minutes of waiting, and then you can open the file without that version error. It probably cleans the cashe or something.
Additional information
I searched and I found https://github.com/ONLYOFFICE/DocumentServer/issues/1716 but it's closed without explanation on how it's fixed. Also I don't get any console errors.
Hi @Code-Divine I referred the issue #74977 to the developers. I will respond to the issue as soon as the information is available.
Hi, we are evaluating only office for purchase, and have also ran into this same bug. Any estimate on when this bug will be resolved?
if you modify /etc/onlyoffice/documentserver/default.json, "expire": { "updateVersionStatus": "5m" }. out of the box its set to 5m, if you reduce it to 0m, the bug appears to go away. I'm not sure if this will cause other problems.
Adding some Info/my Observation:
I'm having the same Problem. (I'm building the File-server myself). Monitoring the requests reveiled: Opening the Editor the first time: Request on file-server. 2. made a few changes. 3. closing the editor 4. waiting for the request to save the file when re-opening the editor. (after the save with body.status: 2) there is no request to the file-server. It just says that the file version changed. I then can reload it, it loads the cached file, before it was edited. (also editing is disabled) - checking the file on the file-server: it is the edited version.
Reopening the editor before the 10 Seconds are over (the callback status:2) opens the cached file correctly.
EDIT 1: I checked if there is a problem with the last-modified of the file (despite no request), so I saved the edited file somewhere different and let the old file unchanged. Same issue.
Also here the docker log. Yes this is everything:
Jul 15 22:57:34 debian-server docker[3908950]: [2025-07-15T20:57:34.645] [WARN] [localhost] [Zm9sZGVyMS9NeSBEb2N1bWVudC5kb2N4] [anon] nodeJS - UpdateVersion expired
EDIT 2: I took a deeper look in the docs and I found (for my usecase) a workaround. Because I have docker, I couldn't use the config file. (I haven't set the path). Every time a document is opened, the server gets a request, on which the editor is open. then (if not done already) generate a key. Then the first callback gets sent (body.status: 1) When the editor is closed and in the 10 seconds after that the it gets reopened, no reload-message appears. When the editor is closed for longer than 10 seconds a callback request gets sent (body.status: 2). This request only gets sent, when the last person that has the document open leaves. (When a different person than last leaves/connects, only status 1 gets sent.) On this "status: 2" the key gets deleted.
I'm addressing the same bug, I've deployed onlyoffice document server with docker and conected it to owncloud and S3, in my frontend I use only-office/angular when I edit something from angular or from onlyoffice desktop when I wanna check it from other client I always get "The file version has been changed. The page will be reloaded." from the others clients.