Comments (5)
I have the same problem.
The connector or office must update file lock but it does not happen.
X-WOPI-Override – The string REFRESH_LOCK. Required.
from officeonline.
Hello,
I have the same problem too.
Do you find solution or workaround?
from officeonline.
I'm seeing that the locks in the oc_officeonline_locks
table are being refreshed every ten minutes, extending the lock by 30 minutes. However, the token never gets extended. When the token expires, you can't edit anymore. However, since the file is still locked, we start seeing locking errors as others try to re-open and edit the file after the token expires. Expired tokens only seems to be removed from oc_officeonline_wopi
when a new token is requested. Also, it seems that a lot of the time the lock isn't removed until the original opener of the file closes the window. This causes havoc periodically for us as we end up with files that stay locked data is lost as it seems there is fighting over the locks.
Currently, my workaround is a few things:
- I upgraded to PHP 7.4 and REFRESH_LOCK started getting called.
- I edited
lib/Db/WopiMapper.php
and changedTOKEN_LIFETIME_SECONDS
to a longer lifetime (I set it to 4 hours). - I put together a quick script that runs every 5 minutes and removes entries from
oc_officeonline_locks
that don't have a matching token inoc_officeonline_wopi
.
So far, this allows the file to be opened long enough that it doesn't die in the middle of editing during group meetings. The 4 hour setting seems to set an upper-limit on the time the file can be opened, but because of the lock cleanup script I'm using, we don't seem to be having weird locking issues and data loss.
My edits are just a bunch of hacks to get this working in my organization. What I think needs to be done:
- The token lifetime should be extended along with the lock lifetime when REFRESH_LOCK is called.
- Every time
oc_officeonline_locks
andoc_officeonline_wopi
is updated, locks should be removed when the associated token is no longer being used in the wopi table. Also, all expired tokens should be removed from the wopi table whenever the table is read or written.
I haven't had the time to try editing the app to how these changes would affect it.
Also, I take no responsibility as to whether these would work or not in your setup. I just know that since I implemented these changes a week ago, we haven't had any errors or data loss in our configuration, and that was happening almost every day before.
from officeonline.
Thank you.
I tried your workaround. It helped.
Now the documents do not fall off during the meeting.
from officeonline.
Let's track this in #155
from officeonline.
Related Issues (20)
- 2.1.0 on nextcloud 28.0.2 creation menu not in local language HOT 3
- 2.1.0 on nextcloud 28.0.2 not work on share link HOT 1
- make the top bar only one height (move / remove office online logo)
- officeonline 2.1.0 does not work with public links on Nextcloud 27.1.6 HOT 1
- Option to specify secondary Office server in farm
- Shared links do not allow editing or preview HOT 5
- Error when opening an office document with office online over an public link HOT 4
- other people are here never clear out HOT 2
- Office-Online is not locking files which causes conflicts
- Unable to open pptx files
- conflict with Nextcloud Office aktivated
- Still annot open documents shared by link HOT 17
- Online editor is not available (file is downloaded instead of opening in online editor) HOT 6
- I have a problem
- Files can't be opened in groupfolder without sharing option
- Failed to retrieve file information due to User-Agent
- Office Online Integration window within a chat overlaps with following messages HOT 4
- After configuring the Office Online plugin for Nextcloud, I am unable to open docx, xlsx, and pptx files properly. HOT 2
- Optional parameter $forceIcon declared before required parameter $mode HOT 1
- Exception Could not find urlsrc in WOPI putRelativeFile failed when saving to ZIP via ONLYOFFICE.
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 officeonline.