sendratings.pl problem after upgrade

virtualmin 3.85.gpl on centos 5.6 i am started to getting this error mail: Failed to run /usr/libexec/webmin/virtual-server/sendratings.pl : No such file or directory at /etc/webmin/virtual-server/sendratings.pl line 11.

i disabled it from Scheduled Cron Jobs after getting it 2 times. FYI.

Status: 
Active

Comments

This is due to a missing file in Virtualmin GPL. The work-around is to go to Webmin -> System -> Scheduled Cron Jobs, select the sendratings.pl job and delete it.

Virtualmin 3.86 will fix this.

I don't think you need the sendratings cron since that is for the Script Installers which the GPL version doesn't have.

Right ?

I don't think you need the sendratings cron since that is for the Script Installers which the GPL version doesn't have

The most recent Virtualmin GPL includes a handful of Install Scripts (RoundCube, phpMyAdmin, WHMCS, and another one I can't think of at the moment).

The sendratings.pl is for use with those. Or at least, it's supposed to be :-)

Even if that is the case the missing file is not going to break the Pro or GPL versions... so this isn't blocking bug, just a opps.

Yup, that's correct :-)

The issue only exists in Virtualmin GPL, and it doesn't affect any critical functionality.

The fix is just to disable the sendratings cron job until Virtualmin 3.86 comes out, which will contain the correct file.

Automatically closed -- issue fixed for 2 weeks with no activity.

I have upgrade to Virtualmin 3.86, but it still miss /etc/webmin/virtual-server/sendratings.pl file. And I continue receive cron errors:

Cron <root@host> /etc/webmin/virtual-server/sendratings.pl (failed)
/bin/sh: /etc/webmin/virtual-server/sendratings.pl: not found

I see only /usr/share/webmin/virtual-server/sendratings.pl file

Where can I get the file /etc/webmin/virtual-server/sendratings.pl ?

I noticed a bug that can cause this file to be not created properly, which I'll fix in the next Virtualmin release.

The work-around is to create it manually, with the contents :

#!/usr/bin/perl
open(CONF, "/etc/webmin/miniserv.conf");
while(<CONF>) {
        $root = $1 if (/^root=(.*)/);
        }
close(CONF);
$ENV{'WEBMIN_CONFIG'} = "/etc/webmin";
$ENV{'WEBMIN_VAR'} = "/var/webmin";
$ENV{'PERLLIB'} = $root;
chdir("$root/virtual-server");
exec("$root/virtual-server/sendratings.pl", @ARGV) || die "Failed to run $root/virtual-server/sendratings.pl : $!";

Be sure to make it executable, with the command chmod +x /etc/webmin/virtual-server/sendratings.pl