-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document is not saved in nextcloud #21
Comments
Any news ? |
Hello @Floflobel, please specify some additional information:
|
@Floflobel, as you use Document Server which is installed as a part of the Community Edition, you need to add virtual path of the Document Server to the address in Nextcloud settings, because Community Server of the Community Edition works as proxy and redirect all requests to the Document Server. Example: https://your_portal_address/ds-vpath/ Please also remember to check if JWT is enabled in Document Server. If yes, JWT should be enabled in Nextcloud. |
The file is still not backed up for 7 days. I tried to force the backup directly into onlyoffice but it did not do anything. |
I performed the test to let a user permanently logged on a document. I made some changes on it, then closed the document everywhere except on one user. In fact, the file is not saved in nextcloud until all the users close the document. |
@Floflobel, the file won't be finalized until all editing session are closed. Is there any error message when clicking on the 'Save' button on the page with ONLYOFFICE integration app in Nextcloud? |
I am having the same issue, but my setup is different. On the NextCloud front, I am receiving this error:
I hope this helps. |
Hello @Yoshi2889, have you checked the accessibility of Nextcloud and Document Server for each other using wget command? Check the accessibility of Nextcloud for Document Server from inside the container. Did you use this instruction (Installation of SSL certificates section) to install certificates to the Document Server? |
@alexanderonlyoffice Yes, but it is a real problem that generates a loss of data. I have no error when I click on the button "save" in onlyoffice. |
Both servers can see each other and can receive data from each other. I've followed the https instructions on that page like I described. If I use a browser to open the onlyoffice "it's working" page it uses the proper certificate and doesn't complain about it being invalid or anything. I've even created a new container and now the nextcloud error is gone and there isn't anything logged in either server, but it still doesn't work. |
@Floflobel, please turn on extended logging for Nextcloud logs, reproduce the issue and send us full log or a part for the period when the issue was reproduced. Instruction can be found here. @Yoshi2889, please specify if JWT is enabled in Document Server and Nextcloud. You can check it in local.json in /etc/onlyoffice/documentserver/. If yes, please add the following section to config.php of Nextcloud:
Secret and header should match the corresponding values from local.json. |
@alexanderonlyoffice I do not have JWT enabled, but the issue seems to have disappeared for me overnight, I did not touch anything... |
We are working on the implementation of the command "forcesave" |
@LinneyS |
Hey @LinneyS, have you got any news on this issue and implementation of the command "forcesave" ? |
Hello @LinneyS, any news on this important request ? |
As pointed out in #118 the problem might be hot-fixed by disabling the Versions App (in particular when the files to edit are located on an external storage). |
@LinneyS we are facing the same issue. The current behavior is not very obvious for my users. |
Can we get a feedback on the implementation of the "forcesave" command? Is it planned for soon or does it already exist? |
Still not using onlyoffice because of this issue, can we provide some Help? Do you think is issue could be implemented, by some external Person? Or is it to complicated? Some Feedback would be great! |
@alexanderonlyoffice did i get it right: you suggest that this is a configuration issue and it should actually work in the current version that a document is saved BEFORE all clients have closed it? |
@Floflobel, we apologize for the delayed response. We are still working on the implementation of forcesave feature in integration with Nextcloud. Unfortunately, I cannot tell you the exact time frames, as there are some technical issues with its implementation. @j0hj0h, please specify what issue exactly you meant under 'this'. At the moment the final version of the file is built only when all editing sessions are over. |
@alexanderonlyoffice Thank you for your answer, it is important for us to be kept informed of the progress of this problem. |
Can you please confirm that, if multiple people are editing a document with OnlyOffice, the file in Nextcloud is only updated when the last person closes their edit window? And can you define what closing their edit window means, technically? For instance, if someone opened a document on 29 October, and kept the document open on their desktop computer until 20 December, then there was an Internet routing problem between them and the Nextcloud server such that they couldn't reach the server, and they closed their browser and cleared their browser cache (in an attempt to reconnect), would all changes to the document since 29 October be lost? If so, that would explain what just happened to us, and why we no longer have any records of our meeting minutes since 29 October! I think this is a serious flaw, and have had to uninstall OnlyOffice as a result. I am very interested in whether/when this is going to be fixed. |
@nikkilocke, yes, the version of the file is built in 10 seconds after the last user has leaves the editing session (closes the tab with the file in browser), then it is saved in the storage. All changes to the file are stored in Document Server's cache at the moment of editing till the editing is over. If there is an Internet disconnect, it is considered as tab closing and the version is built. There is also one mechanism preventing from data loss: if the storage is inaccessible at the moment when the file is ready to be saved, the file will be saved in forgotten folder. For deb/rpm package installation it is placed in /var/lib/onlyoffice/documentserver/App_Data/cache/files/ There is one more option for now except force saving - it is
Unfortunately, we cannot tell you the exact reason without analyzing additional information about the issue. Could you please specify the following:
|
@alexanderonlyoffice Where can I find documentation on all the parameters in the .json files (default.json, local.json, production.json). I didn't know the "sessionidle" option and I haven't seen it documented. After some tests this function temporarily solves the problem of saving in nextcloud. |
I have the same issue - already lost one document and some content in another one. I cannot find the default.json file you are talking about @alexanderonlyoffice - the only content of the OnlyOffie folder is:
Running Nextcloud with the official docker version, updated to 18.0.3, and same behaviour. Of course running latest version of OnlyOffice and Document Server. Thanks in advance! |
Thanks @Floflobel and @alexanderonlyoffice for the info. I have 2 questions though:
|
@biva, same for me. But it doesn't save for me at all. And it looks likes I am in the document many times when opening and closing it. I would love to have the capacity of, like, 4 ppl but I don't. |
@b3nis did you close the tab? the browser? Did you restart your server? |
I think the default.json gets removed during the build process: Afaik it should have been located in BTW: you can find the default.json here https://github.com/ONLYOFFICE/server/blob/master/Common/config/default.json Concerning the saving every 15min: That sounds like the documentserver_community is dependent on the nextcloud cron interval. So if you can adjust that time to one minute it would maybe solve the problem... |
Thanks @alexanderonlyoffice and @szaimen ! We'll continue the discussion in nextcloud/documentserver_community#12 |
@alexanderonlyoffice I'm puzzled why this has been closed since the bug exists in onlyoffice as well as the communitydocumentserver (CDS) (which presumably inherited the bug from only office). |
Could you please specify what kind of problem do you mean. |
@ibnpetr The Problem is the following: Onlyoffice Documentserver is only sending a callback when all connections to the Documents are closed. This rises the following Problem: As long as people have the Document opened, when the Document gets downloaded from Nextcloud the document is not the same as the one opened. It is not clear, why no callback is send to Nextcloud, when the Editor "Saves" the Document to Onlyoffice. For me this method should also be called when the editor saves: This would call:
That are my findings so far, but I didn't have the time to dig deeper into it. Is there a reason why the hook is not executed everytime the editor saves? |
Experiencing the same issue (document not saved in nextcloud), with NC19, using the OnlyOffice app 4.2.0, and both, documentserver_community 0.1.5 as well as external documentserver 5.5.3.39. Following this comment the problem lies within the integration app, probably not sending call-backs where needed. Imho this issue should be repoened. |
I have the same problem I cannot save the documents edited by OnlyOffice, I only save it as a copy I can save it otherwise no changes will be saved. |
@alexanderonlyoffice could you reopen this Ticket? Still not solved and really annoying! We are still not using onlyoffice because of this. And I tell a lot of people not using onlyoffice because of this Bug. They would be your users not mine. This is not a Bug within nextcloud or nextcloud-plugin, but in the external Integration like i showed in #21 (comment) Thank you, Jannis |
The arrogance of closing a live issue that causes users to loose data and makes the product not fit for use says a lot about OnlyOffice's attitude. They don't understand so they close their eyes to the issue in the hopes it will go away. |
There is still the ticket nextcloud/documentserver_community#100 open, which I think deals with the same issue |
Which Imho is the wrong project to address. It's not a problem with nextcloud or the nextcloud onlyoffice plugin, it's a bug/not feature of the Onlyoffice document server. |
I can only agree. Do not seem like a crazy thing to fix and causes a lot of issues. I have lost data because of this... |
Hi all! |
@LinneyS Can you explain what this means exactly ("Keep intermediate versions when editing"), i.e. what the positive effects are now with OnlyOffice? Does this finally solve the force save problem? Thanks a lot |
@michaelflohr, "Keep intermediate versions when editing" option is responsible for saving the current state of the file by clicking on the 'Save' button while editing. This is exactly the force save feature, but with a different name. Here in our Blog https://www.onlyoffice.com/blog/2020/09/onlyoffice-connector-v-6-0-0-for-nextcloud-with-force-save-is-available/ is more information about this feature added in ONLYOFFICE connector version 6.0.0. |
Thanks for the implementation of the "force save" function which was a very important element for us to be able to use onlyoffice in production. I have a request that would solve a lot of problems. Is it possible to force save regularly all the documents being edited with this new function? (with a command line for example) |
Hi, Without the "keep intermediate", the document is saved in cached. After closing the document, it is saved for real when the cron job pass. For me, it is every 5 minutes. With this option, I still have the autosave and the cron job, but when I explicitly click on the save button, it pushes it back to Nextcloud. Now I can rely on this. Thanks a lot. I also try the Nextcloud documentserver App that embeds directly the documentserver. This option is effectless, and we still have autosave + cron. To force a sync, I need to run the occ documentserver:flush command. This is less usable than the Save button. I prefer to rely on explicit save to be sure it is sync, but having an autosaved just in case is reassuring. |
Hi, please check my detailed debug, maybe the same source of the problem: nextcloud/documentserver_community#170 (comment) |
You can setting the config forcesave. |
I came here by searching for an error in our setup.
If you find these errors, check your connection to nextcloud. In our case the nextcloud instance couldn't connect to onlyoffice. We had to add a line to Where does the node part of onlyoffice store the temporary files? (I want to check if every file is transfered to nextcloud.) Thanks. |
Hello,
I have a big problem with a specific document. The document is stored on nextcloud and is edited with onlyoffice-documentserver (5.1.5-59).
The file is shared with several people thanks to a link.
During the edition the document is not saved in in nextcloud the date of the last edition is several days before. While we are downloading the document, it is not up to date.
If we open this document with onlyoffice there are no problem it is up to date. However, we can download the latest change directly in nextcloud.
How do I may debug this problem? It is a specific problem on a single file.
The text was updated successfully, but these errors were encountered: