Missing perl modules

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.


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 :slight_smile:

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 actually have 3 crons giving email errors, all for the same file.
Thankfully the email subject takes away the hard part of hunting them down.

/usr/local/controlpanel/cronjobs/dns.pl hostname -s



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!


I unfortunately don’t have a list of what cron jobs Virtualmin sets up.

But, I can offer that Virtualmin doesn’t use /usr/local/controlpanel for it’s files, it uses both /etc/webmin and /usr/share/webmin for files.

Also, as new Virtual Servers are added into Virtualmin, it’ll setup a Webalizer cron job for each domain, for collecting website usage statistics.


Ok here is my newly trimmed list - can anyone point me to things that look out of place?

root Yes /etc/cron.daily/standard /etc/cron.daily/apt /etc/cron.daily/bsdmainutils /etc/cron.daily/aptitude /etc/cron.daily/man-db /etc/cron.daily/webalizer /etc/cron.daily/logrotate /etc/cron.daily/sysstat /etc/cron.daily/mlocate /etc/cron.daily/quota /etc/cron.daily/spamassassin /etc/cron.daily/sysklogd /etc/cron.daily/apache2 root Yes /etc/cron.weekly/man-db /etc/cron.weekly/popularity-contest /etc/cron.weekly/sysklogd root Yes /etc/cron.monthly/standard /etc/cron.monthly/proftpd root Yes /usr/local/ald/aldctl rotate root Yes /usr/local/bin/proftpd_rotate.sh root Yes find /usr/fs/tmp/stats -maxdepth 1 -mtime +1 -type f | xargs rm root Yes /usr/bin/unattended-upgrade root Yes /usr/sbin/ntpdate ntp1.donhost.co.uk root Yes [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ ... root Yes if [ -x /usr/sbin/pg_maintenance ]; then /usr/sbin/pg_maintenance --analyze >/de ... root No if [ -x /usr/sbin/pg_maintenance ]; then /usr/sbin/pg_maintenance --full --analy ... root Yes [ -x /usr/lib/sysstat/sa1 ] && { [ -r "$DEFAULT" ] && . "$DEFAULT" ; [ "$ENABLED ... root Yes [ -x /usr/lib/sysstat/sa1 ] && { [ -r "$DEFAULT" ] && . "$DEFAULT" ; [ "$ENABLED ... root Yes /etc/webmin/cron/tempdelete.pl root Yes /etc/webmin/cron/tempdelete.pl root Yes /etc/webmin/virtual-server/collectinfo.pl root Yes /etc/webmin/status/monitor.pl root Yes /etc/webmin/webalizer/webalizer.pl /var/log/virtualmin/beautifulthaibride.com_ac ... root Yes /etc/webmin/virtual-server/spamclear.pl root Yes /etc/webmin/virtualmin-awstats/awstats.pl beautifulthaibride.com root Yes /etc/webmin/webalizer/webalizer.pl /var/log/virtualmin/thelondonminibuscompany.c ... root Yes /etc/webmin/virtualmin-awstats/awstats.pl thelondonminibuscompany.com root Yes /etc/webmin/webalizer/webalizer.pl /var/log/virtualmin/upgradeconsulting.co.uk_a ... root Yes /etc/webmin/virtualmin-awstats/awstats.pl upgradeconsulting.co.uk root Yes /etc/webmin/webalizer/webalizer.pl /var/log/virtualmin/worldofminibuses.com_acce ... root Yes /etc/webmin/virtualmin-awstats/awstats.pl worldofminibuses.com root Yes /etc/webmin/virtual-server/backup.pl --id 12649923085716 list Yes [ -x /usr/lib/mailman/cron/checkdbs ] && /usr/lib/mailman/cron/checkdbs list Yes [ -x /usr/lib/mailman/cron/disabled ] && /usr/lib/mailman/cron/disabled list Yes [ -x /usr/lib/mailman/cron/senddigests ] && /usr/lib/mailman/cron/senddigests list Yes [ -x /usr/lib/mailman/cron/mailpasswds ] && /usr/lib/mailman/cron/mailpasswds list No [ -x /usr/lib/mailman/cron/gate_news ] && /usr/lib/mailman/cron/gate_news list Yes [ -x /usr/lib/mailman/cron/nightly_gzip ] && /usr/lib/mailman/cron/nightly_gzip www-data Yes [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/ ...


Well, anything that uses /usr/local wasn’t installed during the Ubuntu or Virtualmin install.

I see two there using that dir that you could probably comment out or delete.


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


  • Restarting system log daemon…
    Re-opening all log files

Which looks fine to me and another which I have disabled.

Cron root@ds7132 find /usr/fs/tmp/stats -maxdepth 1 -mtime +1 -type f | xargs rm

find: /usr/fs/tmp/stats: No such file or directory
rm: missing operand
Try `rm --help’ for more information.

The ones at the bottom of the list - /usr/lib/mailman… are these virtualmin made scripts or not?