[Libreoffice-bugs] [Bug 93117] LibreOffice freezes when trying to access/open/read/write documents on NFS mounts

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Apr 3 18:00:20 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=93117

--- Comment #7 from rhardy at webcon.ca ---
This still happens with Libreoffice 6.3 on Ubuntu 19.10 and Ubuntu 18.04.

Please consider converting this into an enhancement request to make debugging
of this issue easier. The error messages in this case really should be improved
to help figure out what the heck is going on i.e. check permissions where you
are trying to save; Check NFS locking is working and how to do that; Try the
file locally to see if issue goes away.

This isn't an issue that an Unknown User has the file locked. It is an issue
that Libreoffice was unable to do locking at all where the file was being
written. This can quickly be found by copying the document you are trying to
open to a local volume say /tmp and seeing if you can open it there.

The "solution" where people turn off file locking is going to break a lot of
things and should NOT be recommended. Switching to NFSv4 is overkill and not
needed. I suspect differences in how locking is done on NFSv4 were why this
helped some users. 

The solution here is straight forward but not obvious unless you can see the
server logs. I could create my lock file manually for example
.~lock.document.odt. I was not having permission problems. 
What I was having was NFS locking issues. 
I eventually found on my server when I looked at dmesg I had entries like:
[67667.828919] lockd: cannot monitor ClientHostName

The solution was on client and on server I had to enable rpc-statd as root:
#  systemctl enable rpc-statd; systemctl start rpc-statd

That was enough to end the lockd errors and Libreoffice just worked as
expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200403/bf508657/attachment.htm>


More information about the Libreoffice-bugs mailing list