[Samba] The smbd ran away with the spoon...
David Donahue
david.donahue at FIRSTSOLUTION.COM
Sat Nov 23 00:27:01 GMT 2002
It seems that my smbd process got fuxed somehow. It appears to have
take up all the file handles, and there were over 130 smbd processes
running on the system. I'm not entirely sure what happened. My first
thought is that something bad happened between the server and the
Windows client that's running Kaza (with a couple hundred mid-download
files) and it just spiraled out of control, but I figured it wouldn't
hurt to post some log info and my smb.conf file here and see if anyone
has any other ideas. For reference, I'm running Samba 2.2.6pre2 on
Mandrake 9.0.
The following was repeated many, many times in the samba log file for
the Windows client in question:
[2002/11/22 17:08:06, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Broken pipe
[2002/11/22 17:08:06, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 53 bytes to socket 13: ERRNO = Broken pipe
[2002/11/22 17:08:06, 0] lib/util_sock.c:send_smb(704)
Error writing 53 bytes to client. -1. (Broken pipe)
The following is the smbd log file since the last startup:
[2002/11/16 19:36:55, 0] smbd/server.c:main(707)
smbd version 2.2.6pre2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2002/11/16 19:36:55, 0] smbd/server.c:main(751)
standard input is not a socket, assuming -D option
[2002/11/16 19:57:39, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 19:57:39, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:03:12, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:03:12, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
[2002/11/16 20:03:12, 0] lib/access.c:check_access(333)
[2002/11/16 20:03:12, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
Denied connection from (0.0.0.0)
[2002/11/16 20:03:12, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Connection reset by peer
[2002/11/16 20:03:12, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 5 bytes to socket 5: ERRNO = Connection
reset by peer
[2002/11/16 20:03:12, 0] lib/util_sock.c:send_smb(704)
Error writing 5 bytes to client. -1. (Connection reset by peer)
[2002/11/16 20:03:22, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:03:22, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:03:22, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
[2002/11/16 20:03:22, 0] lib/access.c:check_access(333)
[2002/11/16 20:03:22, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
Denied connection from (0.0.0.0)
[2002/11/16 20:03:22, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Connection reset by peer
[2002/11/16 20:03:22, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 5 bytes to socket 5: ERRNO = Connection
reset by peer
[2002/11/16 20:03:22, 0] lib/util_sock.c:send_smb(704)
Error writing 5 bytes to client. -1. (Connection reset by peer)
[2002/11/16 20:03:39, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:03:39, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:03:39, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:03:45, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:03:45, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:03:45, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:04:27, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:04:27, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
[2002/11/16 20:04:27, 0] lib/access.c:check_access(333)
[2002/11/16 20:04:27, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
Denied connection from (0.0.0.0)
[2002/11/16 20:04:27, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Connection reset by peer
[2002/11/16 20:04:27, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 5 bytes to socket 5: ERRNO = Connection
reset by peer
[2002/11/16 20:04:27, 0] lib/util_sock.c:send_smb(704)
Error writing 5 bytes to client. -1. (Connection reset by peer)
[2002/11/16 20:04:33, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/16 20:04:33, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
[2002/11/16 20:04:33, 0] lib/access.c:check_access(333)
[2002/11/16 20:04:33, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
Denied connection from (0.0.0.0)
[2002/11/16 20:04:33, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Connection reset by peer
[2002/11/16 20:04:33, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 5 bytes to socket 5: ERRNO = Connection
reset by peer
[2002/11/16 20:04:33, 0] lib/util_sock.c:send_smb(704)
Error writing 5 bytes to client. -1. (Connection reset by peer)
[2002/11/16 20:14:50, 0] lib/access.c:check_access(333)
[2002/11/16 20:14:50, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
Denied connection from (0.0.0.0)
[2002/11/16 20:14:50, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Connection reset by peer
[2002/11/16 20:14:50, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 5 bytes to socket 5: ERRNO = Connection
reset by peer
[2002/11/16 20:14:50, 0] lib/util_sock.c:send_smb(704)
Error writing 5 bytes to client. -1. (Connection reset by peer)
[2002/11/22 15:01:26, 0] smbd/server.c:open_sockets(275)
open_sockets: accept: Too many open files in system
[2002/11/22 15:01:26, 0] smbd/server.c:open_sockets(275)
open_sockets: accept: Too many open files in system
[2002/11/22 15:01:26, 0] smbd/server.c:open_sockets(275)
open_sockets: accept: Too many open files in system
[2002/11/22 16:11:26, 0] lib/util.c:close_low_fds(470)
Can't open /dev/null
[2002/11/22 16:11:26, 0] tdb/tdbutil.c:tdb_log(492)
tdb(/var/lock/samba/locks/connections.tdb): tdb_reopen: open failed
(Too many open files in system)
[2002/11/22 16:11:26, 0] locking/brlock.c:brl_init(235)
Failed to open byte range locking database
[2002/11/22 16:11:26, 0] locking/locking.c:locking_init(328)
ERROR: Failed to initialise locking database
[2002/11/22 16:11:26, 0] lib/util.c:close_low_fds(470)
Can't open /dev/null
[2002/11/22 16:11:26, 0] tdb/tdbutil.c:tdb_log(492)
tdb(/var/lock/samba/locks/connections.tdb): tdb_reopen: open failed
(Too many open files in system)
[2002/11/22 16:11:26, 0] locking/brlock.c:brl_init(235)
Failed to open byte range locking database
[2002/11/22 16:11:26, 0] locking/locking.c:locking_init(328)
ERROR: Failed to initialise locking database
[2002/11/22 16:11:26, 0] lib/util.c:close_low_fds(470)
Can't open /dev/null
[2002/11/22 16:11:26, 0] tdb/tdbutil.c:tdb_log(492)
tdb(/var/lock/samba/locks/connections.tdb): tdb_reopen: open failed
(Too many open files in system)
[2002/11/22 16:11:26, 0] locking/brlock.c:brl_init(235)
Failed to open byte range locking database
[2002/11/22 16:11:26, 0] locking/locking.c:locking_init(328)
ERROR: Failed to initialise locking database
[2002/11/22 16:18:32, 0] printing/nt_printing.c:nt_printing_init(275)
nt_printing_init: Failed to open nt printers database
/var/lock/samba/locks/ntprinters.tdb (Too many open files in system)
[2002/11/22 16:18:32, 0] printing/nt_printing.c:nt_printing_init(275)
nt_printing_init: Failed to open nt printers database
/var/lock/samba/locks/ntprinters.tdb (Too many open files in system)
[2002/11/22 16:18:32, 0] printing/nt_printing.c:nt_printing_init(275)
nt_printing_init: Failed to open nt printers database
/var/lock/samba/locks/ntprinters.tdb (Too many open files in system)
[2002/11/22 16:24:33, 0] printing/nt_printing.c:nt_printing_init(275)
nt_printing_init: Failed to open nt printers database
/var/lock/samba/locks/ntprinters.tdb (Too many open files in system)
[2002/11/22 16:24:33, 0] printing/nt_printing.c:nt_printing_init(275)
nt_printing_init: Failed to open nt printers database
/var/lock/samba/locks/ntprinters.tdb (Too many open files in system)
[2002/11/22 16:24:33, 0] printing/nt_printing.c:nt_printing_init(275)
nt_printing_init: Failed to open nt printers database
/var/lock/samba/locks/ntprinters.tdb (Too many open files in system)
[2002/11/22 17:05:42, 0] lib/access.c:check_access(333)
[2002/11/22 17:05:42, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
Denied connection from (0.0.0.0)
[2002/11/22 17:05:42, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Connection reset by peer
[2002/11/22 17:05:42, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 5 bytes to socket 5: ERRNO = Connection
reset by peer
[2002/11/22 17:05:42, 0] lib/util_sock.c:send_smb(704)
Error writing 5 bytes to client. -1. (Connection reset by peer)
[2002/11/22 17:07:53, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/22 17:07:53, 0] lib/access.c:check_access(333)
Denied connection from (192.168.1.2)
[2002/11/22 17:07:53, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
[2002/11/22 17:07:53, 0] lib/access.c:check_access(333)
[2002/11/22 17:07:53, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
Denied connection from (0.0.0.0)
[2002/11/22 17:07:53, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Connection reset by peer
[2002/11/22 17:07:53, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 5 bytes to socket 5: ERRNO = Connection
reset by peer
[2002/11/22 17:07:53, 0] lib/util_sock.c:send_smb(704)
Error writing 5 bytes to client. -1. (Connection reset by peer)
[2002/11/22 17:08:11, 0] smbd/server.c:main(707)
smbd version 2.2.6pre2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2002/11/22 17:08:11, 0] smbd/server.c:main(751)
standard input is not a socket, assuming -D option
The following is my smb.conf file:
# Global parameters
[global]
workgroup = MAGI
security = user
netbios name = EPYON
server string = Epyon
interfaces = 192.168.0.10/24
encrypt passwords = Yes
passwd program = /usr/bin/passwd %u
smb passwd file = /etc/samba/smbpasswd
passwd chat = "*New password:*" %n\r "*New password (again):*"
%n\r "*Password changed*"
unix password sync = Yes
syslog = 2
log file = /var/log/samba/log.%m
time server = Yes
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s
/bin/false -M %u
logon script = %U.bat
logon path = \\epyon\profile\%U
domain logons = Yes
os level = 34
preferred master = Yes
domain master = Yes
lock directory = /var/lock/samba/locks
admin users = root
hosts allow = 192.168.0.
hide dot files = No
[netlogon]
comment = "Domain Logon Services"
path = /etc/samba/smblogon
browseable = No
[homes]
comment = "Home Directory for : %u "
path = /home/%u
writeable = Yes
create mask = 0644
directory mask = 0755
browseable = No
[profile]
comment = "User profiles"
path = /etc/samba/smbprofile
writeable = Yes
create mask = 0600
directory mask = 0700
browseable = No
[cdimage]
comment = "Mounted CD ISO"
path = /mnt/cdimage
[cdimage2]
comment = "Mounted CD ISO"
path = /mnt/cdimage2
[programs]
comment = "Installed Programs"
path = /etc/samba/smbprograms
writeable = Yes
create mask = 0644
[share]
comment = "Public Share"
path = /etc/samba/smbshare
writeable = Yes
create mask = 0666
directory mask = 0777
[web]
comment = "Website"
path = /home/www/public
read only = Yes
[all]
comment = "Root Directory"
path = /
writeable = Yes
create mask = 0644
directory mask = 0755
David P. Donahue
david.donahue at firstsolution.com
First Call Computer Solutions
More information about the samba
mailing list