root
2004-Jun-12 12:36 UTC
[Logcheck-devel] Bug#253998: logcheck: line 551: unary operator expected
Package: logcheck Version: 1.2.22a Severity: important The following message is displayed in a cron mail. Perhaps the -lt operator could be replaced or the test be written differently, so that it would be more robust. It looks like the [ ] is empty and -lt has no values to compare => that's the error. Jari tail: cannot open `/var/lib/logcheck/offset.var.log.syslog' for reading: Permission denied /usr/sbin/logcheck: line 551: [: 11996: unary operator expected /usr/sbin/logcheck: line 84: kill: (16747) - No such process The Lines from the program are like this. 551: if [ $(wc -c < $file) -lt $(tail -n 1 $offsetfile) ]; then 552: if [ -e $file.0 ]; then -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.4.26.20040601 Locale: LANG=en_US, LC_CTYPE=en_US Versions of packages logcheck depends on: ii adduser 3.56 Add and remove users and groups ii cron 3.0pl1-83 management of regular background p ii debconf [debconf 1.4.28 Debian configuration management sy ii debianutils 2.8.2 Miscellaneous utilities specific t ii exim4 4.34-2 An MTA (Mail Transport Agent) ii exim4-daemon-hea 4.34-2 Exim (v4) with extended features, ii lockfile-progs 0.1.10 Programs for locking and unlocking ii logcheck-databas 1.2.22a A database of system log rules for ii logtail 1.2.22a Print log file lines that have not ii mailx 1:8.1.2-0.20040524cvs-1 A simple mail user agent ii perl 5.8.4-2 Larry Wall's Practical Extraction ii sysklogd [system 1.4.1-14 System Logging Daemon -- debconf information: * logcheck/noroot: logcheck/changes: * logcheck/install-note:
maks attems
2004-Jun-12 14:37 UTC
Bug#253998: [Logcheck-devel] Bug#253998: logcheck: line 551: unary operator expected
On Sat, 12 Jun 2004, root wrote:> tail: cannot open `/var/lib/logcheck/offset.var.log.syslog' for reading: Permission deniedcould you please check your permissions, would be interesting to see # ls -l /var/lib/logcheck/ # ls -ld /var/lib/logcheck/ thanks for your bug report. a+ maks -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20040612/6b4b7457/attachment.pgp
Todd Troxell
2004-Jun-25 07:38 UTC
Bug#253998: [Logcheck-devel] Bug#253998: logcheck: line 551: unary operator expected
Jari, Could you please check perms on /var/lib/logcheck* ? Offset files should look like this: -rw------- 1 logcheck logcheck Also, do you know what version of logcheck you were running previously? Logcheck has been running unprivileged since 1.2.19 and should take ownership of these files upon upgrade. Thanks, -Todd On Sat, Jun 12, 2004 at 03:36:01PM +0300, root wrote:> Package: logcheck > Version: 1.2.22a > Severity: important > > The following message is displayed in a cron mail. Perhaps the > -lt operator could be replaced or the test be written differently, > so that it would be more robust. It looks like the [ ] is empty > and -lt has no values to compare => that's the error. > > Jari > > > tail: cannot open `/var/lib/logcheck/offset.var.log.syslog' for reading: Permission denied > /usr/sbin/logcheck: line 551: [: 11996: unary operator expected > /usr/sbin/logcheck: line 84: kill: (16747) - No such process > > The Lines from the program are like this. > > 551: if [ $(wc -c < $file) -lt $(tail -n 1 $offsetfile) ]; then > 552: if [ -e $file.0 ]; then > > > -- System Information: > Debian Release: testing/unstable > APT prefers unstable > APT policy: (500, 'unstable'), (1, 'experimental') > Architecture: i386 (i686) > Kernel: Linux 2.4.26.20040601 > Locale: LANG=en_US, LC_CTYPE=en_US > > Versions of packages logcheck depends on: > ii adduser 3.56 Add and remove users and groups > ii cron 3.0pl1-83 management of regular background p > ii debconf [debconf 1.4.28 Debian configuration management sy > ii debianutils 2.8.2 Miscellaneous utilities specific t > ii exim4 4.34-2 An MTA (Mail Transport Agent) > ii exim4-daemon-hea 4.34-2 Exim (v4) with extended features, > ii lockfile-progs 0.1.10 Programs for locking and unlocking > ii logcheck-databas 1.2.22a A database of system log rules for > ii logtail 1.2.22a Print log file lines that have not > ii mailx 1:8.1.2-0.20040524cvs-1 A simple mail user agent > ii perl 5.8.4-2 Larry Wall's Practical Extraction > ii sysklogd [system 1.4.1-14 System Logging Daemon > > -- debconf information: > * logcheck/noroot: > logcheck/changes: > * logcheck/install-note:-- [ Todd J. Troxell ,''`. Student, Debian GNU/Linux Developer, SysAdmin, Geek : :' : http://debian.org || http://rapidpacket.com/~xtat `. `' `- ] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20040625/65bc82ed/attachment.pgp
Debian Bug Tracking System
2004-Jul-09 03:48 UTC
[Logcheck-devel] Bug#253998: marked as done (logcheck: line 551: unary operator expected)
Your message dated Thu, 08 Jul 2004 23:32:06 -0400 with message-id <E1Bim7K-0004VJ-00 at newraff.debian.org> and subject line Bug#253998: fixed in logcheck 1.2.23 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 12 Jun 2004 12:36:11 +0000>From root at cante.net Sat Jun 12 05:36:11 2004Return-path: <root at cante.net> Received: from a81-197-3-110.elisa-laajakaista.fi (ns.cante.net) [81.197.3.110] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1BZ7k2-0004hG-00; Sat, 12 Jun 2004 05:36:11 -0700 Received: from root by ns.cante.net with local (Exim 4.34) id 1BZ7jt-0007RF-Uk; Sat, 12 Jun 2004 15:36:04 +0300 MIME-Version: 1.0 From: root <root at cante.net> To: Debian Bug Tracking System <submit at bugs.debian.org> X-Mailer: reportbug 2.61 Date: Sat, 12 Jun 2004 15:36:01 +0300 Message-Id: <E1BZ7jt-0007RF-Uk at ns.cante.net> X-SA-Exim-Connect-IP: <locally generated> X-SA-Exim-Rcpt-To: submit at bugs.debian.org, root at cante.net X-SA-Exim-Mail-From: root at cante.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: logcheck: line 551: unary operator expected X-SA-Exim-Version: 4.0 (built Sat, 24 Apr 2004 12:31:30 +0200) X-SA-Exim-Scanned: No (on ns.cante.net); Unknown failure Delivered-To: submit at bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: Package: logcheck Version: 1.2.22a Severity: important The following message is displayed in a cron mail. Perhaps the -lt operator could be replaced or the test be written differently, so that it would be more robust. It looks like the [ ] is empty and -lt has no values to compare => that's the error. Jari tail: cannot open `/var/lib/logcheck/offset.var.log.syslog' for reading: Permission denied /usr/sbin/logcheck: line 551: [: 11996: unary operator expected /usr/sbin/logcheck: line 84: kill: (16747) - No such process The Lines from the program are like this. 551: if [ $(wc -c < $file) -lt $(tail -n 1 $offsetfile) ]; then 552: if [ -e $file.0 ]; then -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.4.26.20040601 Locale: LANG=en_US, LC_CTYPE=en_US Versions of packages logcheck depends on: ii adduser 3.56 Add and remove users and groups ii cron 3.0pl1-83 management of regular background p ii debconf [debconf 1.4.28 Debian configuration management sy ii debianutils 2.8.2 Miscellaneous utilities specific t ii exim4 4.34-2 An MTA (Mail Transport Agent) ii exim4-daemon-hea 4.34-2 Exim (v4) with extended features, ii lockfile-progs 0.1.10 Programs for locking and unlocking ii logcheck-databas 1.2.22a A database of system log rules for ii logtail 1.2.22a Print log file lines that have not ii mailx 1:8.1.2-0.20040524cvs-1 A simple mail user agent ii perl 5.8.4-2 Larry Wall's Practical Extraction ii sysklogd [system 1.4.1-14 System Logging Daemon -- debconf information: * logcheck/noroot: logcheck/changes: * logcheck/install-note: --------------------------------------- Received: (at 253998-close) by bugs.debian.org; 9 Jul 2004 03:38:18 +0000>From katie at ftp-master.debian.org Thu Jul 08 20:38:18 2004Return-path: <katie at ftp-master.debian.org> Received: from newraff.debian.org [208.185.25.31] (mail) by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1BimDK-0006MF-00; Thu, 08 Jul 2004 20:38:18 -0700 Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian)) id 1Bim7K-0004VJ-00; Thu, 08 Jul 2004 23:32:06 -0400 From: Todd Troxell <ttroxell at debian.org> To: 253998-close at bugs.debian.org X-Katie: $Revision: 1.51 $ Subject: Bug#253998: fixed in logcheck 1.2.23 Message-Id: <E1Bim7K-0004VJ-00 at newraff.debian.org> Sender: Archive Administrator <katie at ftp-master.debian.org> Date: Thu, 08 Jul 2004 23:32:06 -0400 Delivered-To: 253998-close at bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: X-CrossAssassin-Score: 8 Source: logcheck Source-Version: 1.2.23 We believe that the bug you reported is fixed in the latest version of logcheck, which is due to be installed in the Debian FTP archive: logcheck-database_1.2.23_all.deb to pool/main/l/logcheck/logcheck-database_1.2.23_all.deb logcheck_1.2.23.dsc to pool/main/l/logcheck/logcheck_1.2.23.dsc logcheck_1.2.23.tar.gz to pool/main/l/logcheck/logcheck_1.2.23.tar.gz logcheck_1.2.23_all.deb to pool/main/l/logcheck/logcheck_1.2.23_all.deb logtail_1.2.23_all.deb to pool/main/l/logcheck/logtail_1.2.23_all.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 253998 at bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Todd Troxell <ttroxell at debian.org> (supplier of updated logcheck package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster at debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Thursday, 12 Jul 2004 22:55:19 -0500 Source: logcheck Binary: logcheck logtail logcheck-database Architecture: source all Version: 1.2.23 Distribution: unstable Urgency: low Maintainer: Debian logcheck Team <logcheck-devel at lists.alioth.debian.org> Changed-By: Todd Troxell <ttroxell at debian.org> Description: logcheck - Mails anomalies in the system logfiles to the administrator logcheck-database - A database of system log rules for the use of log checkers logtail - Print log file lines that have not been read Closes: 149567 186372 190101 234385 244171 253861 253879 253998 254133 254681 255560 256549 Changes: logcheck (1.2.23) unstable; urgency=low . maks: * Remove logcheck pre-dependency on logtail. * Added imapproxy, kernel, nfs, scponly rules. * Updated dhcpd, innd, postfix, su, sudo rules. (Closes: #253879, #244171, #190101, #254681, #253861, #186372, #255560). * Fix locale dependent regexes. * Implemented testing mode to logcheck - doesn't update offset. * Added -l LOG switch for test runs on new log files. thanks todd for ideas and first work (Closes: #234385). * Add -m switch to specify recipient. (Closes: #149567). alfie: * debian/logcheck-database.templates: Clearified the rules-directories-note template and got updates for all translations. Thanks for fast responses! todd: * Update innfeed rules (Closes: #254133). * Update dhcp3 rules (Closes: #256549). * Change postinst script to set permissions on versions previous to 1.2.23 (Closes: #253998). * Add postfix rule for lmtp. * Add Rule for cyrus imap/SQUAT annoyance. * Spamd update for unknown message id. * Add Kernel and bonobo rules for workstations. Files: 194681a5833e247adcd50c6ffe0e4a43 670 admin optional logcheck_1.2.23.dsc ec715b8a1160751367dabdecb4ddfeb4 74885 admin optional logcheck_1.2.23.tar.gz 14ba0cd447909d769867efbd331960e6 37348 admin optional logcheck_1.2.23_all.deb bad26ea13036470994f54bf9e1c3c18b 42778 admin optional logcheck-database_1.2.23_all.deb ba84ae48e13e927d3e4da649913768e6 21788 admin optional logtail_1.2.23_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA7gsO4u3oQ3FHP2YRApstAKCSu6oScQckvbfjz0y3DuA51fD8dwCgw0Dc Np43xnp5o9CWVR4xuRbUqx4=MYFx -----END PGP SIGNATURE-----