> > After updating two Bacula 3.0.2 servers to version 3.0.3 both of them > > started to claim this: > > > > ---- > > /etc/cron.daily/0logwatch: > > > > Cannot find shared script applybaculadate > > ---- > > > > Both are 64-bit CentOS5 systems, rpm installations. > > > > This is obviously due to some packaging specific change in log file > > handling. > > Has anyone else met this, any ideas how to start troublesoot? > > > > Same day I also updated these systems from CentOS 5.3 to 5.4 > > Check if you've got files that look like they are logwatch-related in > /etc/log.d/ - I was pointed to this issue by a customer and haven't > investigated yet, but it looks like a packaging issue. > > Ideally, you'd only have to move those files to their correct > locations in /etc/logwatch/ and everything's fine.
Actually, looks like it's vice versa, there used to be bacula-related files under log.d, but now they are under logwatch, which previously was practically empty (in my system). The file trees under both these directories are shown at the very far below, for both the new and before-upgrade systems. Currently /etc/logwatch/scripts/services/bacula starts this way: ---- #!/usr/bin/perl -w # # logwatch filter script for bacula log files # # Mon Jan 03 2005 # D. Scott Barninger and Karl Cunningham <clip> ---- So, to me it looks that it's in the correct tree now, something logwatch-related under /etc/logwatch. Sounds reasonable? /etc/logwatch/conf/services/bacula.conf after the update: ---- Title = "bacula" # Which logfile group... LogFile = bacula *ApplyBaculaDate = ---- The last line here sounds like the script name in the error message, that could not be found. Should it possibly be edited to point to the script above or something..? (sorry, I don't know the internals of logwatch) Finally, /etc/logwatch/conf/logfiles/bacula.conf (edited, since I write logs to /var/log/... instead of packager's default) ---- # What actual file? Defaults to LogPath if not absolute path.... # LogFile = /var/lib/bacula/log LogFile = /var/log/bacula/log ---- Is it possible that the logwatch wasn't working previously at all, due to mislocated files? This will be a guess only, but I'll add to the last line of /etc/logwatch/conf/services/bacula.conf a path to the perl script above. Tomorrow I'll see if there was a new error message again... Whether it works or not, I hope someone more competent than me could have a look at it too. Old set of files restored from a backup of 3.0.2: [r...@garfield etc]# pwd /tmp/bacula-restores/etc [r...@garfield etc]# tree -D log.d/ log.d/ |-- [Jan 28 2009] conf | |-- [Jul 31 10:15] logfiles | | `-- [Jul 31 0:21] bacula.conf | `-- [Jul 31 10:15] services | `-- [Jul 14 22:10] bacula.conf `-- [Jan 28 2009] scripts `-- [Jul 31 10:15] services `-- [Jul 14 22:10] bacula 5 directories, 3 files [r...@garfield etc]# tree -D logwatch/ logwatch/ |-- [Dec 27 2008] conf | |-- [May 24 2008] ignore.conf | |-- [May 24 2008] logfiles | |-- [May 24 2008] logwatch.conf | |-- [May 24 2008] override.conf | `-- [May 24 2008] services `-- [May 24 2008] scripts 4 directories, 3 files And a new set of files in the current system, after 3.0.2 -> 3.0.3 upgrade: [r...@garfield etc]# pwd /etc [r...@garfield etc]# tree -D log.d/ log.d/ |-- [Jan 28 2009] conf | |-- [Nov 22 2:06] logfiles | `-- [Nov 22 2:06] services `-- [Jan 28 2009] scripts `-- [Nov 22 2:06] services 5 directories, 0 files [r...@garfield etc]# tree -D logwatch/ logwatch/ |-- [Nov 22 19:33] conf | |-- [May 24 2008] ignore.conf | |-- [Nov 22 19:39] logfiles | | `-- [Nov 22 19:39] bacula.conf | |-- [May 24 2008] logwatch.conf | |-- [May 24 2008] override.conf | `-- [Nov 22 19:34] services | `-- [Oct 18 12:10] bacula.conf `-- [Nov 22 2:06] scripts `-- [Nov 22 19:32] services `-- [Oct 18 12:10] bacula 5 directories, 6 files ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users