Comments (57)
@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:
https://github.com/ONLYOFFICE/server/blob/89db803eb5f1722ba84cb3ac9e94c503d434f6ea/DocService/sources/DocsCoServer.js#L730
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?
from onlyoffice-nextcloud.
@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.
from onlyoffice-nextcloud.
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.
from onlyoffice-nextcloud.
Can we get a feedback on the implementation of the "forcesave" command? Is it planned for soon or does it already exist?
from onlyoffice-nextcloud.
@LinneyS we are facing the same issue. The current behavior is not very obvious for my users.
It is currently a blocker for us, because we rely on the files being uptodate for being downloaded.
from onlyoffice-nextcloud.
@b3nis and @biva, please note that if you are using preinstalled Community Document Server integrated in Nextcloud Hub, you need to contact Nextcloud support team, as this application was developed by their team. Please refer to this post on our forum.
from onlyoffice-nextcloud.
@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).
We were getting the problem with OnlyOffice five months ago and had to give up using it. When NC18 was released with CDS we tried that to see if they had fixed the bug - but it was still happening.
Are you saying that there is a version of OnlyOffice available which has fixed the problem - if so where can we find it to install locally please?
from onlyoffice-nextcloud.
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.
from onlyoffice-nextcloud.
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.
Other solutions (Collabora, Office365, GoogleDocs) are available and work properly.
This (ex-)user has gone away, and I encourage others to do likewise...
from onlyoffice-nextcloud.
@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.
from onlyoffice-nextcloud.
@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 "sessionidle":
parameter in default.json config of the Document Server that is responsible for closing editing sessions due to users' inactivity. Its value can be set, for example, in the following way: "1h" or "1d" or "50m" etc.
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!
Unfortunately, we cannot tell you the exact reason without analyzing additional information about the issue. Could you please specify the following:
- OS of the server where ONLYOFFICE Document Server is installed;
- Its installation type (docker or deb/rpm);
- Check the logs of the Document Server for any error entries.
from onlyoffice-nextcloud.
I think the default.json gets removed during the build process:
https://github.com/nextcloud/documentserver_community/blob/d6a76d2ceae02f3c2cee087971147ee14e4ba0ef/Makefile#L20
Afaik it should have been located in .../documentserver_community/3rdparty/onlyoffice/documentserver/server/Common/config/default.json
So I don't think that this will work.
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...
https://help.nextcloud.com/t/change-cron-job-interval-from-15-minutes-to-50-minutes/66436/4
but please notice: https://help.nextcloud.com/t/running-background-jobs-every-minute-instead-of-15-mins/37414/7
from onlyoffice-nextcloud.
@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
from onlyoffice-nextcloud.
Hi all!
Try Keep intermediate versions when editing in settings in v6.0.0
from onlyoffice-nextcloud.
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)
from onlyoffice-nextcloud.
You can setting the config forcesave.
Ref: https://api.onlyoffice.com/editors/save#forcesave
from onlyoffice-nextcloud.
I came here by searching for an error in our setup.
After making an update to nextcloud, our files didn't update after editing with onlyoffice documentserver. Our setup is: we have both in seperate docker containers running on a proxmox vm and an extra nginx-vm that does the ssl-termination as reverse proxy.
After 3 months working on one specific file, it took a very long time to open the file. Then we realised, that the file stored in nextcloud was 3 months old and we found errors in docker log in the onlyoffice docker container:
[WARN] nodeJS - sendServerRequest returned an error: docId = 19352967; data = {"error":1}
[WARN] nodeJS - storeForgotten: docId = 19352967
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 /etc/hosts
so that nextcloud finds onlyoffice.
We could solve this issue to our installation, but there remains two questions:
Where does the node part of onlyoffice store the temporary files? (I want to check if every file is transfered to nextcloud.)
Are other files automatically transfered to nextcloud when the connection is back again or do I have to open every file that was changed since the last 3 months?
Thanks.
from onlyoffice-nextcloud.
Any news ?
from onlyoffice-nextcloud.
Hello @Floflobel, please specify some additional information:
- Send us a screenshot of the address settings of ONLYOFFICE integration app from Nextcloud;
- Please send us also logs of the Document Server and Nextcloud. You may send them to [email protected] with a note "For technical support";
- If I understood it right, you are also using ONLYOFFICE Community Edition?
If we open this document with onlyoffice there are no problem it is good up to date.
from onlyoffice-nextcloud.
from onlyoffice-nextcloud.
@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.
from onlyoffice-nextcloud.
- I completed all the fields missing with the url in the parameters nextcloud
- I restarted my lxd container with onlyoffice
- I restarted 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.
The file is shared with several users and I see that a user is permanently connected, could the problem come from here?
from onlyoffice-nextcloud.
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.
- Is it possible to add a function that regularly forces the backup in nextcloud?
- There is a backup function in onlyoffice but it does not seem to save the file on nextcloud. Is it possible that when you click on the button "Save", the document is well saved in nextcloud?
from onlyoffice-nextcloud.
@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?
from onlyoffice-nextcloud.
I am having the same issue, but my setup is different.
Both my NextCloud server and the Document Editor server run Fedora 29, where the OnlyOffice editor runs in its Docker container. For both, I am using a Let's Encrypt certificate, this seemed to be related to other similar errors. I've copied fullchain.pem
into onlyoffice.crt
, and privkey.pem
into onlyoffice.key
in the document editor's data directory, mounted outside the container.
On the NextCloud front, I am receiving this error:
{"reqId”:”-snip-”,”level":3,"time":"2018-11-13T17:43:16+00:00","remoteAddr”:”-snip-,”user":"--","app":"onlyoffice","method":"POST","url":"\/nextcloud\/index.php\/apps\/onlyoffice\/track?doc=…”,”message":"Track with empty or not correct hash: Signature verification failed","userAgent":"--","version":"14.0.3.0”}
I hope this helps.
from onlyoffice-nextcloud.
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?
from onlyoffice-nextcloud.
@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.
from onlyoffice-nextcloud.
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.
from onlyoffice-nextcloud.
@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:
'onlyoffice' =>
array (
"jwt_secret" => "secret",
"jwt_header" => "header"
)
Secret and header should match the corresponding values from local.json.
from onlyoffice-nextcloud.
@alexanderonlyoffice I do not have JWT enabled, but the issue seems to have disappeared for me overnight, I did not touch anything...
from onlyoffice-nextcloud.
Is it possible to add a function that regularly forces the backup in nextcloud?
We are working on the implementation of the command "forcesave"
from onlyoffice-nextcloud.
Is it possible to add a function that regularly forces the backup in nextcloud?
We are working on the implementation of the command "forcesave"
@LinneyS
Will the command "forcesave" be done regularly even if the document is open or only a manual option?
from onlyoffice-nextcloud.
Hey @LinneyS, have you got any news on this issue and implementation of the command "forcesave" ?
from onlyoffice-nextcloud.
Hello @LinneyS, any news on this important request ?
from onlyoffice-nextcloud.
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).
from onlyoffice-nextcloud.
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!
from onlyoffice-nextcloud.
@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?
from onlyoffice-nextcloud.
@alexanderonlyoffice Thank you for your answer, it is important for us to be kept informed of the progress of this problem.
from onlyoffice-nextcloud.
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.
from onlyoffice-nextcloud.
@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.
from onlyoffice-nextcloud.
Same problem here.
Found command services documentation:
https://api.onlyoffice.com/editors/command
including command "forcesave" - but I did not figured out where to find my document key?!
Tried it with URL-part: Could send request, but get {"error": 6} which states "Invalid token"...
from onlyoffice-nextcloud.
Hello @Floflobel,
I'm afraid we don't have any publicly available documentation about Document Server config files.
@henhuy
If you have JWT enabled on Document Server's side, you should sign all requests to the command service with JWT: https://api.onlyoffice.com/editors/signature/request
from onlyoffice-nextcloud.
Was there any further update on this topic? To me it looks similar to #187 where in fact the issue is the same that onlyoffice doesn't write anything back to nextcloud. (which results in downloading only an empty document, if downloaded out of the file browser in nextcloud)
from onlyoffice-nextcloud.
Hello, any news on this issue? Still happening on NC 18.0.3 with all updated apps :( Or any workaround? Thanks!
(also, for reference, the issue on the Nextcloud forum: https://help.nextcloud.com/t/documents-not-being-saved-when-editing-nextcloud-18-local-community-document-server-plugin/71382)
from onlyoffice-nextcloud.
@biva There is a solution to allow the file to be closed if the user has not been active for some time and therefore force it to be saved once all users have closed the file.
Also the "force save" feature is provided but it is apparently not a priority over some of the new features according to the presentation I saw at Fosdem.
from onlyoffice-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:
drwxr-xr-x 3 www-data www-data 4096 Feb 24 16:33 3rdparty
drwxr-xr-x 2 www-data www-data 4096 Feb 24 16:33 appinfo
drwxr-xr-x 20 www-data www-data 4096 Feb 24 16:33 assets
-rw-r--r-- 1 www-data www-data 64 Feb 24 16:33 AUTHORS.md
-rw-r--r-- 1 www-data www-data 4487 Feb 24 16:33 CHANGELOG.md
drwxr-xr-x 2 www-data www-data 4096 Feb 24 16:33 controller
drwxr-xr-x 2 www-data www-data 4096 Feb 24 16:33 css
drwxr-xr-x 2 www-data www-data 4096 Feb 24 16:33 img
drwxr-xr-x 2 www-data www-data 4096 Feb 24 16:33 js
drwxr-xr-x 2 www-data www-data 4096 Feb 24 16:33 l10n
drwxr-xr-x 2 www-data www-data 4096 Feb 24 16:33 lib
-rw-r--r-- 1 www-data www-data 34520 Feb 24 16:33 LICENSE
-rw-r--r-- 1 www-data www-data 14811 Feb 24 16:33 README.md
drwxr-xr-x 2 www-data www-data 4096 Feb 24 16:33 screenshots
drwxr-xr-x 2 www-data www-data 4096 Feb 24 16:33 templates
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.
(running on Ubuntu Server 19.10 together with nginx, letsencrypt and mariadb in docker as well).
Thanks in advance!
from onlyoffice-nextcloud.
Thanks @Floflobel and @alexanderonlyoffice for the info. I have 2 questions though:
- I noticed that the "real" saving happens only every 15 minutes (at 9:00, 9:15, 9:30, ...). Is there a way to reduce this 15 minutes period to 1 minute? (I'm not the only one, it's mentioned here as well, with a period of 30 minutes: nextcloud/documentserver_community#12 (comment))
- Where should I find
default.json
to reduce the inactivity time withsessionidle
parameter? I'm using the Community Document Server App and the OnlyOffice App on Nextcloud and there's nothing under/etc/
from onlyoffice-nextcloud.
@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.
I can also not find the default.json.
from onlyoffice-nextcloud.
@b3nis did you close the tab? the browser? Did you restart your server?
from onlyoffice-nextcloud.
Thanks @alexanderonlyoffice and @szaimen ! We'll continue the discussion in nextcloud/documentserver_community#12
from onlyoffice-nextcloud.
Are you saying that there is a version of OnlyOffice available which has fixed the problem - if so where can we find it to install locally please?
Could you please specify what kind of problem do you mean.
Just make sure that you have the latest version of the Document Server installed and send us any information about the above mentioned mentioned issue.
Feel free to create a new issue if the symptoms are different.
from onlyoffice-nextcloud.
There is still the ticket nextcloud/documentserver_community#100 open, which I think deals with the same issue
from onlyoffice-nextcloud.
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.
from onlyoffice-nextcloud.
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...
from onlyoffice-nextcloud.
@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
from onlyoffice-nextcloud.
Hi,
I have tried this on Nextcloud 20, with the docker image onlyoffice/documentserver.
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.
from onlyoffice-nextcloud.
Hi, please check my detailed debug, maybe the same source of the problem: nextcloud/documentserver_community#170 (comment)
from onlyoffice-nextcloud.
Related Issues (20)
- Some Office documents are not automatically opened with Only Office in the browser, but can only be downloaded HOT 2
- I want to connect NextCloud and OnlyOffice using the internal IP of NAT configuration
- Changes not saved back to Nextcloud HOT 12
- Open app full screen HOT 1
- Problem when specifying the IP address of the OnlyOffice Docs Server HOT 2
- Version History in shared view HOT 3
- Trouble Previewing XLSX Sheets Tabs on Mobile in Integrating OnlyOffice with Nextcloud
- impossible to configure the app HOT 8
- Extension seems to break opening Office files on Mobile Apps HOT 1
- OnlyOffice Connector only accepts ether DNS or local Ip address only. Can't use one for the other or we'll recieve an 403 Forbidden error HOT 2
- OnlyOffice Document Editor (web) doesn’t resume auto-save after being offline HOT 2
- Mail merge from Nextcloud contacts HOT 1
- Size of onlyoffice editor embed is scrolling - you can scroll the document editor ribbons out of the screen HOT 7
- After Upgrade to 9.1.0 Nextcloud not connected to onlyoffice server HOT 60
- After Upgrade to 7.10 Nextcloud not connected to onlyoffice server HOT 2
- PHP Error after upgrading to 9.1.2 HOT 1
- After Upgrade to 9.1.2 from 9.0.0 error in log ""Could not find resource onlyoffice/js/desktop.js" HOT 13
- Cannot edit/open documents (only download) via shared URL after upgrade to 9.1.2 HOT 9
- Support for Nextcloud 29 HOT 1
- can't save saettings of nextcloud client HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onlyoffice-nextcloud.