Samba problem - 2.0.6 on SCO OS 5.0.5

Rick Day at
Thu Dec 7 03:00:04 GMT 2000

Hi all,

Hopefully someone can help me with a Samba problem I had yesterday.
Unfortunately, the logs were filled by this problem, so any from the start
of the problem were overwritten.  If anyone has seen the following problem
before, or can help with further diagnosis, it would be much appreciated.
I'm not even sure if Samba was the culprit, or just a symptom.

We are running Samba 2.0.6 on SCO Unix OS 5.0.5.  

Yesterday, all mapped drive connections (ie samba connections) stopped
working. We could see the share, and files in the share via Explorer (Win9x
and WinNT4 workstations), but if we tried to open a file, we got "file not
found".  Telnet sessions were not affected.  No other access to any other
server was affected (as far as I know).

On the SCO server, I noticed that a some of the users had multiple smbd
processes started, I did not count how many, but some of the affected users
had up to 4 to 5 pages of a "ps -ef" each.   A "smbstatus" showed similar
numbers.  The first part of "smbstatus" showed over 100 processes, normally
we run 20-30 smb processes.  At this point I stopped and started Samba.
This seemed to fix the problem.   However, we found that a number of data
files, that were being accessed at the time, had many lines of what looks to
be smb log records inserted into them.  Some of these files were 400-500Mb
larger than they normally were.  We had to restore from the previous nights

I have since increased the "max log size" incase the problem happens again,
hopefully I can then get some messages from the start of the problem.

So some log records.

"log.smb"  had the following two records repeated many times.  So many had
been written that any records from the start of the problem were over

[2000/12/06 13:51:53, 0] lib/util_sock.c:open_socket_in(836)
  socket failed
[2000/12/06 13:51:53, 0] smbd/oplock.c:open_oplock_ipc(93)
  open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error
was Out of stream resources

"log.brooke"  where 'brooke' is the netbios name of the computer that was
been used by a user with a lot of processes.  The following group of
messages were repeated so many times that the log was filled.

The first two lines were repeated for each of the servers in the "password
server" option in smb.conf

[2000/12/05 13:52:11, 0] lib/util_sock.c:open_socket_in(836)
  socket failed
[2000/12/05 13:52:11, 1]
  connect_to_domain_password_server: Can't resolve address for CCSYDFS2

[2000/12/05 13:52:11, 0] smbd/password.c:domain_client_validate(1392)
  domain_client_validate: Domain password server not available.
[2000/12/05 13:52:11, 0] passdb/smbpass.c:startsmbfilepwent(50)
  startsmbfilepwent: unable to open file /usr/local/samba/private/smbpasswd
[2000/12/05 13:52:11, 0] passdb/passdb.c:iterate_getsmbpwnam(149)
  unable to open smb password database.
[2000/12/05 13:52:11, 1] smbd/password.c:pass_check_smb(505)
  Couldn't find user 'roser1' in smb_passwd file.
[2000/12/05 13:52:11, 1] smbd/reply.c:reply_sesssetup_and_X(909)
  Rejecting user 'roser1': authentication failed

The lines inserted into the data files seemed to be the following message
repeated many times.  This message also appeared in some "log.nbname" files
for people who did not have multiple processes.

[2000/12/05 13:47:36, 0] smbd/oplock.c:request_oplock_break(1202)
  request_oplock_break: no response received to oplock break request to pid
 on port 4636 for dev = 168, inode = 1061
  for dev = 168, inode = 1061, tv_sec = 3a2c4908, tv_usec = d1f60

My smb.conf is as follows:

#======================= Global Settings
   workgroup = TWA
   server string = CBA Live Server
   log file = /usr/local/samba/log/log.%m
   max log size = 50
   security = DOMAIN
   password server = CCSYDFS2, CCSYDFS1, CCSYDMS1, CCMELFS2, CCBRIFS2,
   encrypt passwords = yes
   smb passwd file = /usr/local/samba/private/smbpasswd
   socket options = TCP_NODELAY
   local master = No
   dns proxy = no
   default case = lower
   case sensitive = No
   preserve case = Yes
   short preserve case = No
   deadtime = 15
   oplocks = Yes
   veto oplock files = /intran2.*/
#============================ Share Definitions
   comment = Home Directories
   browseable = no
   writable = yes

   comment = Dataflex Application Share - oplocks off
   path = /u
   writable = yes
   printable = no
   create mode = 666
   force create mode = 666
   directory mask = 2777
   force directory mode = 2777
   oplocks = no

   comment = CBA Data share
   path = /u/vol
   writable = yes
   printable = no
   create mode = 666
   directory mask = 2777
   force directory mode = 2777

More information about the samba-technical mailing list