Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
10-19-2010, 07:46 AM
|
#1
|
Member
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474
Rep:
|
nfs read only issue
Hello,
I'am using nfs to mount different directories.
ODT Documents appears read only. When I open a document I get "odt document is locket for editing by UNKNOWN user".
The partition is rw, I can delete/modify all the other documents. The problem is only for ODT (open office).
I am using Ubuntu 10.10.
Other distribution could rw odt documents.
I think something is missing but I don't know what.
Any ideas?
Thanks
|
|
|
10-19-2010, 08:01 AM
|
#2
|
LQ Newbie
Registered: Mar 2008
Location: Poquoson, VA
Distribution: Ubuntu 10.04
Posts: 12
Rep:
|
Have you checked the file ownership and permissions?
Can you "Save As" another filename in that same directory?
|
|
|
10-19-2010, 08:18 AM
|
#3
|
Member
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474
Original Poster
Rep:
|
Permissions are ok. I'am the owner. I've also tried 777.
I can save files in that directory.
I suspect something from OpenOffice somehow.
The problem appeared when I upgrade from ubuntu 10.04 to 10.10. All other computers with the same configuratin can write the files on the nfs server.
|
|
|
11-05-2010, 06:45 AM
|
#4
|
Member
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474
Original Poster
Rep:
|
this is very strange. Over the Internet (port-forwarding) I can mount the share and have rw access to odt files, but from the LAN I can't (only ro access to odt fiels.
The files seems opened by another user. I can delete them if I want.
|
|
|
03-26-2011, 04:27 PM
|
#5
|
Member
Registered: Sep 2003
Location: Washington
Distribution: Mint, Ubuntu, Ubuntu studio
Posts: 83
Rep:
|
Did you ever solve this?
I am experiencing the same problem. I found someone using Slackware who said the problem comes from Open Office and the way it deals with NFS file locking. That article suggesting commenting out some lines in /usr/lib/openoffice/program/soffice, but this did not work for me. I also only have the problem with OO files, when I try to open or save them from or to my NAS, using nfs to mount the NAS on the local machine.
|
|
|
03-26-2011, 07:17 PM
|
#6
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
@ ddas
Hi ddas,
As I can understand you have configured a NFS server and you have configured a couple of NFS shares.
You are saying that you are able to r/w and open all files perfectly fine except ODT files. When you try to open ODT files on Ubuntu 10.10 machine you get an error message that the file has been locked by an unknown user. However, you are able to open ODT files from other distributions but not able to do it on Ubuntu.
Please let me know if you have tried to do "lsof | grep openoffice" to see which files are locked by open office on the mahcine. If it is not showing up the file as locked that you are trying to open then copy that file to local workstation and see if you are able to open it up locally because then it shouldn't be locked by anyone.
If it still doesn't open then there is something wrong with Open Office application on Ubuntu. If it opens fine then let us know so that we can start troubleshooting fron file lock/network perspective.
Note: You can find more information on lsof on: http://linux.about.com/library/cmd/blcmdl8_lsof.htm
Last edited by T3RM1NVT0R; 03-26-2011 at 07:19 PM.
|
|
|
03-26-2011, 11:33 PM
|
#7
|
Member
Registered: Sep 2003
Location: Washington
Distribution: Mint, Ubuntu, Ubuntu studio
Posts: 83
Rep:
|
solution
I did find a solution to this problem on another forum. In a nutshell, the problem resides with OpenOffice. To fix this problem in Ubuntu 10.10 with OpenOffice 3.2.1, I had to edit the file /usr/lib/openoffice/program/soffice. In this file there is a section that begins with the comment "#adjust environment". Comment out every line of the lengthy if statement all the way to its fi, which appears just above the line "if [ -z "$SAL_NOOPENGL" ]; then" Your result should look like this:
# adjust environment
#if [ -z "$SAL_ENABLE_FILE_LOCKING" ]; then
# case "$FILE_LOCKING" in
# auto)
# home_on_nfs "$@"
# if [ $? = 0 ]; then
# STAR_PROFILE_LOCKING_DISABLED=1
# export STAR_PROFILE_LOCKING_DISABLED
# fi
# file_on_nfs "$@"
# if [ $? = 0 ]; then
# SAL_ENABLE_FILE_LOCKING=1
# export SAL_ENABLE_FILE_LOCKING
# # for safety
# STAR_ENABLE_FILE_LOCKING=0
# export STAR_ENABLE_FILE_LOCKING
# else
# # file locking now enabled by default
# SAL_ENABLE_FILE_LOCKING=1
# export SAL_ENABLE_FILE_LOCKING
# fi
# ;;
# yes)
# SAL_ENABLE_FILE_LOCKING=1
# export SAL_ENABLE_FILE_LOCKING
# ;;
# no)
# SAL_ENABLE_FILE_LOCKING=0
# export SAL_ENABLE_FILE_LOCKING
#
# # for safety
# STAR_ENABLE_FILE_LOCKING=0
# export STAR_ENABLE_FILE_LOCKING
# STAR_PROFILE_LOCKING_DISABLED=1
# export STAR_PROFILE_LOCKING_DISABLED
# esac
#fi
|
|
1 members found this post helpful.
|
03-29-2011, 02:54 PM
|
#8
|
Member
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474
Original Poster
Rep:
|
I think it's bug from OO. Based on the version of OpenOffice it works or not. And the server has the same configuration always.
I've solved the problem with an upgrade.
|
|
|
03-29-2011, 03:10 PM
|
#9
|
Member
Registered: Sep 2003
Location: Washington
Distribution: Mint, Ubuntu, Ubuntu studio
Posts: 83
Rep:
|
OO owns this one
Yes, I agree, I believe the problem is with OO. I did not change anything in my local or server nfs config to fix this, only the config file from OO. A newer version of OO might indeed work better, I did not try that. I have also read that installing and using nfs v4 will fix this problem, but I did not try that either.
|
|
|
All times are GMT -5. The time now is 04:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|