Ritesh Raj Sarraf
2005-Sep-06 19:51 UTC
[Logcheck-devel] Bug#312393: logcheck: Some more information that might help
Package: logcheck Version: 1.2.41 Followup-For: Bug #312393 Error 1: This was sent as an email when logcheck failed. Failed to get lockfile: /var/lock/logcheck/logcheck.lock Check temporary directory: declare -x HISTSIZE="1000" declare -x HOME="/root" declare -x HZ="100" declare -x LANG="en_US" declare -x LESSCLOSE="/usr/bin/lesspipe %s %s" declare -x LESSOPEN="| /usr/bin/lesspipe %s" declare -x LOGNAME="logcheck" declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:" declare -x LS_OPTIONS="--color=auto -F" declare -x MAIL="/var/mail/root" declare -x OLDPWD declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin" declare -x PWD="/root" declare -x SHELL="/bin/bash" declare -x SHLVL="2" declare -x SUDO_COMMAND="/usr/sbin/logcheck" declare -x SUDO_GID="0" declare -x SUDO_UID="0" declare -x SUDO_USER="root" declare -x TERM="xterm" declare -x USER="logcheck" Error 2: This was what I got when it was run from cron rm: too few arguments Try `rm --help' for more information. Error 3: This error was during installation Setting up logcheck (1.2.41) ... useradd: unknown group logcheck adduser: `/usr/sbin/useradd -d /var/lib/logcheck -g logcheck -s /bin/false -u 118 logcheck' returned error code 6. Aborting. Cleaning up. Removing user `logcheck'. userdel: user logcheck does not exist Removing group `logcheck'. groupdel: group logcheck does not exist adduser: The user `logcheck' does not exist. chown: `logcheck:logcheck': invalid user chgrp: invalid group name `logcheck' chown: `logcheck:logcheck': invalid user -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (500, 'stable'), (300, 'unstable'), (100, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-bsplash-skas3-v8.2 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages logcheck depends on: ii adduser 3.67 Add and remove users and groups ii cron 3.0pl1-91 management of regular background p ii debconf [debconf 1.4.58 Debian configuration management sy ii debianutils 2.14.1 Miscellaneous utilities specific t ii grep 2.5.1.ds1-5 GNU grep, egrep and fgrep ii lockfile-progs 0.1.10 Programs for locking and unlocking ii logcheck-databas 1.2.41 database of system log rules for t ii logtail 1.2.41 Print log file lines that have not ii mailx 1:8.1.2-0.20050715cvs-1 A simple mail user agent ii postfix [mail-tr 2.2.4-1 A high-performance mail transport ii sysklogd [system 1.4.1-17 System Logging Daemon logcheck recommends no packages. -- debconf information: logcheck/changes: * logcheck/install-note:
Todd Troxell
2005-Sep-06 20:48 UTC
Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help
On Wed, Sep 07, 2005 at 01:21:23AM +0530, Ritesh Raj Sarraf wrote:> Error 3: > This error was during installation > > Setting up logcheck (1.2.41) ... > useradd: unknown group logcheck > adduser: `/usr/sbin/useradd -d /var/lib/logcheck -g logcheck -s > /bin/false -u 118 logcheck' returned error code 6. Aborting.Hmm. The 6 returned is from useradd(8) and it indicates: #define E_NOTFOUND 6 /* specified group doesn't exist */ I'm still not sure what's going on. Maybe something changed in a new version of adduser? -- [ Todd J. Troxell ,''`. Student, Debian GNU/Linux Developer, SysAdmin, Geek : :' : http://debian.org || http://rapidpacket.com/~xtat `. `' `- ]
Todd Troxell
2005-Sep-07 03:34 UTC
Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help
I have tested the following scenarios and have been unable to reproduce this. -fresh install on unstable -dist-upgrade from stable version -dist-upgrade from woody version It will be helpful to know if your adduser is functioning correctly. On Wed, Sep 07, 2005 at 01:21:23AM +0530, Ritesh Raj Sarraf wrote:> Package: logcheck > Version: 1.2.41 > Followup-For: Bug #312393 > > > Error 1: > This was sent as an email when logcheck failed. > > Failed to get lockfile: /var/lock/logcheck/logcheck.lock > > Check temporary directory: > > declare -x HISTSIZE="1000" > declare -x HOME="/root" > declare -x HZ="100" > declare -x LANG="en_US" > declare -x LESSCLOSE="/usr/bin/lesspipe %s %s" > declare -x LESSOPEN="| /usr/bin/lesspipe %s" > declare -x LOGNAME="logcheck" > declare -x > LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:" > declare -x LS_OPTIONS="--color=auto -F" > declare -x MAIL="/var/mail/root" > declare -x OLDPWD > declare -x > PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin" > declare -x PWD="/root" > declare -x SHELL="/bin/bash" > declare -x SHLVL="2" > declare -x SUDO_COMMAND="/usr/sbin/logcheck" > declare -x SUDO_GID="0" > declare -x SUDO_UID="0" > declare -x SUDO_USER="root" > declare -x TERM="xterm" > declare -x USER="logcheck" > > > > Error 2: > This was what I got when it was run from cron > > rm: too few arguments > Try `rm --help' for more information. > > > Error 3: > This error was during installation > > Setting up logcheck (1.2.41) ... > useradd: unknown group logcheck > adduser: `/usr/sbin/useradd -d /var/lib/logcheck -g logcheck -s > /bin/false -u 118 logcheck' returned error code 6. Aborting. > Cleaning up. > Removing user `logcheck'. > userdel: user logcheck does not exist > Removing group `logcheck'. > groupdel: group logcheck does not exist > adduser: The user `logcheck' does not exist. > chown: `logcheck:logcheck': invalid user > chgrp: invalid group name `logcheck' > chown: `logcheck:logcheck': invalid user > > > -- System Information: > Debian Release: testing/unstable > APT prefers testing > APT policy: (990, 'testing'), (500, 'stable'), (300, 'unstable'), (100, 'experimental') > Architecture: i386 (i686) > Shell: /bin/sh linked to /bin/bash > Kernel: Linux 2.6.12-bsplash-skas3-v8.2 > Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) > > Versions of packages logcheck depends on: > ii adduser 3.67 Add and remove users and groups > ii cron 3.0pl1-91 management of regular background p > ii debconf [debconf 1.4.58 Debian configuration management sy > ii debianutils 2.14.1 Miscellaneous utilities specific t > ii grep 2.5.1.ds1-5 GNU grep, egrep and fgrep > ii lockfile-progs 0.1.10 Programs for locking and unlocking > ii logcheck-databas 1.2.41 database of system log rules for t > ii logtail 1.2.41 Print log file lines that have not > ii mailx 1:8.1.2-0.20050715cvs-1 A simple mail user agent > ii postfix [mail-tr 2.2.4-1 A high-performance mail transport > ii sysklogd [system 1.4.1-17 System Logging Daemon > > logcheck recommends no packages. > > -- debconf information: > logcheck/changes: > * logcheck/install-note: > > > _______________________________________________ > Logcheck-devel mailing list > Logcheck-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/logcheck-devel-- [ Todd J. Troxell ,''`. Student, Debian GNU/Linux Developer, SysAdmin, Geek : :' : http://debian.org || http://rapidpacket.com/~xtat `. `' `- ]
Ritesh Raj Sarraf
2005-Sep-22 17:14 UTC
Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help
On Thursday 22 Sep 2005 02:33, maximilian attems wrote:> > i guess you interrupt the postrm or similar to get into similar > > troubles. > > unable to reproduce with normal purge and reinstall cycles. > a new install seemed to have cured the problems of the bug reporters. > as it appears only when interrupting the postinstall > closing this strange bug. >After you mentioned it being fixed, I tried installing the package again but got the same problem. I wonder on what grounds you are closing this bug. Here's what I've found again: root at laptop:~ # apt-get install logcheck Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: logcheck-database logtail Suggested packages: syslog-summary The following NEW packages will be installed: logcheck logcheck-database logtail 0 upgraded, 3 newly installed, 0 to remove and 334 not upgraded. Need to get 145kB of archives. After unpacking 1020kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://ftp.debian.org testing/main logtail 1.2.41 [29.8kB] Get:2 http://ftp.debian.org testing/main logcheck-database 1.2.41 [67.5kB] Get:3 http://ftp.debian.org testing/main logcheck 1.2.41 [47.9kB] Fetched 145kB in 19s (7620B/s) Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Preconfiguring packages ... Selecting previously deselected package logtail. (Reading database ... 237487 files and directories currently installed.) Unpacking logtail (from .../logtail_1.2.41_all.deb) ... Selecting previously deselected package logcheck-database. Unpacking logcheck-database (from .../logcheck-database_1.2.41_all.deb) ... Selecting previously deselected package logcheck. Unpacking logcheck (from .../logcheck_1.2.41_all.deb) ... Setting up logtail (1.2.41) ... Setting up logcheck-database (1.2.41) ... Setting up logcheck (1.2.41) ... adduser: The user `logcheck' does not exist. chown: `logcheck:logcheck': invalid user chown: `logcheck:logcheck': invalid user And here's the entries in syslog logged. Sep 22 22:37:30 laptop useradd[19560]: new user: name=logcheck, uid=120, gid=118, home=/var/lib/logcheck, shell=/bin/false Sep 22 22:37:30 laptop chage[19561]: changed password expiry for logcheck HTH, rrs -- Ritesh Raj Sarraf RESEARCHUT -- http://www.researchut.com Gnupg Key ID: 04F130BC "Stealing logic from one person is plagiarism, stealing from many is research." "Necessity is the mother of invention." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20050922/f860048f/attachment.pgp