Regarding the issue of editing documents in 'only office documents' but not transferring them to the NextCloud file server at the appropriate time

I used Docker to install the latest NextCloud and Onlyoffice, and found a strange problem. If I open and edit the docs file in Onlyoffice and then download it directly from NextCloud, I cannot get the latest updated file. All logs did not report any errors.
I don’t know if it’s an error or a configuration error? But it can be guaranteed that they are all default settings obtained from official sources.

Hello @sam123,
Please provide the screen recording of the issue reproduction on your side.
So, are you using Onlyoffice Docs 8.3.1, NC 31 and Connector 9.7.0?
Please still provide us all the logs after the issue reproduction (including Nextcloud Logs - Administration Settings → Logging)

I only used ‘only office/documentserver’ (container image name) And Nextcloud (container image name) is the latest, which can cause issues in the theme

I will provide screenshots later, but I will provide the steps for reproducing the text

Steps to replicate it (hint: details matter!):

Create a new document from NextCloud and open it using Onlyofice.

After opening, enter any characters, then press Ctrl+S to save the document and close only office.

Download this document from NextCloud to your local device

Open this document from the computer.

This document is not the latest, but rather the one before the ‘only office’ editing

logs:

nextcloud.log (245.3 KB)
onlyoffice.log (37.8 KB)

We haven’t been able to reproduce the issue for now, please still provide the screen recording as well as the versions used

Step screenshot
thanks!!!

Step screenshot.docx (279.8 KB)

nextcloud version (Nextcloud Hub 9 (30.0.5))
how to view onlyoffice doce version?

nextcloud onlyoffice apps version is ( 9.7.0)

Generally, the version of the Document Server can also be seen in ds-docservice.conf (/etc/nginx/includes - inside the container), please provide the file to us.
Could you create a user on your Nextcloud and provide us the credentials for quick test? (you can send the details in PM)

It has been confirmed that it was caused by the closure of JWT, but the specific reason is not quite clear.

Is there any code that can refresh in real-time by changing the local. json of only office?

No, changes to local.json in OnlyOffice Docs typically require a restart of the Document Server to take effect.
If JWT is enabled on one side, but is disabled on the other, it can cause issues, always make sure that the secrets and headers coincide (as well as the time of the servers where Onlyoffice Docs and Nextcloud are deployed)
Is the issue still present?

很抱歉,您会中文吗,我很难去翻译这段话。我想说的是,要是启用了JWT似乎就能解决现在延迟同步的问题,还有似乎修改了local.json有关代码后就能更加实时的去同步到nextcloud(未知道具体代码)

我两侧都启用了JWT,标头,时间一致

我是否理解正确,问题已解决由于您采取了两个步骤 - 首先,在 local.json 中编辑了一些内容(但您不确定具体是什么);其次,在双方都启用了 JWT

是的,社区测试过吗,不清楚能否有这种BUG,我所有的配置保持了默认仅开启了JWT(local.json再算不修改也只是不实时保存。)谢谢您

通常情况下不应该出现这种情况,这样的情况发生比较奇怪。您是否使用任何代理?您还提到对 local.json 进行了一些更改,但您不记得具体内容,也许问题就出在这里