I am running Ubuntu 8.04.04 with virtualmin 3.76 which I installed by install.sh (on an almost fresh installation - packages had been installed but were then purged)
I havent touched the standard cron setup and am having my email flooded as a result of missing perl files.
FindBin/libs.pm
Can’t locate FindBin/libs.pm in @INC (@INC contains: /usr/local/controlpanel/cronjobs/…/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/controlpanel/cronjobs/…/lib/general.lib line 5.
BEGIN failed–compilation aborted at /usr/local/controlpanel/cronjobs/…/lib/general.lib line 5.
Compilation failed in require at /usr/local/controlpanel/cronjobs/maillog.pl line 17.
an apt-file search returns blank
Is there a package that I can install to get this file or could I insert it manually?
The ubuntu site doesnt list it in the files in the perl package.
It looks like a third-party package you have (or had) installed there is causing trouble.
The program failing is /usr/local/controlpanel/cronjobs/maillog.pl – which isn’t something that comes with Ubuntu or Virtualmin
You’ll have to poke around a bit to figure out where it’s running from… it could be one of your user’s crontab files in /var/spool/cron/crontabs, or perhaps it’s in one of the cron directories in /etc/cron* – I’d probably start by looking in /etc/cron.d.
I had initaly thought that they were virtualmin installed crons and wanted to get them working.
However if that isnt the case then I will simply remove them.
I have already uninstalled qmail so thats fine to go, if maillog.pl and dns.pl are also leftovers from the old installation then those can go too.
I have a number of other crons sharing the /usr/local/controlpanel folder - am I right in guessing that these are nothing to with virtualmin too?
Actually, does anyone have a list of the cron jobs installed by default by virtualmins install script? Might be easier!
Thats good, since after deleting those previous crons I got a different batch of emails which I hadnt received before - 2 out of 4 were the ones you mentioned.
I also got
Cron root@ds7132 test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
/etc/cron.daily/logrotate:
Restarting system log daemon…
…done.
Re-opening all log files
Which looks fine to me and another which I have disabled.