Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293137 - app-admin/denyhosts shows error starting even though it starts properly
Summary: app-admin/denyhosts shows error starting even though it starts properly
Status: RESOLVED DUPLICATE of bug 286191
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-14 01:26 UTC by Harris Landgarten
Modified: 2010-03-28 13:38 UTC (History)
9 users (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 Harris Landgarten 2009-11-14 01:26:11 UTC
# /etc/init.d/denyhosts start
 * Starting DenyHosts daemon ...                                                                                                                              [ !! ]
# rc-status
Runlevel: default
 apache2                                                                                                                                                [ started  ]
 denyhosts                                                                                                                                              [ stopped  ]

# ps -ef | grep deny
root      9166     1  0 20:18 ?        00:00:00 /usr/bin/python2.6 /usr/bin/denyhosts --daemon -c /etc/denyhosts.conf


2009-11-13 20:18:13,790 - denyhosts   : INFO     DenyHosts launched with the following args:
2009-11-13 20:18:13,826 - denyhosts   : INFO        /usr/bin/denyhosts --daemon -c /etc/denyhosts.conf
2009-11-13 20:18:13,827 - prefs       : INFO     DenyHosts configuration settings:
2009-11-13 20:18:13,827 - prefs       : INFO        ADMIN_EMAIL: [harrisl@lhjonline.com]
2009-11-13 20:18:13,827 - prefs       : INFO        AGE_RESET_INVALID: [864000]
2009-11-13 20:18:13,828 - prefs       : INFO        AGE_RESET_RESTRICTED: [2160000]
2009-11-13 20:18:13,829 - prefs       : INFO        AGE_RESET_ROOT: [2160000]
2009-11-13 20:18:13,829 - prefs       : INFO        AGE_RESET_VALID: [432000]
2009-11-13 20:18:13,829 - prefs       : INFO        ALLOWED_HOSTS_HOSTNAME_LOOKUP: [no]
2009-11-13 20:18:13,830 - prefs       : INFO        BLOCK_SERVICE: [sshd]
2009-11-13 20:18:13,830 - prefs       : INFO        DAEMON_LOG: [/var/log/denyhosts]
2009-11-13 20:18:13,830 - prefs       : INFO        DAEMON_LOG_MESSAGE_FORMAT: [%(asctime)s - %(name)-12s: %(levelname)-8s %(message)s]
2009-11-13 20:18:13,831 - prefs       : INFO        DAEMON_LOG_TIME_FORMAT: [None]
2009-11-13 20:18:13,831 - prefs       : INFO        DAEMON_PURGE: [3600]
2009-11-13 20:18:13,831 - prefs       : INFO        DAEMON_SLEEP: [30]
2009-11-13 20:18:13,832 - prefs       : INFO        DENY_THRESHOLD_INVALID: [3]
2009-11-13 20:18:13,832 - prefs       : INFO        DENY_THRESHOLD_RESTRICTED: [1]
2009-11-13 20:18:13,833 - prefs       : INFO        DENY_THRESHOLD_ROOT: [1]
2009-11-13 20:18:13,833 - prefs       : INFO        DENY_THRESHOLD_VALID: [3]
2009-11-13 20:18:13,833 - prefs       : INFO        FAILED_ENTRY_REGEX: [None]
2009-11-13 20:18:13,834 - prefs       : INFO        FAILED_ENTRY_REGEX2: [None]
2009-11-13 20:18:13,834 - prefs       : INFO        FAILED_ENTRY_REGEX3: [None]
2009-11-13 20:18:13,834 - prefs       : INFO        FAILED_ENTRY_REGEX4: [None]
2009-11-13 20:18:13,835 - prefs       : INFO        FAILED_ENTRY_REGEX5: [None]
2009-11-13 20:18:13,835 - prefs       : INFO        FAILED_ENTRY_REGEX6: [None]
2009-11-13 20:18:13,835 - prefs       : INFO        FAILED_ENTRY_REGEX7: [None]
2009-11-13 20:18:13,836 - prefs       : INFO        HOSTNAME_LOOKUP: [YES]
2009-11-13 20:18:13,837 - prefs       : INFO        HOSTS_DENY: [/etc/hosts.deny]
2009-11-13 20:18:13,837 - prefs       : INFO        LOCK_FILE: [/var/run/denyhosts.pid]
2009-11-13 20:18:13,837 - prefs       : INFO        PLUGIN_DENY: [None]
2009-11-13 20:18:13,838 - prefs       : INFO        PLUGIN_PURGE: [None]
2009-11-13 20:18:13,838 - prefs       : INFO        PURGE_DENY: [1209600]
2009-11-13 20:18:13,838 - prefs       : INFO        PURGE_THRESHOLD: [3]
2009-11-13 20:18:13,839 - prefs       : INFO        RESET_ON_SUCCESS: [no]
2009-11-13 20:18:13,839 - prefs       : INFO        SECURE_LOG: [/var/log/messages]
2009-11-13 20:18:13,839 - prefs       : INFO        SMTP_DATE_FORMAT: [%a, %d %b %Y %H:%M:%S %z]
2009-11-13 20:18:13,839 - prefs       : INFO        SMTP_FROM: [DenyHosts <nobody@localhost>]
2009-11-13 20:18:13,840 - prefs       : INFO        SMTP_HOST: [192.168.1.2]
2009-11-13 20:18:13,841 - prefs       : INFO        SMTP_PASSWORD: [None]
2009-11-13 20:18:13,841 - prefs       : INFO        SMTP_PORT: [25]
2009-11-13 20:18:13,842 - prefs       : INFO        SMTP_SUBJECT: [DenyHosts Report]
2009-11-13 20:18:13,842 - prefs       : INFO        SMTP_USERNAME: [None]
2009-11-13 20:18:13,842 - prefs       : INFO        SSHD_FORMAT_REGEX: [None]
2009-11-13 20:18:13,843 - prefs       : INFO        SUCCESSFUL_ENTRY_REGEX: [None]
2009-11-13 20:18:13,843 - prefs       : INFO        SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS: [YES]
2009-11-13 20:18:13,844 - prefs       : INFO        SYNC_DOWNLOAD: [yes]
2009-11-13 20:18:13,845 - prefs       : INFO        SYNC_DOWNLOAD_RESILIENCY: [18000]
2009-11-13 20:18:13,845 - prefs       : INFO        SYNC_DOWNLOAD_THRESHOLD: [3]
2009-11-13 20:18:13,846 - prefs       : INFO        SYNC_INTERVAL: [3600]
2009-11-13 20:18:13,846 - prefs       : INFO        SYNC_SERVER: [http://xmlrpc.denyhosts.net:9911]
2009-11-13 20:18:13,846 - prefs       : INFO        SYNC_UPLOAD: [yes]
2009-11-13 20:18:13,847 - prefs       : INFO        SYSLOG_REPORT: [no]
2009-11-13 20:18:13,847 - prefs       : INFO        WORK_DIR: [/var/lib/denyhosts]
2009-11-13 20:18:13,853 - denyhosts   : INFO     restricted: set([])
2009-11-13 20:18:13,902 - denyhosts   : INFO     Processing log file (/var/log/messages) from offset (1675212)
2009-11-13 20:18:14,512 - denyhosts   : INFO     new denied hosts: ['210.181.96.27']
2009-11-13 20:18:15,402 - denyhosts   : INFO     launching DenyHosts daemon (version 2.6)...
2009-11-13 20:18:15,406 - denyhosts   : INFO     DenyHosts daemon is now running, pid: 9166
2009-11-13 20:18:15,408 - denyhosts   : INFO     send daemon process a TERM signal to terminate cleanly
2009-11-13 20:18:15,409 - denyhosts   : INFO       eg.  kill -TERM 9166
2009-11-13 20:18:15,524 - denyhosts   : INFO     monitoring log: /var/log/messages
2009-11-13 20:18:15,524 - denyhosts   : INFO     sync_time: 3600
2009-11-13 20:18:15,525 - denyhosts   : INFO     daemon_purge:      3600
2009-11-13 20:18:15,525 - denyhosts   : INFO     daemon_sleep:      30
2009-11-13 20:18:15,525 - denyhosts   : INFO     purge_sleep_ratio: 120
2009-11-13 20:18:15,525 - denyhosts   : INFO     sync_time:      : 3600
2009-11-13 20:18:15,526 - denyhosts   : INFO     sync_sleep_ratio: 120


Reproducible: Always




System uname: Linux-2.6.31-gentoo-r5-i686-Intel-R-_Pentium-R-_4_CPU_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 12 Nov 2009 04:00:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cups dri fortran gd gdbm gif gnome gpm hardenedphp iconv ipv6 jpeg ldap modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre pear perl php png pppd python readline reflection session snmp spl ssl sysfs tcpd truetype unicode x86 xml xorg 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 gentoo 2009-12-21 05:21:39 UTC
Im seeing similar problems. The init script says there was a problem starting it, but its running. This also means the init script cannot be used to stop it either.


Comment 2 svrmarty 2009-12-28 17:26:24 UTC
yes

this is a start-stop daemon bug
it uses the wrong procedure to getting the pid

 /bin/pidof -x denyhosts      
Comment 3 Jim Faulkner 2010-01-17 21:00:42 UTC
svrmarty: Can you file a bug against the start-stop daemon regarding this issue?  I am not familiar enough with the start-stop daemon to do it myself.
Comment 4 paolo muratore-ginanneschi 2010-01-21 15:58:46 UTC
Note that the discussion for Bug 244700 provides a workaround
for the problem
Comment 5 Robert Buchholz (RETIRED) gentoo-dev 2010-02-07 18:14:54 UTC
python herd: Is there a sane way to use start-stop-daemon with python applications (except adding --background, as trac does)? Do you have recommendations?
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-28 13:38:41 UTC

*** This bug has been marked as a duplicate of bug 286191 ***