Debian Bug report logs -
#438429
cron-job fails ungracefully (onexit: command not found)
Reported by: michael@epicworks.com
Date: Thu, 16 Aug 2007 20:33:01 UTC
Severity: normal
Found in version aide/0.13.1-2
Fixed in version aide/0.13.1-8
Done: Hannes von Haugwitz <hannes@vonhaugwitz.com>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(full text, mbox, link).
Acknowledgement sent to michael@epicworks.com:
New Bug report received and forwarded. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: aide
Version: 1.13.1-02
When the aide cron script runs, it produces the following output:
# /etc/cron.daily/aide
/etc/cron.daily/aide: line 117: onexit: command not found
/etc/cron.daily/aide: line 61: onexit: command not found
onexit does not appear to be a valid bash command.
Using the latest Debian Etch
-M
Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(full text, mbox, link).
Acknowledgement sent to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 438429@bugs.debian.org (full text, mbox, reply):
On Thu, Aug 16, 2007 at 04:35:06PM -0400, Michael Krieger, Epic Works Ltd. wrote:
> When the aide cron script runs, it produces the following output:
>
> # /etc/cron.daily/aide
> /etc/cron.daily/aide: line 117: onexit: command not found
> /etc/cron.daily/aide: line 61: onexit: command not found
>
> onexit does not appear to be a valid bash command.
onexit is a local function in the aide daily cron job. Most probably,
this is a bug that is already fixed in sid.
Can you show me your /etc/default/aide, and maybe the output of
bash -x /etc/cron.daily/aide?
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(full text, mbox, link).
Acknowledgement sent to bwoodall <bwoodall@bwoodall.org>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(full text, mbox, link).
Message #15 received at 438429@bugs.debian.org (full text, mbox, reply):
Hi Marc,
I recently transitioned from sarge to etch and I also get Michael's
error.
> /etc/cron.daily/aide: line 117: onexit: command not found
> /etc/cron.daily/aide: line 61: onexit: command not found
>
> onexit does not appear to be a valid bash command.
You asked for an output, so here is mine (long);
wardrobe:~# bash -x /etc/cron.daily/aide
+ set -e
+ set -C
+ '[' -f /usr/bin/aide ']'
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ LOGDIR=/var/log/aide
+ LOGFILE=/var/log/aide/aide.log
+ CONFFILE=/var/lib/aide/aide.conf.autogenerated
+ PREFIX=aide
+ TMPBASE=/var/run/aide
+ LOCKFILE=/var/run/aide/cron.daily.lock
+ TMPDIR=/var/run/aide/cron.daily
+ AIDEARGS=-V4
++ hostname -f
+ FQDN=localhost
+ MAILSUBJ='Daily AIDE report for localhost'
++ date '+%Y-%m-%d %H:%M'
+ DATE='2007-09-05 13:43'
+ '[' -f /etc/default/aide ']'
+ . /etc/default/aide
++ MAILSUBJ='Daily AIDE report for localhost'
++ MAILTO=root
++ COMMAND=update
++ COPYNEWDB=no
++ LINES=1500
++ NOISE=
++ AIDEARGS=
+ set -u
+ umask 077
++ grep '^database=file:/'
++ head -n 1
++ cut --delimiter=: --fields=2
+ DATABASE=/var/lib/aide/aide.db
++ grep '^database_out=file:/'
++ head -n 1
++ cut --delimiter=: --fields=2
+ DATABASE_OUT=/var/lib/aide/aide.db.new
+ MAILTO=root
+ eval MAILTO=root
++ MAILTO=root
+ DATABASE=/var/lib/aide/aide.db
+ LINES=1500
+ COMMAND=update
+ COPYNEWDB=no
+ QUIETREPORTS=no
+ ONEXIT=
+ trap ' traphandler INT; trap - INT ERR' INT
+ trap ' traphandler ERR; trap - INT ERR' ERR
+ '[' -e /var/run/aide/cron.daily ']'
++ mktemp -d /var/run/aide/cron.daily.old.XXXXXXXXXX
+ NEWNAME=/var/run/aide/cron.daily.old.TIUVn26533
+ mv /var/run/aide/cron.daily /var/run/aide/cron.daily.old.TIUVn26533
+ OLDTMPDIRFOUND=yes
+ mkdir -p /var/run/aide/cron.daily
++ mytempfile errorlog
++ NAME=errorlog
++ echo /var/run/aide/cron.daily/errorlog
++ touch /var/run/aide/cron.daily/errorlog
+ ERRORLOG=/var/run/aide/cron.daily/errorlog
++ mytempfile mailfile
++ NAME=mailfile
++ echo /var/run/aide/cron.daily/mailfile
++ touch /var/run/aide/cron.daily/mailfile
+ MAILFILE=/var/run/aide/cron.daily/mailfile
+ ARETVAL=0
+ '[' '!' -f /var/lib/aide/aide.db ']'
+ printf 'Fatal error: The AIDE database does not exist!\n'
+ printf 'This may mean you haven'\''t created it, or it may mean that someone has removed it.\n'
+ onexit fatal
/etc/cron.daily/aide: line 117: onexit: command not found
++ traphandler ERR
++ trap - INT ERR
++ printf 'SIG %s received!\n\n' ERR
++ pidof aide
++ xargs --no-run-if-empty kill -9
++ onexit signal ERR
/etc/cron.daily/aide: line 61: onexit: command not found
Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(full text, mbox, link).
Acknowledgement sent to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(full text, mbox, link).
Message #20 received at 438429@bugs.debian.org (full text, mbox, reply):
On Wed, Sep 05, 2007 at 01:45:51PM -0700, bwoodall wrote:
> I recently transitioned from sarge to etch and I also get Michael's
> error.
> > /etc/cron.daily/aide: line 117: onexit: command not found
> > /etc/cron.daily/aide: line 61: onexit: command not found
> >
> > onexit does not appear to be a valid bash command
>
> You asked for an output, so here is mine (long);
>
> wardrobe:~# bash -x /etc/cron.daily/aide
> + '[' '!' -f /var/lib/aide/aide.db ']'
> + printf 'Fatal error: The AIDE database does not exist!\n'
> + printf 'This may mean you haven'\''t created it, or it may mean that someone has removed it.\n'
> + onexit fatal
You haven't created the aide database. The onexit error is a corollary
error since your cron job fails so early that the onexit function has
not yet been defined.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(full text, mbox, link).
Acknowledgement sent to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(full text, mbox, link).
Message #25 received at 438429@bugs.debian.org (full text, mbox, reply):
retitle #438429 cron-job fails ungracefully (onexit: command not found)
thanks
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Changed Bug title to `cron-job fails ungracefully (onexit: command not found)' from `aide uses invalid command'.
Request was from Marc Haber <mh+debian-packages@zugschlus.de>
to control@bugs.debian.org.
(Wed, 12 Sep 2007 21:06:02 GMT) (full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(full text, mbox, link).
Acknowledgement sent to carbonated beverage <ramune@net-ronin.org>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
Your message did not contain a Subject field. They are recommended and
useful because the title of a $gBug is determined using this field.
Please remember to include a Subject field in your messages in future.
(full text, mbox, link).
Message #35 received at 438429@bugs.debian.org (full text, mbox, reply):
quit
A server I maintain started getting this after the latest update to etch.
Aide was running normally pre-upgrade, and the only things that were
changed on the system were libc6 and cpio -- but the update was the only
thing that changed before I started getting these messages.
Checking manually, the /var/lib/aide/aide.db file existed, so I'm not sure
what was going on.
I uninstalled and re-installed Aide, and the onexit error messages went away.
Just another data point.
-- DN
Daniel
Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(full text, mbox, link).
Acknowledgement sent to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(full text, mbox, link).
Message #40 received at 438429@bugs.debian.org (full text, mbox, reply):
# Automatically generated email from bts, devscripts version 2.10.16
fixed 438429 1.13.1-02
# fix wrong version number, the bug was actually filed against the version in etch
found 438429 0.13.1-2
Bug marked as fixed in version 1.13.1-02.
Request was from Marc Haber <mh+debian-packages@zugschlus.de>
to control@bugs.debian.org.
(Mon, 25 Feb 2008 13:42:22 GMT) (full text, mbox, link).
Bug marked as found in version 0.13.1-2.
Request was from Marc Haber <mh+debian-packages@zugschlus.de>
to control@bugs.debian.org.
(Mon, 25 Feb 2008 13:42:25 GMT) (full text, mbox, link).
Bug marked as fixed in version 0.13.1-8.
Request was from Marc Haber <mh+debian-packages@zugschlus.de>
to control@bugs.debian.org.
(Mon, 25 Feb 2008 15:06:55 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(Mon, 06 Apr 2009 17:09:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Luke Reeves <luke@neuro-tech.net>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(Mon, 06 Apr 2009 17:09:02 GMT) (full text, mbox, link).
Message #51 received at 438429@bugs.debian.org (full text, mbox, reply):
Package: aide
Version: 0.13.1-2
Followup-For: Bug #438429
I'm having the same issue on Etch after a fresh install of AIDE. The
daily cron job for it produces this output:
/etc/cron.daily/aide:
/etc/cron.daily/aide: line 117: onexit: command not found
/etc/cron.daily/aide: line 61: onexit: command not found
run-parts: /etc/cron.daily/aide exited with return code 127
-- System Information:
Debian Release: 4.0
APT prefers oldstable
APT policy: (500, 'oldstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.8-linode10
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages aide depends on:
ii debconf [debconf 1.5.11etch2 Debian configuration management sy
ii liblockfile1 1.06.1 NFS-safe locking library, includes
ii mailx 1:8.1.2-0.20050715cvs-1 A simple mail user agent
ii ucf 2.0020 Update Configuration File: preserv
Versions of packages aide recommends:
ii cron 3.0pl1-100 management of regular background p
-- debconf information:
* aide/aideinit: false
* aideinit/copynew: true
aideinit/overwritenew: true
aide/newlibdir: false
Information forwarded
to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(Mon, 06 Apr 2009 19:51:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Luke Reeves <luke@neuro-tech.net>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(Mon, 06 Apr 2009 19:51:08 GMT) (full text, mbox, link).
Message #56 received at 438429@bugs.debian.org (full text, mbox, reply):
For what it's worth, a full re-installation (after a dpkg purge) fixed
AIDE for me. Thanks,
Luke
Debian Bug Tracking System wrote:
> Thank you for the additional information you have supplied regarding
> this Bug report.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
> Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>
>
> If you wish to submit further information on this problem, please
> send it to 438429@bugs.debian.org, as before.
>
> Please do not send mail to owner@bugs.debian.org unless you wish
> to report a problem with the Bug-tracking system.
>
>
Information forwarded
to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(Tue, 07 Apr 2009 12:15:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(Tue, 07 Apr 2009 12:15:03 GMT) (full text, mbox, link).
Message #61 received at 438429@bugs.debian.org (full text, mbox, reply):
On Mon, Apr 06, 2009 at 01:06:33PM -0400, Luke Reeves wrote:
> I'm having the same issue on Etch after a fresh install of AIDE. The
> daily cron job for it produces this output:
>
> /etc/cron.daily/aide:
> /etc/cron.daily/aide: line 117: onexit: command not found
> /etc/cron.daily/aide: line 61: onexit: command not found
> run-parts: /etc/cron.daily/aide exited with return code 127
You updated from an older broken version and did not allow the bug fix
(which was in a dpkg-conffile) to be installed.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
Information forwarded
to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(Tue, 07 Apr 2009 13:21:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Luke Reeves <luke@neuro-tech.net>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(Tue, 07 Apr 2009 13:21:02 GMT) (full text, mbox, link).
Message #66 received at 438429@bugs.debian.org (full text, mbox, reply):
It was actually a completely fresh install. One difference though is
that on the first install debconf was set to not ask any questions. I
then ran dpkg-reconfigure debconf to change the priority, and then did
the re-install. Hope that helps,
Luke
Marc Haber wrote:
> On Mon, Apr 06, 2009 at 01:06:33PM -0400, Luke Reeves wrote:
>> I'm having the same issue on Etch after a fresh install of AIDE. The
>> daily cron job for it produces this output:
>>
>> /etc/cron.daily/aide:
>> /etc/cron.daily/aide: line 117: onexit: command not found
>> /etc/cron.daily/aide: line 61: onexit: command not found
>> run-parts: /etc/cron.daily/aide exited with return code 127
>
> You updated from an older broken version and did not allow the bug fix
> (which was in a dpkg-conffile) to be installed.
>
> Greetings
> Marc
>
Information forwarded
to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#438429; Package aide.
(Thu, 03 Sep 2009 14:36:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>.
(Thu, 03 Sep 2009 14:36:08 GMT) (full text, mbox, link).
Message #71 received at 438429@bugs.debian.org (full text, mbox, reply):
On Tue, Apr 07, 2009 at 09:17:38AM -0400, Luke Reeves wrote:
> It was actually a completely fresh install.
A completely fresh install of Debian lenny?
> One difference though is that on the first install debconf was set
> to not ask any questions. I then ran dpkg-reconfigure debconf to
> change the priority, and then did the re-install.
The issue related to old dpkg-conffiles not being overwritten with the
current version from the aide packages. These questions are not asked
by debconf, they're asked by dpkg.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Message sent on
to michael@epicworks.com:
Bug#438429.
(Thu, 03 Sep 2009 14:36:27 GMT) (full text, mbox, link).
Bug No longer marked as fixed in versions 1.13.1-02.
Request was from Hannes von Haugwitz <hannes@vonhaugwitz.com>
to control@bugs.debian.org.
(Tue, 20 Apr 2010 16:27:09 GMT) (full text, mbox, link).
Reply sent
to Hannes von Haugwitz <hannes@vonhaugwitz.com>:
You have taken responsibility.
(Tue, 20 Apr 2010 17:03:05 GMT) (full text, mbox, link).
Notification sent
to michael@epicworks.com:
Bug acknowledged by developer.
(Tue, 20 Apr 2010 17:03:06 GMT) (full text, mbox, link).
Message #81 received at 438429-done@bugs.debian.org (full text, mbox, reply):
Hi,
this bug has been fixed in 0.13.1-8, so I close this bug.
Greetings
Hannes
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 19 May 2010 07:33:27 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 08:53:25 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.