These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Missing perl modules on the new forum.
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.
-Eric
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
/usr/local/controlpanel/cronjobs/qmail.pl
/usr/local/controlpanel/cronjobs/qmail.pl
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!
Howdy,
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.
-Eric
Ok here is my newly trimmed list - can anyone point me to things that look out of place?
Howdy,
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.
-Eric
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
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
The ones at the bottom of the list - /usr/lib/mailman...... are these virtualmin made scripts or not?