Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468010 - net-nntp/inn working but status crashed
Summary: net-nntp/inn working but status crashed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Net-news project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-30 14:32 UTC by Christophe PEREZ
Modified: 2013-06-03 14:45 UTC (History)
1 user (show)

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 Christophe PEREZ 2013-04-30 14:32:56 UTC
I have this bug for years now.
# rc-service innd status
 * status: crashed
# ps axf | grep inn | grep -v grep
 4143 ?        Ss     0:00 /usr/lib64/news/bin/innd
 5447 ?        S      0:00  \_ /bin/sh /usr/lib64/news/bin/innwatch

and INN is working like a charm.

# emerge --info inn
Portage 2.1.11.62 (default/linux/amd64/13.0, gcc-4.4.7, glibc-2.15-r3, 2.6.32-openvz-feoktistov.1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-openvz-feoktistov.1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     8161032 total,   5511988 free
KiB Swap:    1999992 total,   1999992 free
Timestamp of tree: Tue, 30 Apr 2013 12:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/other/download/Linux/gentoo/portage"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo http://mirror.jamit.de/gentoo/ http://pinguin.ittelkom.ac.id/mirror/gentoo/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi alsa amd64 apache2 audiofile bash-completion berkdb bmp bzip2 caps cdb cdparanoia cdr cli cracklib crypt ctype cups cxx dedicated dvd dvdr dvdread encode exif fam ffmpeg flac foomaticdb ftp gd geoip gif iconv icq idn imagemagick imap imlib innodb iodbc jabber jbig jpeg lcms ldap lm_sensors mad maildir matroska mbox mcal mime mmx mng modules mp3 mpeg msn mudflap multilib mysql mysqli ncurses nls nptl nptlonly odbc ogg openmp oscar pam pcre php png posix ppds readline samba sasl scanner sdl session sharedext simplexml slang slp snmp speex spell spl sse sse2 ssl svg tcpd theora tiff unicode usb v4l vhosts vorbis wmf x264 xml xsl xvid yahoo zlib" ABI_X86="64" ALSA_CARDS="snd-intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-nntp/inn-2.5.3-r1 was built with the following:
USE="berkdb ssl -innkeywords -inntaggedhash -ipv6 -kerberos -perl -python -sasl" PYTHON_SINGLE_TARGET="python2_7 -python2_5 -python2_6" PYTHON_TARGETS="python2_7 -python2_5 -python2_6"


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-30 19:01:58 UTC
It seems bug #454182 was only half fixed.


Index: inn-2.5.3-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-nntp/inn/inn-2.5.3-r1.ebuild,v
retrieving revision 1.4
diff -u -B -r1.4 inn-2.5.3-r1.ebuild
--- inn-2.5.3-r1.ebuild 12 Mar 2013 18:29:32 -0000      1.4
+++ inn-2.5.3-r1.ebuild 30 Apr 2013 19:01:44 -0000
@@ -60,7 +60,7 @@
                --with-doc-dir=/usr/share/doc/${PF} \
                --with-spool-dir=/var/spool/news \
                --with-log-dir=/var/log/news \
-               --with-run-dir=/var/run/news \
+               --with-run-dir=/run/news \
                --with-tmp-dir=/var/spool/news/tmp \
                --disable-libtool \
                --with-gnu-ld \
Index: files/innd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-nntp/inn/files/innd,v
retrieving revision 1.4
diff -u -B -r1.4 innd
--- files/innd  20 Aug 2012 01:12:06 -0000      1.4
+++ files/innd  30 Apr 2013 19:01:44 -0000
@@ -9,7 +9,7 @@

 start() {
        ebegin "Starting innd"
-       checkpath -d -m 0755 -o news:news /var/run/news
+       checkpath -d -m 0755 -o news:news /run/news
        start-stop-daemon --start --user news --exec /usr/lib/news/bin/rc.news
        eend $?
 }
Comment 2 Christophe PEREZ 2013-05-01 14:12:42 UTC
(In reply to comment #1)
> It seems bug #454182 was only half fixed.
> 
> 
> Index: inn-2.5.3-r1.ebuild
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/net-nntp/inn/inn-2.5.3-r1.ebuild,v
> retrieving revision 1.4
> diff -u -B -r1.4 inn-2.5.3-r1.ebuild
> --- inn-2.5.3-r1.ebuild 12 Mar 2013 18:29:32 -0000      1.4
> +++ inn-2.5.3-r1.ebuild 30 Apr 2013 19:01:44 -0000
> @@ -60,7 +60,7 @@
>                 --with-doc-dir=/usr/share/doc/${PF} \
>                 --with-spool-dir=/var/spool/news \
>                 --with-log-dir=/var/log/news \
> -               --with-run-dir=/var/run/news \
> +               --with-run-dir=/run/news \
>                 --with-tmp-dir=/var/spool/news/tmp \
>                 --disable-libtool \
>                 --with-gnu-ld \
> Index: files/innd
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/net-nntp/inn/files/innd,v
> retrieving revision 1.4
> diff -u -B -r1.4 innd
> --- files/innd  20 Aug 2012 01:12:06 -0000      1.4
> +++ files/innd  30 Apr 2013 19:01:44 -0000
> @@ -9,7 +9,7 @@
> 
>  start() {
>         ebegin "Starting innd"
> -       checkpath -d -m 0755 -o news:news /var/run/news
> +       checkpath -d -m 0755 -o news:news /run/news
>         start-stop-daemon --start --user news --exec
> /usr/lib/news/bin/rc.news
>         eend $?
>  }

I applied this patch, but that's not sufficient.
# /etc/init.d/innd restart
 * Stopping innd ...
Stopping innd:                                                                         [ ok ]
 * Starting innd ...
Starting innd.
Scheduled start of /usr/lib64/news/bin/innwatch.

# rc-service innd status
 * status: crashed

Something else forgotten in cvs ? ;)
Comment 3 Michael Palimaka (kensington) gentoo-dev 2013-06-03 11:12:46 UTC
Thanks, fixed in CVS.

+  03 Jun 2013; Michael Palimaka <kensington@gentoo.org>
+  +files/inn-2.5.3-ar.patch, +files/innd-r1, +inn-2.5.3-r2.ebuild:
+  Add missing PYTHON_REQUIRED_USE. Add elog to recommend using emerge --config.
+  Respect AR wrt bug #461254. Use correct run dir and fix init script to avoid
+  reporting its status as 'crashed', wrt bug #468010.
Comment 4 Christophe PEREZ 2013-06-03 14:45:38 UTC
Nice. works for me. Thanks.