[Samba] "write_data: write failure in writing to client" with
directories copy
emmanuel musso
emmanuel.musso at iut-tlse3.fr
Fri Sep 7 09:22:10 GMT 2007
Hi
Sometimes, when a windows xp sp2 client copy files frome a map share to another
map share on my samba server, copy stop with a message (name network failed) on
client
The files are not copied or damaged on destination directory
The 2e time client copy, all is ok
size and number of files is not important
In university, files copy is very used by students
trace on log:
evenement syslog:
[2007/09/07 07:57:14, 0] lib/util_sock.c:read_data(534)
Sep 7 07:57:14 nestor smbd[10923]: read_data: read failure for 4 bytes to
client . Error = Connexion ré-initialisée par le correspondant
Sep 7 07:57:14 nestor smbd[10923]: [2007/09/07 07:57:14, 0]
lib/util_sock.c:write_data(562)
Sep 7 07:57:14 nestor smbd[10923]: write_data: write failure in writing to
client Error Relais brisé (pipe)
Sep 7 07:57:14 nestor smbd[10923]: [2007/09/07 07:57:14, 0]
lib/util_sock.c:send_smb(769)
Sep 7 07:57:14 nestor smbd[10923]: Error writing 75 bytes to client. -1.
(Relais brisé (pipe))
The four first lines are write in syslog since a lot of time, but the last lines
(write failure) are write recently, with client copy problem
The problem exist on two sites
My server: samba 3.025b on debian testing, with ldap backend
my smb.conf
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
os level = 95
smb ports = 137 138 139
workgroup = ge2i
server string = %h server (Samba %v)
wins support = yes
dns proxy = no
name resolve order = wins lmhosts host bcast
unix charset = ISO8859-15
#### Networking ####
passdb expand explicit = no
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
####### Authentication #######
security = user
encrypt passwords = true
passdb backend = ldapsam:LDAP://127.0.0.1
obey pam restrictions = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
########## Domains ###########
domain logons = yes
logon path =
logon drive = H:
logon home = \\%N\%U
logon script = logonetu.bat
##########LDAP################
ldap admin dn = cn=admin,dc=ge2i,dc=iut-tlse3,dc=fr
#ldap admin dn = cn=samba,ou=DSA,dc=idealx,dc=org
ldap suffix = dc=ge2i,dc=iut-tlse3,dc=fr
ldap group suffix = ou=Groups
ldap user suffix = ou=People
ldap machine suffix = ou=Computers
#ldap idmap suffix = ou=Idmap
add user script = /usr/sbin/smbldap-useradd -m "%u"
#ldap delete dn = Yes
delete user script = /usr/sbin/smbldap-userdel "%u"
add machine script = /usr/sbin/smbldap-useradd -t 0 -w "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
#delete group script = /opt/IDEALX/sbin/smbldap-groupdel "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
########## Printing ##########
load printers = yes
printing = cups
printcap name = cups
enable privileges = yes
############ Misc ############
socket options = TCP_NODELAY IPTOS_LOWDELAY IPTOS_THROUGHPUT SO_KEEPALIVE
SO_RCVBUF=8192 SO_SNDBUF=8192
utmp = yes
oplocks = no
kernel oplocks = no
level2 oplocks = no
#======================= Share Definitions =======================
# rajout suite upgrade 3.0.25a
msdfs root = yes
[homes]
comment = Home Directories
browseable = no
writable = yes
create mask = 660
directory mask = 2770
inherit owner = yes
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = yes
writable = no
share modes = no
write list = @"Domain Admins" emusso
[profiles]
comment = People profiles
path = /home/samba/profils
guest ok = no
browseable = no
writable = yes
create mask = 666
directory mask = 2777
inherit owner = yes
profile acls = yes
csc policy = disable
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
public = no
writable = no
create mode = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
write list = root, @"Domain Admins"
[wrk]
comment = Volume de travail
path = /home/wrk
browseable = yes
read only = no
inherit owner = yes
inherit permissions = yes
inherit acls = yes
ideas ?
Thanks
Best regards
--
Emmanuel musso
technicien informatique
I.U.T. Paul Sabatier
Dépt Génie électrique 0562258241
Service informatique 0562258025
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the samba
mailing list