Nextcloud version (eg, 12.0.2): 18.0.3 all apps up to date
Operating system and version (eg, Ubuntu 17.04): Debian 10
Apache or nginx version (eg, Apache 2.4.25): 2.4.38
PHP version (eg, 7.1): 7.3
The issue you are facing:
Maybe it’s something I completeley misunderstood about the way it works, but we already lost 2 files (the 2 first we created) so I decided to ask:
I create a file online using the “+” button, a new spreadsheet document
I edit that file, adding content … so far so good.
if I go back later on that file, everything is ok … content is ok
I forgot to mention that the file was created online in a synced folder
now if I open the file locally on my computer (even just a “Preview” on a Mac), it looks empty
first reaction of user is “I’m looking at the wrong file, this one is empty, moving to trash” and then “where is my file ???”
erasing the file on the local system is propagated online, file is erased, everything lost …
after 2 similar situations, we started investigating … when the file is created, everything is ok online but the local synced copy is just created empty and never synced after that … the local file stays empty.
if I do a “File->Save As” from OnlyOffice, a new copy is created (in the folder I choose, if I stay in the same folder I have a (2) copy), that file is properly synced with local folder with all the last modifications
if I edit with OnlyOffice that new copy, that works … but the local copy is again not updated
In fact it’s like the file is properly synced only once at the time of creation (or duplication) but never synced afterwards …
So question is : did I understand correctly ? is there something special to do to have the local copy synced ?
I observed exactly what you describe on my system:
Create an OnlyOffice document online
Preview or open it on a mac running the sync client and the document is empty.
The file seems to sync OK if I open and close it again in Onlyoffice.
You can probably work around the problem by having your users create online documents in one folder, then move them to the desired folder after creation. Or create them using a filename modifier (eg “xNew Document”), then removing the modifier after the initial save (rename “xNew Document” to “New Document”). For safety (given what I see in onlyoffice-documentserver issues) you may need to do this any time you are editing online.
I’ve seen something similar that does not involve the sync client at all.
I have been evaluating OnlyOffice and Collabora for the last year or so. 3 - 4 times per week I open a specific .docx file, add a new line in OnlyOffice, close it, open it in Collabora, and add another word. I want to track that both products are working correctly and that my scheduled update routines have not broken anything.
About 10% of the time, when I open the file in Collabora I do not see the edits I just made in OnlyOffice.
If I close Collabora (without saving), and re-open it, sometimes the text added in OnlyOffice is there, sometimes it is not. If the text is still missing, I find that if I return to OnlyOffice the text is missing there, too.
I get more reliable (but still imperfect) results in my test document when:
I click the mouse in a different part of the document before closing it (instead of typing with the keyboard only)
then use the ‘Open file location’ button at the top right to exit OnlyOffice
If you know where the edits are saved by onlyoffice, I am very interested. I noticed that each time I create a document, a folder is created in / var / www / nextcloud / data / appdata_ocd8kznrb8xp / documentserver_community
But you use onlyoffice AND community document server application.
I have these errors in the logs but I dont know if there is a link :
stream_get_contents(): supplied resource is not a valid stream resource at /var/www/nextcloud/apps/documentserver_community/lib/Document/FontManager.php#67
fclose(): supplied resource is not a valid stream resource at /var/www/nextcloud/apps/documentserver_community/lib/Document/FontManager.php#66
Sabre\DAV\Exception\BadRequest: Expected filesize of 3166857 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2113536 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.
Very same issue here.
I fear I lost some data of a day of collaborative work due to tomorrow, as now I cannot open one of the documents anymore. It states loading 100% and than stops while nothing is synced to the fs with a similar serror massage as shown in the post above me.
If I now copy the file, I get an empty one as copy.
I had a similar case before, where the last changes were only saved after duplicating the document.