Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67816 - Samba fills my messages-log with weird errors
Summary: Samba fills my messages-log with weird errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-16 15:03 UTC by Simon Strandman
Modified: 2004-12-11 02:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
smb.conf (smb.conf,2.70 KB, application/octet-stream)
2004-10-16 15:05 UTC, Simon Strandman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Strandman 2004-10-16 15:03:16 UTC
Samba is very noicy in the logs. My server's /var/log/messages is now 62 MB large and it's 99% full with this error:

Oct 16 23:47:37 snigel smbd[29700]:   read_socket_data: recv failure for 4. Error = F
Comment 1 Simon Strandman 2004-10-16 15:03:16 UTC
Samba is very noicy in the logs. My server's /var/log/messages is now 62 MB large and it's 99% full with this error:

Oct 16 23:47:37 snigel smbd[29700]:   read_socket_data: recv failure for 4. Error = Förbindelse borttagen av partnern
Oct 16 23:47:39 snigel smbd[29699]: [2004/10/16 23:47:39, 0] lib/util_sock.c:read_socket_data(384)
Oct 16 23:47:39 snigel smbd[29699]:   read_socket_data: recv failure for 4. Error = Förbindelse borttagen av partnern
Oct 16 23:48:05 snigel smbd[29705]: [2004/10/16 23:48:05, 0] lib/util_sock.c:read_socket_data(384)
Oct 16 23:48:05 snigel smbd[29705]:   read_socket_data: recv failure for 4. Error = Förbindelse borttagen av partnern
Oct 16 23:48:10 snigel smbd[29707]: [2004/10/16 23:48:10, 0] lib/util_sock.c:read_socket_data(384)
Oct 16 23:48:10 snigel smbd[29707]:   read_socket_data: recv failure for 4. Error = Förbindelse borttagen av partnern
Oct 16 23:48:10 snigel smbd[29710]: [2004/10/16 23:48:10, 0] lib/util_sock.c:read_socket_data(384)
Oct 16 23:48:10 snigel smbd[29710]:   read_socket_data: recv failure for 4. Error = Förbindelse borttagen av partnern
Oct 16 23:48:15 snigel smbd[29714]: [2004/10/16 23:48:15, 0] lib/util_sock.c:read_socket_data(384)
Oct 16 23:48:15 snigel smbd[29714]:   read_socket_data: recv failure for 4. Error = Förbindelse borttagen av partnern
Oct 16 23:48:15 snigel smbd[29716]: [2004/10/16 23:48:15, 0] lib/util_sock.c:read_socket_data(384)
Oct 16 23:48:15 snigel smbd[29716]:   read_socket_data: recv failure for 4. Error = Förbindelse borttagen av partnern
Oct 16 23:48:24 snigel smbd[29720]: [2004/10/16 23:48:24, 0] lib/util_sock.c:read_socket_data(384)
Oct 16 23:48:24 snigel smbd[29720]:   read_socket_data: recv failure for 4. Error = Förbindelse borttagen av partnern

"Förbindelse borttagen av partnern" = Connection reset by peer

Samba 3.0.7-r1 is installed but I have had this problem with other versions too.

I have tried downgrading and upgrading samba, building it with more conservative CFLAGS, building it without stack-protector and tweaking the smb.conf file in different ways but nothing has helped. I have also searched google for this and found several others with the same or similar problem but no solution yet. :(

snigel log # emerge info
Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r7)
=================================================================
System uname: 2.6.8-gentoo-r7 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium2 -pipe -fomit-frame-pointer -ffast-math -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium2 -pipe -fomit-frame-pointer -ffast-math -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aalib acpi alsa apache2 apm avi berkdb bitmap-fonts crypt encode f77 fbcon foomaticdb gdbm gif gpm imlib libg++ libwww linguas_sv mad mikmod mmx mysql ncurses nls nptl objc offensive oggvorbis pam pdflib perl pic pnp python readline samba sdl slang ssl svga tcpd usb x86 xprint zlib"

Reproducible: Always
Steps to Reproduce:
Comment 2 Simon Strandman 2004-10-16 15:05:57 UTC
Created attachment 41989 [details]
smb.conf

smb.conf
Comment 3 Christian Andreetta (RETIRED) gentoo-dev 2004-10-17 02:32:39 UTC
question: can you try with 'use sendfile = No' in global section?
this seems like a sort of protocol mismatch between server and client
Comment 4 Simon Strandman 2004-10-17 03:27:40 UTC
It didn't help!

I forgot to say that samba works completly except for this. I have no problem accesing files from windows computers.

My server has two network interfaces. One connected to the internet (eth0) and one connected to the network (eth1). I think I've managed to get samba running on only eth1. I'm going to try to disconnect both tonight when no one is using the server and see if it helps.
Comment 5 Simon Strandman 2004-11-02 01:45:05 UTC
When eth0 is disconnected there is a lot less errors. Maybe samba is not limited to run on only eth1 after all? But I wold like to get rid of these errors compleatly if it's possible since they are pointless.
Comment 6 Christian Andreetta (RETIRED) gentoo-dev 2004-11-08 05:04:39 UTC
Maybe inteface kernel module: what's your network card info? (lspci, modinfo, whatever pertinent).
BTW: with newer kernels?
Comment 7 Simon Strandman 2004-11-17 07:02:03 UTC
snigel root # lsmod
Module                  Size  Used by
3c59x                  23016  0
8139too                11296  0
crc32                   2944  1 8139too
sr_mod                  9252  0
scsi_mod               44384  1 sr_mod

snigel root # lspci
0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
0000:00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
0000:00:0b.0 Multimedia audio controller: ESS Technology ES1969 Solo-1 Audiodrive (rev 01)
0000:00:0d.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)
0000:00:10.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage IIC AGP (rev 3a)

The 3com card is eth1 connected to the network and the realtek is eth0 connected to the internet. The kernel is 2.6.9-ck3. I have been running different versions of gentoo-dev-sources and ck-sources 2.6.8 previously but I don't think that changed anything.

I was able to reduce the errors a lot by adding:
        bind interfaces only = yes
to the config-file so this is'nt mych of a problem anymore. Thanks anyway!
Comment 8 Simon Strandman 2004-12-10 13:19:15 UTC
It has been running for some time now and the messages log is no longer flooded with samba errors. The fix was to add:
bind interfaces only = yes
to smb.conf. So this bug can probably be closed now!
Comment 9 Christian Andreetta (RETIRED) gentoo-dev 2004-12-11 02:06:21 UTC
All right: kernel interface stuff, so closing now.