[Samba] write_socket_data: write failure. Error = Broken pipe

Elias Gerber egerber at gmx.net
Tue Feb 19 13:22:03 GMT 2002


hello everybody.

i'm a newbie in linux and therefor in samba too, but already got some sort 
of problem: my machine is running perfectly, samba is working perfectly, 
but always in a period of about 10 days "samba" (or what else?) doesn't 
work anymore. if i try to connect to the shares on the linux-machine i get 
a timeout error in windows. in the /var/log/samba -file i've seen this 
error: "write_socket_data: write failure. Error = Broken pipe" (more of the 
log is at the bottom of the message). now someone told me that this error 
(broken pipe) is a clear signal that the ethernet device is out of order 
(or another hardware defect; hub, cable).... can you confirm this ? or 
might it be something else ? the (little bit more detailed) symptoms are:

- periodically the shares can't be reached (timeout error in windows). this 
happens every 10 - 15 days
- pinging the machine is no problem
- trying to log on to the machine via ssh gets a lot of timeout errors, but 
if i can log in once, everything works fine (no broken connections, no lag)
- restarting samba (using './samba restart') doesn't help
- rebooting the server helps (but is a very "nasty" solution)
- everything is on a 100mbit lan

i hope i've included the important information, if you need more infos 
please tell me.

greetz
elias gerber

[sorry for my bad english - i hope you understand what i tried to tell you ;( ]

little bit more from the log file comes here ('/var/log/samba'):

[2002/02/19 19:09:32, 1] lib/util_sock.c:client_name(1007)
Gethostbyaddr failed for 192.168.0.20
[2002/02/19 19:09:32, 0] lib/util_sock.c:write_socket_data(540)
write_socket_data: write failure. Error = Broken pipe
[2002/02/19 19:09:32, 0] lib/util_sock.c:write_socket(566)
write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2002/02/19 19:09:32, 0] lib/util_sock.c:send_smb(754)
Error writing 4 bytes to client. -1. Exiting
[2002/02/19 19:09:42, 1] lib/util_sock.c:client_name(1007)
Gethostbyaddr failed for 192.168.0.20
[2002/02/19 19:09:42, 0] lib/util_sock.c:write_socket_data(540)
write_socket_data: write failure. Error = Broken pipe
[2002/02/19 19:09:42, 0] lib/util_sock.c:write_socket(566)
write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2002/02/19 19:09:42, 0] lib/util_sock.c:send_smb(754)
Error writing 4 bytes to client. -1. Exiting
[2002/02/19 19:10:36, 1] lib/util_sock.c:client_name(1007)
Gethostbyaddr failed for 192.168.0.20
[2002/02/19 19:10:36, 0] lib/util_sock.c:write_socket_data(540)
write_socket_data: write failure. Error = Broken pipe
[2002/02/19 19:10:36, 0] lib/util_sock.c:write_socket(566)
write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2002/02/19 19:10:36, 0] lib/util_sock.c:send_smb(754)
Error writing 4 bytes to client. -1. Exiting
[2002/02/19 19:10:46, 1] lib/util_sock.c:client_name(1007)
Gethostbyaddr failed for 192.168.0.20
[2002/02/19 19:10:46, 0] lib/util_sock.c:write_socket_data(540)
write_socket_data: write failure. Error = Broken pipe
[2002/02/19 19:10:46, 0] lib/util_sock.c:write_socket(566)
write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2002/02/19 19:10:46, 0] lib/util_sock.c:send_smb(754)
Error writing 4 bytes to client. -1. Exiting




Elias Gerber
Sonnenbergrain 2
CH - 3013 Bern
egerber at gmx.net
+41 (0)76 382 63 47





More information about the samba mailing list