Bug#641810: /var/lib/aide/aide.db.new not copied
On Wed, Jun 12, 2013 at 06:42:42PM BST, Hannes von Haugwitz wrote: When debconf asks you whether you want to copy /var/lib/aide/aide.db.new to /var/lib/aide/aide.db and you answer Yes it is still not happening, as you can see from the error generated below. [cut] Fatal error: The AIDE database '/var/lib/aide/aide.db' does not exist! This may mean you haven't created it, or it may mean that someone has removed it. End of script errors [cut] This situation can occur if the cron job is started while the initialization process of the installation is still running. I don't think you understand. As I've written above, when choosing 'Yes' to debconf's question whether to copy the '.new' database and replace existing one, it's not being done - '/var/lib/aide/aide.db.new' is not being copied to '/var/lib/aide/aide.db' [0]. With a new installation there's obviously no 'existing one', but that's beside the point. The easiest way to test it is if you purge all the aide packages and reinstall 'aide' and 'aide-common'. [0] Before AIDE can be used, you will have to initialize a database. You can immediately do this here, or run the '/usr/sbin/aideinit' script from a shell later. Initialize AIDE database It is advisable for you to first look over /var/lib/aide/aide.db.new file before replacing the existing db. You can have the package replace the database anyway here. If you do not choose this option, you will need to copy the file /var/lib/aide/aide.db.new to /var/lib/aide/aide.db before AIDE can use it. Copy aide.db.new to aide.db? Regards, Raf -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#641810: /var/lib/aide/aide.db.new not copied
Hi Raf, On Fri, Jun 14, 2013 at 12:24:11AM +0100, Raf Czlonka wrote: On Wed, Jun 12, 2013 at 06:42:42PM BST, Hannes von Haugwitz wrote: This situation can occur if the cron job is started while the initialization process of the installation is still running. I don't think you understand. As I've written above, when choosing 'Yes' to debconf's question whether to copy the '.new' database and replace existing one, it's not being done - '/var/lib/aide/aide.db.new' is not being copied to '/var/lib/aide/aide.db' [0]. With a new installation there's obviously no 'existing one', but that's beside the point. The easiest way to test it is if you purge all the aide packages and reinstall 'aide' and 'aide-common'. I have tested it: # aptitude purge aide aide-common # aptitude install aide aide-common Answered 'yes' to both debconf questions and waited until the aideinit process has been finished. # ls -l /var/lib/aide/ total 42640 -rw-r--r-- 1 root root39379 Jun 14 04:13 aide.conf.autogenerated -rw--- 1 root root 21897438 Jun 14 04:24 aide.db -rw--- 1 root root 21897438 Jun 14 04:24 aide.db.new So I'm not able to reproduce your issue that way. I'm only able to reproduce the error message from the cron job, if the cron job is executed right after the installation and before the aideinit process has been finished. That's why I have added this explanation to the error message and marked this bug pending. If this issue is still not solved, please provide more information about how to reproduce it. Best regards Hannes -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#641810: /var/lib/aide/aide.db.new not copied
# fixed in f956b04 tags 641810 pending thanks Hi, On Fri, Sep 16, 2011 at 01:32:08PM +0100, Raf Czlonka wrote: One of the install scripts is broken. When debconf asks you whether you want to copy /var/lib/aide/aide.db.new to /var/lib/aide/aide.db and you answer Yes it is still not happening, as you can see from the error generated below. This is an automated report generated by the Advanced Intrusion Detection Environment on thor.local started at 2011-09-16 07:35:20. ** * The cron job was terminated by a fatal error.* ** ** *the cron job was interrupted before AIDE could return an exit code. * ** ** * script errors* ** Fatal error: The AIDE database '/var/lib/aide/aide.db' does not exist! This may mean you haven't created it, or it may mean that someone has removed it. End of script errors AIDE produced no errors. funny, AIDE did not leave a log. End of AIDE daily cron job at 2011-09-16 07:35, run time 0 seconds This situation can occur if the cron job is started while the initialization process of the installation is still running. I adjusted the error message above to include this explanation. Best regards Hannes -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#641810: /var/lib/aide/aide.db.new not copied
Package: aide Version: 0.15.1-3 Severity: normal Hi, One of the install scripts is broken. When debconf asks you whether you want to copy /var/lib/aide/aide.db.new to /var/lib/aide/aide.db and you answer Yes it is still not happening, as you can see from the error generated below. This is an automated report generated by the Advanced Intrusion Detection Environment on thor.local started at 2011-09-16 07:35:20. ** * The cron job was terminated by a fatal error.* ** ** *the cron job was interrupted before AIDE could return an exit code. * ** ** * script errors* ** Fatal error: The AIDE database '/var/lib/aide/aide.db' does not exist! This may mean you haven't created it, or it may mean that someone has removed it. End of script errors AIDE produced no errors. funny, AIDE did not leave a log. End of AIDE daily cron job at 2011-09-16 07:35, run time 0 seconds Regards, Raf -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: powerpc (ppc) Kernel: Linux 3.0.0-1-powerpc Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages aide depends on: ii aide-common 0.15.1-3 ii bsd-mailx 8.1.2-0.20100314cvs-1 ii liblockfile1 1.09-3 ii ucf 3.0025+nmu2 Versions of packages aide recommends: ii cron 3.0pl1-119 aide suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org