Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233256 - net-misc/rsync takes errors running under sys-apps/xinetd
Summary: net-misc/rsync takes errors running under sys-apps/xinetd
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-29 11:29 UTC by jieryn
Modified: 2008-10-26 03:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jieryn 2008-07-29 11:29:03 UTC
I've built rsync with xinetd support and am trying to run it under xinetd but am failing. The error is (where .103 is the address of the local machine where xinetd is running):

# rsync 192.168.1.103::
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(794) [receiver=3.0.3]

The log contains:

Jul 29 07:20:08 indigo xinetd[26448]: START: rsync pid=26510 from=192.168.1.103
Jul 29 07:20:08 indigo xinetd[26510]: FAIL: rsync address from=192.168.1.103
Jul 29 07:20:08 indigo xinetd[26448]: EXIT: rsync status=0 pid=26510 duration=0(sec)

What is very interesting is that if I just run rsyncd by itself, everything works just peachy. I can even connect and sync from other machines on my subnet. ONLY under xinetd is this failing. Here is my xinet.d/rsyncd:

service rsync
{
        socket_type = stream
        protocol    = tcp
        wait        = no
        user        = root
        server      = /usr/bin/rsync
        server_args = --daemon
        disable     = no
}

And here is my /etc/rsyncd.conf:

pid file         =  /var/run/rsyncd.pid
motd file        =  /etc/rsync/rsyncd.motd
max connections  =  5
use chroot       =  yes
uid              =  nobody
gid              =  nobody

log file         =  /var/log/rsync.log
log format       =  %t %a %m %f %b
syslog facility  =  local3
timeout          =  300


[gentoo-portage]
path     =  /usr/portage
comment  =  Gentoo Portage
exclude  =  distfiles/ packages/

There is nothing in /var/log/rsyncd.log. Please help, this is really irritating.

Portage 2.2_rc4 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.7-r2, 2.6.26 i686)
=================================================================
System uname: Linux-2.6.26-i686-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-glibc2.0
Timestamp of tree: Tue, 29 Jul 2008 07:03:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fweb -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --nospinner"
FEATURES="autoaddcvs buildsyspkg collision-protect cvs distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j15"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage /usr/local/portage/krossai /usr/local/portage/ibm-internal/gentoo-ebuilds /usr/local/portage/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi aio alsa amrr ao audiofile automount avahi bash-completion berkdb boost bzip2 cairo caps cdparanoia cdr cli console cracklib crypt cups curl dbus dri dts dvd dvdread ecc ejb3 encode erandom fbcon ffmpeg file finger firefox flac font-server fontconfig ftp fusion gdbm gif git gmp gnutls gpgme graphviz gtk hal icecast iconv icu id3 idea imagemagick imap imlib injection ipv6 ipw4965 isdnlog java java5 jce jpeg jpeg2k key-screen kqemu lame latex libedit libffi libssh2 libwww linuxthreads-tls lm_sensors log4j logrotate lzo mad maildir mailwrapper matroska mbrola md5sum mdnsresponder-compat meanwhile midi mikmod mmx mng mozilla moznocompose moznoirc moznomail mp3 mpd mpeg mplayer mpm-peruser msn mudflap multiuser musepack mysql nano-syntax ncurses network nntp no-helper nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcmcia pcre pdf perl pmu png pop pppd pulseaudio python quicktime rar readline real reflection rtc sasl sdl search-screen session shorten smime sndfile source spl sse sse2 ssh ssl ssse3 subtitles subversion svg swat sysfs syslog tcpd tga theora threads tiff truetype unicode utempter vcd vim-syntax vim-with-x vorbis wifi win32codecs wmf x264 x86 xgetdefault xinetd xml xorg xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="peruser" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev vga vesa nvidia nv"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 SpanKY gentoo-dev 2008-08-30 03:44:57 UTC
running under xinetd works fine on my server

rebuild things with simple CFLAGS and if things still dont work, turn on xinetd/rsync verbose debugging

if you still cant track it down, check perms and such, and then e-mail the rsync mailing list for assistance ...