Good day! I would like to know if there is a way to synchronize documents between OnlyOffice and Nextcloud.
The version of Nextcloud is 23.0.3 (Debian). The installation of OnlyOffice was carried out using Docker, version 7.0.1.37 (document server) from the official OnlyOffice website.
The problem is: when a file in the documents is opened by two or more employees, it is not possible to download the latest version of the document (to their local computer) from Nextcloud until both employees close the document.
Therefore, the question is whether there is any official solution to disconnect all users, for example, once a week. After disconnecting all users, all document versions will be saved.
Good day, could you please assist me? If there is such a function, thank you very much.
@Alexandre, @Carl
Hello @Andrey_SFTDI,
First of all I’d like to draw your attention to the fact that the versions of Nextcloud and Document Server you are using are obsolete.
Nextcloud 23 was released on 2021-11-30
Document Server 7.0.1 was released on 2022-02-22
We strongly recommend you to update both applications to their current versions.
It is possible to enable the forcesave in the ONLYOFFICE connector app settings:
This will allow users to save the current state of the document using the diskette icon in the editor.
If you want to forcefully disconnect all users from editing, you can execute the script documentserver-prepare4shutdown.sh on the server where your Document Server is installed (inside the container for Docker installations).
@Carl, thank you very much for the detailed response. Could you please let me know if I decide to update OnlyOffice, but I am considering a new installation via deb (from the official source)? Because Docker doesn’t work for me. Does the deb version have the same capability to terminate user sessions? Please let me know. Thank you!
This functionality is common for all types of Document Server installation.
Am I correct in understanding that with the official deb installation on Linux (Debian), there is a similar file, documentserver-prepare4shutdown.sh, on the server that can be executed to log out all users from OnlyOffice?
And where is this file located? /var/www/onlyoffice? To clarify, it terminates the sessions, and then users see a message in OnlyOffice that the connection has been lost, they click OK, and continue working on their documents, right?
The script is located at /usr/bin/
This script is designed for update purposes. It disconnects all users and the Document Server stops completely. In order to continue working you will need to restart all Document Server services.