Q:I cloned the code but I find only empty folders, there is no source code.
A:The repository includes submodules. It is recommended to clone the repository executing the following command:
git clone --recursive https://github.com/ONLYOFFICE/DocumentServer.git
In case you have cloned the repository using the command:
git clone https://github.com/ONLYOFFICE/DocumentServer.git
you can update the submodules in the following way:
Go to the
Run the following command:
git submodule update --init --recursive
Q:Data loss has occured when stopping Document Server. How to prevent data loss?
A:Due to the operational characteristic, Document Server saves a document only after the document has been closed by all the users who edited it. To avoid data loss, you must forcefully disconnect the Document Server users when you need to stop Document Server in cases of the application update, server reboot etc. To do that, execute the following script on the server where Document Server is installed:
Executing the script may take a long time (up to 5 minutes).
Disconnecting users may take a long time (up to 5 minutes).
Q:I updated my editor language files (corrected some translations) but the server still shows the previous values instead of the correct ones. How can I reset the cache for all the users at the same time?
A:Please follow the steps to reset the cache:
/etc/nginx/includes/onlyoffice-documentserver-spellchecker.conf files. There must be the build date and time value. Change these values to some other (any value will do, but the main thing that it must be the same in all the places), and restart NGINX:
sudo service nginx reload
The cache should be reset for all the server users.
Please note that for the Docker installation all the actions must be performed within the container.