Urs Rau
2005-Apr-11 10:40 UTC
[Samba] 3.0.13 - word cannot complete the save due to a file permission error. for smb/NFS mounted dirs
I am using 3.0.13 and have temporarily run out of disk space on the main samba server, so I have NFS mounted some space from another machine. into a directory that is accessible under samba. When I try to save directly from ms word 2003 sp1 (and same from word 2000) it tells me: on the win98se and win xp pro sp2 clients: "Microsoft Office Word" Word cannot complete the save due to a file permission error. (I:\transfer\ursr\chidren\2005.doc) and on the server it logs [2005/04/11 11:03:06, 0] locking/posix.c:posix_fcntl_lock(659) on 32 bit NFS mounted file systems. [2005/04/11 11:03:07, 0] locking/posix.c:posix_fcntl_lock(657) posix_fcntl_lock: WARNING: lock request at offset 2147483538, length 1 returned [2005/04/11 11:03:07, 0] locking/posix.c:posix_fcntl_lock(658) an No locks available error. This can happen when using 64 bit lock offsets [2005/04/11 11:03:07, 0] locking/posix.c:posix_fcntl_lock(659) on 32 bit NFS mounted file systems. Now, this does sound a bit as if this was/is expected to go wrong. But if I save my document locally and then copy it with the same name and to the same dir on the server there is no issue. Is there anything I can do from the samba server to avoid this error? As from a unix perspective there is no permissions problem. Many thanks for any help or pointers with this. If a log with a higher debug would help let me know. Regards, PS: The nfs part is kernel: Linux 2.6.8-1.521.1omsmp #1 SMP Mon Sep 13 18:41:51 EDT 2004 i686 athlon i386 GNU/Linux and nfs-utils-1.0.6-22 -- Urs Rau Head of Operations Operation Mobilisation UK National Office
Jeremy Allison
2005-Apr-11 22:21 UTC
[Samba] 3.0.13 - word cannot complete the save due to a file permission error. for smb/NFS mounted dirs
On Mon, Apr 11, 2005 at 11:39:35AM +0100, Urs Rau wrote:> I am using 3.0.13 and have temporarily run out of disk space on the main > samba server, so I have NFS mounted some space from another machine. > into a directory that is accessible under samba. > > When I try to save directly from ms word 2003 sp1 (and same from word > 2000) it tells me: > > on the win98se and win xp pro sp2 clients: > > "Microsoft Office Word" > Word cannot complete the save due to a file permission error. > (I:\transfer\ursr\chidren\2005.doc) > > and on the server it logs > > [2005/04/11 11:03:06, 0] locking/posix.c:posix_fcntl_lock(659) > on 32 bit NFS mounted file systems. > [2005/04/11 11:03:07, 0] locking/posix.c:posix_fcntl_lock(657) > posix_fcntl_lock: WARNING: lock request at offset 2147483538, length > 1 returned > [2005/04/11 11:03:07, 0] locking/posix.c:posix_fcntl_lock(658) > an No locks available error. This can happen when using 64 bit lock > offsets > [2005/04/11 11:03:07, 0] locking/posix.c:posix_fcntl_lock(659) > on 32 bit NFS mounted file systems. > > Now, this does sound a bit as if this was/is expected to go wrong. But > if I save my document locally and then copy it with the same name and to > the same dir on the server there is no issue. > > Is there anything I can do from the samba server to avoid this error? As > from a unix perspective there is no permissions problem.If your nfs locking is broken you can add "strict locking = no" to the share definition exporting that part of the filesystem. That will prevent locking from occurring on read/write access. If it's still failing (and the nfs locking is *really* broken :-) you can add "locking = no" to the share definition. But that risks file corruption. Jeremy.