[Samba] OS X Hang Issue
Ben Blakely
blakely at krellinst.org
Mon Aug 2 21:41:41 GMT 2004
Hello List,
I have a bit of a strange problem with an OS 10.3.3 XServe (Samba
3.0.2) that I've inherited from a previous sysadmin ;). It's a bit hard
to describe but I'll do my best and include applicable log files and the
smb.conf.
Ok, first of all this machine is bound to our Active Directory domain
and authenticates users there (security = ads). It uses the Windows
2000 DC as a DNS server as well (both forward and reverse zones exist
and are complete). When browsing this machine from another box on the
domain, browsing is somewhat slow to respond and right clicking on a
file locks up the explorer for a varying amount of time before showing
the operations menu. When opening a file (assuming you can do so
through the browsing delays), everything seems to work all right unless
it is an abnormally large file (in which case it locks the client
machine, in some cases enough to require a hard reboot with the power
switch). The only consistency in this whole mess is that when saving
files of _any_ size, the program the file is opened with locks and
eventually bombs with a "Delayed Write Failed" error after anywhere from
45 seconds to 60 minutes. The data that has been changed is not saved.
Another oddity is that a machine that is _not_ on the domain has no
problems whatsoever. The problem exists for all users and all client
machines on the domain. The following lines appear in the server's
client log file (log./machinename/):
==================================
[2004/08/02 14:37:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:get_peer_addr(968)
getpeername failed. Error was Socket is not connected
[2004/08/02 14:37:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:write_socket_data(404)
write_socket_data: write failure. Error = Broken pipe
[2004/08/02 14:37:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:write_socket(429)
write_socket: Error writing 4 bytes to socket 17: ERRNO = Broken pipe
[2004/08/02 14:37:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:send_smb(621)
Error writing 4 bytes to client. -1. (Broken pipe)
[2004/08/02 14:47:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:get_peer_addr(968)
getpeername failed. Error was Socket is not connected
[2004/08/02 14:47:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:write_socket_data(404)
write_socket_data: write failure. Error = Broken pipe
[2004/08/02 14:47:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:write_socket(429)
write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2004/08/02 14:47:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:send_smb(621)
Error writing 4 bytes to client. -1. (Broken pipe)
==================================
log./machineIP /is blank.
In log.smbd we have:
==================================
[2004/08/02 14:37:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:set_socket_options(160)
[2004/08/02 14:37:48, 0]
/SourceCache/samba/samba-56/samba/source/lib/util_sock.c:get_peer_addr(968)
==================================
Which makes sense and corresponds to the errors in the machine log. The
file log.nmbd contains nothing.
Below is the server's smb.conf:
==================================
[global]
workgroup = KRELLINST
display charset = UTF-8-MAC
print command = /usr/sbin/PrintServiceAccess printps %p %s
lprm command = /usr/sbin/PrintServiceAccess remove %p %j
security = ads
name resolve order = host wins bcast
log file = /private/var/log/samba/log.%m
guest account = unknown
encrypt passwords = yes
printing = BSD
allow trusted domains = no
preferred master = no
lppause command = /usr/sbin/PrintServiceAccess hold %p %j
netbios name = harbor
wins support = no
max smbd processes = 0
printcap =
client plaintext auth = no
server string = Mac OS X
lpresume command = /usr/sbin/PrintServiceAccess release %p %j
client ntlmv2 auth = yes
lpq command = /usr/sbin/PrintServiceAccess jobs %p
passdb backend = opendirectorysam guest
dos charset = CP437
realm = krellinst.org
unix charset = UTF-8-MAC
socket options = TCP_NODELAY
auth methods = guest opendirectory
local master = no
use spnego = yes
domain master = no
map to guest = Never
printer admin = @admin, @staff, unknown
log level = 0
[homes]
comment = User Home Directories
path = /Users/%U
root preexec = /usr/sbin/inituser %U
read only = no
browseable = no
[Home]
comment = Home Directories
inherit permissions = no
path = /Users
security mask = 0700
directory mask = 0700
map archive = no
read only = no
create mask = 0700
[Common]
comment = Shared Files
path = /Common
security mask = 0777
directory mask = 0777
read only = no
create mask = 0777
==================================
Any help anyone can provide would be greatly appreciated. Thanks in
advance!
/ben Blakely
blakely at krellinst.org
The Krell Institute
More information about the samba
mailing list