[Samba] Connection closing with close_cnum(1284)
Michael Muratet
mmuratet at hudsonalpha.org
Thu Mar 12 19:24:07 GMT 2009
Greetings
I am running SMB on OS X Server 10.5.6, it's not clear what version of
SMB they use. I have a Windows XP box that mounts a network drive on
the server. This mount disappears from time to time for no apparent
reason:
[2009/03/12 08:35:54, 2, pid=23189] /SourceCache/samba/samba-187.8/
samba/source/smbd/process.c:timeout_processing(1371)
Closing idle connection
[2009/03/12 09:06:23, 0, pid=23693] /SourceCache/samba/samba-187.8/
samba/source/lib/util_sock.c:set_socket_options(261)
Failed to set socket option SO_KEEPALIVE (Error Invalid argument)
[2009/03/12 09:06:23, 0, pid=23693] /SourceCache/samba/samba-187.8/
samba/source/lib/util_sock.c:set_socket_options(261)
Failed to set socket option TCP_NODELAY (Error Invalid argument)
[2009/03/12 09:06:23, 0, pid=23693] /SourceCache/samba/samba-187.8/
samba/source/lib/util_sock.c:get_peer_addr(1224)
getpeername failed. Error was Invalid argument
[2009/03/12 09:06:23, 2, pid=23693] /SourceCache/samba/samba-187.8/
samba/source/smbd/reply.c:reply_special(328)
netbios connect: name1=NEWYORK name2=BRITNEY-IPAR
[2009/03/12 09:06:23, 2, pid=23693] /SourceCache/samba/samba-187.8/
samba/source/smbd/reply.c:reply_special(335)
netbios connect: local=newyork remote=britney-ipar, name type = 0
[2009/03/12 09:06:23, 0, pid=23693] /SourceCache/samba/samba-187.8/
samba/source/lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 172.26.15.51. Error
Broken pipe
[2009/03/12 09:06:23, 0, pid=23693] /SourceCache/samba/samba-187.8/
samba/source/lib/util_sock.c:send_smb(761)
Error writing 4 bytes to client. -1. (Broken pipe)
[2009/03/12 09:06:23, 2, pid=23694] /SourceCache/samba/samba-187.8/
samba/source/smbd/sesssetup.c:setup_new_vc_session(1260)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would
close all old resources.
[2009/03/12 09:06:23, 2, pid=23694] /SourceCache/samba/samba-187.8/
samba/source/lib/module.c:do_smb_load_module(64)
Module '/usr/lib/samba/auth/odsam.dylib' loaded
[2009/03/12 09:06:23, 2, pid=23694] /SourceCache/samba/samba-187.8/
samba/source/smbd/sesssetup.c:setup_new_vc_session(1260)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would
close all old resources.
[2009/03/12 09:08:34, 2, pid=23694] /SourceCache/samba/samba-187.8/
samba/source/smbd/process.c:timeout_processing(1371)
Closing idle connection
[2009/03/12 09:13:34, 1, pid=7541] /SourceCache/samba/samba-187.8/
samba/source/smbd/service.c:close_cnum(1284)
hwi-eas149 (172.26.15.62) closed connection to service encodedrive8
--- here's where the network mount closes---
[2009/03/12 09:13:34, 1, pid=7539] /SourceCache/samba/samba-187.8/
samba/source/smbd/service.c:close_cnum(1284)
172.26.13.68 (172.26.13.68) closed connection to service encodedisk2
[2009/03/12 09:13:34, 1, pid=20953] /SourceCache/samba/samba-187.8/
samba/source/smbd/service.c:close_cnum(1284)
emperor (172.26.15.103) closed connection to service encodedisk6
[2009/03/12 09:13:34, 1, pid=7542] /SourceCache/samba/samba-187.8/
samba/source/smbd/service.c:close_cnum(1284)
hwi-eas295 (172.26.15.50) closed connection to service encodedrive7
[2009/03/12 09:13:34, 1, pid=7543] /SourceCache/samba/samba-187.8/
samba/source/smbd/service.c:close_cnum(1284)
usi-eas45 (172.26.15.104) closed connection to service encodedrive8
[2009/03/12 09:13:34, 1, pid=20953] /SourceCache/samba/samba-187.8/
samba/source/smbd/service.c:close_cnum(1284)
emperor (172.26.15.103) closed connection to service encodedisk1
[2009/03/12 09:13:34, 0] /SourceCache/samba/samba-187.8/samba/source/
smbd/server.c:main(890)
smbd version 3.0.25b-apple started.
Copyright Andrew Tridgell and the Samba Team 1992-2007
[2009/03/12 09:13:34, 2, pid=23896] /SourceCache/samba/samba-187.8/
samba/source/param/loadparm.c:do_section(3804)
Processing section "[homes]"
[2009/03/12 09:13:34, 2, pid=23896] /SourceCache/samba/samba-187.8/
samba/source/param/loadparm.c:do_section(3804)
Processing section "[printers]"
[2009/03/12 09:13:34, 2, pid=23896] /SourceCache/samba/samba-187.8/
samba/source/lib/interface.c:add_interface(81)
added interface ip=172.26.15.102 bcast=172.26.15.255
nmask=255.255.252.0
The IP in the log is not the same as the static IP associated with the
Windows box. Does Windows assign a new IP for a network mount?
Here is my smb.conf file:
cat smb.conf
; Configuration file for the Samba software suite.
;
=
=
=
=
========================================================================
;
; For the format of this file and comprehensive descriptions of all the
; configuration option, please refer to the man page for smb.conf(5).
;
; The following configuration should suit most systems for basic usage
and
; initial testing. It gives all clients access to their home
directories and
; allows access to all printers specified in /etc/printcap.
; BEGIN required configuration
; Parameters inside the required configuration block should not be
altered.
; They may be changed at any time by upgrades or other automated
processes.
;
; Site-specific customizations will only be preserved if they are done
; outside this block. If you choose to make customizations, it is your
; own responsibility to verify that they work correctly with the
supported
; configuration tools.
[global]
debug pid = yes
log level = 1
server string = Mac OS X
printcap name = cups
printing = cups
encrypt passwords = yes
use spnego = yes
passdb backend = odsam
idmap domains = default
idmap config default: default = yes
idmap config default: backend = odsam
idmap alloc backend = odsam
idmap negative cache time = 5
map to guest = Bad User
guest account = nobody
unix charset = UTF-8-MAC
display charset = UTF-8-MAC
dos charset = 437
vfs objects = darwinacl,darwin_streams
; Don't become a master browser unless absolutely necessary.
os level = 2
domain master = no
; For performance reasons, set the transmit buffer size
; to the maximum and enable sendfile support.
max xmit = 131072
use sendfile = yes
; The darwin_streams module gives us named streams support.
stream support = yes
ea support = yes
; Enable locking coherency with AFP.
darwin_streams:brlm = yes
; Core files are invariably disabled system-wide, but attempting to
; dump core will trigger a crash report, so we still want to try.
enable core files = yes
; Configure usershares for use by the synchronize-shares tool.
usershare max shares = 1000
usershare path = /var/samba/shares
usershare owner only = no
usershare allow guests = yes
usershare allow full config = yes
; Filter inaccessible shares from the browse list.
com.apple:filter shares by access = yes
; Check in with PAM to enforce SACL access policy.
obey pam restrictions = yes
; Don't be trying to enforce ACLs in userspace.
acl check permissions = no
; Make sure that we resolve unqualified names as NetBIOS before
DNS.
name resolve order = lmhosts wins bcast host
; Pull in system-wide preference settings. These are managed by
; synchronize-preferences tool.
include = /var/db/smb.conf
[printers]
comment = All Printers
path = /tmp
printable = yes
guest ok = no
create mode = 0700
writeable = no
browseable = no
; Site-specific parameters can be added below this comment.
; END required configuration.
Can someone point me in the direction of a problem?
Thanks
Mike
More information about the samba
mailing list