Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231566 - dev-util/subversion-1.4.6 - start-stop-daemon can not start svnserve-ssh inside the init script.
Summary: dev-util/subversion-1.4.6 - start-stop-daemon can not start svnserve-ssh insi...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard: Change this bug from WONTFIX to FIXED...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-12 09:38 UTC by Navid Zamani
Modified: 2008-07-13 18:26 UTC (History)
1 user (show)

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


Attachments
/etc/init.d/svnserve-ssh (svnserve-ssh,940 bytes, text/plain)
2008-07-12 20:19 UTC, Navid Zamani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Navid Zamani 2008-07-12 09:38:56 UTC
I tried to start the svnserve-ssh service without modifying or configuring  anything. It just gave me the [ !! ] and that it could not start. No log file messages, nothing else. The only hint that I could find, is that start-stop-daemon returns code 1 when running inside of the svnserve-ssh init script, but returns 0 and starts subversion fine when run from the outside (the normal shell).
I have no idea how to dig deeper (inside start-stop-daemon for example), so I'm reporting this. :)

I have a fresh installation of subversion-1.4.6 with the use flag like this (as reported from "eix"):
  bash-completion doc java nls nowebdav perl python svnserve vim-syntax -apache2 -berkdb -debug -elibc_FreeBSD -emacs -extras -rub
Disabling svnserve, vim-syntax and nowebdav and enabling apache2 does not change the described problem.


Reproducible: Always

Steps to Reproduce:
1. Install subversion-1.4.6 with the above use-flags (no idea if they are relevant)
2. Run /etc/init.d/svnserve-ssh.
3. Find out if subversion is running.

Actual Results:  
The service can't start and subversion does not run (as by "ps").

Expected Results:  
The service should start normally.
The normal script /etc/init.d/svnserve starts fine.
Even when you run the very same command from inside /etc/init.d/svnserve-ssh manually (the start-stop-daemon command), subversion starts fine.
Only in the init script does it exit with the code 1.

Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.24-hardened-r3 i686)
=================================================================
System uname: 2.6.24-hardened-r3 i686 AMD Athlon(tm) XP 3000+
Timestamp of tree: Sat, 12 Jul 2008 01:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -fomit-frame-pointer -pipe -falign-functions=4 -fweb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=athlon-xp -fomit-frame-pointer -pipe -falign-functions=4 -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mir.zyrianes.net/gentoo/ http://www.gigaload.org/gentoo.org/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
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/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow aalib acl acpi alsa apache2 audiofile bash-completion bluetooth bzip2 chroot clamav cracklib crypt cscope cups curl curlwrappers dbm dedicated dio doc encode examples exif expat fam fbcon fftw flac flash flatfile foomaticdb ftp gd gdbm geoip gpm gstreamer hardened hardenedphp idn imagemagick imap imlib innodb java javascript jbig jikes jpeg jpeg2k junit lash lcms libcaca libwww lm_sensors mad maildir matroska memlimit midi mime ming mmap mmx mng mp3 mpeg mysql mysqli ncurses nls nocd nptl nptlonly ocaml offensive ogg oggvorbis pam pcre pdf perl php pic png portaudio posix postgres ppds prelude python readline samba sasl session sharedmem shorten simplexml sndfile sockets source sox speex spell spl sse ssl svg syslog tcpd threads tidy tiff tokenizer truetype unicode urandom usb utf8 vhosts vorbis x86 xml xorg xsl zeo 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="worker" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-07-12 17:05:13 UTC
Subversion ebuilds don't install 'svnserve-ssh'. What is in this file?
Comment 2 Navid Zamani 2008-07-12 20:19:41 UTC
Created attachment 160214 [details]
/etc/init.d/svnserve-ssh
Comment 3 Navid Zamani 2008-07-12 20:22:10 UTC
Could this come from a very old version?

If yes, how is the ssh-version of svn started today? Does it even have to be started, or does it run when you try to access something via svn+ssh://...?
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-07-13 13:49:49 UTC
(In reply to comment #3)

You have to start only sshd (`/etc/init.d/sshd start`) on the server.
Comment 5 Navid Zamani 2008-07-13 14:19:50 UTC
(In reply to comment #4)
> You have to start only sshd (`/etc/init.d/sshd start`) on the server.

Can i delete the file "svnserve-ssh"?

Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-07-13 14:27:11 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > You have to start only sshd (`/etc/init.d/sshd start`) on the server.
> 
> Can i delete the file "svnserve-ssh"?

Yes. Also please close this bug.
Comment 7 Navid Zamani 2008-07-13 18:26:14 UTC
Well, it would be nice, if - for future readers - the source of the file in question would be included here. You know, it's a bit strange if files come out of nowhere and it certainly is a bug, if an update script forgets to delete (or do what has to be done to) that file.

Change this bug from WONTFIX to FIXED, if the Subversion installation scripts know how to handle /etc/init.d/svnserve-ssh.

This bug rests for all other cases. :-(