OpenOffice freezes when opening documents from NFS-server (in SuSe 10.1)
SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OpenOffice freezes when opening documents from NFS-server (in SuSe 10.1)
First of all I have to remind here, that I have commented out the lines concerning "SAL_ENABLE_FILE_LOCKING" from the soffice-script. This is not the same issue, what many people have been posting. And I have only seen this problem with SuSe 10.1, with all other distros it works with the same OpenOffice.org-version (2.0.2).
NFS-server
SimpleTech SimpleShare NAS with the latest firmware.
NFS-clients
Mandriva 2006 and SuSe 10.1. The NFS-drive is mounted with the following options: rw,nosuid,hard,intr,rsize=8192,wsize=8192
The problem
When trying to open anything from the mounted NFS-drive with OpenOffice.org in SuSe 10.1, it loads up to the last point in the splash screen's progress bar, then completely freezes. 10 - 20 minutes later I command "killall soffice.bin", as it hasn't gone anywhere. I have tried to open the documents by double-clicking it from a file manager (Konqueror/Nautilus), from the command-line ("ooffice document", will not give any errors or debug-info) and with File->Open from OpenOffice.org itself, all with the same result.
In Mandriva OOo 2.0.2 (installed from the official OOo-site, the RPM-packages) opens documents from the NFS-drive perfectly, but not in SuSe. Tried also uninstalling the SuSe OOo-packages and installing the same RPM-packages from the official OOo-site, what I use in Mandriva. Same result.
Conclusion
I can open local documents, no problem there. Haven't tried Samba. All other programs than OpenOffice.org work perfectly with the NFS-drive in SuSe 10.1. Opening files with OpenOffice.org from NFS-drives won't work, but this only happens in SuSe 10.1. This is a serious issue that prevents me from switching to SuSe. Would be really grateful if someone has a slightest idea of what might be wrong here.
Solution
Add "nolock"-option to NFS-mount options on the client side. So:
Code:
rw,nosuid,hard,intr,nolock,rsize=8192,wsize=8192
Also remember to comment out the "SAL_ENABLE_FILE_LOCKING"-lines (2 of them) from /usr/lib/ooo-2.0/program/soffice. That is, of course, unless you are really using NFS-locking.
Unfortunately not. OpenOffice doesn't give me any errors, like in that bug's description. And that bug was "resolved in beta 4".
Now I've found out that sometimes it does open the document from an NFS-drive. But after like 25 - 40 minutes! Even if the document has just one line of text and is not even nearly 100 kb big. It is definitely not usable like this. Saving the document again takes just as long.
do have a change to test it with a linux NFS server ?
Surprisingly it works when I set a Mandriva-PC as an NFS-server! But this NAS-device also runs internally Linux, and the Mandriva-computers have no problems whatsoever opening OpenOffice.org-documents from there, so the problem is somehow still related to SuSe. And changing the NAS-device is no option anyways.
The "nolock"-option for some reason beyond my understanding fixed the whole thing! Why Mandriva doesn't require that, is completely unknown to me. After all, I HAD disabled NFS-locking ("SAL_ENABLE_FILE_LOCKING" commented out) already from OpenOffice itself and this was enough with Mandriva.
At first I thought the "nolock"-option did nothing, but I soon noticed that it was still getting the old automounter-settings from the NSCD-cache. I am using LDAP in the network, which also provides the automounter with the necessary mountpoints to the NAS-device.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.