Wolfgang Kretzschmar
2004-Aug-30 10:21 UTC
[Samba] cannot access files after update samba 3.0.5 -> 3.0.6 (Redhat 6.2)
Redhat 6.2 kernel 2.2.14-12 Samba 3.0.6 compiled with ./configure --prefix=/usr/local/samba --localstatedir=/var/log/samba --with-lockdir=/var/lock/samba --with-privatedir=/etc/rc-abas.d --with-configdir=/etc/rc-abas.d --enable-debug I can list directories and write files on a samba share but cannot read files. This happens with Windows XP client or smbclient. After downgrading to 3.0.5 samba works fine again. It seems to be a Redhat 6.2 problem. On a second computer with Redhat 9 this problem does not occur. This line is written in log.smbd: [2004/08/27 18:29:01, 0] smbd/reply.c:send_file_readX(2122) send_file_readX: sendfile failed for file wk/xx (Das Argument ist ung?ltig). Terminating ("Das Argument ist ung?ltig" --> "invalid argument") and this with debug level 10: ... [2004/08/27 18:29:01, 3] smbd/process.c:switch_message(887) switch message SMBreadX (pid 15427) conn 0x833b760 [2004/08/27 18:29:01, 4] smbd/uid.c:change_to_user(193) change_to_user: Skipping user change - already user [2004/08/27 18:29:01, 10] locking/locking.c:is_locked(89) is_locked: brl start=0 len=16384 unlocked for file wk/xx [2004/08/27 18:29:01, 10] locking/posix.c:is_posix_locked(697) is_posix_locked: File wk/xx, offset = 0, count = 16384, type = READ [2004/08/27 18:29:01, 10] locking/posix.c:posix_lock_in_range(633) posix_lock_in_range: offset_out = 0, count_out = 16384 [2004/08/27 18:29:01, 8] locking/posix.c:posix_fcntl_lock(650) posix_fcntl_lock 25 5 0 16384 0 [2004/08/27 18:29:01, 8] lib/util.c:fcntl_lock(1646) fcntl_lock 25 5 0 16384 0 [2004/08/27 18:29:01, 8] locking/posix.c:posix_fcntl_lock(680) posix_fcntl_lock: Lock call failed [2004/08/27 18:29:01, 10] locking/locking.c:is_locked(101) is_locked: posix start=0 len=16384 unlocked for file wk/xx [2004/08/27 18:29:01, 0] smbd/reply.c:send_file_readX(2122) send_file_readX: sendfile failed for file wk/xx (Das Argument ist ung?ltig). Terminating ... but the file really is not locked by anyone else. The share is on a local harddisk. This is not a NFS re-export problem. Looks as if configure thinks that Redhat 6.2 supports some kind of locking but it does not. Regards Wolfgang Kretzschmar ABAS Software AG Karsruhe, Germany
Wolfgang Kretzschmar
2004-Aug-30 10:26 UTC
[Samba] cannot access files after update samba 3.0.5 -> 3.0.6 (Redhat 6.2)
Redhat 6.2 kernel 2.2.14-12 Samba 3.0.6 compiled with ./configure --prefix=/usr/local/samba --localstatedir=/var/log/samba --with-lockdir=/var/lock/samba --with-privatedir=/etc/rc-abas.d --with-configdir=/etc/rc-abas.d --enable-debug I can list directories and write files on a samba share but cannot read files. This happens with Windows XP client or smbclient. After downgrading to 3.0.5 samba works fine again. It seems to be a Redhat 6.2 problem. On a second computer with Redhat 9 this problem does not occur. This line is written in log.smbd: [2004/08/27 18:29:01, 0] smbd/reply.c:send_file_readX(2122) send_file_readX: sendfile failed for file wk/xx (Das Argument ist ung?ltig). Terminating ("Das Argument ist ung?ltig" --> "invalid argument") and this with debug level 10: ... [2004/08/27 18:29:01, 3] smbd/process.c:switch_message(887) switch message SMBreadX (pid 15427) conn 0x833b760 [2004/08/27 18:29:01, 4] smbd/uid.c:change_to_user(193) change_to_user: Skipping user change - already user [2004/08/27 18:29:01, 10] locking/locking.c:is_locked(89) is_locked: brl start=0 len=16384 unlocked for file wk/xx [2004/08/27 18:29:01, 10] locking/posix.c:is_posix_locked(697) is_posix_locked: File wk/xx, offset = 0, count = 16384, type = READ [2004/08/27 18:29:01, 10] locking/posix.c:posix_lock_in_range(633) posix_lock_in_range: offset_out = 0, count_out = 16384 [2004/08/27 18:29:01, 8] locking/posix.c:posix_fcntl_lock(650) posix_fcntl_lock 25 5 0 16384 0 [2004/08/27 18:29:01, 8] lib/util.c:fcntl_lock(1646) fcntl_lock 25 5 0 16384 0 [2004/08/27 18:29:01, 8] locking/posix.c:posix_fcntl_lock(680) posix_fcntl_lock: Lock call failed [2004/08/27 18:29:01, 10] locking/locking.c:is_locked(101) is_locked: posix start=0 len=16384 unlocked for file wk/xx [2004/08/27 18:29:01, 0] smbd/reply.c:send_file_readX(2122) send_file_readX: sendfile failed for file wk/xx (Das Argument ist ung?ltig). Terminating ... but the file really is not locked by anyone else. The share is on a local harddisk. This is not a NFS re-export problem. Looks as if configure thinks that Redhat 6.2 supports some kind of locking but it does not. Regards Wolfgang Kretzschmar ABAS Software AG Karsruhe, Germany
Gerald (Jerry) Carter
2004-Aug-30 14:16 UTC
[Samba] cannot access files after update samba 3.0.5 -> 3.0.6 (Redhat 6.2)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wolfgang Kretzschmar wrote: | It seems to be a Redhat 6.2 problem. On a second computer | with Redhat 9 this problem does not occur. ... | send_file_readX: sendfile failed for file wk/xx (Das Argument ist | ung?ltig). Terminating Try setting 'use sendfile = no' in [global] cheers, jerry - --------------------------------------------------------------------- Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "If we're adding to the noise, turn off this song"--Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBMzaDIR7qMdg1EfYRAjErAJ0djoeKRUIe1zxGE9mu8JaWReNjLgCg6rK8 i6nBKMIUF29AvKojBWZikIM=kjV2 -----END PGP SIGNATURE-----
Jeremy Allison
2004-Aug-30 16:08 UTC
[Samba] cannot access files after update samba 3.0.5 -> 3.0.6 (Redhat 6.2)
On Mon, Aug 30, 2004 at 12:25:53PM +0200, Wolfgang Kretzschmar wrote:> Redhat 6.2 > kernel 2.2.14-12 > Samba 3.0.6 > compiled with ./configure --prefix=/usr/local/samba > --localstatedir=/var/log/samba --with-lockdir=/var/lock/samba > --with-privatedir=/etc/rc-abas.d --with-configdir=/etc/rc-abas.d > --enable-debug > > > I can list directories and write files on a samba share but cannot read > files. This happens with Windows XP client or smbclient. After downgrading > to 3.0.5 samba works fine again. > > It seems to be a Redhat 6.2 problem. On a second computer with Redhat 9 > this problem does not occur. > > This line is written in log.smbd: > > [2004/08/27 18:29:01, 0] smbd/reply.c:send_file_readX(2122) > send_file_readX: sendfile failed for file wk/xx (Das Argument ist > ung?ltig). Terminating > > ("Das Argument ist ung?ltig" --> "invalid argument")Ah - sendfile() is now the default in Samba 3.0.6. It seems that RedHat 6.2 has sendfile, but a different version of the args we use. Simply turn off sendfile in the smb.conf for this system. Jeremy.